{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.SSM.ListComplianceSummaries
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Returns a summary count of compliant and non-compliant resources for a
-- compliance type. For example, this call can return State Manager
-- associations, patches, or custom compliance types according to the
-- filter criteria that you specify.
--
-- This operation returns paginated results.
module Amazonka.SSM.ListComplianceSummaries
  ( -- * Creating a Request
    ListComplianceSummaries (..),
    newListComplianceSummaries,

    -- * Request Lenses
    listComplianceSummaries_filters,
    listComplianceSummaries_maxResults,
    listComplianceSummaries_nextToken,

    -- * Destructuring the Response
    ListComplianceSummariesResponse (..),
    newListComplianceSummariesResponse,

    -- * Response Lenses
    listComplianceSummariesResponse_complianceSummaryItems,
    listComplianceSummariesResponse_nextToken,
    listComplianceSummariesResponse_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.SSM.Types

-- | /See:/ 'newListComplianceSummaries' smart constructor.
data ListComplianceSummaries = ListComplianceSummaries'
  { -- | One or more compliance or inventory filters. Use a filter to return a
    -- more specific list of results.
    ListComplianceSummaries -> Maybe [ComplianceStringFilter]
filters :: Prelude.Maybe [ComplianceStringFilter],
    -- | The maximum number of items to return for this call. Currently, you can
    -- specify null or 50. The call also returns a token that you can specify
    -- in a subsequent call to get the next set of results.
    ListComplianceSummaries -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | A token to start the list. Use this token to get the next set of
    -- results.
    ListComplianceSummaries -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text
  }
  deriving (ListComplianceSummaries -> ListComplianceSummaries -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListComplianceSummaries -> ListComplianceSummaries -> Bool
$c/= :: ListComplianceSummaries -> ListComplianceSummaries -> Bool
== :: ListComplianceSummaries -> ListComplianceSummaries -> Bool
$c== :: ListComplianceSummaries -> ListComplianceSummaries -> Bool
Prelude.Eq, ReadPrec [ListComplianceSummaries]
ReadPrec ListComplianceSummaries
Int -> ReadS ListComplianceSummaries
ReadS [ListComplianceSummaries]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListComplianceSummaries]
$creadListPrec :: ReadPrec [ListComplianceSummaries]
readPrec :: ReadPrec ListComplianceSummaries
$creadPrec :: ReadPrec ListComplianceSummaries
readList :: ReadS [ListComplianceSummaries]
$creadList :: ReadS [ListComplianceSummaries]
readsPrec :: Int -> ReadS ListComplianceSummaries
$creadsPrec :: Int -> ReadS ListComplianceSummaries
Prelude.Read, Int -> ListComplianceSummaries -> ShowS
[ListComplianceSummaries] -> ShowS
ListComplianceSummaries -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListComplianceSummaries] -> ShowS
$cshowList :: [ListComplianceSummaries] -> ShowS
show :: ListComplianceSummaries -> String
$cshow :: ListComplianceSummaries -> String
showsPrec :: Int -> ListComplianceSummaries -> ShowS
$cshowsPrec :: Int -> ListComplianceSummaries -> ShowS
Prelude.Show, forall x. Rep ListComplianceSummaries x -> ListComplianceSummaries
forall x. ListComplianceSummaries -> Rep ListComplianceSummaries x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListComplianceSummaries x -> ListComplianceSummaries
$cfrom :: forall x. ListComplianceSummaries -> Rep ListComplianceSummaries x
Prelude.Generic)

-- |
-- Create a value of 'ListComplianceSummaries' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'filters', 'listComplianceSummaries_filters' - One or more compliance or inventory filters. Use a filter to return a
-- more specific list of results.
--
-- 'maxResults', 'listComplianceSummaries_maxResults' - The maximum number of items to return for this call. Currently, you can
-- specify null or 50. The call also returns a token that you can specify
-- in a subsequent call to get the next set of results.
--
-- 'nextToken', 'listComplianceSummaries_nextToken' - A token to start the list. Use this token to get the next set of
-- results.
newListComplianceSummaries ::
  ListComplianceSummaries
newListComplianceSummaries :: ListComplianceSummaries
newListComplianceSummaries =
  ListComplianceSummaries'
    { $sel:filters:ListComplianceSummaries' :: Maybe [ComplianceStringFilter]
filters = forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListComplianceSummaries' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListComplianceSummaries' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing
    }

-- | One or more compliance or inventory filters. Use a filter to return a
-- more specific list of results.
listComplianceSummaries_filters :: Lens.Lens' ListComplianceSummaries (Prelude.Maybe [ComplianceStringFilter])
listComplianceSummaries_filters :: Lens' ListComplianceSummaries (Maybe [ComplianceStringFilter])
listComplianceSummaries_filters = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListComplianceSummaries' {Maybe [ComplianceStringFilter]
filters :: Maybe [ComplianceStringFilter]
$sel:filters:ListComplianceSummaries' :: ListComplianceSummaries -> Maybe [ComplianceStringFilter]
filters} -> Maybe [ComplianceStringFilter]
filters) (\s :: ListComplianceSummaries
s@ListComplianceSummaries' {} Maybe [ComplianceStringFilter]
a -> ListComplianceSummaries
s {$sel:filters:ListComplianceSummaries' :: Maybe [ComplianceStringFilter]
filters = Maybe [ComplianceStringFilter]
a} :: ListComplianceSummaries) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The maximum number of items to return for this call. Currently, you can
-- specify null or 50. The call also returns a token that you can specify
-- in a subsequent call to get the next set of results.
listComplianceSummaries_maxResults :: Lens.Lens' ListComplianceSummaries (Prelude.Maybe Prelude.Natural)
listComplianceSummaries_maxResults :: Lens' ListComplianceSummaries (Maybe Natural)
listComplianceSummaries_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListComplianceSummaries' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListComplianceSummaries' :: ListComplianceSummaries -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListComplianceSummaries
s@ListComplianceSummaries' {} Maybe Natural
a -> ListComplianceSummaries
s {$sel:maxResults:ListComplianceSummaries' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListComplianceSummaries)

-- | A token to start the list. Use this token to get the next set of
-- results.
listComplianceSummaries_nextToken :: Lens.Lens' ListComplianceSummaries (Prelude.Maybe Prelude.Text)
listComplianceSummaries_nextToken :: Lens' ListComplianceSummaries (Maybe Text)
listComplianceSummaries_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListComplianceSummaries' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListComplianceSummaries' :: ListComplianceSummaries -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListComplianceSummaries
s@ListComplianceSummaries' {} Maybe Text
a -> ListComplianceSummaries
s {$sel:nextToken:ListComplianceSummaries' :: Maybe Text
nextToken = Maybe Text
a} :: ListComplianceSummaries)

instance Core.AWSPager ListComplianceSummaries where
  page :: ListComplianceSummaries
-> AWSResponse ListComplianceSummaries
-> Maybe ListComplianceSummaries
page ListComplianceSummaries
rq AWSResponse ListComplianceSummaries
rs
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListComplianceSummaries
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListComplianceSummariesResponse (Maybe Text)
listComplianceSummariesResponse_nextToken
            forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
        forall a. Maybe a
Prelude.Nothing
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListComplianceSummaries
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens'
  ListComplianceSummariesResponse (Maybe [ComplianceSummaryItem])
listComplianceSummariesResponse_complianceSummaryItems
            forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
        forall a. Maybe a
Prelude.Nothing
    | Bool
Prelude.otherwise =
        forall a. a -> Maybe a
Prelude.Just
          forall a b. (a -> b) -> a -> b
Prelude.$ ListComplianceSummaries
rq
          forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListComplianceSummaries (Maybe Text)
listComplianceSummaries_nextToken
          forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListComplianceSummaries
rs
          forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListComplianceSummariesResponse (Maybe Text)
listComplianceSummariesResponse_nextToken
          forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just

instance Core.AWSRequest ListComplianceSummaries where
  type
    AWSResponse ListComplianceSummaries =
      ListComplianceSummariesResponse
  request :: (Service -> Service)
-> ListComplianceSummaries -> Request ListComplianceSummaries
request Service -> Service
overrides =
    forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy ListComplianceSummaries
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListComplianceSummaries)))
response =
    forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe [ComplianceSummaryItem]
-> Maybe Text -> Int -> ListComplianceSummariesResponse
ListComplianceSummariesResponse'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x
                            forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"ComplianceSummaryItems"
                            forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
                        )
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"NextToken")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance Prelude.Hashable ListComplianceSummaries where
  hashWithSalt :: Int -> ListComplianceSummaries -> Int
hashWithSalt Int
_salt ListComplianceSummaries' {Maybe Natural
Maybe [ComplianceStringFilter]
Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
filters :: Maybe [ComplianceStringFilter]
$sel:nextToken:ListComplianceSummaries' :: ListComplianceSummaries -> Maybe Text
$sel:maxResults:ListComplianceSummaries' :: ListComplianceSummaries -> Maybe Natural
$sel:filters:ListComplianceSummaries' :: ListComplianceSummaries -> Maybe [ComplianceStringFilter]
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [ComplianceStringFilter]
filters
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
maxResults
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken

instance Prelude.NFData ListComplianceSummaries where
  rnf :: ListComplianceSummaries -> ()
rnf ListComplianceSummaries' {Maybe Natural
Maybe [ComplianceStringFilter]
Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
filters :: Maybe [ComplianceStringFilter]
$sel:nextToken:ListComplianceSummaries' :: ListComplianceSummaries -> Maybe Text
$sel:maxResults:ListComplianceSummaries' :: ListComplianceSummaries -> Maybe Natural
$sel:filters:ListComplianceSummaries' :: ListComplianceSummaries -> Maybe [ComplianceStringFilter]
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe [ComplianceStringFilter]
filters
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
maxResults
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken

instance Data.ToHeaders ListComplianceSummaries where
  toHeaders :: ListComplianceSummaries -> ResponseHeaders
toHeaders =
    forall a b. a -> b -> a
Prelude.const
      ( forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"X-Amz-Target"
              forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"AmazonSSM.ListComplianceSummaries" ::
                          Prelude.ByteString
                      ),
            HeaderName
"Content-Type"
              forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Data.ToJSON ListComplianceSummaries where
  toJSON :: ListComplianceSummaries -> Value
toJSON ListComplianceSummaries' {Maybe Natural
Maybe [ComplianceStringFilter]
Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
filters :: Maybe [ComplianceStringFilter]
$sel:nextToken:ListComplianceSummaries' :: ListComplianceSummaries -> Maybe Text
$sel:maxResults:ListComplianceSummaries' :: ListComplianceSummaries -> Maybe Natural
$sel:filters:ListComplianceSummaries' :: ListComplianceSummaries -> Maybe [ComplianceStringFilter]
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"Filters" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [ComplianceStringFilter]
filters,
            (Key
"MaxResults" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxResults,
            (Key
"NextToken" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken
          ]
      )

instance Data.ToPath ListComplianceSummaries where
  toPath :: ListComplianceSummaries -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"

instance Data.ToQuery ListComplianceSummaries where
  toQuery :: ListComplianceSummaries -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newListComplianceSummariesResponse' smart constructor.
data ListComplianceSummariesResponse = ListComplianceSummariesResponse'
  { -- | A list of compliant and non-compliant summary counts based on compliance
    -- types. For example, this call returns State Manager associations,
    -- patches, or custom compliance types according to the filter criteria
    -- that you specified.
    ListComplianceSummariesResponse -> Maybe [ComplianceSummaryItem]
complianceSummaryItems :: Prelude.Maybe [ComplianceSummaryItem],
    -- | The token for the next set of items to return. Use this token to get the
    -- next set of results.
    ListComplianceSummariesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListComplianceSummariesResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListComplianceSummariesResponse
-> ListComplianceSummariesResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListComplianceSummariesResponse
-> ListComplianceSummariesResponse -> Bool
$c/= :: ListComplianceSummariesResponse
-> ListComplianceSummariesResponse -> Bool
== :: ListComplianceSummariesResponse
-> ListComplianceSummariesResponse -> Bool
$c== :: ListComplianceSummariesResponse
-> ListComplianceSummariesResponse -> Bool
Prelude.Eq, ReadPrec [ListComplianceSummariesResponse]
ReadPrec ListComplianceSummariesResponse
Int -> ReadS ListComplianceSummariesResponse
ReadS [ListComplianceSummariesResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListComplianceSummariesResponse]
$creadListPrec :: ReadPrec [ListComplianceSummariesResponse]
readPrec :: ReadPrec ListComplianceSummariesResponse
$creadPrec :: ReadPrec ListComplianceSummariesResponse
readList :: ReadS [ListComplianceSummariesResponse]
$creadList :: ReadS [ListComplianceSummariesResponse]
readsPrec :: Int -> ReadS ListComplianceSummariesResponse
$creadsPrec :: Int -> ReadS ListComplianceSummariesResponse
Prelude.Read, Int -> ListComplianceSummariesResponse -> ShowS
[ListComplianceSummariesResponse] -> ShowS
ListComplianceSummariesResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListComplianceSummariesResponse] -> ShowS
$cshowList :: [ListComplianceSummariesResponse] -> ShowS
show :: ListComplianceSummariesResponse -> String
$cshow :: ListComplianceSummariesResponse -> String
showsPrec :: Int -> ListComplianceSummariesResponse -> ShowS
$cshowsPrec :: Int -> ListComplianceSummariesResponse -> ShowS
Prelude.Show, forall x.
Rep ListComplianceSummariesResponse x
-> ListComplianceSummariesResponse
forall x.
ListComplianceSummariesResponse
-> Rep ListComplianceSummariesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListComplianceSummariesResponse x
-> ListComplianceSummariesResponse
$cfrom :: forall x.
ListComplianceSummariesResponse
-> Rep ListComplianceSummariesResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListComplianceSummariesResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'complianceSummaryItems', 'listComplianceSummariesResponse_complianceSummaryItems' - A list of compliant and non-compliant summary counts based on compliance
-- types. For example, this call returns State Manager associations,
-- patches, or custom compliance types according to the filter criteria
-- that you specified.
--
-- 'nextToken', 'listComplianceSummariesResponse_nextToken' - The token for the next set of items to return. Use this token to get the
-- next set of results.
--
-- 'httpStatus', 'listComplianceSummariesResponse_httpStatus' - The response's http status code.
newListComplianceSummariesResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListComplianceSummariesResponse
newListComplianceSummariesResponse :: Int -> ListComplianceSummariesResponse
newListComplianceSummariesResponse Int
pHttpStatus_ =
  ListComplianceSummariesResponse'
    { $sel:complianceSummaryItems:ListComplianceSummariesResponse' :: Maybe [ComplianceSummaryItem]
complianceSummaryItems =
        forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListComplianceSummariesResponse' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListComplianceSummariesResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | A list of compliant and non-compliant summary counts based on compliance
-- types. For example, this call returns State Manager associations,
-- patches, or custom compliance types according to the filter criteria
-- that you specified.
listComplianceSummariesResponse_complianceSummaryItems :: Lens.Lens' ListComplianceSummariesResponse (Prelude.Maybe [ComplianceSummaryItem])
listComplianceSummariesResponse_complianceSummaryItems :: Lens'
  ListComplianceSummariesResponse (Maybe [ComplianceSummaryItem])
listComplianceSummariesResponse_complianceSummaryItems = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListComplianceSummariesResponse' {Maybe [ComplianceSummaryItem]
complianceSummaryItems :: Maybe [ComplianceSummaryItem]
$sel:complianceSummaryItems:ListComplianceSummariesResponse' :: ListComplianceSummariesResponse -> Maybe [ComplianceSummaryItem]
complianceSummaryItems} -> Maybe [ComplianceSummaryItem]
complianceSummaryItems) (\s :: ListComplianceSummariesResponse
s@ListComplianceSummariesResponse' {} Maybe [ComplianceSummaryItem]
a -> ListComplianceSummariesResponse
s {$sel:complianceSummaryItems:ListComplianceSummariesResponse' :: Maybe [ComplianceSummaryItem]
complianceSummaryItems = Maybe [ComplianceSummaryItem]
a} :: ListComplianceSummariesResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The token for the next set of items to return. Use this token to get the
-- next set of results.
listComplianceSummariesResponse_nextToken :: Lens.Lens' ListComplianceSummariesResponse (Prelude.Maybe Prelude.Text)
listComplianceSummariesResponse_nextToken :: Lens' ListComplianceSummariesResponse (Maybe Text)
listComplianceSummariesResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListComplianceSummariesResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListComplianceSummariesResponse' :: ListComplianceSummariesResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListComplianceSummariesResponse
s@ListComplianceSummariesResponse' {} Maybe Text
a -> ListComplianceSummariesResponse
s {$sel:nextToken:ListComplianceSummariesResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListComplianceSummariesResponse)

-- | The response's http status code.
listComplianceSummariesResponse_httpStatus :: Lens.Lens' ListComplianceSummariesResponse Prelude.Int
listComplianceSummariesResponse_httpStatus :: Lens' ListComplianceSummariesResponse Int
listComplianceSummariesResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListComplianceSummariesResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListComplianceSummariesResponse' :: ListComplianceSummariesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListComplianceSummariesResponse
s@ListComplianceSummariesResponse' {} Int
a -> ListComplianceSummariesResponse
s {$sel:httpStatus:ListComplianceSummariesResponse' :: Int
httpStatus = Int
a} :: ListComplianceSummariesResponse)

instance
  Prelude.NFData
    ListComplianceSummariesResponse
  where
  rnf :: ListComplianceSummariesResponse -> ()
rnf ListComplianceSummariesResponse' {Int
Maybe [ComplianceSummaryItem]
Maybe Text
httpStatus :: Int
nextToken :: Maybe Text
complianceSummaryItems :: Maybe [ComplianceSummaryItem]
$sel:httpStatus:ListComplianceSummariesResponse' :: ListComplianceSummariesResponse -> Int
$sel:nextToken:ListComplianceSummariesResponse' :: ListComplianceSummariesResponse -> Maybe Text
$sel:complianceSummaryItems:ListComplianceSummariesResponse' :: ListComplianceSummariesResponse -> Maybe [ComplianceSummaryItem]
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe [ComplianceSummaryItem]
complianceSummaryItems
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus