{-# 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.SESV2.DeleteCustomVerificationEmailTemplate
(
DeleteCustomVerificationEmailTemplate (..),
newDeleteCustomVerificationEmailTemplate,
deleteCustomVerificationEmailTemplate_templateName,
DeleteCustomVerificationEmailTemplateResponse (..),
newDeleteCustomVerificationEmailTemplateResponse,
deleteCustomVerificationEmailTemplateResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.SESV2.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
/= :: DeleteCustomVerificationEmailTemplate
-> DeleteCustomVerificationEmailTemplate -> Bool
$c/= :: DeleteCustomVerificationEmailTemplate
-> DeleteCustomVerificationEmailTemplate -> Bool
== :: DeleteCustomVerificationEmailTemplate
-> DeleteCustomVerificationEmailTemplate -> Bool
$c== :: 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
readListPrec :: ReadPrec [DeleteCustomVerificationEmailTemplate]
$creadListPrec :: ReadPrec [DeleteCustomVerificationEmailTemplate]
readPrec :: ReadPrec DeleteCustomVerificationEmailTemplate
$creadPrec :: ReadPrec DeleteCustomVerificationEmailTemplate
readList :: ReadS [DeleteCustomVerificationEmailTemplate]
$creadList :: ReadS [DeleteCustomVerificationEmailTemplate]
readsPrec :: Int -> ReadS DeleteCustomVerificationEmailTemplate
$creadsPrec :: Int -> ReadS 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
showList :: [DeleteCustomVerificationEmailTemplate] -> ShowS
$cshowList :: [DeleteCustomVerificationEmailTemplate] -> ShowS
show :: DeleteCustomVerificationEmailTemplate -> String
$cshow :: DeleteCustomVerificationEmailTemplate -> String
showsPrec :: Int -> DeleteCustomVerificationEmailTemplate -> ShowS
$cshowsPrec :: Int -> 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
$cto :: forall x.
Rep DeleteCustomVerificationEmailTemplate x
-> DeleteCustomVerificationEmailTemplate
$cfrom :: forall x.
DeleteCustomVerificationEmailTemplate
-> Rep DeleteCustomVerificationEmailTemplate x
Prelude.Generic)
newDeleteCustomVerificationEmailTemplate ::
Prelude.Text ->
DeleteCustomVerificationEmailTemplate
newDeleteCustomVerificationEmailTemplate :: Text -> DeleteCustomVerificationEmailTemplate
newDeleteCustomVerificationEmailTemplate
Text
pTemplateName_ =
DeleteCustomVerificationEmailTemplate' :: Text -> DeleteCustomVerificationEmailTemplate
DeleteCustomVerificationEmailTemplate'
{ $sel:templateName:DeleteCustomVerificationEmailTemplate' :: Text
templateName =
Text
pTemplateName_
}
deleteCustomVerificationEmailTemplate_templateName :: Lens.Lens' DeleteCustomVerificationEmailTemplate Prelude.Text
deleteCustomVerificationEmailTemplate_templateName :: (Text -> f Text)
-> DeleteCustomVerificationEmailTemplate
-> f DeleteCustomVerificationEmailTemplate
deleteCustomVerificationEmailTemplate_templateName = (DeleteCustomVerificationEmailTemplate -> Text)
-> (DeleteCustomVerificationEmailTemplate
-> Text -> DeleteCustomVerificationEmailTemplate)
-> Lens
DeleteCustomVerificationEmailTemplate
DeleteCustomVerificationEmailTemplate
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteCustomVerificationEmailTemplate' {Text
templateName :: Text
$sel:templateName:DeleteCustomVerificationEmailTemplate' :: DeleteCustomVerificationEmailTemplate -> Text
templateName} -> Text
templateName) (\s :: DeleteCustomVerificationEmailTemplate
s@DeleteCustomVerificationEmailTemplate' {} Text
a -> DeleteCustomVerificationEmailTemplate
s {$sel:templateName:DeleteCustomVerificationEmailTemplate' :: Text
templateName = Text
a} :: DeleteCustomVerificationEmailTemplate)
instance
Core.AWSRequest
DeleteCustomVerificationEmailTemplate
where
type
AWSResponse
DeleteCustomVerificationEmailTemplate =
DeleteCustomVerificationEmailTemplateResponse
request :: DeleteCustomVerificationEmailTemplate
-> Request DeleteCustomVerificationEmailTemplate
request = Service
-> DeleteCustomVerificationEmailTemplate
-> Request DeleteCustomVerificationEmailTemplate
forall a. ToRequest a => Service -> a -> Request a
Request.delete Service
defaultService
response :: Logger
-> Service
-> Proxy DeleteCustomVerificationEmailTemplate
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse DeleteCustomVerificationEmailTemplate)))
response =
(Int
-> ResponseHeaders
-> ()
-> Either
String (AWSResponse DeleteCustomVerificationEmailTemplate))
-> Logger
-> Service
-> Proxy DeleteCustomVerificationEmailTemplate
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse DeleteCustomVerificationEmailTemplate)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> () -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveEmpty
( \Int
s ResponseHeaders
h ()
x ->
Int -> DeleteCustomVerificationEmailTemplateResponse
DeleteCustomVerificationEmailTemplateResponse'
(Int -> DeleteCustomVerificationEmailTemplateResponse)
-> Either String Int
-> Either String DeleteCustomVerificationEmailTemplateResponse
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance
Prelude.Hashable
DeleteCustomVerificationEmailTemplate
instance
Prelude.NFData
DeleteCustomVerificationEmailTemplate
instance
Core.ToHeaders
DeleteCustomVerificationEmailTemplate
where
toHeaders :: DeleteCustomVerificationEmailTemplate -> ResponseHeaders
toHeaders =
ResponseHeaders
-> DeleteCustomVerificationEmailTemplate -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance
Core.ToPath
DeleteCustomVerificationEmailTemplate
where
toPath :: DeleteCustomVerificationEmailTemplate -> ByteString
toPath DeleteCustomVerificationEmailTemplate' {Text
templateName :: Text
$sel:templateName:DeleteCustomVerificationEmailTemplate' :: DeleteCustomVerificationEmailTemplate -> Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/v2/email/custom-verification-email-templates/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
templateName
]
instance
Core.ToQuery
DeleteCustomVerificationEmailTemplate
where
toQuery :: DeleteCustomVerificationEmailTemplate -> QueryString
toQuery = QueryString -> DeleteCustomVerificationEmailTemplate -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DeleteCustomVerificationEmailTemplateResponse = DeleteCustomVerificationEmailTemplateResponse'
{
DeleteCustomVerificationEmailTemplateResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DeleteCustomVerificationEmailTemplateResponse
-> DeleteCustomVerificationEmailTemplateResponse -> Bool
(DeleteCustomVerificationEmailTemplateResponse
-> DeleteCustomVerificationEmailTemplateResponse -> Bool)
-> (DeleteCustomVerificationEmailTemplateResponse
-> DeleteCustomVerificationEmailTemplateResponse -> Bool)
-> Eq DeleteCustomVerificationEmailTemplateResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteCustomVerificationEmailTemplateResponse
-> DeleteCustomVerificationEmailTemplateResponse -> Bool
$c/= :: DeleteCustomVerificationEmailTemplateResponse
-> DeleteCustomVerificationEmailTemplateResponse -> Bool
== :: DeleteCustomVerificationEmailTemplateResponse
-> DeleteCustomVerificationEmailTemplateResponse -> Bool
$c== :: 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
readListPrec :: ReadPrec [DeleteCustomVerificationEmailTemplateResponse]
$creadListPrec :: ReadPrec [DeleteCustomVerificationEmailTemplateResponse]
readPrec :: ReadPrec DeleteCustomVerificationEmailTemplateResponse
$creadPrec :: ReadPrec DeleteCustomVerificationEmailTemplateResponse
readList :: ReadS [DeleteCustomVerificationEmailTemplateResponse]
$creadList :: ReadS [DeleteCustomVerificationEmailTemplateResponse]
readsPrec :: Int -> ReadS DeleteCustomVerificationEmailTemplateResponse
$creadsPrec :: Int -> ReadS 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
showList :: [DeleteCustomVerificationEmailTemplateResponse] -> ShowS
$cshowList :: [DeleteCustomVerificationEmailTemplateResponse] -> ShowS
show :: DeleteCustomVerificationEmailTemplateResponse -> String
$cshow :: DeleteCustomVerificationEmailTemplateResponse -> String
showsPrec :: Int -> DeleteCustomVerificationEmailTemplateResponse -> ShowS
$cshowsPrec :: Int -> 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
$cto :: forall x.
Rep DeleteCustomVerificationEmailTemplateResponse x
-> DeleteCustomVerificationEmailTemplateResponse
$cfrom :: forall x.
DeleteCustomVerificationEmailTemplateResponse
-> Rep DeleteCustomVerificationEmailTemplateResponse x
Prelude.Generic)
newDeleteCustomVerificationEmailTemplateResponse ::
Prelude.Int ->
DeleteCustomVerificationEmailTemplateResponse
newDeleteCustomVerificationEmailTemplateResponse :: Int -> DeleteCustomVerificationEmailTemplateResponse
newDeleteCustomVerificationEmailTemplateResponse
Int
pHttpStatus_ =
DeleteCustomVerificationEmailTemplateResponse' :: Int -> DeleteCustomVerificationEmailTemplateResponse
DeleteCustomVerificationEmailTemplateResponse'
{ $sel:httpStatus:DeleteCustomVerificationEmailTemplateResponse' :: Int
httpStatus =
Int
pHttpStatus_
}
deleteCustomVerificationEmailTemplateResponse_httpStatus :: Lens.Lens' DeleteCustomVerificationEmailTemplateResponse Prelude.Int
deleteCustomVerificationEmailTemplateResponse_httpStatus :: (Int -> f Int)
-> DeleteCustomVerificationEmailTemplateResponse
-> f DeleteCustomVerificationEmailTemplateResponse
deleteCustomVerificationEmailTemplateResponse_httpStatus = (DeleteCustomVerificationEmailTemplateResponse -> Int)
-> (DeleteCustomVerificationEmailTemplateResponse
-> Int -> DeleteCustomVerificationEmailTemplateResponse)
-> Lens
DeleteCustomVerificationEmailTemplateResponse
DeleteCustomVerificationEmailTemplateResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteCustomVerificationEmailTemplateResponse' {Int
httpStatus :: Int
$sel:httpStatus:DeleteCustomVerificationEmailTemplateResponse' :: DeleteCustomVerificationEmailTemplateResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DeleteCustomVerificationEmailTemplateResponse
s@DeleteCustomVerificationEmailTemplateResponse' {} Int
a -> DeleteCustomVerificationEmailTemplateResponse
s {$sel:httpStatus:DeleteCustomVerificationEmailTemplateResponse' :: Int
httpStatus = Int
a} :: DeleteCustomVerificationEmailTemplateResponse)
instance
Prelude.NFData
DeleteCustomVerificationEmailTemplateResponse