{-# 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.CreateEmailIdentity
(
CreateEmailIdentity (..),
newCreateEmailIdentity,
createEmailIdentity_configurationSetName,
createEmailIdentity_dkimSigningAttributes,
createEmailIdentity_tags,
createEmailIdentity_emailIdentity,
CreateEmailIdentityResponse (..),
newCreateEmailIdentityResponse,
createEmailIdentityResponse_dkimAttributes,
createEmailIdentityResponse_verifiedForSendingStatus,
createEmailIdentityResponse_identityType,
createEmailIdentityResponse_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 CreateEmailIdentity = CreateEmailIdentity'
{
CreateEmailIdentity -> Maybe Text
configurationSetName :: Prelude.Maybe Prelude.Text,
CreateEmailIdentity -> Maybe DkimSigningAttributes
dkimSigningAttributes :: Prelude.Maybe DkimSigningAttributes,
CreateEmailIdentity -> Maybe [Tag]
tags :: Prelude.Maybe [Tag],
CreateEmailIdentity -> Text
emailIdentity :: Prelude.Text
}
deriving (CreateEmailIdentity -> CreateEmailIdentity -> Bool
(CreateEmailIdentity -> CreateEmailIdentity -> Bool)
-> (CreateEmailIdentity -> CreateEmailIdentity -> Bool)
-> Eq CreateEmailIdentity
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateEmailIdentity -> CreateEmailIdentity -> Bool
$c/= :: CreateEmailIdentity -> CreateEmailIdentity -> Bool
== :: CreateEmailIdentity -> CreateEmailIdentity -> Bool
$c== :: CreateEmailIdentity -> CreateEmailIdentity -> Bool
Prelude.Eq, Int -> CreateEmailIdentity -> ShowS
[CreateEmailIdentity] -> ShowS
CreateEmailIdentity -> String
(Int -> CreateEmailIdentity -> ShowS)
-> (CreateEmailIdentity -> String)
-> ([CreateEmailIdentity] -> ShowS)
-> Show CreateEmailIdentity
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateEmailIdentity] -> ShowS
$cshowList :: [CreateEmailIdentity] -> ShowS
show :: CreateEmailIdentity -> String
$cshow :: CreateEmailIdentity -> String
showsPrec :: Int -> CreateEmailIdentity -> ShowS
$cshowsPrec :: Int -> CreateEmailIdentity -> ShowS
Prelude.Show, (forall x. CreateEmailIdentity -> Rep CreateEmailIdentity x)
-> (forall x. Rep CreateEmailIdentity x -> CreateEmailIdentity)
-> Generic CreateEmailIdentity
forall x. Rep CreateEmailIdentity x -> CreateEmailIdentity
forall x. CreateEmailIdentity -> Rep CreateEmailIdentity x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateEmailIdentity x -> CreateEmailIdentity
$cfrom :: forall x. CreateEmailIdentity -> Rep CreateEmailIdentity x
Prelude.Generic)
newCreateEmailIdentity ::
Prelude.Text ->
CreateEmailIdentity
newCreateEmailIdentity :: Text -> CreateEmailIdentity
newCreateEmailIdentity Text
pEmailIdentity_ =
CreateEmailIdentity' :: Maybe Text
-> Maybe DkimSigningAttributes
-> Maybe [Tag]
-> Text
-> CreateEmailIdentity
CreateEmailIdentity'
{ $sel:configurationSetName:CreateEmailIdentity' :: Maybe Text
configurationSetName =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:dkimSigningAttributes:CreateEmailIdentity' :: Maybe DkimSigningAttributes
dkimSigningAttributes = Maybe DkimSigningAttributes
forall a. Maybe a
Prelude.Nothing,
$sel:tags:CreateEmailIdentity' :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing,
$sel:emailIdentity:CreateEmailIdentity' :: Text
emailIdentity = Text
pEmailIdentity_
}
createEmailIdentity_configurationSetName :: Lens.Lens' CreateEmailIdentity (Prelude.Maybe Prelude.Text)
createEmailIdentity_configurationSetName :: (Maybe Text -> f (Maybe Text))
-> CreateEmailIdentity -> f CreateEmailIdentity
createEmailIdentity_configurationSetName = (CreateEmailIdentity -> Maybe Text)
-> (CreateEmailIdentity -> Maybe Text -> CreateEmailIdentity)
-> Lens
CreateEmailIdentity CreateEmailIdentity (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateEmailIdentity' {Maybe Text
configurationSetName :: Maybe Text
$sel:configurationSetName:CreateEmailIdentity' :: CreateEmailIdentity -> Maybe Text
configurationSetName} -> Maybe Text
configurationSetName) (\s :: CreateEmailIdentity
s@CreateEmailIdentity' {} Maybe Text
a -> CreateEmailIdentity
s {$sel:configurationSetName:CreateEmailIdentity' :: Maybe Text
configurationSetName = Maybe Text
a} :: CreateEmailIdentity)
createEmailIdentity_dkimSigningAttributes :: Lens.Lens' CreateEmailIdentity (Prelude.Maybe DkimSigningAttributes)
createEmailIdentity_dkimSigningAttributes :: (Maybe DkimSigningAttributes -> f (Maybe DkimSigningAttributes))
-> CreateEmailIdentity -> f CreateEmailIdentity
createEmailIdentity_dkimSigningAttributes = (CreateEmailIdentity -> Maybe DkimSigningAttributes)
-> (CreateEmailIdentity
-> Maybe DkimSigningAttributes -> CreateEmailIdentity)
-> Lens
CreateEmailIdentity
CreateEmailIdentity
(Maybe DkimSigningAttributes)
(Maybe DkimSigningAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateEmailIdentity' {Maybe DkimSigningAttributes
dkimSigningAttributes :: Maybe DkimSigningAttributes
$sel:dkimSigningAttributes:CreateEmailIdentity' :: CreateEmailIdentity -> Maybe DkimSigningAttributes
dkimSigningAttributes} -> Maybe DkimSigningAttributes
dkimSigningAttributes) (\s :: CreateEmailIdentity
s@CreateEmailIdentity' {} Maybe DkimSigningAttributes
a -> CreateEmailIdentity
s {$sel:dkimSigningAttributes:CreateEmailIdentity' :: Maybe DkimSigningAttributes
dkimSigningAttributes = Maybe DkimSigningAttributes
a} :: CreateEmailIdentity)
createEmailIdentity_tags :: Lens.Lens' CreateEmailIdentity (Prelude.Maybe [Tag])
createEmailIdentity_tags :: (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateEmailIdentity -> f CreateEmailIdentity
createEmailIdentity_tags = (CreateEmailIdentity -> Maybe [Tag])
-> (CreateEmailIdentity -> Maybe [Tag] -> CreateEmailIdentity)
-> Lens
CreateEmailIdentity CreateEmailIdentity (Maybe [Tag]) (Maybe [Tag])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateEmailIdentity' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:CreateEmailIdentity' :: CreateEmailIdentity -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: CreateEmailIdentity
s@CreateEmailIdentity' {} Maybe [Tag]
a -> CreateEmailIdentity
s {$sel:tags:CreateEmailIdentity' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: CreateEmailIdentity) ((Maybe [Tag] -> f (Maybe [Tag]))
-> CreateEmailIdentity -> f CreateEmailIdentity)
-> ((Maybe [Tag] -> f (Maybe [Tag]))
-> Maybe [Tag] -> f (Maybe [Tag]))
-> (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateEmailIdentity
-> f CreateEmailIdentity
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Tag] [Tag] [Tag] [Tag]
-> Iso (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [Tag] [Tag] [Tag] [Tag]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createEmailIdentity_emailIdentity :: Lens.Lens' CreateEmailIdentity Prelude.Text
createEmailIdentity_emailIdentity :: (Text -> f Text) -> CreateEmailIdentity -> f CreateEmailIdentity
createEmailIdentity_emailIdentity = (CreateEmailIdentity -> Text)
-> (CreateEmailIdentity -> Text -> CreateEmailIdentity)
-> Lens CreateEmailIdentity CreateEmailIdentity Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateEmailIdentity' {Text
emailIdentity :: Text
$sel:emailIdentity:CreateEmailIdentity' :: CreateEmailIdentity -> Text
emailIdentity} -> Text
emailIdentity) (\s :: CreateEmailIdentity
s@CreateEmailIdentity' {} Text
a -> CreateEmailIdentity
s {$sel:emailIdentity:CreateEmailIdentity' :: Text
emailIdentity = Text
a} :: CreateEmailIdentity)
instance Core.AWSRequest CreateEmailIdentity where
type
AWSResponse CreateEmailIdentity =
CreateEmailIdentityResponse
request :: CreateEmailIdentity -> Request CreateEmailIdentity
request = Service -> CreateEmailIdentity -> Request CreateEmailIdentity
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy CreateEmailIdentity
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateEmailIdentity)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse CreateEmailIdentity))
-> Logger
-> Service
-> Proxy CreateEmailIdentity
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateEmailIdentity)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe DkimAttributes
-> Maybe Bool
-> Maybe IdentityType
-> Int
-> CreateEmailIdentityResponse
CreateEmailIdentityResponse'
(Maybe DkimAttributes
-> Maybe Bool
-> Maybe IdentityType
-> Int
-> CreateEmailIdentityResponse)
-> Either String (Maybe DkimAttributes)
-> Either
String
(Maybe Bool
-> Maybe IdentityType -> Int -> CreateEmailIdentityResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe DkimAttributes)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"DkimAttributes")
Either
String
(Maybe Bool
-> Maybe IdentityType -> Int -> CreateEmailIdentityResponse)
-> Either String (Maybe Bool)
-> Either
String (Maybe IdentityType -> Int -> CreateEmailIdentityResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"VerifiedForSendingStatus")
Either
String (Maybe IdentityType -> Int -> CreateEmailIdentityResponse)
-> Either String (Maybe IdentityType)
-> Either String (Int -> CreateEmailIdentityResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe IdentityType)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"IdentityType")
Either String (Int -> CreateEmailIdentityResponse)
-> Either String Int -> Either String CreateEmailIdentityResponse
forall (f :: * -> *) a b. Applicative f => 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 CreateEmailIdentity
instance Prelude.NFData CreateEmailIdentity
instance Core.ToHeaders CreateEmailIdentity where
toHeaders :: CreateEmailIdentity -> ResponseHeaders
toHeaders =
ResponseHeaders -> CreateEmailIdentity -> 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.ToJSON CreateEmailIdentity where
toJSON :: CreateEmailIdentity -> Value
toJSON CreateEmailIdentity' {Maybe [Tag]
Maybe Text
Maybe DkimSigningAttributes
Text
emailIdentity :: Text
tags :: Maybe [Tag]
dkimSigningAttributes :: Maybe DkimSigningAttributes
configurationSetName :: Maybe Text
$sel:emailIdentity:CreateEmailIdentity' :: CreateEmailIdentity -> Text
$sel:tags:CreateEmailIdentity' :: CreateEmailIdentity -> Maybe [Tag]
$sel:dkimSigningAttributes:CreateEmailIdentity' :: CreateEmailIdentity -> Maybe DkimSigningAttributes
$sel:configurationSetName:CreateEmailIdentity' :: CreateEmailIdentity -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"ConfigurationSetName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
configurationSetName,
(Text
"DkimSigningAttributes" Text -> DkimSigningAttributes -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(DkimSigningAttributes -> Pair)
-> Maybe DkimSigningAttributes -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DkimSigningAttributes
dkimSigningAttributes,
(Text
"Tags" Text -> [Tag] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([Tag] -> Pair) -> Maybe [Tag] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"EmailIdentity" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
emailIdentity)
]
)
instance Core.ToPath CreateEmailIdentity where
toPath :: CreateEmailIdentity -> ByteString
toPath = ByteString -> CreateEmailIdentity -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/v2/email/identities"
instance Core.ToQuery CreateEmailIdentity where
toQuery :: CreateEmailIdentity -> QueryString
toQuery = QueryString -> CreateEmailIdentity -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data CreateEmailIdentityResponse = CreateEmailIdentityResponse'
{
CreateEmailIdentityResponse -> Maybe DkimAttributes
dkimAttributes :: Prelude.Maybe DkimAttributes,
CreateEmailIdentityResponse -> Maybe Bool
verifiedForSendingStatus :: Prelude.Maybe Prelude.Bool,
CreateEmailIdentityResponse -> Maybe IdentityType
identityType :: Prelude.Maybe IdentityType,
CreateEmailIdentityResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CreateEmailIdentityResponse -> CreateEmailIdentityResponse -> Bool
(CreateEmailIdentityResponse
-> CreateEmailIdentityResponse -> Bool)
-> (CreateEmailIdentityResponse
-> CreateEmailIdentityResponse -> Bool)
-> Eq CreateEmailIdentityResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateEmailIdentityResponse -> CreateEmailIdentityResponse -> Bool
$c/= :: CreateEmailIdentityResponse -> CreateEmailIdentityResponse -> Bool
== :: CreateEmailIdentityResponse -> CreateEmailIdentityResponse -> Bool
$c== :: CreateEmailIdentityResponse -> CreateEmailIdentityResponse -> Bool
Prelude.Eq, ReadPrec [CreateEmailIdentityResponse]
ReadPrec CreateEmailIdentityResponse
Int -> ReadS CreateEmailIdentityResponse
ReadS [CreateEmailIdentityResponse]
(Int -> ReadS CreateEmailIdentityResponse)
-> ReadS [CreateEmailIdentityResponse]
-> ReadPrec CreateEmailIdentityResponse
-> ReadPrec [CreateEmailIdentityResponse]
-> Read CreateEmailIdentityResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateEmailIdentityResponse]
$creadListPrec :: ReadPrec [CreateEmailIdentityResponse]
readPrec :: ReadPrec CreateEmailIdentityResponse
$creadPrec :: ReadPrec CreateEmailIdentityResponse
readList :: ReadS [CreateEmailIdentityResponse]
$creadList :: ReadS [CreateEmailIdentityResponse]
readsPrec :: Int -> ReadS CreateEmailIdentityResponse
$creadsPrec :: Int -> ReadS CreateEmailIdentityResponse
Prelude.Read, Int -> CreateEmailIdentityResponse -> ShowS
[CreateEmailIdentityResponse] -> ShowS
CreateEmailIdentityResponse -> String
(Int -> CreateEmailIdentityResponse -> ShowS)
-> (CreateEmailIdentityResponse -> String)
-> ([CreateEmailIdentityResponse] -> ShowS)
-> Show CreateEmailIdentityResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateEmailIdentityResponse] -> ShowS
$cshowList :: [CreateEmailIdentityResponse] -> ShowS
show :: CreateEmailIdentityResponse -> String
$cshow :: CreateEmailIdentityResponse -> String
showsPrec :: Int -> CreateEmailIdentityResponse -> ShowS
$cshowsPrec :: Int -> CreateEmailIdentityResponse -> ShowS
Prelude.Show, (forall x.
CreateEmailIdentityResponse -> Rep CreateEmailIdentityResponse x)
-> (forall x.
Rep CreateEmailIdentityResponse x -> CreateEmailIdentityResponse)
-> Generic CreateEmailIdentityResponse
forall x.
Rep CreateEmailIdentityResponse x -> CreateEmailIdentityResponse
forall x.
CreateEmailIdentityResponse -> Rep CreateEmailIdentityResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateEmailIdentityResponse x -> CreateEmailIdentityResponse
$cfrom :: forall x.
CreateEmailIdentityResponse -> Rep CreateEmailIdentityResponse x
Prelude.Generic)
newCreateEmailIdentityResponse ::
Prelude.Int ->
CreateEmailIdentityResponse
newCreateEmailIdentityResponse :: Int -> CreateEmailIdentityResponse
newCreateEmailIdentityResponse Int
pHttpStatus_ =
CreateEmailIdentityResponse' :: Maybe DkimAttributes
-> Maybe Bool
-> Maybe IdentityType
-> Int
-> CreateEmailIdentityResponse
CreateEmailIdentityResponse'
{ $sel:dkimAttributes:CreateEmailIdentityResponse' :: Maybe DkimAttributes
dkimAttributes =
Maybe DkimAttributes
forall a. Maybe a
Prelude.Nothing,
$sel:verifiedForSendingStatus:CreateEmailIdentityResponse' :: Maybe Bool
verifiedForSendingStatus = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:identityType:CreateEmailIdentityResponse' :: Maybe IdentityType
identityType = Maybe IdentityType
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CreateEmailIdentityResponse' :: Int
httpStatus = Int
pHttpStatus_
}
createEmailIdentityResponse_dkimAttributes :: Lens.Lens' CreateEmailIdentityResponse (Prelude.Maybe DkimAttributes)
createEmailIdentityResponse_dkimAttributes :: (Maybe DkimAttributes -> f (Maybe DkimAttributes))
-> CreateEmailIdentityResponse -> f CreateEmailIdentityResponse
createEmailIdentityResponse_dkimAttributes = (CreateEmailIdentityResponse -> Maybe DkimAttributes)
-> (CreateEmailIdentityResponse
-> Maybe DkimAttributes -> CreateEmailIdentityResponse)
-> Lens
CreateEmailIdentityResponse
CreateEmailIdentityResponse
(Maybe DkimAttributes)
(Maybe DkimAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateEmailIdentityResponse' {Maybe DkimAttributes
dkimAttributes :: Maybe DkimAttributes
$sel:dkimAttributes:CreateEmailIdentityResponse' :: CreateEmailIdentityResponse -> Maybe DkimAttributes
dkimAttributes} -> Maybe DkimAttributes
dkimAttributes) (\s :: CreateEmailIdentityResponse
s@CreateEmailIdentityResponse' {} Maybe DkimAttributes
a -> CreateEmailIdentityResponse
s {$sel:dkimAttributes:CreateEmailIdentityResponse' :: Maybe DkimAttributes
dkimAttributes = Maybe DkimAttributes
a} :: CreateEmailIdentityResponse)
createEmailIdentityResponse_verifiedForSendingStatus :: Lens.Lens' CreateEmailIdentityResponse (Prelude.Maybe Prelude.Bool)
createEmailIdentityResponse_verifiedForSendingStatus :: (Maybe Bool -> f (Maybe Bool))
-> CreateEmailIdentityResponse -> f CreateEmailIdentityResponse
createEmailIdentityResponse_verifiedForSendingStatus = (CreateEmailIdentityResponse -> Maybe Bool)
-> (CreateEmailIdentityResponse
-> Maybe Bool -> CreateEmailIdentityResponse)
-> Lens
CreateEmailIdentityResponse
CreateEmailIdentityResponse
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateEmailIdentityResponse' {Maybe Bool
verifiedForSendingStatus :: Maybe Bool
$sel:verifiedForSendingStatus:CreateEmailIdentityResponse' :: CreateEmailIdentityResponse -> Maybe Bool
verifiedForSendingStatus} -> Maybe Bool
verifiedForSendingStatus) (\s :: CreateEmailIdentityResponse
s@CreateEmailIdentityResponse' {} Maybe Bool
a -> CreateEmailIdentityResponse
s {$sel:verifiedForSendingStatus:CreateEmailIdentityResponse' :: Maybe Bool
verifiedForSendingStatus = Maybe Bool
a} :: CreateEmailIdentityResponse)
createEmailIdentityResponse_identityType :: Lens.Lens' CreateEmailIdentityResponse (Prelude.Maybe IdentityType)
createEmailIdentityResponse_identityType :: (Maybe IdentityType -> f (Maybe IdentityType))
-> CreateEmailIdentityResponse -> f CreateEmailIdentityResponse
createEmailIdentityResponse_identityType = (CreateEmailIdentityResponse -> Maybe IdentityType)
-> (CreateEmailIdentityResponse
-> Maybe IdentityType -> CreateEmailIdentityResponse)
-> Lens
CreateEmailIdentityResponse
CreateEmailIdentityResponse
(Maybe IdentityType)
(Maybe IdentityType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateEmailIdentityResponse' {Maybe IdentityType
identityType :: Maybe IdentityType
$sel:identityType:CreateEmailIdentityResponse' :: CreateEmailIdentityResponse -> Maybe IdentityType
identityType} -> Maybe IdentityType
identityType) (\s :: CreateEmailIdentityResponse
s@CreateEmailIdentityResponse' {} Maybe IdentityType
a -> CreateEmailIdentityResponse
s {$sel:identityType:CreateEmailIdentityResponse' :: Maybe IdentityType
identityType = Maybe IdentityType
a} :: CreateEmailIdentityResponse)
createEmailIdentityResponse_httpStatus :: Lens.Lens' CreateEmailIdentityResponse Prelude.Int
createEmailIdentityResponse_httpStatus :: (Int -> f Int)
-> CreateEmailIdentityResponse -> f CreateEmailIdentityResponse
createEmailIdentityResponse_httpStatus = (CreateEmailIdentityResponse -> Int)
-> (CreateEmailIdentityResponse
-> Int -> CreateEmailIdentityResponse)
-> Lens
CreateEmailIdentityResponse CreateEmailIdentityResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateEmailIdentityResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateEmailIdentityResponse' :: CreateEmailIdentityResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateEmailIdentityResponse
s@CreateEmailIdentityResponse' {} Int
a -> CreateEmailIdentityResponse
s {$sel:httpStatus:CreateEmailIdentityResponse' :: Int
httpStatus = Int
a} :: CreateEmailIdentityResponse)
instance Prelude.NFData CreateEmailIdentityResponse