{-# 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.Support.DescribeTrustedAdvisorCheckSummaries
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Returns the results for the AWS Trusted Advisor check summaries for the
-- check IDs that you specified. You can get the check IDs by calling the
-- DescribeTrustedAdvisorChecks operation.
--
-- The response contains an array of TrustedAdvisorCheckSummary objects.
--
-- -   You must have a Business or Enterprise Support plan to use the AWS
--     Support API.
--
-- -   If you call the AWS Support API from an account that does not have a
--     Business or Enterprise Support plan, the
--     @SubscriptionRequiredException@ error message appears. For
--     information about changing your support plan, see
--     <http://aws.amazon.com/premiumsupport/ AWS Support>.
module Amazonka.Support.DescribeTrustedAdvisorCheckSummaries
  ( -- * Creating a Request
    DescribeTrustedAdvisorCheckSummaries (..),
    newDescribeTrustedAdvisorCheckSummaries,

    -- * Request Lenses
    describeTrustedAdvisorCheckSummaries_checkIds,

    -- * Destructuring the Response
    DescribeTrustedAdvisorCheckSummariesResponse (..),
    newDescribeTrustedAdvisorCheckSummariesResponse,

    -- * Response Lenses
    describeTrustedAdvisorCheckSummariesResponse_httpStatus,
    describeTrustedAdvisorCheckSummariesResponse_summaries,
  )
where

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
import Amazonka.Support.Types

-- | /See:/ 'newDescribeTrustedAdvisorCheckSummaries' smart constructor.
data DescribeTrustedAdvisorCheckSummaries = DescribeTrustedAdvisorCheckSummaries'
  { -- | The IDs of the Trusted Advisor checks.
    DescribeTrustedAdvisorCheckSummaries -> [Text]
checkIds :: [Prelude.Text]
  }
  deriving (DescribeTrustedAdvisorCheckSummaries
-> DescribeTrustedAdvisorCheckSummaries -> Bool
(DescribeTrustedAdvisorCheckSummaries
 -> DescribeTrustedAdvisorCheckSummaries -> Bool)
-> (DescribeTrustedAdvisorCheckSummaries
    -> DescribeTrustedAdvisorCheckSummaries -> Bool)
-> Eq DescribeTrustedAdvisorCheckSummaries
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeTrustedAdvisorCheckSummaries
-> DescribeTrustedAdvisorCheckSummaries -> Bool
$c/= :: DescribeTrustedAdvisorCheckSummaries
-> DescribeTrustedAdvisorCheckSummaries -> Bool
== :: DescribeTrustedAdvisorCheckSummaries
-> DescribeTrustedAdvisorCheckSummaries -> Bool
$c== :: DescribeTrustedAdvisorCheckSummaries
-> DescribeTrustedAdvisorCheckSummaries -> Bool
Prelude.Eq, ReadPrec [DescribeTrustedAdvisorCheckSummaries]
ReadPrec DescribeTrustedAdvisorCheckSummaries
Int -> ReadS DescribeTrustedAdvisorCheckSummaries
ReadS [DescribeTrustedAdvisorCheckSummaries]
(Int -> ReadS DescribeTrustedAdvisorCheckSummaries)
-> ReadS [DescribeTrustedAdvisorCheckSummaries]
-> ReadPrec DescribeTrustedAdvisorCheckSummaries
-> ReadPrec [DescribeTrustedAdvisorCheckSummaries]
-> Read DescribeTrustedAdvisorCheckSummaries
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeTrustedAdvisorCheckSummaries]
$creadListPrec :: ReadPrec [DescribeTrustedAdvisorCheckSummaries]
readPrec :: ReadPrec DescribeTrustedAdvisorCheckSummaries
$creadPrec :: ReadPrec DescribeTrustedAdvisorCheckSummaries
readList :: ReadS [DescribeTrustedAdvisorCheckSummaries]
$creadList :: ReadS [DescribeTrustedAdvisorCheckSummaries]
readsPrec :: Int -> ReadS DescribeTrustedAdvisorCheckSummaries
$creadsPrec :: Int -> ReadS DescribeTrustedAdvisorCheckSummaries
Prelude.Read, Int -> DescribeTrustedAdvisorCheckSummaries -> ShowS
[DescribeTrustedAdvisorCheckSummaries] -> ShowS
DescribeTrustedAdvisorCheckSummaries -> String
(Int -> DescribeTrustedAdvisorCheckSummaries -> ShowS)
-> (DescribeTrustedAdvisorCheckSummaries -> String)
-> ([DescribeTrustedAdvisorCheckSummaries] -> ShowS)
-> Show DescribeTrustedAdvisorCheckSummaries
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeTrustedAdvisorCheckSummaries] -> ShowS
$cshowList :: [DescribeTrustedAdvisorCheckSummaries] -> ShowS
show :: DescribeTrustedAdvisorCheckSummaries -> String
$cshow :: DescribeTrustedAdvisorCheckSummaries -> String
showsPrec :: Int -> DescribeTrustedAdvisorCheckSummaries -> ShowS
$cshowsPrec :: Int -> DescribeTrustedAdvisorCheckSummaries -> ShowS
Prelude.Show, (forall x.
 DescribeTrustedAdvisorCheckSummaries
 -> Rep DescribeTrustedAdvisorCheckSummaries x)
-> (forall x.
    Rep DescribeTrustedAdvisorCheckSummaries x
    -> DescribeTrustedAdvisorCheckSummaries)
-> Generic DescribeTrustedAdvisorCheckSummaries
forall x.
Rep DescribeTrustedAdvisorCheckSummaries x
-> DescribeTrustedAdvisorCheckSummaries
forall x.
DescribeTrustedAdvisorCheckSummaries
-> Rep DescribeTrustedAdvisorCheckSummaries x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeTrustedAdvisorCheckSummaries x
-> DescribeTrustedAdvisorCheckSummaries
$cfrom :: forall x.
DescribeTrustedAdvisorCheckSummaries
-> Rep DescribeTrustedAdvisorCheckSummaries x
Prelude.Generic)

-- |
-- Create a value of 'DescribeTrustedAdvisorCheckSummaries' 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:
--
-- 'checkIds', 'describeTrustedAdvisorCheckSummaries_checkIds' - The IDs of the Trusted Advisor checks.
newDescribeTrustedAdvisorCheckSummaries ::
  DescribeTrustedAdvisorCheckSummaries
newDescribeTrustedAdvisorCheckSummaries :: DescribeTrustedAdvisorCheckSummaries
newDescribeTrustedAdvisorCheckSummaries =
  DescribeTrustedAdvisorCheckSummaries' :: [Text] -> DescribeTrustedAdvisorCheckSummaries
DescribeTrustedAdvisorCheckSummaries'
    { $sel:checkIds:DescribeTrustedAdvisorCheckSummaries' :: [Text]
checkIds =
        [Text]
forall a. Monoid a => a
Prelude.mempty
    }

-- | The IDs of the Trusted Advisor checks.
describeTrustedAdvisorCheckSummaries_checkIds :: Lens.Lens' DescribeTrustedAdvisorCheckSummaries [Prelude.Text]
describeTrustedAdvisorCheckSummaries_checkIds :: ([Text] -> f [Text])
-> DescribeTrustedAdvisorCheckSummaries
-> f DescribeTrustedAdvisorCheckSummaries
describeTrustedAdvisorCheckSummaries_checkIds = (DescribeTrustedAdvisorCheckSummaries -> [Text])
-> (DescribeTrustedAdvisorCheckSummaries
    -> [Text] -> DescribeTrustedAdvisorCheckSummaries)
-> Lens
     DescribeTrustedAdvisorCheckSummaries
     DescribeTrustedAdvisorCheckSummaries
     [Text]
     [Text]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrustedAdvisorCheckSummaries' {[Text]
checkIds :: [Text]
$sel:checkIds:DescribeTrustedAdvisorCheckSummaries' :: DescribeTrustedAdvisorCheckSummaries -> [Text]
checkIds} -> [Text]
checkIds) (\s :: DescribeTrustedAdvisorCheckSummaries
s@DescribeTrustedAdvisorCheckSummaries' {} [Text]
a -> DescribeTrustedAdvisorCheckSummaries
s {$sel:checkIds:DescribeTrustedAdvisorCheckSummaries' :: [Text]
checkIds = [Text]
a} :: DescribeTrustedAdvisorCheckSummaries) (([Text] -> f [Text])
 -> DescribeTrustedAdvisorCheckSummaries
 -> f DescribeTrustedAdvisorCheckSummaries)
-> (([Text] -> f [Text]) -> [Text] -> f [Text])
-> ([Text] -> f [Text])
-> DescribeTrustedAdvisorCheckSummaries
-> f DescribeTrustedAdvisorCheckSummaries
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([Text] -> f [Text]) -> [Text] -> f [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance
  Core.AWSRequest
    DescribeTrustedAdvisorCheckSummaries
  where
  type
    AWSResponse DescribeTrustedAdvisorCheckSummaries =
      DescribeTrustedAdvisorCheckSummariesResponse
  request :: DescribeTrustedAdvisorCheckSummaries
-> Request DescribeTrustedAdvisorCheckSummaries
request = Service
-> DescribeTrustedAdvisorCheckSummaries
-> Request DescribeTrustedAdvisorCheckSummaries
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy DescribeTrustedAdvisorCheckSummaries
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse DescribeTrustedAdvisorCheckSummaries)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either
      String (AWSResponse DescribeTrustedAdvisorCheckSummaries))
-> Logger
-> Service
-> Proxy DescribeTrustedAdvisorCheckSummaries
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse DescribeTrustedAdvisorCheckSummaries)))
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 ->
          Int
-> [TrustedAdvisorCheckSummary]
-> DescribeTrustedAdvisorCheckSummariesResponse
DescribeTrustedAdvisorCheckSummariesResponse'
            (Int
 -> [TrustedAdvisorCheckSummary]
 -> DescribeTrustedAdvisorCheckSummariesResponse)
-> Either String Int
-> Either
     String
     ([TrustedAdvisorCheckSummary]
      -> DescribeTrustedAdvisorCheckSummariesResponse)
forall (f :: * -> *) a b. Functor 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))
              Either
  String
  ([TrustedAdvisorCheckSummary]
   -> DescribeTrustedAdvisorCheckSummariesResponse)
-> Either String [TrustedAdvisorCheckSummary]
-> Either String DescribeTrustedAdvisorCheckSummariesResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Either String (Maybe [TrustedAdvisorCheckSummary])
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"summaries" Either String (Maybe [TrustedAdvisorCheckSummary])
-> [TrustedAdvisorCheckSummary]
-> Either String [TrustedAdvisorCheckSummary]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [TrustedAdvisorCheckSummary]
forall a. Monoid a => a
Prelude.mempty)
      )

instance
  Prelude.Hashable
    DescribeTrustedAdvisorCheckSummaries

instance
  Prelude.NFData
    DescribeTrustedAdvisorCheckSummaries

instance
  Core.ToHeaders
    DescribeTrustedAdvisorCheckSummaries
  where
  toHeaders :: DescribeTrustedAdvisorCheckSummaries -> ResponseHeaders
toHeaders =
    ResponseHeaders
-> DescribeTrustedAdvisorCheckSummaries -> 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
"AWSSupport_20130415.DescribeTrustedAdvisorCheckSummaries" ::
                          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
    DescribeTrustedAdvisorCheckSummaries
  where
  toJSON :: DescribeTrustedAdvisorCheckSummaries -> Value
toJSON DescribeTrustedAdvisorCheckSummaries' {[Text]
checkIds :: [Text]
$sel:checkIds:DescribeTrustedAdvisorCheckSummaries' :: DescribeTrustedAdvisorCheckSummaries -> [Text]
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"checkIds" Text -> [Text] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= [Text]
checkIds)]
      )

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

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

-- | The summaries of the Trusted Advisor checks returned by the
-- DescribeTrustedAdvisorCheckSummaries operation.
--
-- /See:/ 'newDescribeTrustedAdvisorCheckSummariesResponse' smart constructor.
data DescribeTrustedAdvisorCheckSummariesResponse = DescribeTrustedAdvisorCheckSummariesResponse'
  { -- | The response's http status code.
    DescribeTrustedAdvisorCheckSummariesResponse -> Int
httpStatus :: Prelude.Int,
    -- | The summary information for the requested Trusted Advisor checks.
    DescribeTrustedAdvisorCheckSummariesResponse
-> [TrustedAdvisorCheckSummary]
summaries :: [TrustedAdvisorCheckSummary]
  }
  deriving (DescribeTrustedAdvisorCheckSummariesResponse
-> DescribeTrustedAdvisorCheckSummariesResponse -> Bool
(DescribeTrustedAdvisorCheckSummariesResponse
 -> DescribeTrustedAdvisorCheckSummariesResponse -> Bool)
-> (DescribeTrustedAdvisorCheckSummariesResponse
    -> DescribeTrustedAdvisorCheckSummariesResponse -> Bool)
-> Eq DescribeTrustedAdvisorCheckSummariesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeTrustedAdvisorCheckSummariesResponse
-> DescribeTrustedAdvisorCheckSummariesResponse -> Bool
$c/= :: DescribeTrustedAdvisorCheckSummariesResponse
-> DescribeTrustedAdvisorCheckSummariesResponse -> Bool
== :: DescribeTrustedAdvisorCheckSummariesResponse
-> DescribeTrustedAdvisorCheckSummariesResponse -> Bool
$c== :: DescribeTrustedAdvisorCheckSummariesResponse
-> DescribeTrustedAdvisorCheckSummariesResponse -> Bool
Prelude.Eq, ReadPrec [DescribeTrustedAdvisorCheckSummariesResponse]
ReadPrec DescribeTrustedAdvisorCheckSummariesResponse
Int -> ReadS DescribeTrustedAdvisorCheckSummariesResponse
ReadS [DescribeTrustedAdvisorCheckSummariesResponse]
(Int -> ReadS DescribeTrustedAdvisorCheckSummariesResponse)
-> ReadS [DescribeTrustedAdvisorCheckSummariesResponse]
-> ReadPrec DescribeTrustedAdvisorCheckSummariesResponse
-> ReadPrec [DescribeTrustedAdvisorCheckSummariesResponse]
-> Read DescribeTrustedAdvisorCheckSummariesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeTrustedAdvisorCheckSummariesResponse]
$creadListPrec :: ReadPrec [DescribeTrustedAdvisorCheckSummariesResponse]
readPrec :: ReadPrec DescribeTrustedAdvisorCheckSummariesResponse
$creadPrec :: ReadPrec DescribeTrustedAdvisorCheckSummariesResponse
readList :: ReadS [DescribeTrustedAdvisorCheckSummariesResponse]
$creadList :: ReadS [DescribeTrustedAdvisorCheckSummariesResponse]
readsPrec :: Int -> ReadS DescribeTrustedAdvisorCheckSummariesResponse
$creadsPrec :: Int -> ReadS DescribeTrustedAdvisorCheckSummariesResponse
Prelude.Read, Int -> DescribeTrustedAdvisorCheckSummariesResponse -> ShowS
[DescribeTrustedAdvisorCheckSummariesResponse] -> ShowS
DescribeTrustedAdvisorCheckSummariesResponse -> String
(Int -> DescribeTrustedAdvisorCheckSummariesResponse -> ShowS)
-> (DescribeTrustedAdvisorCheckSummariesResponse -> String)
-> ([DescribeTrustedAdvisorCheckSummariesResponse] -> ShowS)
-> Show DescribeTrustedAdvisorCheckSummariesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeTrustedAdvisorCheckSummariesResponse] -> ShowS
$cshowList :: [DescribeTrustedAdvisorCheckSummariesResponse] -> ShowS
show :: DescribeTrustedAdvisorCheckSummariesResponse -> String
$cshow :: DescribeTrustedAdvisorCheckSummariesResponse -> String
showsPrec :: Int -> DescribeTrustedAdvisorCheckSummariesResponse -> ShowS
$cshowsPrec :: Int -> DescribeTrustedAdvisorCheckSummariesResponse -> ShowS
Prelude.Show, (forall x.
 DescribeTrustedAdvisorCheckSummariesResponse
 -> Rep DescribeTrustedAdvisorCheckSummariesResponse x)
-> (forall x.
    Rep DescribeTrustedAdvisorCheckSummariesResponse x
    -> DescribeTrustedAdvisorCheckSummariesResponse)
-> Generic DescribeTrustedAdvisorCheckSummariesResponse
forall x.
Rep DescribeTrustedAdvisorCheckSummariesResponse x
-> DescribeTrustedAdvisorCheckSummariesResponse
forall x.
DescribeTrustedAdvisorCheckSummariesResponse
-> Rep DescribeTrustedAdvisorCheckSummariesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeTrustedAdvisorCheckSummariesResponse x
-> DescribeTrustedAdvisorCheckSummariesResponse
$cfrom :: forall x.
DescribeTrustedAdvisorCheckSummariesResponse
-> Rep DescribeTrustedAdvisorCheckSummariesResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeTrustedAdvisorCheckSummariesResponse' 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:
--
-- 'httpStatus', 'describeTrustedAdvisorCheckSummariesResponse_httpStatus' - The response's http status code.
--
-- 'summaries', 'describeTrustedAdvisorCheckSummariesResponse_summaries' - The summary information for the requested Trusted Advisor checks.
newDescribeTrustedAdvisorCheckSummariesResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeTrustedAdvisorCheckSummariesResponse
newDescribeTrustedAdvisorCheckSummariesResponse :: Int -> DescribeTrustedAdvisorCheckSummariesResponse
newDescribeTrustedAdvisorCheckSummariesResponse
  Int
pHttpStatus_ =
    DescribeTrustedAdvisorCheckSummariesResponse' :: Int
-> [TrustedAdvisorCheckSummary]
-> DescribeTrustedAdvisorCheckSummariesResponse
DescribeTrustedAdvisorCheckSummariesResponse'
      { $sel:httpStatus:DescribeTrustedAdvisorCheckSummariesResponse' :: Int
httpStatus =
          Int
pHttpStatus_,
        $sel:summaries:DescribeTrustedAdvisorCheckSummariesResponse' :: [TrustedAdvisorCheckSummary]
summaries = [TrustedAdvisorCheckSummary]
forall a. Monoid a => a
Prelude.mempty
      }

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

-- | The summary information for the requested Trusted Advisor checks.
describeTrustedAdvisorCheckSummariesResponse_summaries :: Lens.Lens' DescribeTrustedAdvisorCheckSummariesResponse [TrustedAdvisorCheckSummary]
describeTrustedAdvisorCheckSummariesResponse_summaries :: ([TrustedAdvisorCheckSummary] -> f [TrustedAdvisorCheckSummary])
-> DescribeTrustedAdvisorCheckSummariesResponse
-> f DescribeTrustedAdvisorCheckSummariesResponse
describeTrustedAdvisorCheckSummariesResponse_summaries = (DescribeTrustedAdvisorCheckSummariesResponse
 -> [TrustedAdvisorCheckSummary])
-> (DescribeTrustedAdvisorCheckSummariesResponse
    -> [TrustedAdvisorCheckSummary]
    -> DescribeTrustedAdvisorCheckSummariesResponse)
-> Lens
     DescribeTrustedAdvisorCheckSummariesResponse
     DescribeTrustedAdvisorCheckSummariesResponse
     [TrustedAdvisorCheckSummary]
     [TrustedAdvisorCheckSummary]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrustedAdvisorCheckSummariesResponse' {[TrustedAdvisorCheckSummary]
summaries :: [TrustedAdvisorCheckSummary]
$sel:summaries:DescribeTrustedAdvisorCheckSummariesResponse' :: DescribeTrustedAdvisorCheckSummariesResponse
-> [TrustedAdvisorCheckSummary]
summaries} -> [TrustedAdvisorCheckSummary]
summaries) (\s :: DescribeTrustedAdvisorCheckSummariesResponse
s@DescribeTrustedAdvisorCheckSummariesResponse' {} [TrustedAdvisorCheckSummary]
a -> DescribeTrustedAdvisorCheckSummariesResponse
s {$sel:summaries:DescribeTrustedAdvisorCheckSummariesResponse' :: [TrustedAdvisorCheckSummary]
summaries = [TrustedAdvisorCheckSummary]
a} :: DescribeTrustedAdvisorCheckSummariesResponse) (([TrustedAdvisorCheckSummary] -> f [TrustedAdvisorCheckSummary])
 -> DescribeTrustedAdvisorCheckSummariesResponse
 -> f DescribeTrustedAdvisorCheckSummariesResponse)
-> (([TrustedAdvisorCheckSummary]
     -> f [TrustedAdvisorCheckSummary])
    -> [TrustedAdvisorCheckSummary] -> f [TrustedAdvisorCheckSummary])
-> ([TrustedAdvisorCheckSummary] -> f [TrustedAdvisorCheckSummary])
-> DescribeTrustedAdvisorCheckSummariesResponse
-> f DescribeTrustedAdvisorCheckSummariesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([TrustedAdvisorCheckSummary] -> f [TrustedAdvisorCheckSummary])
-> [TrustedAdvisorCheckSummary] -> f [TrustedAdvisorCheckSummary]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance
  Prelude.NFData
    DescribeTrustedAdvisorCheckSummariesResponse