{-# 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.Config.PutConfigurationAggregator
(
PutConfigurationAggregator (..),
newPutConfigurationAggregator,
putConfigurationAggregator_organizationAggregationSource,
putConfigurationAggregator_accountAggregationSources,
putConfigurationAggregator_tags,
putConfigurationAggregator_configurationAggregatorName,
PutConfigurationAggregatorResponse (..),
newPutConfigurationAggregatorResponse,
putConfigurationAggregatorResponse_configurationAggregator,
putConfigurationAggregatorResponse_httpStatus,
)
where
import Amazonka.Config.Types
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
data PutConfigurationAggregator = PutConfigurationAggregator'
{
PutConfigurationAggregator -> Maybe OrganizationAggregationSource
organizationAggregationSource :: Prelude.Maybe OrganizationAggregationSource,
PutConfigurationAggregator -> Maybe [AccountAggregationSource]
accountAggregationSources :: Prelude.Maybe [AccountAggregationSource],
PutConfigurationAggregator -> Maybe [Tag]
tags :: Prelude.Maybe [Tag],
PutConfigurationAggregator -> Text
configurationAggregatorName :: Prelude.Text
}
deriving (PutConfigurationAggregator -> PutConfigurationAggregator -> Bool
(PutConfigurationAggregator -> PutConfigurationAggregator -> Bool)
-> (PutConfigurationAggregator
-> PutConfigurationAggregator -> Bool)
-> Eq PutConfigurationAggregator
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PutConfigurationAggregator -> PutConfigurationAggregator -> Bool
$c/= :: PutConfigurationAggregator -> PutConfigurationAggregator -> Bool
== :: PutConfigurationAggregator -> PutConfigurationAggregator -> Bool
$c== :: PutConfigurationAggregator -> PutConfigurationAggregator -> Bool
Prelude.Eq, ReadPrec [PutConfigurationAggregator]
ReadPrec PutConfigurationAggregator
Int -> ReadS PutConfigurationAggregator
ReadS [PutConfigurationAggregator]
(Int -> ReadS PutConfigurationAggregator)
-> ReadS [PutConfigurationAggregator]
-> ReadPrec PutConfigurationAggregator
-> ReadPrec [PutConfigurationAggregator]
-> Read PutConfigurationAggregator
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PutConfigurationAggregator]
$creadListPrec :: ReadPrec [PutConfigurationAggregator]
readPrec :: ReadPrec PutConfigurationAggregator
$creadPrec :: ReadPrec PutConfigurationAggregator
readList :: ReadS [PutConfigurationAggregator]
$creadList :: ReadS [PutConfigurationAggregator]
readsPrec :: Int -> ReadS PutConfigurationAggregator
$creadsPrec :: Int -> ReadS PutConfigurationAggregator
Prelude.Read, Int -> PutConfigurationAggregator -> ShowS
[PutConfigurationAggregator] -> ShowS
PutConfigurationAggregator -> String
(Int -> PutConfigurationAggregator -> ShowS)
-> (PutConfigurationAggregator -> String)
-> ([PutConfigurationAggregator] -> ShowS)
-> Show PutConfigurationAggregator
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PutConfigurationAggregator] -> ShowS
$cshowList :: [PutConfigurationAggregator] -> ShowS
show :: PutConfigurationAggregator -> String
$cshow :: PutConfigurationAggregator -> String
showsPrec :: Int -> PutConfigurationAggregator -> ShowS
$cshowsPrec :: Int -> PutConfigurationAggregator -> ShowS
Prelude.Show, (forall x.
PutConfigurationAggregator -> Rep PutConfigurationAggregator x)
-> (forall x.
Rep PutConfigurationAggregator x -> PutConfigurationAggregator)
-> Generic PutConfigurationAggregator
forall x.
Rep PutConfigurationAggregator x -> PutConfigurationAggregator
forall x.
PutConfigurationAggregator -> Rep PutConfigurationAggregator x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep PutConfigurationAggregator x -> PutConfigurationAggregator
$cfrom :: forall x.
PutConfigurationAggregator -> Rep PutConfigurationAggregator x
Prelude.Generic)
newPutConfigurationAggregator ::
Prelude.Text ->
PutConfigurationAggregator
newPutConfigurationAggregator :: Text -> PutConfigurationAggregator
newPutConfigurationAggregator
Text
pConfigurationAggregatorName_ =
PutConfigurationAggregator' :: Maybe OrganizationAggregationSource
-> Maybe [AccountAggregationSource]
-> Maybe [Tag]
-> Text
-> PutConfigurationAggregator
PutConfigurationAggregator'
{ $sel:organizationAggregationSource:PutConfigurationAggregator' :: Maybe OrganizationAggregationSource
organizationAggregationSource =
Maybe OrganizationAggregationSource
forall a. Maybe a
Prelude.Nothing,
$sel:accountAggregationSources:PutConfigurationAggregator' :: Maybe [AccountAggregationSource]
accountAggregationSources = Maybe [AccountAggregationSource]
forall a. Maybe a
Prelude.Nothing,
$sel:tags:PutConfigurationAggregator' :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing,
$sel:configurationAggregatorName:PutConfigurationAggregator' :: Text
configurationAggregatorName =
Text
pConfigurationAggregatorName_
}
putConfigurationAggregator_organizationAggregationSource :: Lens.Lens' PutConfigurationAggregator (Prelude.Maybe OrganizationAggregationSource)
putConfigurationAggregator_organizationAggregationSource :: (Maybe OrganizationAggregationSource
-> f (Maybe OrganizationAggregationSource))
-> PutConfigurationAggregator -> f PutConfigurationAggregator
putConfigurationAggregator_organizationAggregationSource = (PutConfigurationAggregator -> Maybe OrganizationAggregationSource)
-> (PutConfigurationAggregator
-> Maybe OrganizationAggregationSource
-> PutConfigurationAggregator)
-> Lens
PutConfigurationAggregator
PutConfigurationAggregator
(Maybe OrganizationAggregationSource)
(Maybe OrganizationAggregationSource)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutConfigurationAggregator' {Maybe OrganizationAggregationSource
organizationAggregationSource :: Maybe OrganizationAggregationSource
$sel:organizationAggregationSource:PutConfigurationAggregator' :: PutConfigurationAggregator -> Maybe OrganizationAggregationSource
organizationAggregationSource} -> Maybe OrganizationAggregationSource
organizationAggregationSource) (\s :: PutConfigurationAggregator
s@PutConfigurationAggregator' {} Maybe OrganizationAggregationSource
a -> PutConfigurationAggregator
s {$sel:organizationAggregationSource:PutConfigurationAggregator' :: Maybe OrganizationAggregationSource
organizationAggregationSource = Maybe OrganizationAggregationSource
a} :: PutConfigurationAggregator)
putConfigurationAggregator_accountAggregationSources :: Lens.Lens' PutConfigurationAggregator (Prelude.Maybe [AccountAggregationSource])
putConfigurationAggregator_accountAggregationSources :: (Maybe [AccountAggregationSource]
-> f (Maybe [AccountAggregationSource]))
-> PutConfigurationAggregator -> f PutConfigurationAggregator
putConfigurationAggregator_accountAggregationSources = (PutConfigurationAggregator -> Maybe [AccountAggregationSource])
-> (PutConfigurationAggregator
-> Maybe [AccountAggregationSource] -> PutConfigurationAggregator)
-> Lens
PutConfigurationAggregator
PutConfigurationAggregator
(Maybe [AccountAggregationSource])
(Maybe [AccountAggregationSource])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutConfigurationAggregator' {Maybe [AccountAggregationSource]
accountAggregationSources :: Maybe [AccountAggregationSource]
$sel:accountAggregationSources:PutConfigurationAggregator' :: PutConfigurationAggregator -> Maybe [AccountAggregationSource]
accountAggregationSources} -> Maybe [AccountAggregationSource]
accountAggregationSources) (\s :: PutConfigurationAggregator
s@PutConfigurationAggregator' {} Maybe [AccountAggregationSource]
a -> PutConfigurationAggregator
s {$sel:accountAggregationSources:PutConfigurationAggregator' :: Maybe [AccountAggregationSource]
accountAggregationSources = Maybe [AccountAggregationSource]
a} :: PutConfigurationAggregator) ((Maybe [AccountAggregationSource]
-> f (Maybe [AccountAggregationSource]))
-> PutConfigurationAggregator -> f PutConfigurationAggregator)
-> ((Maybe [AccountAggregationSource]
-> f (Maybe [AccountAggregationSource]))
-> Maybe [AccountAggregationSource]
-> f (Maybe [AccountAggregationSource]))
-> (Maybe [AccountAggregationSource]
-> f (Maybe [AccountAggregationSource]))
-> PutConfigurationAggregator
-> f PutConfigurationAggregator
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[AccountAggregationSource]
[AccountAggregationSource]
[AccountAggregationSource]
[AccountAggregationSource]
-> Iso
(Maybe [AccountAggregationSource])
(Maybe [AccountAggregationSource])
(Maybe [AccountAggregationSource])
(Maybe [AccountAggregationSource])
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
[AccountAggregationSource]
[AccountAggregationSource]
[AccountAggregationSource]
[AccountAggregationSource]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
putConfigurationAggregator_tags :: Lens.Lens' PutConfigurationAggregator (Prelude.Maybe [Tag])
putConfigurationAggregator_tags :: (Maybe [Tag] -> f (Maybe [Tag]))
-> PutConfigurationAggregator -> f PutConfigurationAggregator
putConfigurationAggregator_tags = (PutConfigurationAggregator -> Maybe [Tag])
-> (PutConfigurationAggregator
-> Maybe [Tag] -> PutConfigurationAggregator)
-> Lens
PutConfigurationAggregator
PutConfigurationAggregator
(Maybe [Tag])
(Maybe [Tag])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutConfigurationAggregator' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:PutConfigurationAggregator' :: PutConfigurationAggregator -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: PutConfigurationAggregator
s@PutConfigurationAggregator' {} Maybe [Tag]
a -> PutConfigurationAggregator
s {$sel:tags:PutConfigurationAggregator' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: PutConfigurationAggregator) ((Maybe [Tag] -> f (Maybe [Tag]))
-> PutConfigurationAggregator -> f PutConfigurationAggregator)
-> ((Maybe [Tag] -> f (Maybe [Tag]))
-> Maybe [Tag] -> f (Maybe [Tag]))
-> (Maybe [Tag] -> f (Maybe [Tag]))
-> PutConfigurationAggregator
-> f PutConfigurationAggregator
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Tag] [Tag] [Tag] [Tag]
-> Iso (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag])
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 [Tag] [Tag] [Tag] [Tag]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
putConfigurationAggregator_configurationAggregatorName :: Lens.Lens' PutConfigurationAggregator Prelude.Text
putConfigurationAggregator_configurationAggregatorName :: (Text -> f Text)
-> PutConfigurationAggregator -> f PutConfigurationAggregator
putConfigurationAggregator_configurationAggregatorName = (PutConfigurationAggregator -> Text)
-> (PutConfigurationAggregator
-> Text -> PutConfigurationAggregator)
-> Lens
PutConfigurationAggregator PutConfigurationAggregator Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutConfigurationAggregator' {Text
configurationAggregatorName :: Text
$sel:configurationAggregatorName:PutConfigurationAggregator' :: PutConfigurationAggregator -> Text
configurationAggregatorName} -> Text
configurationAggregatorName) (\s :: PutConfigurationAggregator
s@PutConfigurationAggregator' {} Text
a -> PutConfigurationAggregator
s {$sel:configurationAggregatorName:PutConfigurationAggregator' :: Text
configurationAggregatorName = Text
a} :: PutConfigurationAggregator)
instance Core.AWSRequest PutConfigurationAggregator where
type
AWSResponse PutConfigurationAggregator =
PutConfigurationAggregatorResponse
request :: PutConfigurationAggregator -> Request PutConfigurationAggregator
request = Service
-> PutConfigurationAggregator -> Request PutConfigurationAggregator
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy PutConfigurationAggregator
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse PutConfigurationAggregator)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse PutConfigurationAggregator))
-> Logger
-> Service
-> Proxy PutConfigurationAggregator
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse PutConfigurationAggregator)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe ConfigurationAggregator
-> Int -> PutConfigurationAggregatorResponse
PutConfigurationAggregatorResponse'
(Maybe ConfigurationAggregator
-> Int -> PutConfigurationAggregatorResponse)
-> Either String (Maybe ConfigurationAggregator)
-> Either String (Int -> PutConfigurationAggregatorResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe ConfigurationAggregator)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ConfigurationAggregator")
Either String (Int -> PutConfigurationAggregatorResponse)
-> Either String Int
-> Either String PutConfigurationAggregatorResponse
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 PutConfigurationAggregator
instance Prelude.NFData PutConfigurationAggregator
instance Core.ToHeaders PutConfigurationAggregator where
toHeaders :: PutConfigurationAggregator -> ResponseHeaders
toHeaders =
ResponseHeaders -> PutConfigurationAggregator -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"StarlingDoveService.PutConfigurationAggregator" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON PutConfigurationAggregator where
toJSON :: PutConfigurationAggregator -> Value
toJSON PutConfigurationAggregator' {Maybe [AccountAggregationSource]
Maybe [Tag]
Maybe OrganizationAggregationSource
Text
configurationAggregatorName :: Text
tags :: Maybe [Tag]
accountAggregationSources :: Maybe [AccountAggregationSource]
organizationAggregationSource :: Maybe OrganizationAggregationSource
$sel:configurationAggregatorName:PutConfigurationAggregator' :: PutConfigurationAggregator -> Text
$sel:tags:PutConfigurationAggregator' :: PutConfigurationAggregator -> Maybe [Tag]
$sel:accountAggregationSources:PutConfigurationAggregator' :: PutConfigurationAggregator -> Maybe [AccountAggregationSource]
$sel:organizationAggregationSource:PutConfigurationAggregator' :: PutConfigurationAggregator -> Maybe OrganizationAggregationSource
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"OrganizationAggregationSource" Text -> OrganizationAggregationSource -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(OrganizationAggregationSource -> Pair)
-> Maybe OrganizationAggregationSource -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe OrganizationAggregationSource
organizationAggregationSource,
(Text
"AccountAggregationSources" Text -> [AccountAggregationSource] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
([AccountAggregationSource] -> Pair)
-> Maybe [AccountAggregationSource] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [AccountAggregationSource]
accountAggregationSources,
(Text
"Tags" Text -> [Tag] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([Tag] -> Pair) -> Maybe [Tag] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
( Text
"ConfigurationAggregatorName"
Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
configurationAggregatorName
)
]
)
instance Core.ToPath PutConfigurationAggregator where
toPath :: PutConfigurationAggregator -> ByteString
toPath = ByteString -> PutConfigurationAggregator -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery PutConfigurationAggregator where
toQuery :: PutConfigurationAggregator -> QueryString
toQuery = QueryString -> PutConfigurationAggregator -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data PutConfigurationAggregatorResponse = PutConfigurationAggregatorResponse'
{
PutConfigurationAggregatorResponse -> Maybe ConfigurationAggregator
configurationAggregator :: Prelude.Maybe ConfigurationAggregator,
PutConfigurationAggregatorResponse -> Int
httpStatus :: Prelude.Int
}
deriving (PutConfigurationAggregatorResponse
-> PutConfigurationAggregatorResponse -> Bool
(PutConfigurationAggregatorResponse
-> PutConfigurationAggregatorResponse -> Bool)
-> (PutConfigurationAggregatorResponse
-> PutConfigurationAggregatorResponse -> Bool)
-> Eq PutConfigurationAggregatorResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PutConfigurationAggregatorResponse
-> PutConfigurationAggregatorResponse -> Bool
$c/= :: PutConfigurationAggregatorResponse
-> PutConfigurationAggregatorResponse -> Bool
== :: PutConfigurationAggregatorResponse
-> PutConfigurationAggregatorResponse -> Bool
$c== :: PutConfigurationAggregatorResponse
-> PutConfigurationAggregatorResponse -> Bool
Prelude.Eq, ReadPrec [PutConfigurationAggregatorResponse]
ReadPrec PutConfigurationAggregatorResponse
Int -> ReadS PutConfigurationAggregatorResponse
ReadS [PutConfigurationAggregatorResponse]
(Int -> ReadS PutConfigurationAggregatorResponse)
-> ReadS [PutConfigurationAggregatorResponse]
-> ReadPrec PutConfigurationAggregatorResponse
-> ReadPrec [PutConfigurationAggregatorResponse]
-> Read PutConfigurationAggregatorResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PutConfigurationAggregatorResponse]
$creadListPrec :: ReadPrec [PutConfigurationAggregatorResponse]
readPrec :: ReadPrec PutConfigurationAggregatorResponse
$creadPrec :: ReadPrec PutConfigurationAggregatorResponse
readList :: ReadS [PutConfigurationAggregatorResponse]
$creadList :: ReadS [PutConfigurationAggregatorResponse]
readsPrec :: Int -> ReadS PutConfigurationAggregatorResponse
$creadsPrec :: Int -> ReadS PutConfigurationAggregatorResponse
Prelude.Read, Int -> PutConfigurationAggregatorResponse -> ShowS
[PutConfigurationAggregatorResponse] -> ShowS
PutConfigurationAggregatorResponse -> String
(Int -> PutConfigurationAggregatorResponse -> ShowS)
-> (PutConfigurationAggregatorResponse -> String)
-> ([PutConfigurationAggregatorResponse] -> ShowS)
-> Show PutConfigurationAggregatorResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PutConfigurationAggregatorResponse] -> ShowS
$cshowList :: [PutConfigurationAggregatorResponse] -> ShowS
show :: PutConfigurationAggregatorResponse -> String
$cshow :: PutConfigurationAggregatorResponse -> String
showsPrec :: Int -> PutConfigurationAggregatorResponse -> ShowS
$cshowsPrec :: Int -> PutConfigurationAggregatorResponse -> ShowS
Prelude.Show, (forall x.
PutConfigurationAggregatorResponse
-> Rep PutConfigurationAggregatorResponse x)
-> (forall x.
Rep PutConfigurationAggregatorResponse x
-> PutConfigurationAggregatorResponse)
-> Generic PutConfigurationAggregatorResponse
forall x.
Rep PutConfigurationAggregatorResponse x
-> PutConfigurationAggregatorResponse
forall x.
PutConfigurationAggregatorResponse
-> Rep PutConfigurationAggregatorResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep PutConfigurationAggregatorResponse x
-> PutConfigurationAggregatorResponse
$cfrom :: forall x.
PutConfigurationAggregatorResponse
-> Rep PutConfigurationAggregatorResponse x
Prelude.Generic)
newPutConfigurationAggregatorResponse ::
Prelude.Int ->
PutConfigurationAggregatorResponse
newPutConfigurationAggregatorResponse :: Int -> PutConfigurationAggregatorResponse
newPutConfigurationAggregatorResponse Int
pHttpStatus_ =
PutConfigurationAggregatorResponse' :: Maybe ConfigurationAggregator
-> Int -> PutConfigurationAggregatorResponse
PutConfigurationAggregatorResponse'
{ $sel:configurationAggregator:PutConfigurationAggregatorResponse' :: Maybe ConfigurationAggregator
configurationAggregator =
Maybe ConfigurationAggregator
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:PutConfigurationAggregatorResponse' :: Int
httpStatus = Int
pHttpStatus_
}
putConfigurationAggregatorResponse_configurationAggregator :: Lens.Lens' PutConfigurationAggregatorResponse (Prelude.Maybe ConfigurationAggregator)
putConfigurationAggregatorResponse_configurationAggregator :: (Maybe ConfigurationAggregator
-> f (Maybe ConfigurationAggregator))
-> PutConfigurationAggregatorResponse
-> f PutConfigurationAggregatorResponse
putConfigurationAggregatorResponse_configurationAggregator = (PutConfigurationAggregatorResponse
-> Maybe ConfigurationAggregator)
-> (PutConfigurationAggregatorResponse
-> Maybe ConfigurationAggregator
-> PutConfigurationAggregatorResponse)
-> Lens
PutConfigurationAggregatorResponse
PutConfigurationAggregatorResponse
(Maybe ConfigurationAggregator)
(Maybe ConfigurationAggregator)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutConfigurationAggregatorResponse' {Maybe ConfigurationAggregator
configurationAggregator :: Maybe ConfigurationAggregator
$sel:configurationAggregator:PutConfigurationAggregatorResponse' :: PutConfigurationAggregatorResponse -> Maybe ConfigurationAggregator
configurationAggregator} -> Maybe ConfigurationAggregator
configurationAggregator) (\s :: PutConfigurationAggregatorResponse
s@PutConfigurationAggregatorResponse' {} Maybe ConfigurationAggregator
a -> PutConfigurationAggregatorResponse
s {$sel:configurationAggregator:PutConfigurationAggregatorResponse' :: Maybe ConfigurationAggregator
configurationAggregator = Maybe ConfigurationAggregator
a} :: PutConfigurationAggregatorResponse)
putConfigurationAggregatorResponse_httpStatus :: Lens.Lens' PutConfigurationAggregatorResponse Prelude.Int
putConfigurationAggregatorResponse_httpStatus :: (Int -> f Int)
-> PutConfigurationAggregatorResponse
-> f PutConfigurationAggregatorResponse
putConfigurationAggregatorResponse_httpStatus = (PutConfigurationAggregatorResponse -> Int)
-> (PutConfigurationAggregatorResponse
-> Int -> PutConfigurationAggregatorResponse)
-> Lens
PutConfigurationAggregatorResponse
PutConfigurationAggregatorResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutConfigurationAggregatorResponse' {Int
httpStatus :: Int
$sel:httpStatus:PutConfigurationAggregatorResponse' :: PutConfigurationAggregatorResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: PutConfigurationAggregatorResponse
s@PutConfigurationAggregatorResponse' {} Int
a -> PutConfigurationAggregatorResponse
s {$sel:httpStatus:PutConfigurationAggregatorResponse' :: Int
httpStatus = Int
a} :: PutConfigurationAggregatorResponse)
instance
Prelude.NFData
PutConfigurationAggregatorResponse