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