{-# 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.GetAggregateConformancePackComplianceSummary
(
GetAggregateConformancePackComplianceSummary (..),
newGetAggregateConformancePackComplianceSummary,
getAggregateConformancePackComplianceSummary_filters,
getAggregateConformancePackComplianceSummary_nextToken,
getAggregateConformancePackComplianceSummary_limit,
getAggregateConformancePackComplianceSummary_groupByKey,
getAggregateConformancePackComplianceSummary_configurationAggregatorName,
GetAggregateConformancePackComplianceSummaryResponse (..),
newGetAggregateConformancePackComplianceSummaryResponse,
getAggregateConformancePackComplianceSummaryResponse_nextToken,
getAggregateConformancePackComplianceSummaryResponse_aggregateConformancePackComplianceSummaries,
getAggregateConformancePackComplianceSummaryResponse_groupByKey,
getAggregateConformancePackComplianceSummaryResponse_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 GetAggregateConformancePackComplianceSummary = GetAggregateConformancePackComplianceSummary'
{
GetAggregateConformancePackComplianceSummary
-> Maybe AggregateConformancePackComplianceSummaryFilters
filters :: Prelude.Maybe AggregateConformancePackComplianceSummaryFilters,
GetAggregateConformancePackComplianceSummary -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetAggregateConformancePackComplianceSummary -> Maybe Natural
limit :: Prelude.Maybe Prelude.Natural,
GetAggregateConformancePackComplianceSummary
-> Maybe AggregateConformancePackComplianceSummaryGroupKey
groupByKey :: Prelude.Maybe AggregateConformancePackComplianceSummaryGroupKey,
GetAggregateConformancePackComplianceSummary -> Text
configurationAggregatorName :: Prelude.Text
}
deriving (GetAggregateConformancePackComplianceSummary
-> GetAggregateConformancePackComplianceSummary -> Bool
(GetAggregateConformancePackComplianceSummary
-> GetAggregateConformancePackComplianceSummary -> Bool)
-> (GetAggregateConformancePackComplianceSummary
-> GetAggregateConformancePackComplianceSummary -> Bool)
-> Eq GetAggregateConformancePackComplianceSummary
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetAggregateConformancePackComplianceSummary
-> GetAggregateConformancePackComplianceSummary -> Bool
$c/= :: GetAggregateConformancePackComplianceSummary
-> GetAggregateConformancePackComplianceSummary -> Bool
== :: GetAggregateConformancePackComplianceSummary
-> GetAggregateConformancePackComplianceSummary -> Bool
$c== :: GetAggregateConformancePackComplianceSummary
-> GetAggregateConformancePackComplianceSummary -> Bool
Prelude.Eq, ReadPrec [GetAggregateConformancePackComplianceSummary]
ReadPrec GetAggregateConformancePackComplianceSummary
Int -> ReadS GetAggregateConformancePackComplianceSummary
ReadS [GetAggregateConformancePackComplianceSummary]
(Int -> ReadS GetAggregateConformancePackComplianceSummary)
-> ReadS [GetAggregateConformancePackComplianceSummary]
-> ReadPrec GetAggregateConformancePackComplianceSummary
-> ReadPrec [GetAggregateConformancePackComplianceSummary]
-> Read GetAggregateConformancePackComplianceSummary
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetAggregateConformancePackComplianceSummary]
$creadListPrec :: ReadPrec [GetAggregateConformancePackComplianceSummary]
readPrec :: ReadPrec GetAggregateConformancePackComplianceSummary
$creadPrec :: ReadPrec GetAggregateConformancePackComplianceSummary
readList :: ReadS [GetAggregateConformancePackComplianceSummary]
$creadList :: ReadS [GetAggregateConformancePackComplianceSummary]
readsPrec :: Int -> ReadS GetAggregateConformancePackComplianceSummary
$creadsPrec :: Int -> ReadS GetAggregateConformancePackComplianceSummary
Prelude.Read, Int -> GetAggregateConformancePackComplianceSummary -> ShowS
[GetAggregateConformancePackComplianceSummary] -> ShowS
GetAggregateConformancePackComplianceSummary -> String
(Int -> GetAggregateConformancePackComplianceSummary -> ShowS)
-> (GetAggregateConformancePackComplianceSummary -> String)
-> ([GetAggregateConformancePackComplianceSummary] -> ShowS)
-> Show GetAggregateConformancePackComplianceSummary
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetAggregateConformancePackComplianceSummary] -> ShowS
$cshowList :: [GetAggregateConformancePackComplianceSummary] -> ShowS
show :: GetAggregateConformancePackComplianceSummary -> String
$cshow :: GetAggregateConformancePackComplianceSummary -> String
showsPrec :: Int -> GetAggregateConformancePackComplianceSummary -> ShowS
$cshowsPrec :: Int -> GetAggregateConformancePackComplianceSummary -> ShowS
Prelude.Show, (forall x.
GetAggregateConformancePackComplianceSummary
-> Rep GetAggregateConformancePackComplianceSummary x)
-> (forall x.
Rep GetAggregateConformancePackComplianceSummary x
-> GetAggregateConformancePackComplianceSummary)
-> Generic GetAggregateConformancePackComplianceSummary
forall x.
Rep GetAggregateConformancePackComplianceSummary x
-> GetAggregateConformancePackComplianceSummary
forall x.
GetAggregateConformancePackComplianceSummary
-> Rep GetAggregateConformancePackComplianceSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetAggregateConformancePackComplianceSummary x
-> GetAggregateConformancePackComplianceSummary
$cfrom :: forall x.
GetAggregateConformancePackComplianceSummary
-> Rep GetAggregateConformancePackComplianceSummary x
Prelude.Generic)
newGetAggregateConformancePackComplianceSummary ::
Prelude.Text ->
GetAggregateConformancePackComplianceSummary
newGetAggregateConformancePackComplianceSummary :: Text -> GetAggregateConformancePackComplianceSummary
newGetAggregateConformancePackComplianceSummary
Text
pConfigurationAggregatorName_ =
GetAggregateConformancePackComplianceSummary' :: Maybe AggregateConformancePackComplianceSummaryFilters
-> Maybe Text
-> Maybe Natural
-> Maybe AggregateConformancePackComplianceSummaryGroupKey
-> Text
-> GetAggregateConformancePackComplianceSummary
GetAggregateConformancePackComplianceSummary'
{ $sel:filters:GetAggregateConformancePackComplianceSummary' :: Maybe AggregateConformancePackComplianceSummaryFilters
filters =
Maybe AggregateConformancePackComplianceSummaryFilters
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:GetAggregateConformancePackComplianceSummary' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:limit:GetAggregateConformancePackComplianceSummary' :: Maybe Natural
limit = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:groupByKey:GetAggregateConformancePackComplianceSummary' :: Maybe AggregateConformancePackComplianceSummaryGroupKey
groupByKey = Maybe AggregateConformancePackComplianceSummaryGroupKey
forall a. Maybe a
Prelude.Nothing,
$sel:configurationAggregatorName:GetAggregateConformancePackComplianceSummary' :: Text
configurationAggregatorName =
Text
pConfigurationAggregatorName_
}
getAggregateConformancePackComplianceSummary_filters :: Lens.Lens' GetAggregateConformancePackComplianceSummary (Prelude.Maybe AggregateConformancePackComplianceSummaryFilters)
getAggregateConformancePackComplianceSummary_filters :: (Maybe AggregateConformancePackComplianceSummaryFilters
-> f (Maybe AggregateConformancePackComplianceSummaryFilters))
-> GetAggregateConformancePackComplianceSummary
-> f GetAggregateConformancePackComplianceSummary
getAggregateConformancePackComplianceSummary_filters = (GetAggregateConformancePackComplianceSummary
-> Maybe AggregateConformancePackComplianceSummaryFilters)
-> (GetAggregateConformancePackComplianceSummary
-> Maybe AggregateConformancePackComplianceSummaryFilters
-> GetAggregateConformancePackComplianceSummary)
-> Lens
GetAggregateConformancePackComplianceSummary
GetAggregateConformancePackComplianceSummary
(Maybe AggregateConformancePackComplianceSummaryFilters)
(Maybe AggregateConformancePackComplianceSummaryFilters)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetAggregateConformancePackComplianceSummary' {Maybe AggregateConformancePackComplianceSummaryFilters
filters :: Maybe AggregateConformancePackComplianceSummaryFilters
$sel:filters:GetAggregateConformancePackComplianceSummary' :: GetAggregateConformancePackComplianceSummary
-> Maybe AggregateConformancePackComplianceSummaryFilters
filters} -> Maybe AggregateConformancePackComplianceSummaryFilters
filters) (\s :: GetAggregateConformancePackComplianceSummary
s@GetAggregateConformancePackComplianceSummary' {} Maybe AggregateConformancePackComplianceSummaryFilters
a -> GetAggregateConformancePackComplianceSummary
s {$sel:filters:GetAggregateConformancePackComplianceSummary' :: Maybe AggregateConformancePackComplianceSummaryFilters
filters = Maybe AggregateConformancePackComplianceSummaryFilters
a} :: GetAggregateConformancePackComplianceSummary)
getAggregateConformancePackComplianceSummary_nextToken :: Lens.Lens' GetAggregateConformancePackComplianceSummary (Prelude.Maybe Prelude.Text)
getAggregateConformancePackComplianceSummary_nextToken :: (Maybe Text -> f (Maybe Text))
-> GetAggregateConformancePackComplianceSummary
-> f GetAggregateConformancePackComplianceSummary
getAggregateConformancePackComplianceSummary_nextToken = (GetAggregateConformancePackComplianceSummary -> Maybe Text)
-> (GetAggregateConformancePackComplianceSummary
-> Maybe Text -> GetAggregateConformancePackComplianceSummary)
-> Lens
GetAggregateConformancePackComplianceSummary
GetAggregateConformancePackComplianceSummary
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetAggregateConformancePackComplianceSummary' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetAggregateConformancePackComplianceSummary' :: GetAggregateConformancePackComplianceSummary -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetAggregateConformancePackComplianceSummary
s@GetAggregateConformancePackComplianceSummary' {} Maybe Text
a -> GetAggregateConformancePackComplianceSummary
s {$sel:nextToken:GetAggregateConformancePackComplianceSummary' :: Maybe Text
nextToken = Maybe Text
a} :: GetAggregateConformancePackComplianceSummary)
getAggregateConformancePackComplianceSummary_limit :: Lens.Lens' GetAggregateConformancePackComplianceSummary (Prelude.Maybe Prelude.Natural)
getAggregateConformancePackComplianceSummary_limit :: (Maybe Natural -> f (Maybe Natural))
-> GetAggregateConformancePackComplianceSummary
-> f GetAggregateConformancePackComplianceSummary
getAggregateConformancePackComplianceSummary_limit = (GetAggregateConformancePackComplianceSummary -> Maybe Natural)
-> (GetAggregateConformancePackComplianceSummary
-> Maybe Natural -> GetAggregateConformancePackComplianceSummary)
-> Lens
GetAggregateConformancePackComplianceSummary
GetAggregateConformancePackComplianceSummary
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetAggregateConformancePackComplianceSummary' {Maybe Natural
limit :: Maybe Natural
$sel:limit:GetAggregateConformancePackComplianceSummary' :: GetAggregateConformancePackComplianceSummary -> Maybe Natural
limit} -> Maybe Natural
limit) (\s :: GetAggregateConformancePackComplianceSummary
s@GetAggregateConformancePackComplianceSummary' {} Maybe Natural
a -> GetAggregateConformancePackComplianceSummary
s {$sel:limit:GetAggregateConformancePackComplianceSummary' :: Maybe Natural
limit = Maybe Natural
a} :: GetAggregateConformancePackComplianceSummary)
getAggregateConformancePackComplianceSummary_groupByKey :: Lens.Lens' GetAggregateConformancePackComplianceSummary (Prelude.Maybe AggregateConformancePackComplianceSummaryGroupKey)
getAggregateConformancePackComplianceSummary_groupByKey :: (Maybe AggregateConformancePackComplianceSummaryGroupKey
-> f (Maybe AggregateConformancePackComplianceSummaryGroupKey))
-> GetAggregateConformancePackComplianceSummary
-> f GetAggregateConformancePackComplianceSummary
getAggregateConformancePackComplianceSummary_groupByKey = (GetAggregateConformancePackComplianceSummary
-> Maybe AggregateConformancePackComplianceSummaryGroupKey)
-> (GetAggregateConformancePackComplianceSummary
-> Maybe AggregateConformancePackComplianceSummaryGroupKey
-> GetAggregateConformancePackComplianceSummary)
-> Lens
GetAggregateConformancePackComplianceSummary
GetAggregateConformancePackComplianceSummary
(Maybe AggregateConformancePackComplianceSummaryGroupKey)
(Maybe AggregateConformancePackComplianceSummaryGroupKey)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetAggregateConformancePackComplianceSummary' {Maybe AggregateConformancePackComplianceSummaryGroupKey
groupByKey :: Maybe AggregateConformancePackComplianceSummaryGroupKey
$sel:groupByKey:GetAggregateConformancePackComplianceSummary' :: GetAggregateConformancePackComplianceSummary
-> Maybe AggregateConformancePackComplianceSummaryGroupKey
groupByKey} -> Maybe AggregateConformancePackComplianceSummaryGroupKey
groupByKey) (\s :: GetAggregateConformancePackComplianceSummary
s@GetAggregateConformancePackComplianceSummary' {} Maybe AggregateConformancePackComplianceSummaryGroupKey
a -> GetAggregateConformancePackComplianceSummary
s {$sel:groupByKey:GetAggregateConformancePackComplianceSummary' :: Maybe AggregateConformancePackComplianceSummaryGroupKey
groupByKey = Maybe AggregateConformancePackComplianceSummaryGroupKey
a} :: GetAggregateConformancePackComplianceSummary)
getAggregateConformancePackComplianceSummary_configurationAggregatorName :: Lens.Lens' GetAggregateConformancePackComplianceSummary Prelude.Text
getAggregateConformancePackComplianceSummary_configurationAggregatorName :: (Text -> f Text)
-> GetAggregateConformancePackComplianceSummary
-> f GetAggregateConformancePackComplianceSummary
getAggregateConformancePackComplianceSummary_configurationAggregatorName = (GetAggregateConformancePackComplianceSummary -> Text)
-> (GetAggregateConformancePackComplianceSummary
-> Text -> GetAggregateConformancePackComplianceSummary)
-> Lens
GetAggregateConformancePackComplianceSummary
GetAggregateConformancePackComplianceSummary
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetAggregateConformancePackComplianceSummary' {Text
configurationAggregatorName :: Text
$sel:configurationAggregatorName:GetAggregateConformancePackComplianceSummary' :: GetAggregateConformancePackComplianceSummary -> Text
configurationAggregatorName} -> Text
configurationAggregatorName) (\s :: GetAggregateConformancePackComplianceSummary
s@GetAggregateConformancePackComplianceSummary' {} Text
a -> GetAggregateConformancePackComplianceSummary
s {$sel:configurationAggregatorName:GetAggregateConformancePackComplianceSummary' :: Text
configurationAggregatorName = Text
a} :: GetAggregateConformancePackComplianceSummary)
instance
Core.AWSRequest
GetAggregateConformancePackComplianceSummary
where
type
AWSResponse
GetAggregateConformancePackComplianceSummary =
GetAggregateConformancePackComplianceSummaryResponse
request :: GetAggregateConformancePackComplianceSummary
-> Request GetAggregateConformancePackComplianceSummary
request = Service
-> GetAggregateConformancePackComplianceSummary
-> Request GetAggregateConformancePackComplianceSummary
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy GetAggregateConformancePackComplianceSummary
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse GetAggregateConformancePackComplianceSummary)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either
String (AWSResponse GetAggregateConformancePackComplianceSummary))
-> Logger
-> Service
-> Proxy GetAggregateConformancePackComplianceSummary
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse GetAggregateConformancePackComplianceSummary)))
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 Text
-> Maybe [AggregateConformancePackComplianceSummary]
-> Maybe Text
-> Int
-> GetAggregateConformancePackComplianceSummaryResponse
GetAggregateConformancePackComplianceSummaryResponse'
(Maybe Text
-> Maybe [AggregateConformancePackComplianceSummary]
-> Maybe Text
-> Int
-> GetAggregateConformancePackComplianceSummaryResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [AggregateConformancePackComplianceSummary]
-> Maybe Text
-> Int
-> GetAggregateConformancePackComplianceSummaryResponse)
forall (f :: * -> *) a b. Functor 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
(Maybe [AggregateConformancePackComplianceSummary]
-> Maybe Text
-> Int
-> GetAggregateConformancePackComplianceSummaryResponse)
-> Either
String (Maybe [AggregateConformancePackComplianceSummary])
-> Either
String
(Maybe Text
-> Int -> GetAggregateConformancePackComplianceSummaryResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
Object
-> Text
-> Either
String (Maybe (Maybe [AggregateConformancePackComplianceSummary]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"AggregateConformancePackComplianceSummaries"
Either
String (Maybe (Maybe [AggregateConformancePackComplianceSummary]))
-> Maybe [AggregateConformancePackComplianceSummary]
-> Either
String (Maybe [AggregateConformancePackComplianceSummary])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [AggregateConformancePackComplianceSummary]
forall a. Monoid a => a
Prelude.mempty
)
Either
String
(Maybe Text
-> Int -> GetAggregateConformancePackComplianceSummaryResponse)
-> Either String (Maybe Text)
-> Either
String
(Int -> GetAggregateConformancePackComplianceSummaryResponse)
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
"GroupByKey")
Either
String
(Int -> GetAggregateConformancePackComplianceSummaryResponse)
-> Either String Int
-> Either
String GetAggregateConformancePackComplianceSummaryResponse
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
GetAggregateConformancePackComplianceSummary
instance
Prelude.NFData
GetAggregateConformancePackComplianceSummary
instance
Core.ToHeaders
GetAggregateConformancePackComplianceSummary
where
toHeaders :: GetAggregateConformancePackComplianceSummary -> ResponseHeaders
toHeaders =
ResponseHeaders
-> GetAggregateConformancePackComplianceSummary -> 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.GetAggregateConformancePackComplianceSummary" ::
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
GetAggregateConformancePackComplianceSummary
where
toJSON :: GetAggregateConformancePackComplianceSummary -> Value
toJSON
GetAggregateConformancePackComplianceSummary' {Maybe Natural
Maybe Text
Maybe AggregateConformancePackComplianceSummaryFilters
Maybe AggregateConformancePackComplianceSummaryGroupKey
Text
configurationAggregatorName :: Text
groupByKey :: Maybe AggregateConformancePackComplianceSummaryGroupKey
limit :: Maybe Natural
nextToken :: Maybe Text
filters :: Maybe AggregateConformancePackComplianceSummaryFilters
$sel:configurationAggregatorName:GetAggregateConformancePackComplianceSummary' :: GetAggregateConformancePackComplianceSummary -> Text
$sel:groupByKey:GetAggregateConformancePackComplianceSummary' :: GetAggregateConformancePackComplianceSummary
-> Maybe AggregateConformancePackComplianceSummaryGroupKey
$sel:limit:GetAggregateConformancePackComplianceSummary' :: GetAggregateConformancePackComplianceSummary -> Maybe Natural
$sel:nextToken:GetAggregateConformancePackComplianceSummary' :: GetAggregateConformancePackComplianceSummary -> Maybe Text
$sel:filters:GetAggregateConformancePackComplianceSummary' :: GetAggregateConformancePackComplianceSummary
-> Maybe AggregateConformancePackComplianceSummaryFilters
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"Filters" Text -> AggregateConformancePackComplianceSummaryFilters -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (AggregateConformancePackComplianceSummaryFilters -> Pair)
-> Maybe AggregateConformancePackComplianceSummaryFilters
-> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AggregateConformancePackComplianceSummaryFilters
filters,
(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,
(Text
"GroupByKey" Text -> AggregateConformancePackComplianceSummaryGroupKey -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (AggregateConformancePackComplianceSummaryGroupKey -> Pair)
-> Maybe AggregateConformancePackComplianceSummaryGroupKey
-> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AggregateConformancePackComplianceSummaryGroupKey
groupByKey,
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
GetAggregateConformancePackComplianceSummary
where
toPath :: GetAggregateConformancePackComplianceSummary -> ByteString
toPath = ByteString
-> GetAggregateConformancePackComplianceSummary -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance
Core.ToQuery
GetAggregateConformancePackComplianceSummary
where
toQuery :: GetAggregateConformancePackComplianceSummary -> QueryString
toQuery = QueryString
-> GetAggregateConformancePackComplianceSummary -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data GetAggregateConformancePackComplianceSummaryResponse = GetAggregateConformancePackComplianceSummaryResponse'
{
GetAggregateConformancePackComplianceSummaryResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetAggregateConformancePackComplianceSummaryResponse
-> Maybe [AggregateConformancePackComplianceSummary]
aggregateConformancePackComplianceSummaries :: Prelude.Maybe [AggregateConformancePackComplianceSummary],
GetAggregateConformancePackComplianceSummaryResponse -> Maybe Text
groupByKey :: Prelude.Maybe Prelude.Text,
GetAggregateConformancePackComplianceSummaryResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetAggregateConformancePackComplianceSummaryResponse
-> GetAggregateConformancePackComplianceSummaryResponse -> Bool
(GetAggregateConformancePackComplianceSummaryResponse
-> GetAggregateConformancePackComplianceSummaryResponse -> Bool)
-> (GetAggregateConformancePackComplianceSummaryResponse
-> GetAggregateConformancePackComplianceSummaryResponse -> Bool)
-> Eq GetAggregateConformancePackComplianceSummaryResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetAggregateConformancePackComplianceSummaryResponse
-> GetAggregateConformancePackComplianceSummaryResponse -> Bool
$c/= :: GetAggregateConformancePackComplianceSummaryResponse
-> GetAggregateConformancePackComplianceSummaryResponse -> Bool
== :: GetAggregateConformancePackComplianceSummaryResponse
-> GetAggregateConformancePackComplianceSummaryResponse -> Bool
$c== :: GetAggregateConformancePackComplianceSummaryResponse
-> GetAggregateConformancePackComplianceSummaryResponse -> Bool
Prelude.Eq, ReadPrec [GetAggregateConformancePackComplianceSummaryResponse]
ReadPrec GetAggregateConformancePackComplianceSummaryResponse
Int -> ReadS GetAggregateConformancePackComplianceSummaryResponse
ReadS [GetAggregateConformancePackComplianceSummaryResponse]
(Int -> ReadS GetAggregateConformancePackComplianceSummaryResponse)
-> ReadS [GetAggregateConformancePackComplianceSummaryResponse]
-> ReadPrec GetAggregateConformancePackComplianceSummaryResponse
-> ReadPrec [GetAggregateConformancePackComplianceSummaryResponse]
-> Read GetAggregateConformancePackComplianceSummaryResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetAggregateConformancePackComplianceSummaryResponse]
$creadListPrec :: ReadPrec [GetAggregateConformancePackComplianceSummaryResponse]
readPrec :: ReadPrec GetAggregateConformancePackComplianceSummaryResponse
$creadPrec :: ReadPrec GetAggregateConformancePackComplianceSummaryResponse
readList :: ReadS [GetAggregateConformancePackComplianceSummaryResponse]
$creadList :: ReadS [GetAggregateConformancePackComplianceSummaryResponse]
readsPrec :: Int -> ReadS GetAggregateConformancePackComplianceSummaryResponse
$creadsPrec :: Int -> ReadS GetAggregateConformancePackComplianceSummaryResponse
Prelude.Read, Int
-> GetAggregateConformancePackComplianceSummaryResponse -> ShowS
[GetAggregateConformancePackComplianceSummaryResponse] -> ShowS
GetAggregateConformancePackComplianceSummaryResponse -> String
(Int
-> GetAggregateConformancePackComplianceSummaryResponse -> ShowS)
-> (GetAggregateConformancePackComplianceSummaryResponse -> String)
-> ([GetAggregateConformancePackComplianceSummaryResponse]
-> ShowS)
-> Show GetAggregateConformancePackComplianceSummaryResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetAggregateConformancePackComplianceSummaryResponse] -> ShowS
$cshowList :: [GetAggregateConformancePackComplianceSummaryResponse] -> ShowS
show :: GetAggregateConformancePackComplianceSummaryResponse -> String
$cshow :: GetAggregateConformancePackComplianceSummaryResponse -> String
showsPrec :: Int
-> GetAggregateConformancePackComplianceSummaryResponse -> ShowS
$cshowsPrec :: Int
-> GetAggregateConformancePackComplianceSummaryResponse -> ShowS
Prelude.Show, (forall x.
GetAggregateConformancePackComplianceSummaryResponse
-> Rep GetAggregateConformancePackComplianceSummaryResponse x)
-> (forall x.
Rep GetAggregateConformancePackComplianceSummaryResponse x
-> GetAggregateConformancePackComplianceSummaryResponse)
-> Generic GetAggregateConformancePackComplianceSummaryResponse
forall x.
Rep GetAggregateConformancePackComplianceSummaryResponse x
-> GetAggregateConformancePackComplianceSummaryResponse
forall x.
GetAggregateConformancePackComplianceSummaryResponse
-> Rep GetAggregateConformancePackComplianceSummaryResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetAggregateConformancePackComplianceSummaryResponse x
-> GetAggregateConformancePackComplianceSummaryResponse
$cfrom :: forall x.
GetAggregateConformancePackComplianceSummaryResponse
-> Rep GetAggregateConformancePackComplianceSummaryResponse x
Prelude.Generic)
newGetAggregateConformancePackComplianceSummaryResponse ::
Prelude.Int ->
GetAggregateConformancePackComplianceSummaryResponse
newGetAggregateConformancePackComplianceSummaryResponse :: Int -> GetAggregateConformancePackComplianceSummaryResponse
newGetAggregateConformancePackComplianceSummaryResponse
Int
pHttpStatus_ =
GetAggregateConformancePackComplianceSummaryResponse' :: Maybe Text
-> Maybe [AggregateConformancePackComplianceSummary]
-> Maybe Text
-> Int
-> GetAggregateConformancePackComplianceSummaryResponse
GetAggregateConformancePackComplianceSummaryResponse'
{ $sel:nextToken:GetAggregateConformancePackComplianceSummaryResponse' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:aggregateConformancePackComplianceSummaries:GetAggregateConformancePackComplianceSummaryResponse' :: Maybe [AggregateConformancePackComplianceSummary]
aggregateConformancePackComplianceSummaries =
Maybe [AggregateConformancePackComplianceSummary]
forall a. Maybe a
Prelude.Nothing,
$sel:groupByKey:GetAggregateConformancePackComplianceSummaryResponse' :: Maybe Text
groupByKey =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetAggregateConformancePackComplianceSummaryResponse' :: Int
httpStatus =
Int
pHttpStatus_
}
getAggregateConformancePackComplianceSummaryResponse_nextToken :: Lens.Lens' GetAggregateConformancePackComplianceSummaryResponse (Prelude.Maybe Prelude.Text)
getAggregateConformancePackComplianceSummaryResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> GetAggregateConformancePackComplianceSummaryResponse
-> f GetAggregateConformancePackComplianceSummaryResponse
getAggregateConformancePackComplianceSummaryResponse_nextToken = (GetAggregateConformancePackComplianceSummaryResponse
-> Maybe Text)
-> (GetAggregateConformancePackComplianceSummaryResponse
-> Maybe Text
-> GetAggregateConformancePackComplianceSummaryResponse)
-> Lens
GetAggregateConformancePackComplianceSummaryResponse
GetAggregateConformancePackComplianceSummaryResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetAggregateConformancePackComplianceSummaryResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetAggregateConformancePackComplianceSummaryResponse' :: GetAggregateConformancePackComplianceSummaryResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetAggregateConformancePackComplianceSummaryResponse
s@GetAggregateConformancePackComplianceSummaryResponse' {} Maybe Text
a -> GetAggregateConformancePackComplianceSummaryResponse
s {$sel:nextToken:GetAggregateConformancePackComplianceSummaryResponse' :: Maybe Text
nextToken = Maybe Text
a} :: GetAggregateConformancePackComplianceSummaryResponse)
getAggregateConformancePackComplianceSummaryResponse_aggregateConformancePackComplianceSummaries :: Lens.Lens' GetAggregateConformancePackComplianceSummaryResponse (Prelude.Maybe [AggregateConformancePackComplianceSummary])
getAggregateConformancePackComplianceSummaryResponse_aggregateConformancePackComplianceSummaries :: (Maybe [AggregateConformancePackComplianceSummary]
-> f (Maybe [AggregateConformancePackComplianceSummary]))
-> GetAggregateConformancePackComplianceSummaryResponse
-> f GetAggregateConformancePackComplianceSummaryResponse
getAggregateConformancePackComplianceSummaryResponse_aggregateConformancePackComplianceSummaries = (GetAggregateConformancePackComplianceSummaryResponse
-> Maybe [AggregateConformancePackComplianceSummary])
-> (GetAggregateConformancePackComplianceSummaryResponse
-> Maybe [AggregateConformancePackComplianceSummary]
-> GetAggregateConformancePackComplianceSummaryResponse)
-> Lens
GetAggregateConformancePackComplianceSummaryResponse
GetAggregateConformancePackComplianceSummaryResponse
(Maybe [AggregateConformancePackComplianceSummary])
(Maybe [AggregateConformancePackComplianceSummary])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetAggregateConformancePackComplianceSummaryResponse' {Maybe [AggregateConformancePackComplianceSummary]
aggregateConformancePackComplianceSummaries :: Maybe [AggregateConformancePackComplianceSummary]
$sel:aggregateConformancePackComplianceSummaries:GetAggregateConformancePackComplianceSummaryResponse' :: GetAggregateConformancePackComplianceSummaryResponse
-> Maybe [AggregateConformancePackComplianceSummary]
aggregateConformancePackComplianceSummaries} -> Maybe [AggregateConformancePackComplianceSummary]
aggregateConformancePackComplianceSummaries) (\s :: GetAggregateConformancePackComplianceSummaryResponse
s@GetAggregateConformancePackComplianceSummaryResponse' {} Maybe [AggregateConformancePackComplianceSummary]
a -> GetAggregateConformancePackComplianceSummaryResponse
s {$sel:aggregateConformancePackComplianceSummaries:GetAggregateConformancePackComplianceSummaryResponse' :: Maybe [AggregateConformancePackComplianceSummary]
aggregateConformancePackComplianceSummaries = Maybe [AggregateConformancePackComplianceSummary]
a} :: GetAggregateConformancePackComplianceSummaryResponse) ((Maybe [AggregateConformancePackComplianceSummary]
-> f (Maybe [AggregateConformancePackComplianceSummary]))
-> GetAggregateConformancePackComplianceSummaryResponse
-> f GetAggregateConformancePackComplianceSummaryResponse)
-> ((Maybe [AggregateConformancePackComplianceSummary]
-> f (Maybe [AggregateConformancePackComplianceSummary]))
-> Maybe [AggregateConformancePackComplianceSummary]
-> f (Maybe [AggregateConformancePackComplianceSummary]))
-> (Maybe [AggregateConformancePackComplianceSummary]
-> f (Maybe [AggregateConformancePackComplianceSummary]))
-> GetAggregateConformancePackComplianceSummaryResponse
-> f GetAggregateConformancePackComplianceSummaryResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[AggregateConformancePackComplianceSummary]
[AggregateConformancePackComplianceSummary]
[AggregateConformancePackComplianceSummary]
[AggregateConformancePackComplianceSummary]
-> Iso
(Maybe [AggregateConformancePackComplianceSummary])
(Maybe [AggregateConformancePackComplianceSummary])
(Maybe [AggregateConformancePackComplianceSummary])
(Maybe [AggregateConformancePackComplianceSummary])
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
[AggregateConformancePackComplianceSummary]
[AggregateConformancePackComplianceSummary]
[AggregateConformancePackComplianceSummary]
[AggregateConformancePackComplianceSummary]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
getAggregateConformancePackComplianceSummaryResponse_groupByKey :: Lens.Lens' GetAggregateConformancePackComplianceSummaryResponse (Prelude.Maybe Prelude.Text)
getAggregateConformancePackComplianceSummaryResponse_groupByKey :: (Maybe Text -> f (Maybe Text))
-> GetAggregateConformancePackComplianceSummaryResponse
-> f GetAggregateConformancePackComplianceSummaryResponse
getAggregateConformancePackComplianceSummaryResponse_groupByKey = (GetAggregateConformancePackComplianceSummaryResponse
-> Maybe Text)
-> (GetAggregateConformancePackComplianceSummaryResponse
-> Maybe Text
-> GetAggregateConformancePackComplianceSummaryResponse)
-> Lens
GetAggregateConformancePackComplianceSummaryResponse
GetAggregateConformancePackComplianceSummaryResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetAggregateConformancePackComplianceSummaryResponse' {Maybe Text
groupByKey :: Maybe Text
$sel:groupByKey:GetAggregateConformancePackComplianceSummaryResponse' :: GetAggregateConformancePackComplianceSummaryResponse -> Maybe Text
groupByKey} -> Maybe Text
groupByKey) (\s :: GetAggregateConformancePackComplianceSummaryResponse
s@GetAggregateConformancePackComplianceSummaryResponse' {} Maybe Text
a -> GetAggregateConformancePackComplianceSummaryResponse
s {$sel:groupByKey:GetAggregateConformancePackComplianceSummaryResponse' :: Maybe Text
groupByKey = Maybe Text
a} :: GetAggregateConformancePackComplianceSummaryResponse)
getAggregateConformancePackComplianceSummaryResponse_httpStatus :: Lens.Lens' GetAggregateConformancePackComplianceSummaryResponse Prelude.Int
getAggregateConformancePackComplianceSummaryResponse_httpStatus :: (Int -> f Int)
-> GetAggregateConformancePackComplianceSummaryResponse
-> f GetAggregateConformancePackComplianceSummaryResponse
getAggregateConformancePackComplianceSummaryResponse_httpStatus = (GetAggregateConformancePackComplianceSummaryResponse -> Int)
-> (GetAggregateConformancePackComplianceSummaryResponse
-> Int -> GetAggregateConformancePackComplianceSummaryResponse)
-> Lens
GetAggregateConformancePackComplianceSummaryResponse
GetAggregateConformancePackComplianceSummaryResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetAggregateConformancePackComplianceSummaryResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetAggregateConformancePackComplianceSummaryResponse' :: GetAggregateConformancePackComplianceSummaryResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetAggregateConformancePackComplianceSummaryResponse
s@GetAggregateConformancePackComplianceSummaryResponse' {} Int
a -> GetAggregateConformancePackComplianceSummaryResponse
s {$sel:httpStatus:GetAggregateConformancePackComplianceSummaryResponse' :: Int
httpStatus = Int
a} :: GetAggregateConformancePackComplianceSummaryResponse)
instance
Prelude.NFData
GetAggregateConformancePackComplianceSummaryResponse