{-# 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.UpdateConfigurationSetSendingEnabled
(
UpdateConfigurationSetSendingEnabled (..),
newUpdateConfigurationSetSendingEnabled,
updateConfigurationSetSendingEnabled_configurationSetName,
updateConfigurationSetSendingEnabled_enabled,
UpdateConfigurationSetSendingEnabledResponse (..),
newUpdateConfigurationSetSendingEnabledResponse,
)
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.SES.Types
data UpdateConfigurationSetSendingEnabled = UpdateConfigurationSetSendingEnabled'
{
UpdateConfigurationSetSendingEnabled -> Text
configurationSetName :: Prelude.Text,
UpdateConfigurationSetSendingEnabled -> Bool
enabled :: Prelude.Bool
}
deriving (UpdateConfigurationSetSendingEnabled
-> UpdateConfigurationSetSendingEnabled -> Bool
(UpdateConfigurationSetSendingEnabled
-> UpdateConfigurationSetSendingEnabled -> Bool)
-> (UpdateConfigurationSetSendingEnabled
-> UpdateConfigurationSetSendingEnabled -> Bool)
-> Eq UpdateConfigurationSetSendingEnabled
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateConfigurationSetSendingEnabled
-> UpdateConfigurationSetSendingEnabled -> Bool
$c/= :: UpdateConfigurationSetSendingEnabled
-> UpdateConfigurationSetSendingEnabled -> Bool
== :: UpdateConfigurationSetSendingEnabled
-> UpdateConfigurationSetSendingEnabled -> Bool
$c== :: UpdateConfigurationSetSendingEnabled
-> UpdateConfigurationSetSendingEnabled -> Bool
Prelude.Eq, ReadPrec [UpdateConfigurationSetSendingEnabled]
ReadPrec UpdateConfigurationSetSendingEnabled
Int -> ReadS UpdateConfigurationSetSendingEnabled
ReadS [UpdateConfigurationSetSendingEnabled]
(Int -> ReadS UpdateConfigurationSetSendingEnabled)
-> ReadS [UpdateConfigurationSetSendingEnabled]
-> ReadPrec UpdateConfigurationSetSendingEnabled
-> ReadPrec [UpdateConfigurationSetSendingEnabled]
-> Read UpdateConfigurationSetSendingEnabled
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateConfigurationSetSendingEnabled]
$creadListPrec :: ReadPrec [UpdateConfigurationSetSendingEnabled]
readPrec :: ReadPrec UpdateConfigurationSetSendingEnabled
$creadPrec :: ReadPrec UpdateConfigurationSetSendingEnabled
readList :: ReadS [UpdateConfigurationSetSendingEnabled]
$creadList :: ReadS [UpdateConfigurationSetSendingEnabled]
readsPrec :: Int -> ReadS UpdateConfigurationSetSendingEnabled
$creadsPrec :: Int -> ReadS UpdateConfigurationSetSendingEnabled
Prelude.Read, Int -> UpdateConfigurationSetSendingEnabled -> ShowS
[UpdateConfigurationSetSendingEnabled] -> ShowS
UpdateConfigurationSetSendingEnabled -> String
(Int -> UpdateConfigurationSetSendingEnabled -> ShowS)
-> (UpdateConfigurationSetSendingEnabled -> String)
-> ([UpdateConfigurationSetSendingEnabled] -> ShowS)
-> Show UpdateConfigurationSetSendingEnabled
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateConfigurationSetSendingEnabled] -> ShowS
$cshowList :: [UpdateConfigurationSetSendingEnabled] -> ShowS
show :: UpdateConfigurationSetSendingEnabled -> String
$cshow :: UpdateConfigurationSetSendingEnabled -> String
showsPrec :: Int -> UpdateConfigurationSetSendingEnabled -> ShowS
$cshowsPrec :: Int -> UpdateConfigurationSetSendingEnabled -> ShowS
Prelude.Show, (forall x.
UpdateConfigurationSetSendingEnabled
-> Rep UpdateConfigurationSetSendingEnabled x)
-> (forall x.
Rep UpdateConfigurationSetSendingEnabled x
-> UpdateConfigurationSetSendingEnabled)
-> Generic UpdateConfigurationSetSendingEnabled
forall x.
Rep UpdateConfigurationSetSendingEnabled x
-> UpdateConfigurationSetSendingEnabled
forall x.
UpdateConfigurationSetSendingEnabled
-> Rep UpdateConfigurationSetSendingEnabled x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateConfigurationSetSendingEnabled x
-> UpdateConfigurationSetSendingEnabled
$cfrom :: forall x.
UpdateConfigurationSetSendingEnabled
-> Rep UpdateConfigurationSetSendingEnabled x
Prelude.Generic)
newUpdateConfigurationSetSendingEnabled ::
Prelude.Text ->
Prelude.Bool ->
UpdateConfigurationSetSendingEnabled
newUpdateConfigurationSetSendingEnabled :: Text -> Bool -> UpdateConfigurationSetSendingEnabled
newUpdateConfigurationSetSendingEnabled
Text
pConfigurationSetName_
Bool
pEnabled_ =
UpdateConfigurationSetSendingEnabled' :: Text -> Bool -> UpdateConfigurationSetSendingEnabled
UpdateConfigurationSetSendingEnabled'
{ $sel:configurationSetName:UpdateConfigurationSetSendingEnabled' :: Text
configurationSetName =
Text
pConfigurationSetName_,
$sel:enabled:UpdateConfigurationSetSendingEnabled' :: Bool
enabled = Bool
pEnabled_
}
updateConfigurationSetSendingEnabled_configurationSetName :: Lens.Lens' UpdateConfigurationSetSendingEnabled Prelude.Text
updateConfigurationSetSendingEnabled_configurationSetName :: (Text -> f Text)
-> UpdateConfigurationSetSendingEnabled
-> f UpdateConfigurationSetSendingEnabled
updateConfigurationSetSendingEnabled_configurationSetName = (UpdateConfigurationSetSendingEnabled -> Text)
-> (UpdateConfigurationSetSendingEnabled
-> Text -> UpdateConfigurationSetSendingEnabled)
-> Lens
UpdateConfigurationSetSendingEnabled
UpdateConfigurationSetSendingEnabled
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateConfigurationSetSendingEnabled' {Text
configurationSetName :: Text
$sel:configurationSetName:UpdateConfigurationSetSendingEnabled' :: UpdateConfigurationSetSendingEnabled -> Text
configurationSetName} -> Text
configurationSetName) (\s :: UpdateConfigurationSetSendingEnabled
s@UpdateConfigurationSetSendingEnabled' {} Text
a -> UpdateConfigurationSetSendingEnabled
s {$sel:configurationSetName:UpdateConfigurationSetSendingEnabled' :: Text
configurationSetName = Text
a} :: UpdateConfigurationSetSendingEnabled)
updateConfigurationSetSendingEnabled_enabled :: Lens.Lens' UpdateConfigurationSetSendingEnabled Prelude.Bool
updateConfigurationSetSendingEnabled_enabled :: (Bool -> f Bool)
-> UpdateConfigurationSetSendingEnabled
-> f UpdateConfigurationSetSendingEnabled
updateConfigurationSetSendingEnabled_enabled = (UpdateConfigurationSetSendingEnabled -> Bool)
-> (UpdateConfigurationSetSendingEnabled
-> Bool -> UpdateConfigurationSetSendingEnabled)
-> Lens
UpdateConfigurationSetSendingEnabled
UpdateConfigurationSetSendingEnabled
Bool
Bool
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateConfigurationSetSendingEnabled' {Bool
enabled :: Bool
$sel:enabled:UpdateConfigurationSetSendingEnabled' :: UpdateConfigurationSetSendingEnabled -> Bool
enabled} -> Bool
enabled) (\s :: UpdateConfigurationSetSendingEnabled
s@UpdateConfigurationSetSendingEnabled' {} Bool
a -> UpdateConfigurationSetSendingEnabled
s {$sel:enabled:UpdateConfigurationSetSendingEnabled' :: Bool
enabled = Bool
a} :: UpdateConfigurationSetSendingEnabled)
instance
Core.AWSRequest
UpdateConfigurationSetSendingEnabled
where
type
AWSResponse UpdateConfigurationSetSendingEnabled =
UpdateConfigurationSetSendingEnabledResponse
request :: UpdateConfigurationSetSendingEnabled
-> Request UpdateConfigurationSetSendingEnabled
request = Service
-> UpdateConfigurationSetSendingEnabled
-> Request UpdateConfigurationSetSendingEnabled
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
response :: Logger
-> Service
-> Proxy UpdateConfigurationSetSendingEnabled
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse UpdateConfigurationSetSendingEnabled)))
response =
AWSResponse UpdateConfigurationSetSendingEnabled
-> Logger
-> Service
-> Proxy UpdateConfigurationSetSendingEnabled
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse UpdateConfigurationSetSendingEnabled)))
forall (m :: * -> *) a.
MonadResource m =>
AWSResponse a
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveNull
AWSResponse UpdateConfigurationSetSendingEnabled
UpdateConfigurationSetSendingEnabledResponse
UpdateConfigurationSetSendingEnabledResponse'
instance
Prelude.Hashable
UpdateConfigurationSetSendingEnabled
instance
Prelude.NFData
UpdateConfigurationSetSendingEnabled
instance
Core.ToHeaders
UpdateConfigurationSetSendingEnabled
where
toHeaders :: UpdateConfigurationSetSendingEnabled -> [Header]
toHeaders = [Header] -> UpdateConfigurationSetSendingEnabled -> [Header]
forall a b. a -> b -> a
Prelude.const [Header]
forall a. Monoid a => a
Prelude.mempty
instance
Core.ToPath
UpdateConfigurationSetSendingEnabled
where
toPath :: UpdateConfigurationSetSendingEnabled -> ByteString
toPath = ByteString -> UpdateConfigurationSetSendingEnabled -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance
Core.ToQuery
UpdateConfigurationSetSendingEnabled
where
toQuery :: UpdateConfigurationSetSendingEnabled -> QueryString
toQuery UpdateConfigurationSetSendingEnabled' {Bool
Text
enabled :: Bool
configurationSetName :: Text
$sel:enabled:UpdateConfigurationSetSendingEnabled' :: UpdateConfigurationSetSendingEnabled -> Bool
$sel:configurationSetName:UpdateConfigurationSetSendingEnabled' :: UpdateConfigurationSetSendingEnabled -> Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"Action"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: ( ByteString
"UpdateConfigurationSetSendingEnabled" ::
Prelude.ByteString
),
ByteString
"Version"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2010-12-01" :: Prelude.ByteString),
ByteString
"ConfigurationSetName" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
configurationSetName,
ByteString
"Enabled" ByteString -> Bool -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Bool
enabled
]
data UpdateConfigurationSetSendingEnabledResponse = UpdateConfigurationSetSendingEnabledResponse'
{
}
deriving (UpdateConfigurationSetSendingEnabledResponse
-> UpdateConfigurationSetSendingEnabledResponse -> Bool
(UpdateConfigurationSetSendingEnabledResponse
-> UpdateConfigurationSetSendingEnabledResponse -> Bool)
-> (UpdateConfigurationSetSendingEnabledResponse
-> UpdateConfigurationSetSendingEnabledResponse -> Bool)
-> Eq UpdateConfigurationSetSendingEnabledResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateConfigurationSetSendingEnabledResponse
-> UpdateConfigurationSetSendingEnabledResponse -> Bool
$c/= :: UpdateConfigurationSetSendingEnabledResponse
-> UpdateConfigurationSetSendingEnabledResponse -> Bool
== :: UpdateConfigurationSetSendingEnabledResponse
-> UpdateConfigurationSetSendingEnabledResponse -> Bool
$c== :: UpdateConfigurationSetSendingEnabledResponse
-> UpdateConfigurationSetSendingEnabledResponse -> Bool
Prelude.Eq, ReadPrec [UpdateConfigurationSetSendingEnabledResponse]
ReadPrec UpdateConfigurationSetSendingEnabledResponse
Int -> ReadS UpdateConfigurationSetSendingEnabledResponse
ReadS [UpdateConfigurationSetSendingEnabledResponse]
(Int -> ReadS UpdateConfigurationSetSendingEnabledResponse)
-> ReadS [UpdateConfigurationSetSendingEnabledResponse]
-> ReadPrec UpdateConfigurationSetSendingEnabledResponse
-> ReadPrec [UpdateConfigurationSetSendingEnabledResponse]
-> Read UpdateConfigurationSetSendingEnabledResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateConfigurationSetSendingEnabledResponse]
$creadListPrec :: ReadPrec [UpdateConfigurationSetSendingEnabledResponse]
readPrec :: ReadPrec UpdateConfigurationSetSendingEnabledResponse
$creadPrec :: ReadPrec UpdateConfigurationSetSendingEnabledResponse
readList :: ReadS [UpdateConfigurationSetSendingEnabledResponse]
$creadList :: ReadS [UpdateConfigurationSetSendingEnabledResponse]
readsPrec :: Int -> ReadS UpdateConfigurationSetSendingEnabledResponse
$creadsPrec :: Int -> ReadS UpdateConfigurationSetSendingEnabledResponse
Prelude.Read, Int -> UpdateConfigurationSetSendingEnabledResponse -> ShowS
[UpdateConfigurationSetSendingEnabledResponse] -> ShowS
UpdateConfigurationSetSendingEnabledResponse -> String
(Int -> UpdateConfigurationSetSendingEnabledResponse -> ShowS)
-> (UpdateConfigurationSetSendingEnabledResponse -> String)
-> ([UpdateConfigurationSetSendingEnabledResponse] -> ShowS)
-> Show UpdateConfigurationSetSendingEnabledResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateConfigurationSetSendingEnabledResponse] -> ShowS
$cshowList :: [UpdateConfigurationSetSendingEnabledResponse] -> ShowS
show :: UpdateConfigurationSetSendingEnabledResponse -> String
$cshow :: UpdateConfigurationSetSendingEnabledResponse -> String
showsPrec :: Int -> UpdateConfigurationSetSendingEnabledResponse -> ShowS
$cshowsPrec :: Int -> UpdateConfigurationSetSendingEnabledResponse -> ShowS
Prelude.Show, (forall x.
UpdateConfigurationSetSendingEnabledResponse
-> Rep UpdateConfigurationSetSendingEnabledResponse x)
-> (forall x.
Rep UpdateConfigurationSetSendingEnabledResponse x
-> UpdateConfigurationSetSendingEnabledResponse)
-> Generic UpdateConfigurationSetSendingEnabledResponse
forall x.
Rep UpdateConfigurationSetSendingEnabledResponse x
-> UpdateConfigurationSetSendingEnabledResponse
forall x.
UpdateConfigurationSetSendingEnabledResponse
-> Rep UpdateConfigurationSetSendingEnabledResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateConfigurationSetSendingEnabledResponse x
-> UpdateConfigurationSetSendingEnabledResponse
$cfrom :: forall x.
UpdateConfigurationSetSendingEnabledResponse
-> Rep UpdateConfigurationSetSendingEnabledResponse x
Prelude.Generic)
newUpdateConfigurationSetSendingEnabledResponse ::
UpdateConfigurationSetSendingEnabledResponse
newUpdateConfigurationSetSendingEnabledResponse :: UpdateConfigurationSetSendingEnabledResponse
newUpdateConfigurationSetSendingEnabledResponse =
UpdateConfigurationSetSendingEnabledResponse
UpdateConfigurationSetSendingEnabledResponse'
instance
Prelude.NFData
UpdateConfigurationSetSendingEnabledResponse