{-# 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.CreateCustomVerificationEmailTemplate
(
CreateCustomVerificationEmailTemplate (..),
newCreateCustomVerificationEmailTemplate,
createCustomVerificationEmailTemplate_templateName,
createCustomVerificationEmailTemplate_fromEmailAddress,
createCustomVerificationEmailTemplate_templateSubject,
createCustomVerificationEmailTemplate_templateContent,
createCustomVerificationEmailTemplate_successRedirectionURL,
createCustomVerificationEmailTemplate_failureRedirectionURL,
CreateCustomVerificationEmailTemplateResponse (..),
newCreateCustomVerificationEmailTemplateResponse,
createCustomVerificationEmailTemplateResponse_httpStatus,
)
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.SESV2.Types
data CreateCustomVerificationEmailTemplate = CreateCustomVerificationEmailTemplate'
{
CreateCustomVerificationEmailTemplate -> Text
templateName :: Prelude.Text,
CreateCustomVerificationEmailTemplate -> Text
fromEmailAddress :: Prelude.Text,
CreateCustomVerificationEmailTemplate -> Text
templateSubject :: Prelude.Text,
CreateCustomVerificationEmailTemplate -> Text
templateContent :: Prelude.Text,
CreateCustomVerificationEmailTemplate -> Text
successRedirectionURL :: Prelude.Text,
CreateCustomVerificationEmailTemplate -> Text
failureRedirectionURL :: Prelude.Text
}
deriving (CreateCustomVerificationEmailTemplate
-> CreateCustomVerificationEmailTemplate -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateCustomVerificationEmailTemplate
-> CreateCustomVerificationEmailTemplate -> Bool
$c/= :: CreateCustomVerificationEmailTemplate
-> CreateCustomVerificationEmailTemplate -> Bool
== :: CreateCustomVerificationEmailTemplate
-> CreateCustomVerificationEmailTemplate -> Bool
$c== :: CreateCustomVerificationEmailTemplate
-> CreateCustomVerificationEmailTemplate -> Bool
Prelude.Eq, ReadPrec [CreateCustomVerificationEmailTemplate]
ReadPrec CreateCustomVerificationEmailTemplate
Int -> ReadS CreateCustomVerificationEmailTemplate
ReadS [CreateCustomVerificationEmailTemplate]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateCustomVerificationEmailTemplate]
$creadListPrec :: ReadPrec [CreateCustomVerificationEmailTemplate]
readPrec :: ReadPrec CreateCustomVerificationEmailTemplate
$creadPrec :: ReadPrec CreateCustomVerificationEmailTemplate
readList :: ReadS [CreateCustomVerificationEmailTemplate]
$creadList :: ReadS [CreateCustomVerificationEmailTemplate]
readsPrec :: Int -> ReadS CreateCustomVerificationEmailTemplate
$creadsPrec :: Int -> ReadS CreateCustomVerificationEmailTemplate
Prelude.Read, Int -> CreateCustomVerificationEmailTemplate -> ShowS
[CreateCustomVerificationEmailTemplate] -> ShowS
CreateCustomVerificationEmailTemplate -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateCustomVerificationEmailTemplate] -> ShowS
$cshowList :: [CreateCustomVerificationEmailTemplate] -> ShowS
show :: CreateCustomVerificationEmailTemplate -> String
$cshow :: CreateCustomVerificationEmailTemplate -> String
showsPrec :: Int -> CreateCustomVerificationEmailTemplate -> ShowS
$cshowsPrec :: Int -> CreateCustomVerificationEmailTemplate -> ShowS
Prelude.Show, forall x.
Rep CreateCustomVerificationEmailTemplate x
-> CreateCustomVerificationEmailTemplate
forall x.
CreateCustomVerificationEmailTemplate
-> Rep CreateCustomVerificationEmailTemplate x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateCustomVerificationEmailTemplate x
-> CreateCustomVerificationEmailTemplate
$cfrom :: forall x.
CreateCustomVerificationEmailTemplate
-> Rep CreateCustomVerificationEmailTemplate x
Prelude.Generic)
newCreateCustomVerificationEmailTemplate ::
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
CreateCustomVerificationEmailTemplate
newCreateCustomVerificationEmailTemplate :: Text
-> Text
-> Text
-> Text
-> Text
-> Text
-> CreateCustomVerificationEmailTemplate
newCreateCustomVerificationEmailTemplate
Text
pTemplateName_
Text
pFromEmailAddress_
Text
pTemplateSubject_
Text
pTemplateContent_
Text
pSuccessRedirectionURL_
Text
pFailureRedirectionURL_ =
CreateCustomVerificationEmailTemplate'
{ $sel:templateName:CreateCustomVerificationEmailTemplate' :: Text
templateName =
Text
pTemplateName_,
$sel:fromEmailAddress:CreateCustomVerificationEmailTemplate' :: Text
fromEmailAddress =
Text
pFromEmailAddress_,
$sel:templateSubject:CreateCustomVerificationEmailTemplate' :: Text
templateSubject = Text
pTemplateSubject_,
$sel:templateContent:CreateCustomVerificationEmailTemplate' :: Text
templateContent = Text
pTemplateContent_,
$sel:successRedirectionURL:CreateCustomVerificationEmailTemplate' :: Text
successRedirectionURL =
Text
pSuccessRedirectionURL_,
$sel:failureRedirectionURL:CreateCustomVerificationEmailTemplate' :: Text
failureRedirectionURL =
Text
pFailureRedirectionURL_
}
createCustomVerificationEmailTemplate_templateName :: Lens.Lens' CreateCustomVerificationEmailTemplate Prelude.Text
createCustomVerificationEmailTemplate_templateName :: Lens' CreateCustomVerificationEmailTemplate Text
createCustomVerificationEmailTemplate_templateName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateCustomVerificationEmailTemplate' {Text
templateName :: Text
$sel:templateName:CreateCustomVerificationEmailTemplate' :: CreateCustomVerificationEmailTemplate -> Text
templateName} -> Text
templateName) (\s :: CreateCustomVerificationEmailTemplate
s@CreateCustomVerificationEmailTemplate' {} Text
a -> CreateCustomVerificationEmailTemplate
s {$sel:templateName:CreateCustomVerificationEmailTemplate' :: Text
templateName = Text
a} :: CreateCustomVerificationEmailTemplate)
createCustomVerificationEmailTemplate_fromEmailAddress :: Lens.Lens' CreateCustomVerificationEmailTemplate Prelude.Text
createCustomVerificationEmailTemplate_fromEmailAddress :: Lens' CreateCustomVerificationEmailTemplate Text
createCustomVerificationEmailTemplate_fromEmailAddress = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateCustomVerificationEmailTemplate' {Text
fromEmailAddress :: Text
$sel:fromEmailAddress:CreateCustomVerificationEmailTemplate' :: CreateCustomVerificationEmailTemplate -> Text
fromEmailAddress} -> Text
fromEmailAddress) (\s :: CreateCustomVerificationEmailTemplate
s@CreateCustomVerificationEmailTemplate' {} Text
a -> CreateCustomVerificationEmailTemplate
s {$sel:fromEmailAddress:CreateCustomVerificationEmailTemplate' :: Text
fromEmailAddress = Text
a} :: CreateCustomVerificationEmailTemplate)
createCustomVerificationEmailTemplate_templateSubject :: Lens.Lens' CreateCustomVerificationEmailTemplate Prelude.Text
createCustomVerificationEmailTemplate_templateSubject :: Lens' CreateCustomVerificationEmailTemplate Text
createCustomVerificationEmailTemplate_templateSubject = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateCustomVerificationEmailTemplate' {Text
templateSubject :: Text
$sel:templateSubject:CreateCustomVerificationEmailTemplate' :: CreateCustomVerificationEmailTemplate -> Text
templateSubject} -> Text
templateSubject) (\s :: CreateCustomVerificationEmailTemplate
s@CreateCustomVerificationEmailTemplate' {} Text
a -> CreateCustomVerificationEmailTemplate
s {$sel:templateSubject:CreateCustomVerificationEmailTemplate' :: Text
templateSubject = Text
a} :: CreateCustomVerificationEmailTemplate)
createCustomVerificationEmailTemplate_templateContent :: Lens.Lens' CreateCustomVerificationEmailTemplate Prelude.Text
createCustomVerificationEmailTemplate_templateContent :: Lens' CreateCustomVerificationEmailTemplate Text
createCustomVerificationEmailTemplate_templateContent = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateCustomVerificationEmailTemplate' {Text
templateContent :: Text
$sel:templateContent:CreateCustomVerificationEmailTemplate' :: CreateCustomVerificationEmailTemplate -> Text
templateContent} -> Text
templateContent) (\s :: CreateCustomVerificationEmailTemplate
s@CreateCustomVerificationEmailTemplate' {} Text
a -> CreateCustomVerificationEmailTemplate
s {$sel:templateContent:CreateCustomVerificationEmailTemplate' :: Text
templateContent = Text
a} :: CreateCustomVerificationEmailTemplate)
createCustomVerificationEmailTemplate_successRedirectionURL :: Lens.Lens' CreateCustomVerificationEmailTemplate Prelude.Text
createCustomVerificationEmailTemplate_successRedirectionURL :: Lens' CreateCustomVerificationEmailTemplate Text
createCustomVerificationEmailTemplate_successRedirectionURL = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateCustomVerificationEmailTemplate' {Text
successRedirectionURL :: Text
$sel:successRedirectionURL:CreateCustomVerificationEmailTemplate' :: CreateCustomVerificationEmailTemplate -> Text
successRedirectionURL} -> Text
successRedirectionURL) (\s :: CreateCustomVerificationEmailTemplate
s@CreateCustomVerificationEmailTemplate' {} Text
a -> CreateCustomVerificationEmailTemplate
s {$sel:successRedirectionURL:CreateCustomVerificationEmailTemplate' :: Text
successRedirectionURL = Text
a} :: CreateCustomVerificationEmailTemplate)
createCustomVerificationEmailTemplate_failureRedirectionURL :: Lens.Lens' CreateCustomVerificationEmailTemplate Prelude.Text
createCustomVerificationEmailTemplate_failureRedirectionURL :: Lens' CreateCustomVerificationEmailTemplate Text
createCustomVerificationEmailTemplate_failureRedirectionURL = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateCustomVerificationEmailTemplate' {Text
failureRedirectionURL :: Text
$sel:failureRedirectionURL:CreateCustomVerificationEmailTemplate' :: CreateCustomVerificationEmailTemplate -> Text
failureRedirectionURL} -> Text
failureRedirectionURL) (\s :: CreateCustomVerificationEmailTemplate
s@CreateCustomVerificationEmailTemplate' {} Text
a -> CreateCustomVerificationEmailTemplate
s {$sel:failureRedirectionURL:CreateCustomVerificationEmailTemplate' :: Text
failureRedirectionURL = Text
a} :: CreateCustomVerificationEmailTemplate)
instance
Core.AWSRequest
CreateCustomVerificationEmailTemplate
where
type
AWSResponse
CreateCustomVerificationEmailTemplate =
CreateCustomVerificationEmailTemplateResponse
request :: (Service -> Service)
-> CreateCustomVerificationEmailTemplate
-> Request CreateCustomVerificationEmailTemplate
request Service -> Service
overrides =
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy CreateCustomVerificationEmailTemplate
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse CreateCustomVerificationEmailTemplate)))
response =
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> () -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveEmpty
( \Int
s ResponseHeaders
h ()
x ->
Int -> CreateCustomVerificationEmailTemplateResponse
CreateCustomVerificationEmailTemplateResponse'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance
Prelude.Hashable
CreateCustomVerificationEmailTemplate
where
hashWithSalt :: Int -> CreateCustomVerificationEmailTemplate -> Int
hashWithSalt
Int
_salt
CreateCustomVerificationEmailTemplate' {Text
failureRedirectionURL :: Text
successRedirectionURL :: Text
templateContent :: Text
templateSubject :: Text
fromEmailAddress :: Text
templateName :: Text
$sel:failureRedirectionURL:CreateCustomVerificationEmailTemplate' :: CreateCustomVerificationEmailTemplate -> Text
$sel:successRedirectionURL:CreateCustomVerificationEmailTemplate' :: CreateCustomVerificationEmailTemplate -> Text
$sel:templateContent:CreateCustomVerificationEmailTemplate' :: CreateCustomVerificationEmailTemplate -> Text
$sel:templateSubject:CreateCustomVerificationEmailTemplate' :: CreateCustomVerificationEmailTemplate -> Text
$sel:fromEmailAddress:CreateCustomVerificationEmailTemplate' :: CreateCustomVerificationEmailTemplate -> Text
$sel:templateName:CreateCustomVerificationEmailTemplate' :: CreateCustomVerificationEmailTemplate -> Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
templateName
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
fromEmailAddress
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
templateSubject
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
templateContent
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
successRedirectionURL
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
failureRedirectionURL
instance
Prelude.NFData
CreateCustomVerificationEmailTemplate
where
rnf :: CreateCustomVerificationEmailTemplate -> ()
rnf CreateCustomVerificationEmailTemplate' {Text
failureRedirectionURL :: Text
successRedirectionURL :: Text
templateContent :: Text
templateSubject :: Text
fromEmailAddress :: Text
templateName :: Text
$sel:failureRedirectionURL:CreateCustomVerificationEmailTemplate' :: CreateCustomVerificationEmailTemplate -> Text
$sel:successRedirectionURL:CreateCustomVerificationEmailTemplate' :: CreateCustomVerificationEmailTemplate -> Text
$sel:templateContent:CreateCustomVerificationEmailTemplate' :: CreateCustomVerificationEmailTemplate -> Text
$sel:templateSubject:CreateCustomVerificationEmailTemplate' :: CreateCustomVerificationEmailTemplate -> Text
$sel:fromEmailAddress:CreateCustomVerificationEmailTemplate' :: CreateCustomVerificationEmailTemplate -> Text
$sel:templateName:CreateCustomVerificationEmailTemplate' :: CreateCustomVerificationEmailTemplate -> Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Text
templateName
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
fromEmailAddress
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
templateSubject
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
templateContent
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
successRedirectionURL
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
failureRedirectionURL
instance
Data.ToHeaders
CreateCustomVerificationEmailTemplate
where
toHeaders :: CreateCustomVerificationEmailTemplate -> ResponseHeaders
toHeaders =
forall a b. a -> b -> a
Prelude.const
( forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"Content-Type"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance
Data.ToJSON
CreateCustomVerificationEmailTemplate
where
toJSON :: CreateCustomVerificationEmailTemplate -> Value
toJSON CreateCustomVerificationEmailTemplate' {Text
failureRedirectionURL :: Text
successRedirectionURL :: Text
templateContent :: Text
templateSubject :: Text
fromEmailAddress :: Text
templateName :: Text
$sel:failureRedirectionURL:CreateCustomVerificationEmailTemplate' :: CreateCustomVerificationEmailTemplate -> Text
$sel:successRedirectionURL:CreateCustomVerificationEmailTemplate' :: CreateCustomVerificationEmailTemplate -> Text
$sel:templateContent:CreateCustomVerificationEmailTemplate' :: CreateCustomVerificationEmailTemplate -> Text
$sel:templateSubject:CreateCustomVerificationEmailTemplate' :: CreateCustomVerificationEmailTemplate -> Text
$sel:fromEmailAddress:CreateCustomVerificationEmailTemplate' :: CreateCustomVerificationEmailTemplate -> Text
$sel:templateName:CreateCustomVerificationEmailTemplate' :: CreateCustomVerificationEmailTemplate -> Text
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ forall a. a -> Maybe a
Prelude.Just (Key
"TemplateName" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
templateName),
forall a. a -> Maybe a
Prelude.Just
(Key
"FromEmailAddress" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
fromEmailAddress),
forall a. a -> Maybe a
Prelude.Just
(Key
"TemplateSubject" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
templateSubject),
forall a. a -> Maybe a
Prelude.Just
(Key
"TemplateContent" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
templateContent),
forall a. a -> Maybe a
Prelude.Just
( Key
"SuccessRedirectionURL"
forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
successRedirectionURL
),
forall a. a -> Maybe a
Prelude.Just
( Key
"FailureRedirectionURL"
forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
failureRedirectionURL
)
]
)
instance
Data.ToPath
CreateCustomVerificationEmailTemplate
where
toPath :: CreateCustomVerificationEmailTemplate -> ByteString
toPath =
forall a b. a -> b -> a
Prelude.const
ByteString
"/v2/email/custom-verification-email-templates"
instance
Data.ToQuery
CreateCustomVerificationEmailTemplate
where
toQuery :: CreateCustomVerificationEmailTemplate -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data CreateCustomVerificationEmailTemplateResponse = CreateCustomVerificationEmailTemplateResponse'
{
CreateCustomVerificationEmailTemplateResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CreateCustomVerificationEmailTemplateResponse
-> CreateCustomVerificationEmailTemplateResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateCustomVerificationEmailTemplateResponse
-> CreateCustomVerificationEmailTemplateResponse -> Bool
$c/= :: CreateCustomVerificationEmailTemplateResponse
-> CreateCustomVerificationEmailTemplateResponse -> Bool
== :: CreateCustomVerificationEmailTemplateResponse
-> CreateCustomVerificationEmailTemplateResponse -> Bool
$c== :: CreateCustomVerificationEmailTemplateResponse
-> CreateCustomVerificationEmailTemplateResponse -> Bool
Prelude.Eq, ReadPrec [CreateCustomVerificationEmailTemplateResponse]
ReadPrec CreateCustomVerificationEmailTemplateResponse
Int -> ReadS CreateCustomVerificationEmailTemplateResponse
ReadS [CreateCustomVerificationEmailTemplateResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateCustomVerificationEmailTemplateResponse]
$creadListPrec :: ReadPrec [CreateCustomVerificationEmailTemplateResponse]
readPrec :: ReadPrec CreateCustomVerificationEmailTemplateResponse
$creadPrec :: ReadPrec CreateCustomVerificationEmailTemplateResponse
readList :: ReadS [CreateCustomVerificationEmailTemplateResponse]
$creadList :: ReadS [CreateCustomVerificationEmailTemplateResponse]
readsPrec :: Int -> ReadS CreateCustomVerificationEmailTemplateResponse
$creadsPrec :: Int -> ReadS CreateCustomVerificationEmailTemplateResponse
Prelude.Read, Int -> CreateCustomVerificationEmailTemplateResponse -> ShowS
[CreateCustomVerificationEmailTemplateResponse] -> ShowS
CreateCustomVerificationEmailTemplateResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateCustomVerificationEmailTemplateResponse] -> ShowS
$cshowList :: [CreateCustomVerificationEmailTemplateResponse] -> ShowS
show :: CreateCustomVerificationEmailTemplateResponse -> String
$cshow :: CreateCustomVerificationEmailTemplateResponse -> String
showsPrec :: Int -> CreateCustomVerificationEmailTemplateResponse -> ShowS
$cshowsPrec :: Int -> CreateCustomVerificationEmailTemplateResponse -> ShowS
Prelude.Show, forall x.
Rep CreateCustomVerificationEmailTemplateResponse x
-> CreateCustomVerificationEmailTemplateResponse
forall x.
CreateCustomVerificationEmailTemplateResponse
-> Rep CreateCustomVerificationEmailTemplateResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateCustomVerificationEmailTemplateResponse x
-> CreateCustomVerificationEmailTemplateResponse
$cfrom :: forall x.
CreateCustomVerificationEmailTemplateResponse
-> Rep CreateCustomVerificationEmailTemplateResponse x
Prelude.Generic)
newCreateCustomVerificationEmailTemplateResponse ::
Prelude.Int ->
CreateCustomVerificationEmailTemplateResponse
newCreateCustomVerificationEmailTemplateResponse :: Int -> CreateCustomVerificationEmailTemplateResponse
newCreateCustomVerificationEmailTemplateResponse
Int
pHttpStatus_ =
CreateCustomVerificationEmailTemplateResponse'
{ $sel:httpStatus:CreateCustomVerificationEmailTemplateResponse' :: Int
httpStatus =
Int
pHttpStatus_
}
createCustomVerificationEmailTemplateResponse_httpStatus :: Lens.Lens' CreateCustomVerificationEmailTemplateResponse Prelude.Int
createCustomVerificationEmailTemplateResponse_httpStatus :: Lens' CreateCustomVerificationEmailTemplateResponse Int
createCustomVerificationEmailTemplateResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateCustomVerificationEmailTemplateResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateCustomVerificationEmailTemplateResponse' :: CreateCustomVerificationEmailTemplateResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateCustomVerificationEmailTemplateResponse
s@CreateCustomVerificationEmailTemplateResponse' {} Int
a -> CreateCustomVerificationEmailTemplateResponse
s {$sel:httpStatus:CreateCustomVerificationEmailTemplateResponse' :: Int
httpStatus = Int
a} :: CreateCustomVerificationEmailTemplateResponse)
instance
Prelude.NFData
CreateCustomVerificationEmailTemplateResponse
where
rnf :: CreateCustomVerificationEmailTemplateResponse -> ()
rnf
CreateCustomVerificationEmailTemplateResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateCustomVerificationEmailTemplateResponse' :: CreateCustomVerificationEmailTemplateResponse -> Int
..} =
forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus