{-# 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.ResilienceHub.ListAppComponentCompliances
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Lists the compliances for an AWS Resilience Hub component.
module Amazonka.ResilienceHub.ListAppComponentCompliances
  ( -- * Creating a Request
    ListAppComponentCompliances (..),
    newListAppComponentCompliances,

    -- * Request Lenses
    listAppComponentCompliances_maxResults,
    listAppComponentCompliances_nextToken,
    listAppComponentCompliances_assessmentArn,

    -- * Destructuring the Response
    ListAppComponentCompliancesResponse (..),
    newListAppComponentCompliancesResponse,

    -- * Response Lenses
    listAppComponentCompliancesResponse_nextToken,
    listAppComponentCompliancesResponse_httpStatus,
    listAppComponentCompliancesResponse_componentCompliances,
  )
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 Amazonka.ResilienceHub.Types
import qualified Amazonka.Response as Response

-- | /See:/ 'newListAppComponentCompliances' smart constructor.
data ListAppComponentCompliances = ListAppComponentCompliances'
  { -- | The maximum number of results to include in the response. If more
    -- results exist than the specified @MaxResults@ value, a token is included
    -- in the response so that the remaining results can be retrieved.
    ListAppComponentCompliances -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | Null, or the token from a previous call to get the next set of results.
    ListAppComponentCompliances -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Resource Name (ARN) of the assessment. The format for this
    -- ARN is:
    -- arn:@partition@:resiliencehub:@region@:@account@:app-assessment\/@app-id@.
    -- For more information about ARNs, see
    -- <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resource Names (ARNs)>
    -- in the /AWS General Reference/.
    ListAppComponentCompliances -> Text
assessmentArn :: Prelude.Text
  }
  deriving (ListAppComponentCompliances -> ListAppComponentCompliances -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListAppComponentCompliances -> ListAppComponentCompliances -> Bool
$c/= :: ListAppComponentCompliances -> ListAppComponentCompliances -> Bool
== :: ListAppComponentCompliances -> ListAppComponentCompliances -> Bool
$c== :: ListAppComponentCompliances -> ListAppComponentCompliances -> Bool
Prelude.Eq, ReadPrec [ListAppComponentCompliances]
ReadPrec ListAppComponentCompliances
Int -> ReadS ListAppComponentCompliances
ReadS [ListAppComponentCompliances]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListAppComponentCompliances]
$creadListPrec :: ReadPrec [ListAppComponentCompliances]
readPrec :: ReadPrec ListAppComponentCompliances
$creadPrec :: ReadPrec ListAppComponentCompliances
readList :: ReadS [ListAppComponentCompliances]
$creadList :: ReadS [ListAppComponentCompliances]
readsPrec :: Int -> ReadS ListAppComponentCompliances
$creadsPrec :: Int -> ReadS ListAppComponentCompliances
Prelude.Read, Int -> ListAppComponentCompliances -> ShowS
[ListAppComponentCompliances] -> ShowS
ListAppComponentCompliances -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListAppComponentCompliances] -> ShowS
$cshowList :: [ListAppComponentCompliances] -> ShowS
show :: ListAppComponentCompliances -> String
$cshow :: ListAppComponentCompliances -> String
showsPrec :: Int -> ListAppComponentCompliances -> ShowS
$cshowsPrec :: Int -> ListAppComponentCompliances -> ShowS
Prelude.Show, forall x.
Rep ListAppComponentCompliances x -> ListAppComponentCompliances
forall x.
ListAppComponentCompliances -> Rep ListAppComponentCompliances x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListAppComponentCompliances x -> ListAppComponentCompliances
$cfrom :: forall x.
ListAppComponentCompliances -> Rep ListAppComponentCompliances x
Prelude.Generic)

-- |
-- Create a value of 'ListAppComponentCompliances' 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:
--
-- 'maxResults', 'listAppComponentCompliances_maxResults' - The maximum number of results to include in the response. If more
-- results exist than the specified @MaxResults@ value, a token is included
-- in the response so that the remaining results can be retrieved.
--
-- 'nextToken', 'listAppComponentCompliances_nextToken' - Null, or the token from a previous call to get the next set of results.
--
-- 'assessmentArn', 'listAppComponentCompliances_assessmentArn' - The Amazon Resource Name (ARN) of the assessment. The format for this
-- ARN is:
-- arn:@partition@:resiliencehub:@region@:@account@:app-assessment\/@app-id@.
-- For more information about ARNs, see
-- <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resource Names (ARNs)>
-- in the /AWS General Reference/.
newListAppComponentCompliances ::
  -- | 'assessmentArn'
  Prelude.Text ->
  ListAppComponentCompliances
newListAppComponentCompliances :: Text -> ListAppComponentCompliances
newListAppComponentCompliances Text
pAssessmentArn_ =
  ListAppComponentCompliances'
    { $sel:maxResults:ListAppComponentCompliances' :: Maybe Natural
maxResults =
        forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListAppComponentCompliances' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
      $sel:assessmentArn:ListAppComponentCompliances' :: Text
assessmentArn = Text
pAssessmentArn_
    }

-- | The maximum number of results to include in the response. If more
-- results exist than the specified @MaxResults@ value, a token is included
-- in the response so that the remaining results can be retrieved.
listAppComponentCompliances_maxResults :: Lens.Lens' ListAppComponentCompliances (Prelude.Maybe Prelude.Natural)
listAppComponentCompliances_maxResults :: Lens' ListAppComponentCompliances (Maybe Natural)
listAppComponentCompliances_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAppComponentCompliances' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListAppComponentCompliances' :: ListAppComponentCompliances -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListAppComponentCompliances
s@ListAppComponentCompliances' {} Maybe Natural
a -> ListAppComponentCompliances
s {$sel:maxResults:ListAppComponentCompliances' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListAppComponentCompliances)

-- | Null, or the token from a previous call to get the next set of results.
listAppComponentCompliances_nextToken :: Lens.Lens' ListAppComponentCompliances (Prelude.Maybe Prelude.Text)
listAppComponentCompliances_nextToken :: Lens' ListAppComponentCompliances (Maybe Text)
listAppComponentCompliances_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAppComponentCompliances' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListAppComponentCompliances' :: ListAppComponentCompliances -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListAppComponentCompliances
s@ListAppComponentCompliances' {} Maybe Text
a -> ListAppComponentCompliances
s {$sel:nextToken:ListAppComponentCompliances' :: Maybe Text
nextToken = Maybe Text
a} :: ListAppComponentCompliances)

-- | The Amazon Resource Name (ARN) of the assessment. The format for this
-- ARN is:
-- arn:@partition@:resiliencehub:@region@:@account@:app-assessment\/@app-id@.
-- For more information about ARNs, see
-- <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resource Names (ARNs)>
-- in the /AWS General Reference/.
listAppComponentCompliances_assessmentArn :: Lens.Lens' ListAppComponentCompliances Prelude.Text
listAppComponentCompliances_assessmentArn :: Lens' ListAppComponentCompliances Text
listAppComponentCompliances_assessmentArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAppComponentCompliances' {Text
assessmentArn :: Text
$sel:assessmentArn:ListAppComponentCompliances' :: ListAppComponentCompliances -> Text
assessmentArn} -> Text
assessmentArn) (\s :: ListAppComponentCompliances
s@ListAppComponentCompliances' {} Text
a -> ListAppComponentCompliances
s {$sel:assessmentArn:ListAppComponentCompliances' :: Text
assessmentArn = Text
a} :: ListAppComponentCompliances)

instance Core.AWSRequest ListAppComponentCompliances where
  type
    AWSResponse ListAppComponentCompliances =
      ListAppComponentCompliancesResponse
  request :: (Service -> Service)
-> ListAppComponentCompliances
-> Request ListAppComponentCompliances
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 ListAppComponentCompliances
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListAppComponentCompliances)))
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 Text
-> Int
-> [AppComponentCompliance]
-> ListAppComponentCompliancesResponse
ListAppComponentCompliancesResponse'
            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
"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))
            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
"componentCompliances"
                            forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
                        )
      )

instance Prelude.Hashable ListAppComponentCompliances where
  hashWithSalt :: Int -> ListAppComponentCompliances -> Int
hashWithSalt Int
_salt ListAppComponentCompliances' {Maybe Natural
Maybe Text
Text
assessmentArn :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:assessmentArn:ListAppComponentCompliances' :: ListAppComponentCompliances -> Text
$sel:nextToken:ListAppComponentCompliances' :: ListAppComponentCompliances -> Maybe Text
$sel:maxResults:ListAppComponentCompliances' :: ListAppComponentCompliances -> Maybe Natural
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
maxResults
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
assessmentArn

instance Prelude.NFData ListAppComponentCompliances where
  rnf :: ListAppComponentCompliances -> ()
rnf ListAppComponentCompliances' {Maybe Natural
Maybe Text
Text
assessmentArn :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:assessmentArn:ListAppComponentCompliances' :: ListAppComponentCompliances -> Text
$sel:nextToken:ListAppComponentCompliances' :: ListAppComponentCompliances -> Maybe Text
$sel:maxResults:ListAppComponentCompliances' :: ListAppComponentCompliances -> Maybe Natural
..} =
    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
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
assessmentArn

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

instance Data.ToJSON ListAppComponentCompliances where
  toJSON :: ListAppComponentCompliances -> Value
toJSON ListAppComponentCompliances' {Maybe Natural
Maybe Text
Text
assessmentArn :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:assessmentArn:ListAppComponentCompliances' :: ListAppComponentCompliances -> Text
$sel:nextToken:ListAppComponentCompliances' :: ListAppComponentCompliances -> Maybe Text
$sel:maxResults:ListAppComponentCompliances' :: ListAppComponentCompliances -> Maybe Natural
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (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,
            forall a. a -> Maybe a
Prelude.Just
              (Key
"assessmentArn" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
assessmentArn)
          ]
      )

instance Data.ToPath ListAppComponentCompliances where
  toPath :: ListAppComponentCompliances -> ByteString
toPath =
    forall a b. a -> b -> a
Prelude.const ByteString
"/list-app-component-compliances"

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

-- | /See:/ 'newListAppComponentCompliancesResponse' smart constructor.
data ListAppComponentCompliancesResponse = ListAppComponentCompliancesResponse'
  { -- | The token for the next set of results, or null if there are no more
    -- results.
    ListAppComponentCompliancesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListAppComponentCompliancesResponse -> Int
httpStatus :: Prelude.Int,
    -- | The compliances for an AWS Resilience Hub application component,
    -- returned as an object. This object contains component names,
    -- compliances, costs, resiliency scores, outage scores, and more.
    ListAppComponentCompliancesResponse -> [AppComponentCompliance]
componentCompliances :: [AppComponentCompliance]
  }
  deriving (ListAppComponentCompliancesResponse
-> ListAppComponentCompliancesResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListAppComponentCompliancesResponse
-> ListAppComponentCompliancesResponse -> Bool
$c/= :: ListAppComponentCompliancesResponse
-> ListAppComponentCompliancesResponse -> Bool
== :: ListAppComponentCompliancesResponse
-> ListAppComponentCompliancesResponse -> Bool
$c== :: ListAppComponentCompliancesResponse
-> ListAppComponentCompliancesResponse -> Bool
Prelude.Eq, ReadPrec [ListAppComponentCompliancesResponse]
ReadPrec ListAppComponentCompliancesResponse
Int -> ReadS ListAppComponentCompliancesResponse
ReadS [ListAppComponentCompliancesResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListAppComponentCompliancesResponse]
$creadListPrec :: ReadPrec [ListAppComponentCompliancesResponse]
readPrec :: ReadPrec ListAppComponentCompliancesResponse
$creadPrec :: ReadPrec ListAppComponentCompliancesResponse
readList :: ReadS [ListAppComponentCompliancesResponse]
$creadList :: ReadS [ListAppComponentCompliancesResponse]
readsPrec :: Int -> ReadS ListAppComponentCompliancesResponse
$creadsPrec :: Int -> ReadS ListAppComponentCompliancesResponse
Prelude.Read, Int -> ListAppComponentCompliancesResponse -> ShowS
[ListAppComponentCompliancesResponse] -> ShowS
ListAppComponentCompliancesResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListAppComponentCompliancesResponse] -> ShowS
$cshowList :: [ListAppComponentCompliancesResponse] -> ShowS
show :: ListAppComponentCompliancesResponse -> String
$cshow :: ListAppComponentCompliancesResponse -> String
showsPrec :: Int -> ListAppComponentCompliancesResponse -> ShowS
$cshowsPrec :: Int -> ListAppComponentCompliancesResponse -> ShowS
Prelude.Show, forall x.
Rep ListAppComponentCompliancesResponse x
-> ListAppComponentCompliancesResponse
forall x.
ListAppComponentCompliancesResponse
-> Rep ListAppComponentCompliancesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListAppComponentCompliancesResponse x
-> ListAppComponentCompliancesResponse
$cfrom :: forall x.
ListAppComponentCompliancesResponse
-> Rep ListAppComponentCompliancesResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListAppComponentCompliancesResponse' 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:
--
-- 'nextToken', 'listAppComponentCompliancesResponse_nextToken' - The token for the next set of results, or null if there are no more
-- results.
--
-- 'httpStatus', 'listAppComponentCompliancesResponse_httpStatus' - The response's http status code.
--
-- 'componentCompliances', 'listAppComponentCompliancesResponse_componentCompliances' - The compliances for an AWS Resilience Hub application component,
-- returned as an object. This object contains component names,
-- compliances, costs, resiliency scores, outage scores, and more.
newListAppComponentCompliancesResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListAppComponentCompliancesResponse
newListAppComponentCompliancesResponse :: Int -> ListAppComponentCompliancesResponse
newListAppComponentCompliancesResponse Int
pHttpStatus_ =
  ListAppComponentCompliancesResponse'
    { $sel:nextToken:ListAppComponentCompliancesResponse' :: Maybe Text
nextToken =
        forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListAppComponentCompliancesResponse' :: Int
httpStatus = Int
pHttpStatus_,
      $sel:componentCompliances:ListAppComponentCompliancesResponse' :: [AppComponentCompliance]
componentCompliances = forall a. Monoid a => a
Prelude.mempty
    }

-- | The token for the next set of results, or null if there are no more
-- results.
listAppComponentCompliancesResponse_nextToken :: Lens.Lens' ListAppComponentCompliancesResponse (Prelude.Maybe Prelude.Text)
listAppComponentCompliancesResponse_nextToken :: Lens' ListAppComponentCompliancesResponse (Maybe Text)
listAppComponentCompliancesResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAppComponentCompliancesResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListAppComponentCompliancesResponse' :: ListAppComponentCompliancesResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListAppComponentCompliancesResponse
s@ListAppComponentCompliancesResponse' {} Maybe Text
a -> ListAppComponentCompliancesResponse
s {$sel:nextToken:ListAppComponentCompliancesResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListAppComponentCompliancesResponse)

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

-- | The compliances for an AWS Resilience Hub application component,
-- returned as an object. This object contains component names,
-- compliances, costs, resiliency scores, outage scores, and more.
listAppComponentCompliancesResponse_componentCompliances :: Lens.Lens' ListAppComponentCompliancesResponse [AppComponentCompliance]
listAppComponentCompliancesResponse_componentCompliances :: Lens' ListAppComponentCompliancesResponse [AppComponentCompliance]
listAppComponentCompliancesResponse_componentCompliances = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAppComponentCompliancesResponse' {[AppComponentCompliance]
componentCompliances :: [AppComponentCompliance]
$sel:componentCompliances:ListAppComponentCompliancesResponse' :: ListAppComponentCompliancesResponse -> [AppComponentCompliance]
componentCompliances} -> [AppComponentCompliance]
componentCompliances) (\s :: ListAppComponentCompliancesResponse
s@ListAppComponentCompliancesResponse' {} [AppComponentCompliance]
a -> ListAppComponentCompliancesResponse
s {$sel:componentCompliances:ListAppComponentCompliancesResponse' :: [AppComponentCompliance]
componentCompliances = [AppComponentCompliance]
a} :: ListAppComponentCompliancesResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance
  Prelude.NFData
    ListAppComponentCompliancesResponse
  where
  rnf :: ListAppComponentCompliancesResponse -> ()
rnf ListAppComponentCompliancesResponse' {Int
[AppComponentCompliance]
Maybe Text
componentCompliances :: [AppComponentCompliance]
httpStatus :: Int
nextToken :: Maybe Text
$sel:componentCompliances:ListAppComponentCompliancesResponse' :: ListAppComponentCompliancesResponse -> [AppComponentCompliance]
$sel:httpStatus:ListAppComponentCompliancesResponse' :: ListAppComponentCompliancesResponse -> Int
$sel:nextToken:ListAppComponentCompliancesResponse' :: ListAppComponentCompliancesResponse -> Maybe Text
..} =
    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
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf [AppComponentCompliance]
componentCompliances