{-# 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.UpdateConfigurationSetTrackingOptions
(
UpdateConfigurationSetTrackingOptions (..),
newUpdateConfigurationSetTrackingOptions,
updateConfigurationSetTrackingOptions_configurationSetName,
updateConfigurationSetTrackingOptions_trackingOptions,
UpdateConfigurationSetTrackingOptionsResponse (..),
newUpdateConfigurationSetTrackingOptionsResponse,
updateConfigurationSetTrackingOptionsResponse_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.SES.Types
data UpdateConfigurationSetTrackingOptions = UpdateConfigurationSetTrackingOptions'
{
UpdateConfigurationSetTrackingOptions -> Text
configurationSetName :: Prelude.Text,
UpdateConfigurationSetTrackingOptions -> TrackingOptions
trackingOptions :: TrackingOptions
}
deriving (UpdateConfigurationSetTrackingOptions
-> UpdateConfigurationSetTrackingOptions -> Bool
(UpdateConfigurationSetTrackingOptions
-> UpdateConfigurationSetTrackingOptions -> Bool)
-> (UpdateConfigurationSetTrackingOptions
-> UpdateConfigurationSetTrackingOptions -> Bool)
-> Eq UpdateConfigurationSetTrackingOptions
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateConfigurationSetTrackingOptions
-> UpdateConfigurationSetTrackingOptions -> Bool
$c/= :: UpdateConfigurationSetTrackingOptions
-> UpdateConfigurationSetTrackingOptions -> Bool
== :: UpdateConfigurationSetTrackingOptions
-> UpdateConfigurationSetTrackingOptions -> Bool
$c== :: UpdateConfigurationSetTrackingOptions
-> UpdateConfigurationSetTrackingOptions -> Bool
Prelude.Eq, ReadPrec [UpdateConfigurationSetTrackingOptions]
ReadPrec UpdateConfigurationSetTrackingOptions
Int -> ReadS UpdateConfigurationSetTrackingOptions
ReadS [UpdateConfigurationSetTrackingOptions]
(Int -> ReadS UpdateConfigurationSetTrackingOptions)
-> ReadS [UpdateConfigurationSetTrackingOptions]
-> ReadPrec UpdateConfigurationSetTrackingOptions
-> ReadPrec [UpdateConfigurationSetTrackingOptions]
-> Read UpdateConfigurationSetTrackingOptions
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateConfigurationSetTrackingOptions]
$creadListPrec :: ReadPrec [UpdateConfigurationSetTrackingOptions]
readPrec :: ReadPrec UpdateConfigurationSetTrackingOptions
$creadPrec :: ReadPrec UpdateConfigurationSetTrackingOptions
readList :: ReadS [UpdateConfigurationSetTrackingOptions]
$creadList :: ReadS [UpdateConfigurationSetTrackingOptions]
readsPrec :: Int -> ReadS UpdateConfigurationSetTrackingOptions
$creadsPrec :: Int -> ReadS UpdateConfigurationSetTrackingOptions
Prelude.Read, Int -> UpdateConfigurationSetTrackingOptions -> ShowS
[UpdateConfigurationSetTrackingOptions] -> ShowS
UpdateConfigurationSetTrackingOptions -> String
(Int -> UpdateConfigurationSetTrackingOptions -> ShowS)
-> (UpdateConfigurationSetTrackingOptions -> String)
-> ([UpdateConfigurationSetTrackingOptions] -> ShowS)
-> Show UpdateConfigurationSetTrackingOptions
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateConfigurationSetTrackingOptions] -> ShowS
$cshowList :: [UpdateConfigurationSetTrackingOptions] -> ShowS
show :: UpdateConfigurationSetTrackingOptions -> String
$cshow :: UpdateConfigurationSetTrackingOptions -> String
showsPrec :: Int -> UpdateConfigurationSetTrackingOptions -> ShowS
$cshowsPrec :: Int -> UpdateConfigurationSetTrackingOptions -> ShowS
Prelude.Show, (forall x.
UpdateConfigurationSetTrackingOptions
-> Rep UpdateConfigurationSetTrackingOptions x)
-> (forall x.
Rep UpdateConfigurationSetTrackingOptions x
-> UpdateConfigurationSetTrackingOptions)
-> Generic UpdateConfigurationSetTrackingOptions
forall x.
Rep UpdateConfigurationSetTrackingOptions x
-> UpdateConfigurationSetTrackingOptions
forall x.
UpdateConfigurationSetTrackingOptions
-> Rep UpdateConfigurationSetTrackingOptions x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateConfigurationSetTrackingOptions x
-> UpdateConfigurationSetTrackingOptions
$cfrom :: forall x.
UpdateConfigurationSetTrackingOptions
-> Rep UpdateConfigurationSetTrackingOptions x
Prelude.Generic)
newUpdateConfigurationSetTrackingOptions ::
Prelude.Text ->
TrackingOptions ->
UpdateConfigurationSetTrackingOptions
newUpdateConfigurationSetTrackingOptions :: Text -> TrackingOptions -> UpdateConfigurationSetTrackingOptions
newUpdateConfigurationSetTrackingOptions
Text
pConfigurationSetName_
TrackingOptions
pTrackingOptions_ =
UpdateConfigurationSetTrackingOptions' :: Text -> TrackingOptions -> UpdateConfigurationSetTrackingOptions
UpdateConfigurationSetTrackingOptions'
{ $sel:configurationSetName:UpdateConfigurationSetTrackingOptions' :: Text
configurationSetName =
Text
pConfigurationSetName_,
$sel:trackingOptions:UpdateConfigurationSetTrackingOptions' :: TrackingOptions
trackingOptions = TrackingOptions
pTrackingOptions_
}
updateConfigurationSetTrackingOptions_configurationSetName :: Lens.Lens' UpdateConfigurationSetTrackingOptions Prelude.Text
updateConfigurationSetTrackingOptions_configurationSetName :: (Text -> f Text)
-> UpdateConfigurationSetTrackingOptions
-> f UpdateConfigurationSetTrackingOptions
updateConfigurationSetTrackingOptions_configurationSetName = (UpdateConfigurationSetTrackingOptions -> Text)
-> (UpdateConfigurationSetTrackingOptions
-> Text -> UpdateConfigurationSetTrackingOptions)
-> Lens
UpdateConfigurationSetTrackingOptions
UpdateConfigurationSetTrackingOptions
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateConfigurationSetTrackingOptions' {Text
configurationSetName :: Text
$sel:configurationSetName:UpdateConfigurationSetTrackingOptions' :: UpdateConfigurationSetTrackingOptions -> Text
configurationSetName} -> Text
configurationSetName) (\s :: UpdateConfigurationSetTrackingOptions
s@UpdateConfigurationSetTrackingOptions' {} Text
a -> UpdateConfigurationSetTrackingOptions
s {$sel:configurationSetName:UpdateConfigurationSetTrackingOptions' :: Text
configurationSetName = Text
a} :: UpdateConfigurationSetTrackingOptions)
updateConfigurationSetTrackingOptions_trackingOptions :: Lens.Lens' UpdateConfigurationSetTrackingOptions TrackingOptions
updateConfigurationSetTrackingOptions_trackingOptions :: (TrackingOptions -> f TrackingOptions)
-> UpdateConfigurationSetTrackingOptions
-> f UpdateConfigurationSetTrackingOptions
updateConfigurationSetTrackingOptions_trackingOptions = (UpdateConfigurationSetTrackingOptions -> TrackingOptions)
-> (UpdateConfigurationSetTrackingOptions
-> TrackingOptions -> UpdateConfigurationSetTrackingOptions)
-> Lens
UpdateConfigurationSetTrackingOptions
UpdateConfigurationSetTrackingOptions
TrackingOptions
TrackingOptions
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateConfigurationSetTrackingOptions' {TrackingOptions
trackingOptions :: TrackingOptions
$sel:trackingOptions:UpdateConfigurationSetTrackingOptions' :: UpdateConfigurationSetTrackingOptions -> TrackingOptions
trackingOptions} -> TrackingOptions
trackingOptions) (\s :: UpdateConfigurationSetTrackingOptions
s@UpdateConfigurationSetTrackingOptions' {} TrackingOptions
a -> UpdateConfigurationSetTrackingOptions
s {$sel:trackingOptions:UpdateConfigurationSetTrackingOptions' :: TrackingOptions
trackingOptions = TrackingOptions
a} :: UpdateConfigurationSetTrackingOptions)
instance
Core.AWSRequest
UpdateConfigurationSetTrackingOptions
where
type
AWSResponse
UpdateConfigurationSetTrackingOptions =
UpdateConfigurationSetTrackingOptionsResponse
request :: UpdateConfigurationSetTrackingOptions
-> Request UpdateConfigurationSetTrackingOptions
request = Service
-> UpdateConfigurationSetTrackingOptions
-> Request UpdateConfigurationSetTrackingOptions
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
response :: Logger
-> Service
-> Proxy UpdateConfigurationSetTrackingOptions
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse UpdateConfigurationSetTrackingOptions)))
response =
Text
-> (Int
-> ResponseHeaders
-> [Node]
-> Either
String (AWSResponse UpdateConfigurationSetTrackingOptions))
-> Logger
-> Service
-> Proxy UpdateConfigurationSetTrackingOptions
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse UpdateConfigurationSetTrackingOptions)))
forall (m :: * -> *) a.
MonadResource m =>
Text
-> (Int
-> ResponseHeaders -> [Node] -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveXMLWrapper
Text
"UpdateConfigurationSetTrackingOptionsResult"
( \Int
s ResponseHeaders
h [Node]
x ->
Int -> UpdateConfigurationSetTrackingOptionsResponse
UpdateConfigurationSetTrackingOptionsResponse'
(Int -> UpdateConfigurationSetTrackingOptionsResponse)
-> Either String Int
-> Either String UpdateConfigurationSetTrackingOptionsResponse
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
UpdateConfigurationSetTrackingOptions
instance
Prelude.NFData
UpdateConfigurationSetTrackingOptions
instance
Core.ToHeaders
UpdateConfigurationSetTrackingOptions
where
toHeaders :: UpdateConfigurationSetTrackingOptions -> ResponseHeaders
toHeaders = ResponseHeaders
-> UpdateConfigurationSetTrackingOptions -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance
Core.ToPath
UpdateConfigurationSetTrackingOptions
where
toPath :: UpdateConfigurationSetTrackingOptions -> ByteString
toPath = ByteString -> UpdateConfigurationSetTrackingOptions -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance
Core.ToQuery
UpdateConfigurationSetTrackingOptions
where
toQuery :: UpdateConfigurationSetTrackingOptions -> QueryString
toQuery UpdateConfigurationSetTrackingOptions' {Text
TrackingOptions
trackingOptions :: TrackingOptions
configurationSetName :: Text
$sel:trackingOptions:UpdateConfigurationSetTrackingOptions' :: UpdateConfigurationSetTrackingOptions -> TrackingOptions
$sel:configurationSetName:UpdateConfigurationSetTrackingOptions' :: UpdateConfigurationSetTrackingOptions -> 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
"UpdateConfigurationSetTrackingOptions" ::
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
"TrackingOptions" ByteString -> TrackingOptions -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: TrackingOptions
trackingOptions
]
data UpdateConfigurationSetTrackingOptionsResponse = UpdateConfigurationSetTrackingOptionsResponse'
{
UpdateConfigurationSetTrackingOptionsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (UpdateConfigurationSetTrackingOptionsResponse
-> UpdateConfigurationSetTrackingOptionsResponse -> Bool
(UpdateConfigurationSetTrackingOptionsResponse
-> UpdateConfigurationSetTrackingOptionsResponse -> Bool)
-> (UpdateConfigurationSetTrackingOptionsResponse
-> UpdateConfigurationSetTrackingOptionsResponse -> Bool)
-> Eq UpdateConfigurationSetTrackingOptionsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateConfigurationSetTrackingOptionsResponse
-> UpdateConfigurationSetTrackingOptionsResponse -> Bool
$c/= :: UpdateConfigurationSetTrackingOptionsResponse
-> UpdateConfigurationSetTrackingOptionsResponse -> Bool
== :: UpdateConfigurationSetTrackingOptionsResponse
-> UpdateConfigurationSetTrackingOptionsResponse -> Bool
$c== :: UpdateConfigurationSetTrackingOptionsResponse
-> UpdateConfigurationSetTrackingOptionsResponse -> Bool
Prelude.Eq, ReadPrec [UpdateConfigurationSetTrackingOptionsResponse]
ReadPrec UpdateConfigurationSetTrackingOptionsResponse
Int -> ReadS UpdateConfigurationSetTrackingOptionsResponse
ReadS [UpdateConfigurationSetTrackingOptionsResponse]
(Int -> ReadS UpdateConfigurationSetTrackingOptionsResponse)
-> ReadS [UpdateConfigurationSetTrackingOptionsResponse]
-> ReadPrec UpdateConfigurationSetTrackingOptionsResponse
-> ReadPrec [UpdateConfigurationSetTrackingOptionsResponse]
-> Read UpdateConfigurationSetTrackingOptionsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateConfigurationSetTrackingOptionsResponse]
$creadListPrec :: ReadPrec [UpdateConfigurationSetTrackingOptionsResponse]
readPrec :: ReadPrec UpdateConfigurationSetTrackingOptionsResponse
$creadPrec :: ReadPrec UpdateConfigurationSetTrackingOptionsResponse
readList :: ReadS [UpdateConfigurationSetTrackingOptionsResponse]
$creadList :: ReadS [UpdateConfigurationSetTrackingOptionsResponse]
readsPrec :: Int -> ReadS UpdateConfigurationSetTrackingOptionsResponse
$creadsPrec :: Int -> ReadS UpdateConfigurationSetTrackingOptionsResponse
Prelude.Read, Int -> UpdateConfigurationSetTrackingOptionsResponse -> ShowS
[UpdateConfigurationSetTrackingOptionsResponse] -> ShowS
UpdateConfigurationSetTrackingOptionsResponse -> String
(Int -> UpdateConfigurationSetTrackingOptionsResponse -> ShowS)
-> (UpdateConfigurationSetTrackingOptionsResponse -> String)
-> ([UpdateConfigurationSetTrackingOptionsResponse] -> ShowS)
-> Show UpdateConfigurationSetTrackingOptionsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateConfigurationSetTrackingOptionsResponse] -> ShowS
$cshowList :: [UpdateConfigurationSetTrackingOptionsResponse] -> ShowS
show :: UpdateConfigurationSetTrackingOptionsResponse -> String
$cshow :: UpdateConfigurationSetTrackingOptionsResponse -> String
showsPrec :: Int -> UpdateConfigurationSetTrackingOptionsResponse -> ShowS
$cshowsPrec :: Int -> UpdateConfigurationSetTrackingOptionsResponse -> ShowS
Prelude.Show, (forall x.
UpdateConfigurationSetTrackingOptionsResponse
-> Rep UpdateConfigurationSetTrackingOptionsResponse x)
-> (forall x.
Rep UpdateConfigurationSetTrackingOptionsResponse x
-> UpdateConfigurationSetTrackingOptionsResponse)
-> Generic UpdateConfigurationSetTrackingOptionsResponse
forall x.
Rep UpdateConfigurationSetTrackingOptionsResponse x
-> UpdateConfigurationSetTrackingOptionsResponse
forall x.
UpdateConfigurationSetTrackingOptionsResponse
-> Rep UpdateConfigurationSetTrackingOptionsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateConfigurationSetTrackingOptionsResponse x
-> UpdateConfigurationSetTrackingOptionsResponse
$cfrom :: forall x.
UpdateConfigurationSetTrackingOptionsResponse
-> Rep UpdateConfigurationSetTrackingOptionsResponse x
Prelude.Generic)
newUpdateConfigurationSetTrackingOptionsResponse ::
Prelude.Int ->
UpdateConfigurationSetTrackingOptionsResponse
newUpdateConfigurationSetTrackingOptionsResponse :: Int -> UpdateConfigurationSetTrackingOptionsResponse
newUpdateConfigurationSetTrackingOptionsResponse
Int
pHttpStatus_ =
UpdateConfigurationSetTrackingOptionsResponse' :: Int -> UpdateConfigurationSetTrackingOptionsResponse
UpdateConfigurationSetTrackingOptionsResponse'
{ $sel:httpStatus:UpdateConfigurationSetTrackingOptionsResponse' :: Int
httpStatus =
Int
pHttpStatus_
}
updateConfigurationSetTrackingOptionsResponse_httpStatus :: Lens.Lens' UpdateConfigurationSetTrackingOptionsResponse Prelude.Int
updateConfigurationSetTrackingOptionsResponse_httpStatus :: (Int -> f Int)
-> UpdateConfigurationSetTrackingOptionsResponse
-> f UpdateConfigurationSetTrackingOptionsResponse
updateConfigurationSetTrackingOptionsResponse_httpStatus = (UpdateConfigurationSetTrackingOptionsResponse -> Int)
-> (UpdateConfigurationSetTrackingOptionsResponse
-> Int -> UpdateConfigurationSetTrackingOptionsResponse)
-> Lens
UpdateConfigurationSetTrackingOptionsResponse
UpdateConfigurationSetTrackingOptionsResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateConfigurationSetTrackingOptionsResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdateConfigurationSetTrackingOptionsResponse' :: UpdateConfigurationSetTrackingOptionsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UpdateConfigurationSetTrackingOptionsResponse
s@UpdateConfigurationSetTrackingOptionsResponse' {} Int
a -> UpdateConfigurationSetTrackingOptionsResponse
s {$sel:httpStatus:UpdateConfigurationSetTrackingOptionsResponse' :: Int
httpStatus = Int
a} :: UpdateConfigurationSetTrackingOptionsResponse)
instance
Prelude.NFData
UpdateConfigurationSetTrackingOptionsResponse