{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.SES.DeleteCustomVerificationEmailTemplate
(
DeleteCustomVerificationEmailTemplate (..),
newDeleteCustomVerificationEmailTemplate,
deleteCustomVerificationEmailTemplate_templateName,
DeleteCustomVerificationEmailTemplateResponse (..),
newDeleteCustomVerificationEmailTemplateResponse,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.SES.Types
data DeleteCustomVerificationEmailTemplate = DeleteCustomVerificationEmailTemplate'
{
DeleteCustomVerificationEmailTemplate -> Text
templateName :: Prelude.Text
}
deriving (DeleteCustomVerificationEmailTemplate
-> DeleteCustomVerificationEmailTemplate -> Bool
(DeleteCustomVerificationEmailTemplate
-> DeleteCustomVerificationEmailTemplate -> Bool)
-> (DeleteCustomVerificationEmailTemplate
-> DeleteCustomVerificationEmailTemplate -> Bool)
-> Eq DeleteCustomVerificationEmailTemplate
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DeleteCustomVerificationEmailTemplate
-> DeleteCustomVerificationEmailTemplate -> Bool
== :: DeleteCustomVerificationEmailTemplate
-> DeleteCustomVerificationEmailTemplate -> Bool
$c/= :: DeleteCustomVerificationEmailTemplate
-> DeleteCustomVerificationEmailTemplate -> Bool
/= :: DeleteCustomVerificationEmailTemplate
-> DeleteCustomVerificationEmailTemplate -> Bool
Prelude.Eq, ReadPrec [DeleteCustomVerificationEmailTemplate]
ReadPrec DeleteCustomVerificationEmailTemplate
Int -> ReadS DeleteCustomVerificationEmailTemplate
ReadS [DeleteCustomVerificationEmailTemplate]
(Int -> ReadS DeleteCustomVerificationEmailTemplate)
-> ReadS [DeleteCustomVerificationEmailTemplate]
-> ReadPrec DeleteCustomVerificationEmailTemplate
-> ReadPrec [DeleteCustomVerificationEmailTemplate]
-> Read DeleteCustomVerificationEmailTemplate
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
$creadsPrec :: Int -> ReadS DeleteCustomVerificationEmailTemplate
readsPrec :: Int -> ReadS DeleteCustomVerificationEmailTemplate
$creadList :: ReadS [DeleteCustomVerificationEmailTemplate]
readList :: ReadS [DeleteCustomVerificationEmailTemplate]
$creadPrec :: ReadPrec DeleteCustomVerificationEmailTemplate
readPrec :: ReadPrec DeleteCustomVerificationEmailTemplate
$creadListPrec :: ReadPrec [DeleteCustomVerificationEmailTemplate]
readListPrec :: ReadPrec [DeleteCustomVerificationEmailTemplate]
Prelude.Read, Int -> DeleteCustomVerificationEmailTemplate -> ShowS
[DeleteCustomVerificationEmailTemplate] -> ShowS
DeleteCustomVerificationEmailTemplate -> String
(Int -> DeleteCustomVerificationEmailTemplate -> ShowS)
-> (DeleteCustomVerificationEmailTemplate -> String)
-> ([DeleteCustomVerificationEmailTemplate] -> ShowS)
-> Show DeleteCustomVerificationEmailTemplate
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DeleteCustomVerificationEmailTemplate -> ShowS
showsPrec :: Int -> DeleteCustomVerificationEmailTemplate -> ShowS
$cshow :: DeleteCustomVerificationEmailTemplate -> String
show :: DeleteCustomVerificationEmailTemplate -> String
$cshowList :: [DeleteCustomVerificationEmailTemplate] -> ShowS
showList :: [DeleteCustomVerificationEmailTemplate] -> ShowS
Prelude.Show, (forall x.
DeleteCustomVerificationEmailTemplate
-> Rep DeleteCustomVerificationEmailTemplate x)
-> (forall x.
Rep DeleteCustomVerificationEmailTemplate x
-> DeleteCustomVerificationEmailTemplate)
-> Generic DeleteCustomVerificationEmailTemplate
forall x.
Rep DeleteCustomVerificationEmailTemplate x
-> DeleteCustomVerificationEmailTemplate
forall x.
DeleteCustomVerificationEmailTemplate
-> Rep DeleteCustomVerificationEmailTemplate x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cfrom :: forall x.
DeleteCustomVerificationEmailTemplate
-> Rep DeleteCustomVerificationEmailTemplate x
from :: forall x.
DeleteCustomVerificationEmailTemplate
-> Rep DeleteCustomVerificationEmailTemplate x
$cto :: forall x.
Rep DeleteCustomVerificationEmailTemplate x
-> DeleteCustomVerificationEmailTemplate
to :: forall x.
Rep DeleteCustomVerificationEmailTemplate x
-> DeleteCustomVerificationEmailTemplate
Prelude.Generic)
newDeleteCustomVerificationEmailTemplate ::
Prelude.Text ->
DeleteCustomVerificationEmailTemplate
newDeleteCustomVerificationEmailTemplate :: Text -> DeleteCustomVerificationEmailTemplate
newDeleteCustomVerificationEmailTemplate
Text
pTemplateName_ =
DeleteCustomVerificationEmailTemplate'
{ $sel:templateName:DeleteCustomVerificationEmailTemplate' :: Text
templateName =
Text
pTemplateName_
}
deleteCustomVerificationEmailTemplate_templateName :: Lens.Lens' DeleteCustomVerificationEmailTemplate Prelude.Text
deleteCustomVerificationEmailTemplate_templateName :: Lens' DeleteCustomVerificationEmailTemplate Text
deleteCustomVerificationEmailTemplate_templateName = (DeleteCustomVerificationEmailTemplate -> Text)
-> (DeleteCustomVerificationEmailTemplate
-> Text -> DeleteCustomVerificationEmailTemplate)
-> Lens' DeleteCustomVerificationEmailTemplate Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteCustomVerificationEmailTemplate' {Text
$sel:templateName:DeleteCustomVerificationEmailTemplate' :: DeleteCustomVerificationEmailTemplate -> Text
templateName :: Text
templateName} -> Text
templateName) (\s :: DeleteCustomVerificationEmailTemplate
s@DeleteCustomVerificationEmailTemplate' {} Text
a -> DeleteCustomVerificationEmailTemplate
s {templateName = a} :: DeleteCustomVerificationEmailTemplate)
instance
Core.AWSRequest
DeleteCustomVerificationEmailTemplate
where
type
AWSResponse
DeleteCustomVerificationEmailTemplate =
DeleteCustomVerificationEmailTemplateResponse
request :: (Service -> Service)
-> DeleteCustomVerificationEmailTemplate
-> Request DeleteCustomVerificationEmailTemplate
request Service -> Service
overrides =
Service
-> DeleteCustomVerificationEmailTemplate
-> Request DeleteCustomVerificationEmailTemplate
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery (Service -> Service
overrides Service
defaultService)
response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy DeleteCustomVerificationEmailTemplate
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse DeleteCustomVerificationEmailTemplate)))
response =
AWSResponse DeleteCustomVerificationEmailTemplate
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy DeleteCustomVerificationEmailTemplate
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse DeleteCustomVerificationEmailTemplate)))
forall (m :: * -> *) a.
MonadResource m =>
AWSResponse a
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveNull
AWSResponse DeleteCustomVerificationEmailTemplate
DeleteCustomVerificationEmailTemplateResponse
DeleteCustomVerificationEmailTemplateResponse'
instance
Prelude.Hashable
DeleteCustomVerificationEmailTemplate
where
hashWithSalt :: Int -> DeleteCustomVerificationEmailTemplate -> Int
hashWithSalt
Int
_salt
DeleteCustomVerificationEmailTemplate' {Text
$sel:templateName:DeleteCustomVerificationEmailTemplate' :: DeleteCustomVerificationEmailTemplate -> Text
templateName :: Text
..} =
Int
_salt Int -> Text -> Int
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
templateName
instance
Prelude.NFData
DeleteCustomVerificationEmailTemplate
where
rnf :: DeleteCustomVerificationEmailTemplate -> ()
rnf DeleteCustomVerificationEmailTemplate' {Text
$sel:templateName:DeleteCustomVerificationEmailTemplate' :: DeleteCustomVerificationEmailTemplate -> Text
templateName :: Text
..} =
Text -> ()
forall a. NFData a => a -> ()
Prelude.rnf Text
templateName
instance
Data.ToHeaders
DeleteCustomVerificationEmailTemplate
where
toHeaders :: DeleteCustomVerificationEmailTemplate -> [Header]
toHeaders = [Header] -> DeleteCustomVerificationEmailTemplate -> [Header]
forall a b. a -> b -> a
Prelude.const [Header]
forall a. Monoid a => a
Prelude.mempty
instance
Data.ToPath
DeleteCustomVerificationEmailTemplate
where
toPath :: DeleteCustomVerificationEmailTemplate -> ByteString
toPath = ByteString -> DeleteCustomVerificationEmailTemplate -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance
Data.ToQuery
DeleteCustomVerificationEmailTemplate
where
toQuery :: DeleteCustomVerificationEmailTemplate -> QueryString
toQuery DeleteCustomVerificationEmailTemplate' {Text
$sel:templateName:DeleteCustomVerificationEmailTemplate' :: DeleteCustomVerificationEmailTemplate -> Text
templateName :: Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"Action"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: ( ByteString
"DeleteCustomVerificationEmailTemplate" ::
Prelude.ByteString
),
ByteString
"Version"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: (ByteString
"2010-12-01" :: Prelude.ByteString),
ByteString
"TemplateName" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Text
templateName
]
data DeleteCustomVerificationEmailTemplateResponse = DeleteCustomVerificationEmailTemplateResponse'
{
}
deriving (DeleteCustomVerificationEmailTemplateResponse
-> DeleteCustomVerificationEmailTemplateResponse -> Bool
(DeleteCustomVerificationEmailTemplateResponse
-> DeleteCustomVerificationEmailTemplateResponse -> Bool)
-> (DeleteCustomVerificationEmailTemplateResponse
-> DeleteCustomVerificationEmailTemplateResponse -> Bool)
-> Eq DeleteCustomVerificationEmailTemplateResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DeleteCustomVerificationEmailTemplateResponse
-> DeleteCustomVerificationEmailTemplateResponse -> Bool
== :: DeleteCustomVerificationEmailTemplateResponse
-> DeleteCustomVerificationEmailTemplateResponse -> Bool
$c/= :: DeleteCustomVerificationEmailTemplateResponse
-> DeleteCustomVerificationEmailTemplateResponse -> Bool
/= :: DeleteCustomVerificationEmailTemplateResponse
-> DeleteCustomVerificationEmailTemplateResponse -> Bool
Prelude.Eq, ReadPrec [DeleteCustomVerificationEmailTemplateResponse]
ReadPrec DeleteCustomVerificationEmailTemplateResponse
Int -> ReadS DeleteCustomVerificationEmailTemplateResponse
ReadS [DeleteCustomVerificationEmailTemplateResponse]
(Int -> ReadS DeleteCustomVerificationEmailTemplateResponse)
-> ReadS [DeleteCustomVerificationEmailTemplateResponse]
-> ReadPrec DeleteCustomVerificationEmailTemplateResponse
-> ReadPrec [DeleteCustomVerificationEmailTemplateResponse]
-> Read DeleteCustomVerificationEmailTemplateResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
$creadsPrec :: Int -> ReadS DeleteCustomVerificationEmailTemplateResponse
readsPrec :: Int -> ReadS DeleteCustomVerificationEmailTemplateResponse
$creadList :: ReadS [DeleteCustomVerificationEmailTemplateResponse]
readList :: ReadS [DeleteCustomVerificationEmailTemplateResponse]
$creadPrec :: ReadPrec DeleteCustomVerificationEmailTemplateResponse
readPrec :: ReadPrec DeleteCustomVerificationEmailTemplateResponse
$creadListPrec :: ReadPrec [DeleteCustomVerificationEmailTemplateResponse]
readListPrec :: ReadPrec [DeleteCustomVerificationEmailTemplateResponse]
Prelude.Read, Int -> DeleteCustomVerificationEmailTemplateResponse -> ShowS
[DeleteCustomVerificationEmailTemplateResponse] -> ShowS
DeleteCustomVerificationEmailTemplateResponse -> String
(Int -> DeleteCustomVerificationEmailTemplateResponse -> ShowS)
-> (DeleteCustomVerificationEmailTemplateResponse -> String)
-> ([DeleteCustomVerificationEmailTemplateResponse] -> ShowS)
-> Show DeleteCustomVerificationEmailTemplateResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DeleteCustomVerificationEmailTemplateResponse -> ShowS
showsPrec :: Int -> DeleteCustomVerificationEmailTemplateResponse -> ShowS
$cshow :: DeleteCustomVerificationEmailTemplateResponse -> String
show :: DeleteCustomVerificationEmailTemplateResponse -> String
$cshowList :: [DeleteCustomVerificationEmailTemplateResponse] -> ShowS
showList :: [DeleteCustomVerificationEmailTemplateResponse] -> ShowS
Prelude.Show, (forall x.
DeleteCustomVerificationEmailTemplateResponse
-> Rep DeleteCustomVerificationEmailTemplateResponse x)
-> (forall x.
Rep DeleteCustomVerificationEmailTemplateResponse x
-> DeleteCustomVerificationEmailTemplateResponse)
-> Generic DeleteCustomVerificationEmailTemplateResponse
forall x.
Rep DeleteCustomVerificationEmailTemplateResponse x
-> DeleteCustomVerificationEmailTemplateResponse
forall x.
DeleteCustomVerificationEmailTemplateResponse
-> Rep DeleteCustomVerificationEmailTemplateResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cfrom :: forall x.
DeleteCustomVerificationEmailTemplateResponse
-> Rep DeleteCustomVerificationEmailTemplateResponse x
from :: forall x.
DeleteCustomVerificationEmailTemplateResponse
-> Rep DeleteCustomVerificationEmailTemplateResponse x
$cto :: forall x.
Rep DeleteCustomVerificationEmailTemplateResponse x
-> DeleteCustomVerificationEmailTemplateResponse
to :: forall x.
Rep DeleteCustomVerificationEmailTemplateResponse x
-> DeleteCustomVerificationEmailTemplateResponse
Prelude.Generic)
newDeleteCustomVerificationEmailTemplateResponse ::
DeleteCustomVerificationEmailTemplateResponse
newDeleteCustomVerificationEmailTemplateResponse :: DeleteCustomVerificationEmailTemplateResponse
newDeleteCustomVerificationEmailTemplateResponse =
DeleteCustomVerificationEmailTemplateResponse
DeleteCustomVerificationEmailTemplateResponse'
instance
Prelude.NFData
DeleteCustomVerificationEmailTemplateResponse
where
rnf :: DeleteCustomVerificationEmailTemplateResponse -> ()
rnf DeleteCustomVerificationEmailTemplateResponse
_ = ()