{-# 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.DescribeAggregationAuthorizations
(
DescribeAggregationAuthorizations (..),
newDescribeAggregationAuthorizations,
describeAggregationAuthorizations_nextToken,
describeAggregationAuthorizations_limit,
DescribeAggregationAuthorizationsResponse (..),
newDescribeAggregationAuthorizationsResponse,
describeAggregationAuthorizationsResponse_aggregationAuthorizations,
describeAggregationAuthorizationsResponse_nextToken,
describeAggregationAuthorizationsResponse_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 DescribeAggregationAuthorizations = DescribeAggregationAuthorizations'
{
DescribeAggregationAuthorizations -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
DescribeAggregationAuthorizations -> Maybe Natural
limit :: Prelude.Maybe Prelude.Natural
}
deriving (DescribeAggregationAuthorizations
-> DescribeAggregationAuthorizations -> Bool
(DescribeAggregationAuthorizations
-> DescribeAggregationAuthorizations -> Bool)
-> (DescribeAggregationAuthorizations
-> DescribeAggregationAuthorizations -> Bool)
-> Eq DescribeAggregationAuthorizations
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeAggregationAuthorizations
-> DescribeAggregationAuthorizations -> Bool
$c/= :: DescribeAggregationAuthorizations
-> DescribeAggregationAuthorizations -> Bool
== :: DescribeAggregationAuthorizations
-> DescribeAggregationAuthorizations -> Bool
$c== :: DescribeAggregationAuthorizations
-> DescribeAggregationAuthorizations -> Bool
Prelude.Eq, ReadPrec [DescribeAggregationAuthorizations]
ReadPrec DescribeAggregationAuthorizations
Int -> ReadS DescribeAggregationAuthorizations
ReadS [DescribeAggregationAuthorizations]
(Int -> ReadS DescribeAggregationAuthorizations)
-> ReadS [DescribeAggregationAuthorizations]
-> ReadPrec DescribeAggregationAuthorizations
-> ReadPrec [DescribeAggregationAuthorizations]
-> Read DescribeAggregationAuthorizations
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeAggregationAuthorizations]
$creadListPrec :: ReadPrec [DescribeAggregationAuthorizations]
readPrec :: ReadPrec DescribeAggregationAuthorizations
$creadPrec :: ReadPrec DescribeAggregationAuthorizations
readList :: ReadS [DescribeAggregationAuthorizations]
$creadList :: ReadS [DescribeAggregationAuthorizations]
readsPrec :: Int -> ReadS DescribeAggregationAuthorizations
$creadsPrec :: Int -> ReadS DescribeAggregationAuthorizations
Prelude.Read, Int -> DescribeAggregationAuthorizations -> ShowS
[DescribeAggregationAuthorizations] -> ShowS
DescribeAggregationAuthorizations -> String
(Int -> DescribeAggregationAuthorizations -> ShowS)
-> (DescribeAggregationAuthorizations -> String)
-> ([DescribeAggregationAuthorizations] -> ShowS)
-> Show DescribeAggregationAuthorizations
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeAggregationAuthorizations] -> ShowS
$cshowList :: [DescribeAggregationAuthorizations] -> ShowS
show :: DescribeAggregationAuthorizations -> String
$cshow :: DescribeAggregationAuthorizations -> String
showsPrec :: Int -> DescribeAggregationAuthorizations -> ShowS
$cshowsPrec :: Int -> DescribeAggregationAuthorizations -> ShowS
Prelude.Show, (forall x.
DescribeAggregationAuthorizations
-> Rep DescribeAggregationAuthorizations x)
-> (forall x.
Rep DescribeAggregationAuthorizations x
-> DescribeAggregationAuthorizations)
-> Generic DescribeAggregationAuthorizations
forall x.
Rep DescribeAggregationAuthorizations x
-> DescribeAggregationAuthorizations
forall x.
DescribeAggregationAuthorizations
-> Rep DescribeAggregationAuthorizations x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeAggregationAuthorizations x
-> DescribeAggregationAuthorizations
$cfrom :: forall x.
DescribeAggregationAuthorizations
-> Rep DescribeAggregationAuthorizations x
Prelude.Generic)
newDescribeAggregationAuthorizations ::
DescribeAggregationAuthorizations
newDescribeAggregationAuthorizations :: DescribeAggregationAuthorizations
newDescribeAggregationAuthorizations =
DescribeAggregationAuthorizations' :: Maybe Text -> Maybe Natural -> DescribeAggregationAuthorizations
DescribeAggregationAuthorizations'
{ $sel:nextToken:DescribeAggregationAuthorizations' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:limit:DescribeAggregationAuthorizations' :: Maybe Natural
limit = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
describeAggregationAuthorizations_nextToken :: Lens.Lens' DescribeAggregationAuthorizations (Prelude.Maybe Prelude.Text)
describeAggregationAuthorizations_nextToken :: (Maybe Text -> f (Maybe Text))
-> DescribeAggregationAuthorizations
-> f DescribeAggregationAuthorizations
describeAggregationAuthorizations_nextToken = (DescribeAggregationAuthorizations -> Maybe Text)
-> (DescribeAggregationAuthorizations
-> Maybe Text -> DescribeAggregationAuthorizations)
-> Lens
DescribeAggregationAuthorizations
DescribeAggregationAuthorizations
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAggregationAuthorizations' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeAggregationAuthorizations' :: DescribeAggregationAuthorizations -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeAggregationAuthorizations
s@DescribeAggregationAuthorizations' {} Maybe Text
a -> DescribeAggregationAuthorizations
s {$sel:nextToken:DescribeAggregationAuthorizations' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeAggregationAuthorizations)
describeAggregationAuthorizations_limit :: Lens.Lens' DescribeAggregationAuthorizations (Prelude.Maybe Prelude.Natural)
describeAggregationAuthorizations_limit :: (Maybe Natural -> f (Maybe Natural))
-> DescribeAggregationAuthorizations
-> f DescribeAggregationAuthorizations
describeAggregationAuthorizations_limit = (DescribeAggregationAuthorizations -> Maybe Natural)
-> (DescribeAggregationAuthorizations
-> Maybe Natural -> DescribeAggregationAuthorizations)
-> Lens
DescribeAggregationAuthorizations
DescribeAggregationAuthorizations
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAggregationAuthorizations' {Maybe Natural
limit :: Maybe Natural
$sel:limit:DescribeAggregationAuthorizations' :: DescribeAggregationAuthorizations -> Maybe Natural
limit} -> Maybe Natural
limit) (\s :: DescribeAggregationAuthorizations
s@DescribeAggregationAuthorizations' {} Maybe Natural
a -> DescribeAggregationAuthorizations
s {$sel:limit:DescribeAggregationAuthorizations' :: Maybe Natural
limit = Maybe Natural
a} :: DescribeAggregationAuthorizations)
instance
Core.AWSPager
DescribeAggregationAuthorizations
where
page :: DescribeAggregationAuthorizations
-> AWSResponse DescribeAggregationAuthorizations
-> Maybe DescribeAggregationAuthorizations
page DescribeAggregationAuthorizations
rq AWSResponse DescribeAggregationAuthorizations
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeAggregationAuthorizations
DescribeAggregationAuthorizationsResponse
rs
DescribeAggregationAuthorizationsResponse
-> Getting
(First Text) DescribeAggregationAuthorizationsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeAggregationAuthorizationsResponse
-> Const (First Text) DescribeAggregationAuthorizationsResponse
Lens' DescribeAggregationAuthorizationsResponse (Maybe Text)
describeAggregationAuthorizationsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeAggregationAuthorizationsResponse
-> Const (First Text) DescribeAggregationAuthorizationsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting
(First Text) DescribeAggregationAuthorizationsResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe DescribeAggregationAuthorizations
forall a. Maybe a
Prelude.Nothing
| Maybe [AggregationAuthorization] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeAggregationAuthorizations
DescribeAggregationAuthorizationsResponse
rs
DescribeAggregationAuthorizationsResponse
-> Getting
(First [AggregationAuthorization])
DescribeAggregationAuthorizationsResponse
[AggregationAuthorization]
-> Maybe [AggregationAuthorization]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [AggregationAuthorization]
-> Const
(First [AggregationAuthorization])
(Maybe [AggregationAuthorization]))
-> DescribeAggregationAuthorizationsResponse
-> Const
(First [AggregationAuthorization])
DescribeAggregationAuthorizationsResponse
Lens'
DescribeAggregationAuthorizationsResponse
(Maybe [AggregationAuthorization])
describeAggregationAuthorizationsResponse_aggregationAuthorizations
((Maybe [AggregationAuthorization]
-> Const
(First [AggregationAuthorization])
(Maybe [AggregationAuthorization]))
-> DescribeAggregationAuthorizationsResponse
-> Const
(First [AggregationAuthorization])
DescribeAggregationAuthorizationsResponse)
-> (([AggregationAuthorization]
-> Const
(First [AggregationAuthorization]) [AggregationAuthorization])
-> Maybe [AggregationAuthorization]
-> Const
(First [AggregationAuthorization])
(Maybe [AggregationAuthorization]))
-> Getting
(First [AggregationAuthorization])
DescribeAggregationAuthorizationsResponse
[AggregationAuthorization]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([AggregationAuthorization]
-> Const
(First [AggregationAuthorization]) [AggregationAuthorization])
-> Maybe [AggregationAuthorization]
-> Const
(First [AggregationAuthorization])
(Maybe [AggregationAuthorization])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe DescribeAggregationAuthorizations
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
DescribeAggregationAuthorizations
-> Maybe DescribeAggregationAuthorizations
forall a. a -> Maybe a
Prelude.Just (DescribeAggregationAuthorizations
-> Maybe DescribeAggregationAuthorizations)
-> DescribeAggregationAuthorizations
-> Maybe DescribeAggregationAuthorizations
forall a b. (a -> b) -> a -> b
Prelude.$
DescribeAggregationAuthorizations
rq
DescribeAggregationAuthorizations
-> (DescribeAggregationAuthorizations
-> DescribeAggregationAuthorizations)
-> DescribeAggregationAuthorizations
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> DescribeAggregationAuthorizations
-> Identity DescribeAggregationAuthorizations
Lens
DescribeAggregationAuthorizations
DescribeAggregationAuthorizations
(Maybe Text)
(Maybe Text)
describeAggregationAuthorizations_nextToken
((Maybe Text -> Identity (Maybe Text))
-> DescribeAggregationAuthorizations
-> Identity DescribeAggregationAuthorizations)
-> Maybe Text
-> DescribeAggregationAuthorizations
-> DescribeAggregationAuthorizations
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse DescribeAggregationAuthorizations
DescribeAggregationAuthorizationsResponse
rs
DescribeAggregationAuthorizationsResponse
-> Getting
(First Text) DescribeAggregationAuthorizationsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeAggregationAuthorizationsResponse
-> Const (First Text) DescribeAggregationAuthorizationsResponse
Lens' DescribeAggregationAuthorizationsResponse (Maybe Text)
describeAggregationAuthorizationsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeAggregationAuthorizationsResponse
-> Const (First Text) DescribeAggregationAuthorizationsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting
(First Text) DescribeAggregationAuthorizationsResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
instance
Core.AWSRequest
DescribeAggregationAuthorizations
where
type
AWSResponse DescribeAggregationAuthorizations =
DescribeAggregationAuthorizationsResponse
request :: DescribeAggregationAuthorizations
-> Request DescribeAggregationAuthorizations
request = Service
-> DescribeAggregationAuthorizations
-> Request DescribeAggregationAuthorizations
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeAggregationAuthorizations
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse DescribeAggregationAuthorizations)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeAggregationAuthorizations))
-> Logger
-> Service
-> Proxy DescribeAggregationAuthorizations
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse DescribeAggregationAuthorizations)))
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 [AggregationAuthorization]
-> Maybe Text -> Int -> DescribeAggregationAuthorizationsResponse
DescribeAggregationAuthorizationsResponse'
(Maybe [AggregationAuthorization]
-> Maybe Text -> Int -> DescribeAggregationAuthorizationsResponse)
-> Either String (Maybe [AggregationAuthorization])
-> Either
String
(Maybe Text -> Int -> DescribeAggregationAuthorizationsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object
-> Text -> Either String (Maybe (Maybe [AggregationAuthorization]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"AggregationAuthorizations"
Either String (Maybe (Maybe [AggregationAuthorization]))
-> Maybe [AggregationAuthorization]
-> Either String (Maybe [AggregationAuthorization])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [AggregationAuthorization]
forall a. Monoid a => a
Prelude.mempty
)
Either
String
(Maybe Text -> Int -> DescribeAggregationAuthorizationsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> DescribeAggregationAuthorizationsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"NextToken")
Either String (Int -> DescribeAggregationAuthorizationsResponse)
-> Either String Int
-> Either String DescribeAggregationAuthorizationsResponse
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
DescribeAggregationAuthorizations
instance
Prelude.NFData
DescribeAggregationAuthorizations
instance
Core.ToHeaders
DescribeAggregationAuthorizations
where
toHeaders :: DescribeAggregationAuthorizations -> ResponseHeaders
toHeaders =
ResponseHeaders
-> DescribeAggregationAuthorizations -> 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.DescribeAggregationAuthorizations" ::
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
DescribeAggregationAuthorizations
where
toJSON :: DescribeAggregationAuthorizations -> Value
toJSON DescribeAggregationAuthorizations' {Maybe Natural
Maybe Text
limit :: Maybe Natural
nextToken :: Maybe Text
$sel:limit:DescribeAggregationAuthorizations' :: DescribeAggregationAuthorizations -> Maybe Natural
$sel:nextToken:DescribeAggregationAuthorizations' :: DescribeAggregationAuthorizations -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"NextToken" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken,
(Text
"Limit" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
limit
]
)
instance
Core.ToPath
DescribeAggregationAuthorizations
where
toPath :: DescribeAggregationAuthorizations -> ByteString
toPath = ByteString -> DescribeAggregationAuthorizations -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance
Core.ToQuery
DescribeAggregationAuthorizations
where
toQuery :: DescribeAggregationAuthorizations -> QueryString
toQuery = QueryString -> DescribeAggregationAuthorizations -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeAggregationAuthorizationsResponse = DescribeAggregationAuthorizationsResponse'
{
DescribeAggregationAuthorizationsResponse
-> Maybe [AggregationAuthorization]
aggregationAuthorizations :: Prelude.Maybe [AggregationAuthorization],
DescribeAggregationAuthorizationsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
DescribeAggregationAuthorizationsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeAggregationAuthorizationsResponse
-> DescribeAggregationAuthorizationsResponse -> Bool
(DescribeAggregationAuthorizationsResponse
-> DescribeAggregationAuthorizationsResponse -> Bool)
-> (DescribeAggregationAuthorizationsResponse
-> DescribeAggregationAuthorizationsResponse -> Bool)
-> Eq DescribeAggregationAuthorizationsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeAggregationAuthorizationsResponse
-> DescribeAggregationAuthorizationsResponse -> Bool
$c/= :: DescribeAggregationAuthorizationsResponse
-> DescribeAggregationAuthorizationsResponse -> Bool
== :: DescribeAggregationAuthorizationsResponse
-> DescribeAggregationAuthorizationsResponse -> Bool
$c== :: DescribeAggregationAuthorizationsResponse
-> DescribeAggregationAuthorizationsResponse -> Bool
Prelude.Eq, ReadPrec [DescribeAggregationAuthorizationsResponse]
ReadPrec DescribeAggregationAuthorizationsResponse
Int -> ReadS DescribeAggregationAuthorizationsResponse
ReadS [DescribeAggregationAuthorizationsResponse]
(Int -> ReadS DescribeAggregationAuthorizationsResponse)
-> ReadS [DescribeAggregationAuthorizationsResponse]
-> ReadPrec DescribeAggregationAuthorizationsResponse
-> ReadPrec [DescribeAggregationAuthorizationsResponse]
-> Read DescribeAggregationAuthorizationsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeAggregationAuthorizationsResponse]
$creadListPrec :: ReadPrec [DescribeAggregationAuthorizationsResponse]
readPrec :: ReadPrec DescribeAggregationAuthorizationsResponse
$creadPrec :: ReadPrec DescribeAggregationAuthorizationsResponse
readList :: ReadS [DescribeAggregationAuthorizationsResponse]
$creadList :: ReadS [DescribeAggregationAuthorizationsResponse]
readsPrec :: Int -> ReadS DescribeAggregationAuthorizationsResponse
$creadsPrec :: Int -> ReadS DescribeAggregationAuthorizationsResponse
Prelude.Read, Int -> DescribeAggregationAuthorizationsResponse -> ShowS
[DescribeAggregationAuthorizationsResponse] -> ShowS
DescribeAggregationAuthorizationsResponse -> String
(Int -> DescribeAggregationAuthorizationsResponse -> ShowS)
-> (DescribeAggregationAuthorizationsResponse -> String)
-> ([DescribeAggregationAuthorizationsResponse] -> ShowS)
-> Show DescribeAggregationAuthorizationsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeAggregationAuthorizationsResponse] -> ShowS
$cshowList :: [DescribeAggregationAuthorizationsResponse] -> ShowS
show :: DescribeAggregationAuthorizationsResponse -> String
$cshow :: DescribeAggregationAuthorizationsResponse -> String
showsPrec :: Int -> DescribeAggregationAuthorizationsResponse -> ShowS
$cshowsPrec :: Int -> DescribeAggregationAuthorizationsResponse -> ShowS
Prelude.Show, (forall x.
DescribeAggregationAuthorizationsResponse
-> Rep DescribeAggregationAuthorizationsResponse x)
-> (forall x.
Rep DescribeAggregationAuthorizationsResponse x
-> DescribeAggregationAuthorizationsResponse)
-> Generic DescribeAggregationAuthorizationsResponse
forall x.
Rep DescribeAggregationAuthorizationsResponse x
-> DescribeAggregationAuthorizationsResponse
forall x.
DescribeAggregationAuthorizationsResponse
-> Rep DescribeAggregationAuthorizationsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeAggregationAuthorizationsResponse x
-> DescribeAggregationAuthorizationsResponse
$cfrom :: forall x.
DescribeAggregationAuthorizationsResponse
-> Rep DescribeAggregationAuthorizationsResponse x
Prelude.Generic)
newDescribeAggregationAuthorizationsResponse ::
Prelude.Int ->
DescribeAggregationAuthorizationsResponse
newDescribeAggregationAuthorizationsResponse :: Int -> DescribeAggregationAuthorizationsResponse
newDescribeAggregationAuthorizationsResponse
Int
pHttpStatus_ =
DescribeAggregationAuthorizationsResponse' :: Maybe [AggregationAuthorization]
-> Maybe Text -> Int -> DescribeAggregationAuthorizationsResponse
DescribeAggregationAuthorizationsResponse'
{ $sel:aggregationAuthorizations:DescribeAggregationAuthorizationsResponse' :: Maybe [AggregationAuthorization]
aggregationAuthorizations =
Maybe [AggregationAuthorization]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:DescribeAggregationAuthorizationsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeAggregationAuthorizationsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeAggregationAuthorizationsResponse_aggregationAuthorizations :: Lens.Lens' DescribeAggregationAuthorizationsResponse (Prelude.Maybe [AggregationAuthorization])
describeAggregationAuthorizationsResponse_aggregationAuthorizations :: (Maybe [AggregationAuthorization]
-> f (Maybe [AggregationAuthorization]))
-> DescribeAggregationAuthorizationsResponse
-> f DescribeAggregationAuthorizationsResponse
describeAggregationAuthorizationsResponse_aggregationAuthorizations = (DescribeAggregationAuthorizationsResponse
-> Maybe [AggregationAuthorization])
-> (DescribeAggregationAuthorizationsResponse
-> Maybe [AggregationAuthorization]
-> DescribeAggregationAuthorizationsResponse)
-> Lens'
DescribeAggregationAuthorizationsResponse
(Maybe [AggregationAuthorization])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAggregationAuthorizationsResponse' {Maybe [AggregationAuthorization]
aggregationAuthorizations :: Maybe [AggregationAuthorization]
$sel:aggregationAuthorizations:DescribeAggregationAuthorizationsResponse' :: DescribeAggregationAuthorizationsResponse
-> Maybe [AggregationAuthorization]
aggregationAuthorizations} -> Maybe [AggregationAuthorization]
aggregationAuthorizations) (\s :: DescribeAggregationAuthorizationsResponse
s@DescribeAggregationAuthorizationsResponse' {} Maybe [AggregationAuthorization]
a -> DescribeAggregationAuthorizationsResponse
s {$sel:aggregationAuthorizations:DescribeAggregationAuthorizationsResponse' :: Maybe [AggregationAuthorization]
aggregationAuthorizations = Maybe [AggregationAuthorization]
a} :: DescribeAggregationAuthorizationsResponse) ((Maybe [AggregationAuthorization]
-> f (Maybe [AggregationAuthorization]))
-> DescribeAggregationAuthorizationsResponse
-> f DescribeAggregationAuthorizationsResponse)
-> ((Maybe [AggregationAuthorization]
-> f (Maybe [AggregationAuthorization]))
-> Maybe [AggregationAuthorization]
-> f (Maybe [AggregationAuthorization]))
-> (Maybe [AggregationAuthorization]
-> f (Maybe [AggregationAuthorization]))
-> DescribeAggregationAuthorizationsResponse
-> f DescribeAggregationAuthorizationsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[AggregationAuthorization]
[AggregationAuthorization]
[AggregationAuthorization]
[AggregationAuthorization]
-> Iso
(Maybe [AggregationAuthorization])
(Maybe [AggregationAuthorization])
(Maybe [AggregationAuthorization])
(Maybe [AggregationAuthorization])
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
[AggregationAuthorization]
[AggregationAuthorization]
[AggregationAuthorization]
[AggregationAuthorization]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeAggregationAuthorizationsResponse_nextToken :: Lens.Lens' DescribeAggregationAuthorizationsResponse (Prelude.Maybe Prelude.Text)
describeAggregationAuthorizationsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> DescribeAggregationAuthorizationsResponse
-> f DescribeAggregationAuthorizationsResponse
describeAggregationAuthorizationsResponse_nextToken = (DescribeAggregationAuthorizationsResponse -> Maybe Text)
-> (DescribeAggregationAuthorizationsResponse
-> Maybe Text -> DescribeAggregationAuthorizationsResponse)
-> Lens' DescribeAggregationAuthorizationsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAggregationAuthorizationsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeAggregationAuthorizationsResponse' :: DescribeAggregationAuthorizationsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeAggregationAuthorizationsResponse
s@DescribeAggregationAuthorizationsResponse' {} Maybe Text
a -> DescribeAggregationAuthorizationsResponse
s {$sel:nextToken:DescribeAggregationAuthorizationsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeAggregationAuthorizationsResponse)
describeAggregationAuthorizationsResponse_httpStatus :: Lens.Lens' DescribeAggregationAuthorizationsResponse Prelude.Int
describeAggregationAuthorizationsResponse_httpStatus :: (Int -> f Int)
-> DescribeAggregationAuthorizationsResponse
-> f DescribeAggregationAuthorizationsResponse
describeAggregationAuthorizationsResponse_httpStatus = (DescribeAggregationAuthorizationsResponse -> Int)
-> (DescribeAggregationAuthorizationsResponse
-> Int -> DescribeAggregationAuthorizationsResponse)
-> Lens
DescribeAggregationAuthorizationsResponse
DescribeAggregationAuthorizationsResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAggregationAuthorizationsResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeAggregationAuthorizationsResponse' :: DescribeAggregationAuthorizationsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeAggregationAuthorizationsResponse
s@DescribeAggregationAuthorizationsResponse' {} Int
a -> DescribeAggregationAuthorizationsResponse
s {$sel:httpStatus:DescribeAggregationAuthorizationsResponse' :: Int
httpStatus = Int
a} :: DescribeAggregationAuthorizationsResponse)
instance
Prelude.NFData
DescribeAggregationAuthorizationsResponse