{-# 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.DescribeConfigurationSet
(
DescribeConfigurationSet (..),
newDescribeConfigurationSet,
describeConfigurationSet_configurationSetAttributeNames,
describeConfigurationSet_configurationSetName,
DescribeConfigurationSetResponse (..),
newDescribeConfigurationSetResponse,
describeConfigurationSetResponse_deliveryOptions,
describeConfigurationSetResponse_trackingOptions,
describeConfigurationSetResponse_configurationSet,
describeConfigurationSetResponse_reputationOptions,
describeConfigurationSetResponse_eventDestinations,
describeConfigurationSetResponse_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 DescribeConfigurationSet = DescribeConfigurationSet'
{
DescribeConfigurationSet -> Maybe [ConfigurationSetAttribute]
configurationSetAttributeNames :: Prelude.Maybe [ConfigurationSetAttribute],
DescribeConfigurationSet -> Text
configurationSetName :: Prelude.Text
}
deriving (DescribeConfigurationSet -> DescribeConfigurationSet -> Bool
(DescribeConfigurationSet -> DescribeConfigurationSet -> Bool)
-> (DescribeConfigurationSet -> DescribeConfigurationSet -> Bool)
-> Eq DescribeConfigurationSet
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeConfigurationSet -> DescribeConfigurationSet -> Bool
$c/= :: DescribeConfigurationSet -> DescribeConfigurationSet -> Bool
== :: DescribeConfigurationSet -> DescribeConfigurationSet -> Bool
$c== :: DescribeConfigurationSet -> DescribeConfigurationSet -> Bool
Prelude.Eq, ReadPrec [DescribeConfigurationSet]
ReadPrec DescribeConfigurationSet
Int -> ReadS DescribeConfigurationSet
ReadS [DescribeConfigurationSet]
(Int -> ReadS DescribeConfigurationSet)
-> ReadS [DescribeConfigurationSet]
-> ReadPrec DescribeConfigurationSet
-> ReadPrec [DescribeConfigurationSet]
-> Read DescribeConfigurationSet
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeConfigurationSet]
$creadListPrec :: ReadPrec [DescribeConfigurationSet]
readPrec :: ReadPrec DescribeConfigurationSet
$creadPrec :: ReadPrec DescribeConfigurationSet
readList :: ReadS [DescribeConfigurationSet]
$creadList :: ReadS [DescribeConfigurationSet]
readsPrec :: Int -> ReadS DescribeConfigurationSet
$creadsPrec :: Int -> ReadS DescribeConfigurationSet
Prelude.Read, Int -> DescribeConfigurationSet -> ShowS
[DescribeConfigurationSet] -> ShowS
DescribeConfigurationSet -> String
(Int -> DescribeConfigurationSet -> ShowS)
-> (DescribeConfigurationSet -> String)
-> ([DescribeConfigurationSet] -> ShowS)
-> Show DescribeConfigurationSet
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeConfigurationSet] -> ShowS
$cshowList :: [DescribeConfigurationSet] -> ShowS
show :: DescribeConfigurationSet -> String
$cshow :: DescribeConfigurationSet -> String
showsPrec :: Int -> DescribeConfigurationSet -> ShowS
$cshowsPrec :: Int -> DescribeConfigurationSet -> ShowS
Prelude.Show, (forall x.
DescribeConfigurationSet -> Rep DescribeConfigurationSet x)
-> (forall x.
Rep DescribeConfigurationSet x -> DescribeConfigurationSet)
-> Generic DescribeConfigurationSet
forall x.
Rep DescribeConfigurationSet x -> DescribeConfigurationSet
forall x.
DescribeConfigurationSet -> Rep DescribeConfigurationSet x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeConfigurationSet x -> DescribeConfigurationSet
$cfrom :: forall x.
DescribeConfigurationSet -> Rep DescribeConfigurationSet x
Prelude.Generic)
newDescribeConfigurationSet ::
Prelude.Text ->
DescribeConfigurationSet
newDescribeConfigurationSet :: Text -> DescribeConfigurationSet
newDescribeConfigurationSet Text
pConfigurationSetName_ =
DescribeConfigurationSet' :: Maybe [ConfigurationSetAttribute]
-> Text -> DescribeConfigurationSet
DescribeConfigurationSet'
{ $sel:configurationSetAttributeNames:DescribeConfigurationSet' :: Maybe [ConfigurationSetAttribute]
configurationSetAttributeNames =
Maybe [ConfigurationSetAttribute]
forall a. Maybe a
Prelude.Nothing,
$sel:configurationSetName:DescribeConfigurationSet' :: Text
configurationSetName = Text
pConfigurationSetName_
}
describeConfigurationSet_configurationSetAttributeNames :: Lens.Lens' DescribeConfigurationSet (Prelude.Maybe [ConfigurationSetAttribute])
describeConfigurationSet_configurationSetAttributeNames :: (Maybe [ConfigurationSetAttribute]
-> f (Maybe [ConfigurationSetAttribute]))
-> DescribeConfigurationSet -> f DescribeConfigurationSet
describeConfigurationSet_configurationSetAttributeNames = (DescribeConfigurationSet -> Maybe [ConfigurationSetAttribute])
-> (DescribeConfigurationSet
-> Maybe [ConfigurationSetAttribute] -> DescribeConfigurationSet)
-> Lens
DescribeConfigurationSet
DescribeConfigurationSet
(Maybe [ConfigurationSetAttribute])
(Maybe [ConfigurationSetAttribute])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeConfigurationSet' {Maybe [ConfigurationSetAttribute]
configurationSetAttributeNames :: Maybe [ConfigurationSetAttribute]
$sel:configurationSetAttributeNames:DescribeConfigurationSet' :: DescribeConfigurationSet -> Maybe [ConfigurationSetAttribute]
configurationSetAttributeNames} -> Maybe [ConfigurationSetAttribute]
configurationSetAttributeNames) (\s :: DescribeConfigurationSet
s@DescribeConfigurationSet' {} Maybe [ConfigurationSetAttribute]
a -> DescribeConfigurationSet
s {$sel:configurationSetAttributeNames:DescribeConfigurationSet' :: Maybe [ConfigurationSetAttribute]
configurationSetAttributeNames = Maybe [ConfigurationSetAttribute]
a} :: DescribeConfigurationSet) ((Maybe [ConfigurationSetAttribute]
-> f (Maybe [ConfigurationSetAttribute]))
-> DescribeConfigurationSet -> f DescribeConfigurationSet)
-> ((Maybe [ConfigurationSetAttribute]
-> f (Maybe [ConfigurationSetAttribute]))
-> Maybe [ConfigurationSetAttribute]
-> f (Maybe [ConfigurationSetAttribute]))
-> (Maybe [ConfigurationSetAttribute]
-> f (Maybe [ConfigurationSetAttribute]))
-> DescribeConfigurationSet
-> f DescribeConfigurationSet
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[ConfigurationSetAttribute]
[ConfigurationSetAttribute]
[ConfigurationSetAttribute]
[ConfigurationSetAttribute]
-> Iso
(Maybe [ConfigurationSetAttribute])
(Maybe [ConfigurationSetAttribute])
(Maybe [ConfigurationSetAttribute])
(Maybe [ConfigurationSetAttribute])
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
[ConfigurationSetAttribute]
[ConfigurationSetAttribute]
[ConfigurationSetAttribute]
[ConfigurationSetAttribute]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeConfigurationSet_configurationSetName :: Lens.Lens' DescribeConfigurationSet Prelude.Text
describeConfigurationSet_configurationSetName :: (Text -> f Text)
-> DescribeConfigurationSet -> f DescribeConfigurationSet
describeConfigurationSet_configurationSetName = (DescribeConfigurationSet -> Text)
-> (DescribeConfigurationSet -> Text -> DescribeConfigurationSet)
-> Lens DescribeConfigurationSet DescribeConfigurationSet Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeConfigurationSet' {Text
configurationSetName :: Text
$sel:configurationSetName:DescribeConfigurationSet' :: DescribeConfigurationSet -> Text
configurationSetName} -> Text
configurationSetName) (\s :: DescribeConfigurationSet
s@DescribeConfigurationSet' {} Text
a -> DescribeConfigurationSet
s {$sel:configurationSetName:DescribeConfigurationSet' :: Text
configurationSetName = Text
a} :: DescribeConfigurationSet)
instance Core.AWSRequest DescribeConfigurationSet where
type
AWSResponse DescribeConfigurationSet =
DescribeConfigurationSetResponse
request :: DescribeConfigurationSet -> Request DescribeConfigurationSet
request = Service
-> DescribeConfigurationSet -> Request DescribeConfigurationSet
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeConfigurationSet
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeConfigurationSet)))
response =
Text
-> (Int
-> ResponseHeaders
-> [Node]
-> Either String (AWSResponse DescribeConfigurationSet))
-> Logger
-> Service
-> Proxy DescribeConfigurationSet
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeConfigurationSet)))
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
"DescribeConfigurationSetResult"
( \Int
s ResponseHeaders
h [Node]
x ->
Maybe DeliveryOptions
-> Maybe TrackingOptions
-> Maybe ConfigurationSet
-> Maybe ReputationOptions
-> Maybe [EventDestination]
-> Int
-> DescribeConfigurationSetResponse
DescribeConfigurationSetResponse'
(Maybe DeliveryOptions
-> Maybe TrackingOptions
-> Maybe ConfigurationSet
-> Maybe ReputationOptions
-> Maybe [EventDestination]
-> Int
-> DescribeConfigurationSetResponse)
-> Either String (Maybe DeliveryOptions)
-> Either
String
(Maybe TrackingOptions
-> Maybe ConfigurationSet
-> Maybe ReputationOptions
-> Maybe [EventDestination]
-> Int
-> DescribeConfigurationSetResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x [Node] -> Text -> Either String (Maybe DeliveryOptions)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"DeliveryOptions")
Either
String
(Maybe TrackingOptions
-> Maybe ConfigurationSet
-> Maybe ReputationOptions
-> Maybe [EventDestination]
-> Int
-> DescribeConfigurationSetResponse)
-> Either String (Maybe TrackingOptions)
-> Either
String
(Maybe ConfigurationSet
-> Maybe ReputationOptions
-> Maybe [EventDestination]
-> Int
-> DescribeConfigurationSetResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe TrackingOptions)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"TrackingOptions")
Either
String
(Maybe ConfigurationSet
-> Maybe ReputationOptions
-> Maybe [EventDestination]
-> Int
-> DescribeConfigurationSetResponse)
-> Either String (Maybe ConfigurationSet)
-> Either
String
(Maybe ReputationOptions
-> Maybe [EventDestination]
-> Int
-> DescribeConfigurationSetResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe ConfigurationSet)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"ConfigurationSet")
Either
String
(Maybe ReputationOptions
-> Maybe [EventDestination]
-> Int
-> DescribeConfigurationSetResponse)
-> Either String (Maybe ReputationOptions)
-> Either
String
(Maybe [EventDestination]
-> Int -> DescribeConfigurationSetResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe ReputationOptions)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"ReputationOptions")
Either
String
(Maybe [EventDestination]
-> Int -> DescribeConfigurationSetResponse)
-> Either String (Maybe [EventDestination])
-> Either String (Int -> DescribeConfigurationSetResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( [Node]
x [Node] -> Text -> Either String (Maybe [Node])
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"EventDestinations"
Either String (Maybe [Node]) -> [Node] -> Either String [Node]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [Node]
forall a. Monoid a => a
Prelude.mempty
Either String [Node]
-> ([Node] -> Either String (Maybe [EventDestination]))
-> Either String (Maybe [EventDestination])
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= ([Node] -> Either String [EventDestination])
-> [Node] -> Either String (Maybe [EventDestination])
forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (Text -> [Node] -> Either String [EventDestination]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"member")
)
Either String (Int -> DescribeConfigurationSetResponse)
-> Either String Int
-> Either String DescribeConfigurationSetResponse
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 DescribeConfigurationSet
instance Prelude.NFData DescribeConfigurationSet
instance Core.ToHeaders DescribeConfigurationSet where
toHeaders :: DescribeConfigurationSet -> ResponseHeaders
toHeaders = ResponseHeaders -> DescribeConfigurationSet -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath DescribeConfigurationSet where
toPath :: DescribeConfigurationSet -> ByteString
toPath = ByteString -> DescribeConfigurationSet -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery DescribeConfigurationSet where
toQuery :: DescribeConfigurationSet -> QueryString
toQuery DescribeConfigurationSet' {Maybe [ConfigurationSetAttribute]
Text
configurationSetName :: Text
configurationSetAttributeNames :: Maybe [ConfigurationSetAttribute]
$sel:configurationSetName:DescribeConfigurationSet' :: DescribeConfigurationSet -> Text
$sel:configurationSetAttributeNames:DescribeConfigurationSet' :: DescribeConfigurationSet -> Maybe [ConfigurationSetAttribute]
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"Action"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"DescribeConfigurationSet" :: Prelude.ByteString),
ByteString
"Version"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2010-12-01" :: Prelude.ByteString),
ByteString
"ConfigurationSetAttributeNames"
ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
( ByteString -> [ConfigurationSetAttribute] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"member"
([ConfigurationSetAttribute] -> QueryString)
-> Maybe [ConfigurationSetAttribute] -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [ConfigurationSetAttribute]
configurationSetAttributeNames
),
ByteString
"ConfigurationSetName" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
configurationSetName
]
data DescribeConfigurationSetResponse = DescribeConfigurationSetResponse'
{ DescribeConfigurationSetResponse -> Maybe DeliveryOptions
deliveryOptions :: Prelude.Maybe DeliveryOptions,
DescribeConfigurationSetResponse -> Maybe TrackingOptions
trackingOptions :: Prelude.Maybe TrackingOptions,
DescribeConfigurationSetResponse -> Maybe ConfigurationSet
configurationSet :: Prelude.Maybe ConfigurationSet,
DescribeConfigurationSetResponse -> Maybe ReputationOptions
reputationOptions :: Prelude.Maybe ReputationOptions,
DescribeConfigurationSetResponse -> Maybe [EventDestination]
eventDestinations :: Prelude.Maybe [EventDestination],
DescribeConfigurationSetResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeConfigurationSetResponse
-> DescribeConfigurationSetResponse -> Bool
(DescribeConfigurationSetResponse
-> DescribeConfigurationSetResponse -> Bool)
-> (DescribeConfigurationSetResponse
-> DescribeConfigurationSetResponse -> Bool)
-> Eq DescribeConfigurationSetResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeConfigurationSetResponse
-> DescribeConfigurationSetResponse -> Bool
$c/= :: DescribeConfigurationSetResponse
-> DescribeConfigurationSetResponse -> Bool
== :: DescribeConfigurationSetResponse
-> DescribeConfigurationSetResponse -> Bool
$c== :: DescribeConfigurationSetResponse
-> DescribeConfigurationSetResponse -> Bool
Prelude.Eq, ReadPrec [DescribeConfigurationSetResponse]
ReadPrec DescribeConfigurationSetResponse
Int -> ReadS DescribeConfigurationSetResponse
ReadS [DescribeConfigurationSetResponse]
(Int -> ReadS DescribeConfigurationSetResponse)
-> ReadS [DescribeConfigurationSetResponse]
-> ReadPrec DescribeConfigurationSetResponse
-> ReadPrec [DescribeConfigurationSetResponse]
-> Read DescribeConfigurationSetResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeConfigurationSetResponse]
$creadListPrec :: ReadPrec [DescribeConfigurationSetResponse]
readPrec :: ReadPrec DescribeConfigurationSetResponse
$creadPrec :: ReadPrec DescribeConfigurationSetResponse
readList :: ReadS [DescribeConfigurationSetResponse]
$creadList :: ReadS [DescribeConfigurationSetResponse]
readsPrec :: Int -> ReadS DescribeConfigurationSetResponse
$creadsPrec :: Int -> ReadS DescribeConfigurationSetResponse
Prelude.Read, Int -> DescribeConfigurationSetResponse -> ShowS
[DescribeConfigurationSetResponse] -> ShowS
DescribeConfigurationSetResponse -> String
(Int -> DescribeConfigurationSetResponse -> ShowS)
-> (DescribeConfigurationSetResponse -> String)
-> ([DescribeConfigurationSetResponse] -> ShowS)
-> Show DescribeConfigurationSetResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeConfigurationSetResponse] -> ShowS
$cshowList :: [DescribeConfigurationSetResponse] -> ShowS
show :: DescribeConfigurationSetResponse -> String
$cshow :: DescribeConfigurationSetResponse -> String
showsPrec :: Int -> DescribeConfigurationSetResponse -> ShowS
$cshowsPrec :: Int -> DescribeConfigurationSetResponse -> ShowS
Prelude.Show, (forall x.
DescribeConfigurationSetResponse
-> Rep DescribeConfigurationSetResponse x)
-> (forall x.
Rep DescribeConfigurationSetResponse x
-> DescribeConfigurationSetResponse)
-> Generic DescribeConfigurationSetResponse
forall x.
Rep DescribeConfigurationSetResponse x
-> DescribeConfigurationSetResponse
forall x.
DescribeConfigurationSetResponse
-> Rep DescribeConfigurationSetResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeConfigurationSetResponse x
-> DescribeConfigurationSetResponse
$cfrom :: forall x.
DescribeConfigurationSetResponse
-> Rep DescribeConfigurationSetResponse x
Prelude.Generic)
newDescribeConfigurationSetResponse ::
Prelude.Int ->
DescribeConfigurationSetResponse
newDescribeConfigurationSetResponse :: Int -> DescribeConfigurationSetResponse
newDescribeConfigurationSetResponse Int
pHttpStatus_ =
DescribeConfigurationSetResponse' :: Maybe DeliveryOptions
-> Maybe TrackingOptions
-> Maybe ConfigurationSet
-> Maybe ReputationOptions
-> Maybe [EventDestination]
-> Int
-> DescribeConfigurationSetResponse
DescribeConfigurationSetResponse'
{ $sel:deliveryOptions:DescribeConfigurationSetResponse' :: Maybe DeliveryOptions
deliveryOptions =
Maybe DeliveryOptions
forall a. Maybe a
Prelude.Nothing,
$sel:trackingOptions:DescribeConfigurationSetResponse' :: Maybe TrackingOptions
trackingOptions = Maybe TrackingOptions
forall a. Maybe a
Prelude.Nothing,
$sel:configurationSet:DescribeConfigurationSetResponse' :: Maybe ConfigurationSet
configurationSet = Maybe ConfigurationSet
forall a. Maybe a
Prelude.Nothing,
$sel:reputationOptions:DescribeConfigurationSetResponse' :: Maybe ReputationOptions
reputationOptions = Maybe ReputationOptions
forall a. Maybe a
Prelude.Nothing,
$sel:eventDestinations:DescribeConfigurationSetResponse' :: Maybe [EventDestination]
eventDestinations = Maybe [EventDestination]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeConfigurationSetResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeConfigurationSetResponse_deliveryOptions :: Lens.Lens' DescribeConfigurationSetResponse (Prelude.Maybe DeliveryOptions)
describeConfigurationSetResponse_deliveryOptions :: (Maybe DeliveryOptions -> f (Maybe DeliveryOptions))
-> DescribeConfigurationSetResponse
-> f DescribeConfigurationSetResponse
describeConfigurationSetResponse_deliveryOptions = (DescribeConfigurationSetResponse -> Maybe DeliveryOptions)
-> (DescribeConfigurationSetResponse
-> Maybe DeliveryOptions -> DescribeConfigurationSetResponse)
-> Lens
DescribeConfigurationSetResponse
DescribeConfigurationSetResponse
(Maybe DeliveryOptions)
(Maybe DeliveryOptions)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeConfigurationSetResponse' {Maybe DeliveryOptions
deliveryOptions :: Maybe DeliveryOptions
$sel:deliveryOptions:DescribeConfigurationSetResponse' :: DescribeConfigurationSetResponse -> Maybe DeliveryOptions
deliveryOptions} -> Maybe DeliveryOptions
deliveryOptions) (\s :: DescribeConfigurationSetResponse
s@DescribeConfigurationSetResponse' {} Maybe DeliveryOptions
a -> DescribeConfigurationSetResponse
s {$sel:deliveryOptions:DescribeConfigurationSetResponse' :: Maybe DeliveryOptions
deliveryOptions = Maybe DeliveryOptions
a} :: DescribeConfigurationSetResponse)
describeConfigurationSetResponse_trackingOptions :: Lens.Lens' DescribeConfigurationSetResponse (Prelude.Maybe TrackingOptions)
describeConfigurationSetResponse_trackingOptions :: (Maybe TrackingOptions -> f (Maybe TrackingOptions))
-> DescribeConfigurationSetResponse
-> f DescribeConfigurationSetResponse
describeConfigurationSetResponse_trackingOptions = (DescribeConfigurationSetResponse -> Maybe TrackingOptions)
-> (DescribeConfigurationSetResponse
-> Maybe TrackingOptions -> DescribeConfigurationSetResponse)
-> Lens
DescribeConfigurationSetResponse
DescribeConfigurationSetResponse
(Maybe TrackingOptions)
(Maybe TrackingOptions)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeConfigurationSetResponse' {Maybe TrackingOptions
trackingOptions :: Maybe TrackingOptions
$sel:trackingOptions:DescribeConfigurationSetResponse' :: DescribeConfigurationSetResponse -> Maybe TrackingOptions
trackingOptions} -> Maybe TrackingOptions
trackingOptions) (\s :: DescribeConfigurationSetResponse
s@DescribeConfigurationSetResponse' {} Maybe TrackingOptions
a -> DescribeConfigurationSetResponse
s {$sel:trackingOptions:DescribeConfigurationSetResponse' :: Maybe TrackingOptions
trackingOptions = Maybe TrackingOptions
a} :: DescribeConfigurationSetResponse)
describeConfigurationSetResponse_configurationSet :: Lens.Lens' DescribeConfigurationSetResponse (Prelude.Maybe ConfigurationSet)
describeConfigurationSetResponse_configurationSet :: (Maybe ConfigurationSet -> f (Maybe ConfigurationSet))
-> DescribeConfigurationSetResponse
-> f DescribeConfigurationSetResponse
describeConfigurationSetResponse_configurationSet = (DescribeConfigurationSetResponse -> Maybe ConfigurationSet)
-> (DescribeConfigurationSetResponse
-> Maybe ConfigurationSet -> DescribeConfigurationSetResponse)
-> Lens
DescribeConfigurationSetResponse
DescribeConfigurationSetResponse
(Maybe ConfigurationSet)
(Maybe ConfigurationSet)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeConfigurationSetResponse' {Maybe ConfigurationSet
configurationSet :: Maybe ConfigurationSet
$sel:configurationSet:DescribeConfigurationSetResponse' :: DescribeConfigurationSetResponse -> Maybe ConfigurationSet
configurationSet} -> Maybe ConfigurationSet
configurationSet) (\s :: DescribeConfigurationSetResponse
s@DescribeConfigurationSetResponse' {} Maybe ConfigurationSet
a -> DescribeConfigurationSetResponse
s {$sel:configurationSet:DescribeConfigurationSetResponse' :: Maybe ConfigurationSet
configurationSet = Maybe ConfigurationSet
a} :: DescribeConfigurationSetResponse)
describeConfigurationSetResponse_reputationOptions :: Lens.Lens' DescribeConfigurationSetResponse (Prelude.Maybe ReputationOptions)
describeConfigurationSetResponse_reputationOptions :: (Maybe ReputationOptions -> f (Maybe ReputationOptions))
-> DescribeConfigurationSetResponse
-> f DescribeConfigurationSetResponse
describeConfigurationSetResponse_reputationOptions = (DescribeConfigurationSetResponse -> Maybe ReputationOptions)
-> (DescribeConfigurationSetResponse
-> Maybe ReputationOptions -> DescribeConfigurationSetResponse)
-> Lens
DescribeConfigurationSetResponse
DescribeConfigurationSetResponse
(Maybe ReputationOptions)
(Maybe ReputationOptions)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeConfigurationSetResponse' {Maybe ReputationOptions
reputationOptions :: Maybe ReputationOptions
$sel:reputationOptions:DescribeConfigurationSetResponse' :: DescribeConfigurationSetResponse -> Maybe ReputationOptions
reputationOptions} -> Maybe ReputationOptions
reputationOptions) (\s :: DescribeConfigurationSetResponse
s@DescribeConfigurationSetResponse' {} Maybe ReputationOptions
a -> DescribeConfigurationSetResponse
s {$sel:reputationOptions:DescribeConfigurationSetResponse' :: Maybe ReputationOptions
reputationOptions = Maybe ReputationOptions
a} :: DescribeConfigurationSetResponse)
describeConfigurationSetResponse_eventDestinations :: Lens.Lens' DescribeConfigurationSetResponse (Prelude.Maybe [EventDestination])
describeConfigurationSetResponse_eventDestinations :: (Maybe [EventDestination] -> f (Maybe [EventDestination]))
-> DescribeConfigurationSetResponse
-> f DescribeConfigurationSetResponse
describeConfigurationSetResponse_eventDestinations = (DescribeConfigurationSetResponse -> Maybe [EventDestination])
-> (DescribeConfigurationSetResponse
-> Maybe [EventDestination] -> DescribeConfigurationSetResponse)
-> Lens
DescribeConfigurationSetResponse
DescribeConfigurationSetResponse
(Maybe [EventDestination])
(Maybe [EventDestination])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeConfigurationSetResponse' {Maybe [EventDestination]
eventDestinations :: Maybe [EventDestination]
$sel:eventDestinations:DescribeConfigurationSetResponse' :: DescribeConfigurationSetResponse -> Maybe [EventDestination]
eventDestinations} -> Maybe [EventDestination]
eventDestinations) (\s :: DescribeConfigurationSetResponse
s@DescribeConfigurationSetResponse' {} Maybe [EventDestination]
a -> DescribeConfigurationSetResponse
s {$sel:eventDestinations:DescribeConfigurationSetResponse' :: Maybe [EventDestination]
eventDestinations = Maybe [EventDestination]
a} :: DescribeConfigurationSetResponse) ((Maybe [EventDestination] -> f (Maybe [EventDestination]))
-> DescribeConfigurationSetResponse
-> f DescribeConfigurationSetResponse)
-> ((Maybe [EventDestination] -> f (Maybe [EventDestination]))
-> Maybe [EventDestination] -> f (Maybe [EventDestination]))
-> (Maybe [EventDestination] -> f (Maybe [EventDestination]))
-> DescribeConfigurationSetResponse
-> f DescribeConfigurationSetResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[EventDestination]
[EventDestination]
[EventDestination]
[EventDestination]
-> Iso
(Maybe [EventDestination])
(Maybe [EventDestination])
(Maybe [EventDestination])
(Maybe [EventDestination])
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
[EventDestination]
[EventDestination]
[EventDestination]
[EventDestination]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeConfigurationSetResponse_httpStatus :: Lens.Lens' DescribeConfigurationSetResponse Prelude.Int
describeConfigurationSetResponse_httpStatus :: (Int -> f Int)
-> DescribeConfigurationSetResponse
-> f DescribeConfigurationSetResponse
describeConfigurationSetResponse_httpStatus = (DescribeConfigurationSetResponse -> Int)
-> (DescribeConfigurationSetResponse
-> Int -> DescribeConfigurationSetResponse)
-> Lens
DescribeConfigurationSetResponse
DescribeConfigurationSetResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeConfigurationSetResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeConfigurationSetResponse' :: DescribeConfigurationSetResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeConfigurationSetResponse
s@DescribeConfigurationSetResponse' {} Int
a -> DescribeConfigurationSetResponse
s {$sel:httpStatus:DescribeConfigurationSetResponse' :: Int
httpStatus = Int
a} :: DescribeConfigurationSetResponse)
instance
Prelude.NFData
DescribeConfigurationSetResponse