{-# 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.CreateConfigurationSet
(
CreateConfigurationSet (..),
newCreateConfigurationSet,
createConfigurationSet_deliveryOptions,
createConfigurationSet_reputationOptions,
createConfigurationSet_sendingOptions,
createConfigurationSet_suppressionOptions,
createConfigurationSet_tags,
createConfigurationSet_trackingOptions,
createConfigurationSet_vdmOptions,
createConfigurationSet_configurationSetName,
CreateConfigurationSetResponse (..),
newCreateConfigurationSetResponse,
createConfigurationSetResponse_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 CreateConfigurationSet = CreateConfigurationSet'
{
CreateConfigurationSet -> Maybe DeliveryOptions
deliveryOptions :: Prelude.Maybe DeliveryOptions,
CreateConfigurationSet -> Maybe ReputationOptions
reputationOptions :: Prelude.Maybe ReputationOptions,
CreateConfigurationSet -> Maybe SendingOptions
sendingOptions :: Prelude.Maybe SendingOptions,
CreateConfigurationSet -> Maybe SuppressionOptions
suppressionOptions :: Prelude.Maybe SuppressionOptions,
CreateConfigurationSet -> Maybe [Tag]
tags :: Prelude.Maybe [Tag],
CreateConfigurationSet -> Maybe TrackingOptions
trackingOptions :: Prelude.Maybe TrackingOptions,
CreateConfigurationSet -> Maybe VdmOptions
vdmOptions :: Prelude.Maybe VdmOptions,
CreateConfigurationSet -> Text
configurationSetName :: Prelude.Text
}
deriving (CreateConfigurationSet -> CreateConfigurationSet -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateConfigurationSet -> CreateConfigurationSet -> Bool
$c/= :: CreateConfigurationSet -> CreateConfigurationSet -> Bool
== :: CreateConfigurationSet -> CreateConfigurationSet -> Bool
$c== :: CreateConfigurationSet -> CreateConfigurationSet -> Bool
Prelude.Eq, ReadPrec [CreateConfigurationSet]
ReadPrec CreateConfigurationSet
Int -> ReadS CreateConfigurationSet
ReadS [CreateConfigurationSet]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateConfigurationSet]
$creadListPrec :: ReadPrec [CreateConfigurationSet]
readPrec :: ReadPrec CreateConfigurationSet
$creadPrec :: ReadPrec CreateConfigurationSet
readList :: ReadS [CreateConfigurationSet]
$creadList :: ReadS [CreateConfigurationSet]
readsPrec :: Int -> ReadS CreateConfigurationSet
$creadsPrec :: Int -> ReadS CreateConfigurationSet
Prelude.Read, Int -> CreateConfigurationSet -> ShowS
[CreateConfigurationSet] -> ShowS
CreateConfigurationSet -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateConfigurationSet] -> ShowS
$cshowList :: [CreateConfigurationSet] -> ShowS
show :: CreateConfigurationSet -> String
$cshow :: CreateConfigurationSet -> String
showsPrec :: Int -> CreateConfigurationSet -> ShowS
$cshowsPrec :: Int -> CreateConfigurationSet -> ShowS
Prelude.Show, forall x. Rep CreateConfigurationSet x -> CreateConfigurationSet
forall x. CreateConfigurationSet -> Rep CreateConfigurationSet x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateConfigurationSet x -> CreateConfigurationSet
$cfrom :: forall x. CreateConfigurationSet -> Rep CreateConfigurationSet x
Prelude.Generic)
newCreateConfigurationSet ::
Prelude.Text ->
CreateConfigurationSet
newCreateConfigurationSet :: Text -> CreateConfigurationSet
newCreateConfigurationSet Text
pConfigurationSetName_ =
CreateConfigurationSet'
{ $sel:deliveryOptions:CreateConfigurationSet' :: Maybe DeliveryOptions
deliveryOptions =
forall a. Maybe a
Prelude.Nothing,
$sel:reputationOptions:CreateConfigurationSet' :: Maybe ReputationOptions
reputationOptions = forall a. Maybe a
Prelude.Nothing,
$sel:sendingOptions:CreateConfigurationSet' :: Maybe SendingOptions
sendingOptions = forall a. Maybe a
Prelude.Nothing,
$sel:suppressionOptions:CreateConfigurationSet' :: Maybe SuppressionOptions
suppressionOptions = forall a. Maybe a
Prelude.Nothing,
$sel:tags:CreateConfigurationSet' :: Maybe [Tag]
tags = forall a. Maybe a
Prelude.Nothing,
$sel:trackingOptions:CreateConfigurationSet' :: Maybe TrackingOptions
trackingOptions = forall a. Maybe a
Prelude.Nothing,
$sel:vdmOptions:CreateConfigurationSet' :: Maybe VdmOptions
vdmOptions = forall a. Maybe a
Prelude.Nothing,
$sel:configurationSetName:CreateConfigurationSet' :: Text
configurationSetName = Text
pConfigurationSetName_
}
createConfigurationSet_deliveryOptions :: Lens.Lens' CreateConfigurationSet (Prelude.Maybe DeliveryOptions)
createConfigurationSet_deliveryOptions :: Lens' CreateConfigurationSet (Maybe DeliveryOptions)
createConfigurationSet_deliveryOptions = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateConfigurationSet' {Maybe DeliveryOptions
deliveryOptions :: Maybe DeliveryOptions
$sel:deliveryOptions:CreateConfigurationSet' :: CreateConfigurationSet -> Maybe DeliveryOptions
deliveryOptions} -> Maybe DeliveryOptions
deliveryOptions) (\s :: CreateConfigurationSet
s@CreateConfigurationSet' {} Maybe DeliveryOptions
a -> CreateConfigurationSet
s {$sel:deliveryOptions:CreateConfigurationSet' :: Maybe DeliveryOptions
deliveryOptions = Maybe DeliveryOptions
a} :: CreateConfigurationSet)
createConfigurationSet_reputationOptions :: Lens.Lens' CreateConfigurationSet (Prelude.Maybe ReputationOptions)
createConfigurationSet_reputationOptions :: Lens' CreateConfigurationSet (Maybe ReputationOptions)
createConfigurationSet_reputationOptions = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateConfigurationSet' {Maybe ReputationOptions
reputationOptions :: Maybe ReputationOptions
$sel:reputationOptions:CreateConfigurationSet' :: CreateConfigurationSet -> Maybe ReputationOptions
reputationOptions} -> Maybe ReputationOptions
reputationOptions) (\s :: CreateConfigurationSet
s@CreateConfigurationSet' {} Maybe ReputationOptions
a -> CreateConfigurationSet
s {$sel:reputationOptions:CreateConfigurationSet' :: Maybe ReputationOptions
reputationOptions = Maybe ReputationOptions
a} :: CreateConfigurationSet)
createConfigurationSet_sendingOptions :: Lens.Lens' CreateConfigurationSet (Prelude.Maybe SendingOptions)
createConfigurationSet_sendingOptions :: Lens' CreateConfigurationSet (Maybe SendingOptions)
createConfigurationSet_sendingOptions = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateConfigurationSet' {Maybe SendingOptions
sendingOptions :: Maybe SendingOptions
$sel:sendingOptions:CreateConfigurationSet' :: CreateConfigurationSet -> Maybe SendingOptions
sendingOptions} -> Maybe SendingOptions
sendingOptions) (\s :: CreateConfigurationSet
s@CreateConfigurationSet' {} Maybe SendingOptions
a -> CreateConfigurationSet
s {$sel:sendingOptions:CreateConfigurationSet' :: Maybe SendingOptions
sendingOptions = Maybe SendingOptions
a} :: CreateConfigurationSet)
createConfigurationSet_suppressionOptions :: Lens.Lens' CreateConfigurationSet (Prelude.Maybe SuppressionOptions)
createConfigurationSet_suppressionOptions :: Lens' CreateConfigurationSet (Maybe SuppressionOptions)
createConfigurationSet_suppressionOptions = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateConfigurationSet' {Maybe SuppressionOptions
suppressionOptions :: Maybe SuppressionOptions
$sel:suppressionOptions:CreateConfigurationSet' :: CreateConfigurationSet -> Maybe SuppressionOptions
suppressionOptions} -> Maybe SuppressionOptions
suppressionOptions) (\s :: CreateConfigurationSet
s@CreateConfigurationSet' {} Maybe SuppressionOptions
a -> CreateConfigurationSet
s {$sel:suppressionOptions:CreateConfigurationSet' :: Maybe SuppressionOptions
suppressionOptions = Maybe SuppressionOptions
a} :: CreateConfigurationSet)
createConfigurationSet_tags :: Lens.Lens' CreateConfigurationSet (Prelude.Maybe [Tag])
createConfigurationSet_tags :: Lens' CreateConfigurationSet (Maybe [Tag])
createConfigurationSet_tags = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateConfigurationSet' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:CreateConfigurationSet' :: CreateConfigurationSet -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: CreateConfigurationSet
s@CreateConfigurationSet' {} Maybe [Tag]
a -> CreateConfigurationSet
s {$sel:tags:CreateConfigurationSet' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: CreateConfigurationSet) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createConfigurationSet_trackingOptions :: Lens.Lens' CreateConfigurationSet (Prelude.Maybe TrackingOptions)
createConfigurationSet_trackingOptions :: Lens' CreateConfigurationSet (Maybe TrackingOptions)
createConfigurationSet_trackingOptions = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateConfigurationSet' {Maybe TrackingOptions
trackingOptions :: Maybe TrackingOptions
$sel:trackingOptions:CreateConfigurationSet' :: CreateConfigurationSet -> Maybe TrackingOptions
trackingOptions} -> Maybe TrackingOptions
trackingOptions) (\s :: CreateConfigurationSet
s@CreateConfigurationSet' {} Maybe TrackingOptions
a -> CreateConfigurationSet
s {$sel:trackingOptions:CreateConfigurationSet' :: Maybe TrackingOptions
trackingOptions = Maybe TrackingOptions
a} :: CreateConfigurationSet)
createConfigurationSet_vdmOptions :: Lens.Lens' CreateConfigurationSet (Prelude.Maybe VdmOptions)
createConfigurationSet_vdmOptions :: Lens' CreateConfigurationSet (Maybe VdmOptions)
createConfigurationSet_vdmOptions = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateConfigurationSet' {Maybe VdmOptions
vdmOptions :: Maybe VdmOptions
$sel:vdmOptions:CreateConfigurationSet' :: CreateConfigurationSet -> Maybe VdmOptions
vdmOptions} -> Maybe VdmOptions
vdmOptions) (\s :: CreateConfigurationSet
s@CreateConfigurationSet' {} Maybe VdmOptions
a -> CreateConfigurationSet
s {$sel:vdmOptions:CreateConfigurationSet' :: Maybe VdmOptions
vdmOptions = Maybe VdmOptions
a} :: CreateConfigurationSet)
createConfigurationSet_configurationSetName :: Lens.Lens' CreateConfigurationSet Prelude.Text
createConfigurationSet_configurationSetName :: Lens' CreateConfigurationSet Text
createConfigurationSet_configurationSetName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateConfigurationSet' {Text
configurationSetName :: Text
$sel:configurationSetName:CreateConfigurationSet' :: CreateConfigurationSet -> Text
configurationSetName} -> Text
configurationSetName) (\s :: CreateConfigurationSet
s@CreateConfigurationSet' {} Text
a -> CreateConfigurationSet
s {$sel:configurationSetName:CreateConfigurationSet' :: Text
configurationSetName = Text
a} :: CreateConfigurationSet)
instance Core.AWSRequest CreateConfigurationSet where
type
AWSResponse CreateConfigurationSet =
CreateConfigurationSetResponse
request :: (Service -> Service)
-> CreateConfigurationSet -> Request CreateConfigurationSet
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 CreateConfigurationSet
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateConfigurationSet)))
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 -> CreateConfigurationSetResponse
CreateConfigurationSetResponse'
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 CreateConfigurationSet where
hashWithSalt :: Int -> CreateConfigurationSet -> Int
hashWithSalt Int
_salt CreateConfigurationSet' {Maybe [Tag]
Maybe ReputationOptions
Maybe SendingOptions
Maybe SuppressionOptions
Maybe DeliveryOptions
Maybe TrackingOptions
Maybe VdmOptions
Text
configurationSetName :: Text
vdmOptions :: Maybe VdmOptions
trackingOptions :: Maybe TrackingOptions
tags :: Maybe [Tag]
suppressionOptions :: Maybe SuppressionOptions
sendingOptions :: Maybe SendingOptions
reputationOptions :: Maybe ReputationOptions
deliveryOptions :: Maybe DeliveryOptions
$sel:configurationSetName:CreateConfigurationSet' :: CreateConfigurationSet -> Text
$sel:vdmOptions:CreateConfigurationSet' :: CreateConfigurationSet -> Maybe VdmOptions
$sel:trackingOptions:CreateConfigurationSet' :: CreateConfigurationSet -> Maybe TrackingOptions
$sel:tags:CreateConfigurationSet' :: CreateConfigurationSet -> Maybe [Tag]
$sel:suppressionOptions:CreateConfigurationSet' :: CreateConfigurationSet -> Maybe SuppressionOptions
$sel:sendingOptions:CreateConfigurationSet' :: CreateConfigurationSet -> Maybe SendingOptions
$sel:reputationOptions:CreateConfigurationSet' :: CreateConfigurationSet -> Maybe ReputationOptions
$sel:deliveryOptions:CreateConfigurationSet' :: CreateConfigurationSet -> Maybe DeliveryOptions
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe DeliveryOptions
deliveryOptions
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ReputationOptions
reputationOptions
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe SendingOptions
sendingOptions
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe SuppressionOptions
suppressionOptions
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Tag]
tags
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe TrackingOptions
trackingOptions
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe VdmOptions
vdmOptions
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
configurationSetName
instance Prelude.NFData CreateConfigurationSet where
rnf :: CreateConfigurationSet -> ()
rnf CreateConfigurationSet' {Maybe [Tag]
Maybe ReputationOptions
Maybe SendingOptions
Maybe SuppressionOptions
Maybe DeliveryOptions
Maybe TrackingOptions
Maybe VdmOptions
Text
configurationSetName :: Text
vdmOptions :: Maybe VdmOptions
trackingOptions :: Maybe TrackingOptions
tags :: Maybe [Tag]
suppressionOptions :: Maybe SuppressionOptions
sendingOptions :: Maybe SendingOptions
reputationOptions :: Maybe ReputationOptions
deliveryOptions :: Maybe DeliveryOptions
$sel:configurationSetName:CreateConfigurationSet' :: CreateConfigurationSet -> Text
$sel:vdmOptions:CreateConfigurationSet' :: CreateConfigurationSet -> Maybe VdmOptions
$sel:trackingOptions:CreateConfigurationSet' :: CreateConfigurationSet -> Maybe TrackingOptions
$sel:tags:CreateConfigurationSet' :: CreateConfigurationSet -> Maybe [Tag]
$sel:suppressionOptions:CreateConfigurationSet' :: CreateConfigurationSet -> Maybe SuppressionOptions
$sel:sendingOptions:CreateConfigurationSet' :: CreateConfigurationSet -> Maybe SendingOptions
$sel:reputationOptions:CreateConfigurationSet' :: CreateConfigurationSet -> Maybe ReputationOptions
$sel:deliveryOptions:CreateConfigurationSet' :: CreateConfigurationSet -> Maybe DeliveryOptions
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe DeliveryOptions
deliveryOptions
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ReputationOptions
reputationOptions
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe SendingOptions
sendingOptions
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe SuppressionOptions
suppressionOptions
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Tag]
tags
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe TrackingOptions
trackingOptions
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe VdmOptions
vdmOptions
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
configurationSetName
instance Data.ToHeaders CreateConfigurationSet where
toHeaders :: CreateConfigurationSet -> 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 CreateConfigurationSet where
toJSON :: CreateConfigurationSet -> Value
toJSON CreateConfigurationSet' {Maybe [Tag]
Maybe ReputationOptions
Maybe SendingOptions
Maybe SuppressionOptions
Maybe DeliveryOptions
Maybe TrackingOptions
Maybe VdmOptions
Text
configurationSetName :: Text
vdmOptions :: Maybe VdmOptions
trackingOptions :: Maybe TrackingOptions
tags :: Maybe [Tag]
suppressionOptions :: Maybe SuppressionOptions
sendingOptions :: Maybe SendingOptions
reputationOptions :: Maybe ReputationOptions
deliveryOptions :: Maybe DeliveryOptions
$sel:configurationSetName:CreateConfigurationSet' :: CreateConfigurationSet -> Text
$sel:vdmOptions:CreateConfigurationSet' :: CreateConfigurationSet -> Maybe VdmOptions
$sel:trackingOptions:CreateConfigurationSet' :: CreateConfigurationSet -> Maybe TrackingOptions
$sel:tags:CreateConfigurationSet' :: CreateConfigurationSet -> Maybe [Tag]
$sel:suppressionOptions:CreateConfigurationSet' :: CreateConfigurationSet -> Maybe SuppressionOptions
$sel:sendingOptions:CreateConfigurationSet' :: CreateConfigurationSet -> Maybe SendingOptions
$sel:reputationOptions:CreateConfigurationSet' :: CreateConfigurationSet -> Maybe ReputationOptions
$sel:deliveryOptions:CreateConfigurationSet' :: CreateConfigurationSet -> Maybe DeliveryOptions
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"DeliveryOptions" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DeliveryOptions
deliveryOptions,
(Key
"ReputationOptions" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ReputationOptions
reputationOptions,
(Key
"SendingOptions" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SendingOptions
sendingOptions,
(Key
"SuppressionOptions" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SuppressionOptions
suppressionOptions,
(Key
"Tags" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags,
(Key
"TrackingOptions" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe TrackingOptions
trackingOptions,
(Key
"VdmOptions" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe VdmOptions
vdmOptions,
forall a. a -> Maybe a
Prelude.Just
( Key
"ConfigurationSetName"
forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
configurationSetName
)
]
)
instance Data.ToPath CreateConfigurationSet where
toPath :: CreateConfigurationSet -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/v2/email/configuration-sets"
instance Data.ToQuery CreateConfigurationSet where
toQuery :: CreateConfigurationSet -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data CreateConfigurationSetResponse = CreateConfigurationSetResponse'
{
CreateConfigurationSetResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CreateConfigurationSetResponse
-> CreateConfigurationSetResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateConfigurationSetResponse
-> CreateConfigurationSetResponse -> Bool
$c/= :: CreateConfigurationSetResponse
-> CreateConfigurationSetResponse -> Bool
== :: CreateConfigurationSetResponse
-> CreateConfigurationSetResponse -> Bool
$c== :: CreateConfigurationSetResponse
-> CreateConfigurationSetResponse -> Bool
Prelude.Eq, ReadPrec [CreateConfigurationSetResponse]
ReadPrec CreateConfigurationSetResponse
Int -> ReadS CreateConfigurationSetResponse
ReadS [CreateConfigurationSetResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateConfigurationSetResponse]
$creadListPrec :: ReadPrec [CreateConfigurationSetResponse]
readPrec :: ReadPrec CreateConfigurationSetResponse
$creadPrec :: ReadPrec CreateConfigurationSetResponse
readList :: ReadS [CreateConfigurationSetResponse]
$creadList :: ReadS [CreateConfigurationSetResponse]
readsPrec :: Int -> ReadS CreateConfigurationSetResponse
$creadsPrec :: Int -> ReadS CreateConfigurationSetResponse
Prelude.Read, Int -> CreateConfigurationSetResponse -> ShowS
[CreateConfigurationSetResponse] -> ShowS
CreateConfigurationSetResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateConfigurationSetResponse] -> ShowS
$cshowList :: [CreateConfigurationSetResponse] -> ShowS
show :: CreateConfigurationSetResponse -> String
$cshow :: CreateConfigurationSetResponse -> String
showsPrec :: Int -> CreateConfigurationSetResponse -> ShowS
$cshowsPrec :: Int -> CreateConfigurationSetResponse -> ShowS
Prelude.Show, forall x.
Rep CreateConfigurationSetResponse x
-> CreateConfigurationSetResponse
forall x.
CreateConfigurationSetResponse
-> Rep CreateConfigurationSetResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateConfigurationSetResponse x
-> CreateConfigurationSetResponse
$cfrom :: forall x.
CreateConfigurationSetResponse
-> Rep CreateConfigurationSetResponse x
Prelude.Generic)
newCreateConfigurationSetResponse ::
Prelude.Int ->
CreateConfigurationSetResponse
newCreateConfigurationSetResponse :: Int -> CreateConfigurationSetResponse
newCreateConfigurationSetResponse Int
pHttpStatus_ =
CreateConfigurationSetResponse'
{ $sel:httpStatus:CreateConfigurationSetResponse' :: Int
httpStatus =
Int
pHttpStatus_
}
createConfigurationSetResponse_httpStatus :: Lens.Lens' CreateConfigurationSetResponse Prelude.Int
createConfigurationSetResponse_httpStatus :: Lens' CreateConfigurationSetResponse Int
createConfigurationSetResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateConfigurationSetResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateConfigurationSetResponse' :: CreateConfigurationSetResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateConfigurationSetResponse
s@CreateConfigurationSetResponse' {} Int
a -> CreateConfigurationSetResponse
s {$sel:httpStatus:CreateConfigurationSetResponse' :: Int
httpStatus = Int
a} :: CreateConfigurationSetResponse)
instance
Prelude.NFData
CreateConfigurationSetResponse
where
rnf :: CreateConfigurationSetResponse -> ()
rnf CreateConfigurationSetResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateConfigurationSetResponse' :: CreateConfigurationSetResponse -> Int
..} =
forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus