module Aws.Ses.Commands.DeleteIdentity
( DeleteIdentity(..)
, DeleteIdentityResponse(..)
) where
import Data.Text (Text)
import Data.Text.Encoding as T (encodeUtf8)
import Data.Typeable
import Aws.Core
import Aws.Ses.Core
data DeleteIdentity = DeleteIdentity Text
deriving (Eq, Ord, Show, Typeable)
instance SignQuery DeleteIdentity where
type ServiceConfiguration DeleteIdentity = SesConfiguration
signQuery (DeleteIdentity identity) =
sesSignQuery [ ("Action", "DeleteIdentity")
, ("Identity", T.encodeUtf8 identity)
]
data DeleteIdentityResponse = DeleteIdentityResponse
deriving (Eq, Ord, Show, Typeable)
instance ResponseConsumer DeleteIdentity DeleteIdentityResponse where
type ResponseMetadata DeleteIdentityResponse = SesMetadata
responseConsumer _ _
= sesResponseConsumer $ \_ -> return DeleteIdentityResponse
instance Transaction DeleteIdentity DeleteIdentityResponse where
instance AsMemoryResponse DeleteIdentityResponse where
type MemoryResponse DeleteIdentityResponse = DeleteIdentityResponse
loadToMemory = return