{-# 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.DescribeTrustedAdvisorCheckRefreshStatuses
-- 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 refresh status of the AWS Trusted Advisor checks that have
-- the specified check IDs. You can get the check IDs by calling the
-- DescribeTrustedAdvisorChecks operation.
--
-- Some checks are refreshed automatically, and you can\'t return their
-- refresh statuses by using the
-- @DescribeTrustedAdvisorCheckRefreshStatuses@ operation. If you call this
-- operation for these checks, you might see an @InvalidParameterValue@
-- error.
--
-- -   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.DescribeTrustedAdvisorCheckRefreshStatuses
  ( -- * Creating a Request
    DescribeTrustedAdvisorCheckRefreshStatuses (..),
    newDescribeTrustedAdvisorCheckRefreshStatuses,

    -- * Request Lenses
    describeTrustedAdvisorCheckRefreshStatuses_checkIds,

    -- * Destructuring the Response
    DescribeTrustedAdvisorCheckRefreshStatusesResponse (..),
    newDescribeTrustedAdvisorCheckRefreshStatusesResponse,

    -- * Response Lenses
    describeTrustedAdvisorCheckRefreshStatusesResponse_httpStatus,
    describeTrustedAdvisorCheckRefreshStatusesResponse_statuses,
  )
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:/ 'newDescribeTrustedAdvisorCheckRefreshStatuses' smart constructor.
data DescribeTrustedAdvisorCheckRefreshStatuses = DescribeTrustedAdvisorCheckRefreshStatuses'
  { -- | The IDs of the Trusted Advisor checks to get the status.
    --
    -- If you specify the check ID of a check that is automatically refreshed,
    -- you might see an @InvalidParameterValue@ error.
    DescribeTrustedAdvisorCheckRefreshStatuses -> [Text]
checkIds :: [Prelude.Text]
  }
  deriving (DescribeTrustedAdvisorCheckRefreshStatuses
-> DescribeTrustedAdvisorCheckRefreshStatuses -> Bool
(DescribeTrustedAdvisorCheckRefreshStatuses
 -> DescribeTrustedAdvisorCheckRefreshStatuses -> Bool)
-> (DescribeTrustedAdvisorCheckRefreshStatuses
    -> DescribeTrustedAdvisorCheckRefreshStatuses -> Bool)
-> Eq DescribeTrustedAdvisorCheckRefreshStatuses
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeTrustedAdvisorCheckRefreshStatuses
-> DescribeTrustedAdvisorCheckRefreshStatuses -> Bool
$c/= :: DescribeTrustedAdvisorCheckRefreshStatuses
-> DescribeTrustedAdvisorCheckRefreshStatuses -> Bool
== :: DescribeTrustedAdvisorCheckRefreshStatuses
-> DescribeTrustedAdvisorCheckRefreshStatuses -> Bool
$c== :: DescribeTrustedAdvisorCheckRefreshStatuses
-> DescribeTrustedAdvisorCheckRefreshStatuses -> Bool
Prelude.Eq, ReadPrec [DescribeTrustedAdvisorCheckRefreshStatuses]
ReadPrec DescribeTrustedAdvisorCheckRefreshStatuses
Int -> ReadS DescribeTrustedAdvisorCheckRefreshStatuses
ReadS [DescribeTrustedAdvisorCheckRefreshStatuses]
(Int -> ReadS DescribeTrustedAdvisorCheckRefreshStatuses)
-> ReadS [DescribeTrustedAdvisorCheckRefreshStatuses]
-> ReadPrec DescribeTrustedAdvisorCheckRefreshStatuses
-> ReadPrec [DescribeTrustedAdvisorCheckRefreshStatuses]
-> Read DescribeTrustedAdvisorCheckRefreshStatuses
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeTrustedAdvisorCheckRefreshStatuses]
$creadListPrec :: ReadPrec [DescribeTrustedAdvisorCheckRefreshStatuses]
readPrec :: ReadPrec DescribeTrustedAdvisorCheckRefreshStatuses
$creadPrec :: ReadPrec DescribeTrustedAdvisorCheckRefreshStatuses
readList :: ReadS [DescribeTrustedAdvisorCheckRefreshStatuses]
$creadList :: ReadS [DescribeTrustedAdvisorCheckRefreshStatuses]
readsPrec :: Int -> ReadS DescribeTrustedAdvisorCheckRefreshStatuses
$creadsPrec :: Int -> ReadS DescribeTrustedAdvisorCheckRefreshStatuses
Prelude.Read, Int -> DescribeTrustedAdvisorCheckRefreshStatuses -> ShowS
[DescribeTrustedAdvisorCheckRefreshStatuses] -> ShowS
DescribeTrustedAdvisorCheckRefreshStatuses -> String
(Int -> DescribeTrustedAdvisorCheckRefreshStatuses -> ShowS)
-> (DescribeTrustedAdvisorCheckRefreshStatuses -> String)
-> ([DescribeTrustedAdvisorCheckRefreshStatuses] -> ShowS)
-> Show DescribeTrustedAdvisorCheckRefreshStatuses
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeTrustedAdvisorCheckRefreshStatuses] -> ShowS
$cshowList :: [DescribeTrustedAdvisorCheckRefreshStatuses] -> ShowS
show :: DescribeTrustedAdvisorCheckRefreshStatuses -> String
$cshow :: DescribeTrustedAdvisorCheckRefreshStatuses -> String
showsPrec :: Int -> DescribeTrustedAdvisorCheckRefreshStatuses -> ShowS
$cshowsPrec :: Int -> DescribeTrustedAdvisorCheckRefreshStatuses -> ShowS
Prelude.Show, (forall x.
 DescribeTrustedAdvisorCheckRefreshStatuses
 -> Rep DescribeTrustedAdvisorCheckRefreshStatuses x)
-> (forall x.
    Rep DescribeTrustedAdvisorCheckRefreshStatuses x
    -> DescribeTrustedAdvisorCheckRefreshStatuses)
-> Generic DescribeTrustedAdvisorCheckRefreshStatuses
forall x.
Rep DescribeTrustedAdvisorCheckRefreshStatuses x
-> DescribeTrustedAdvisorCheckRefreshStatuses
forall x.
DescribeTrustedAdvisorCheckRefreshStatuses
-> Rep DescribeTrustedAdvisorCheckRefreshStatuses x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeTrustedAdvisorCheckRefreshStatuses x
-> DescribeTrustedAdvisorCheckRefreshStatuses
$cfrom :: forall x.
DescribeTrustedAdvisorCheckRefreshStatuses
-> Rep DescribeTrustedAdvisorCheckRefreshStatuses x
Prelude.Generic)

-- |
-- Create a value of 'DescribeTrustedAdvisorCheckRefreshStatuses' 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', 'describeTrustedAdvisorCheckRefreshStatuses_checkIds' - The IDs of the Trusted Advisor checks to get the status.
--
-- If you specify the check ID of a check that is automatically refreshed,
-- you might see an @InvalidParameterValue@ error.
newDescribeTrustedAdvisorCheckRefreshStatuses ::
  DescribeTrustedAdvisorCheckRefreshStatuses
newDescribeTrustedAdvisorCheckRefreshStatuses :: DescribeTrustedAdvisorCheckRefreshStatuses
newDescribeTrustedAdvisorCheckRefreshStatuses =
  DescribeTrustedAdvisorCheckRefreshStatuses' :: [Text] -> DescribeTrustedAdvisorCheckRefreshStatuses
DescribeTrustedAdvisorCheckRefreshStatuses'
    { $sel:checkIds:DescribeTrustedAdvisorCheckRefreshStatuses' :: [Text]
checkIds =
        [Text]
forall a. Monoid a => a
Prelude.mempty
    }

-- | The IDs of the Trusted Advisor checks to get the status.
--
-- If you specify the check ID of a check that is automatically refreshed,
-- you might see an @InvalidParameterValue@ error.
describeTrustedAdvisorCheckRefreshStatuses_checkIds :: Lens.Lens' DescribeTrustedAdvisorCheckRefreshStatuses [Prelude.Text]
describeTrustedAdvisorCheckRefreshStatuses_checkIds :: ([Text] -> f [Text])
-> DescribeTrustedAdvisorCheckRefreshStatuses
-> f DescribeTrustedAdvisorCheckRefreshStatuses
describeTrustedAdvisorCheckRefreshStatuses_checkIds = (DescribeTrustedAdvisorCheckRefreshStatuses -> [Text])
-> (DescribeTrustedAdvisorCheckRefreshStatuses
    -> [Text] -> DescribeTrustedAdvisorCheckRefreshStatuses)
-> Lens
     DescribeTrustedAdvisorCheckRefreshStatuses
     DescribeTrustedAdvisorCheckRefreshStatuses
     [Text]
     [Text]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrustedAdvisorCheckRefreshStatuses' {[Text]
checkIds :: [Text]
$sel:checkIds:DescribeTrustedAdvisorCheckRefreshStatuses' :: DescribeTrustedAdvisorCheckRefreshStatuses -> [Text]
checkIds} -> [Text]
checkIds) (\s :: DescribeTrustedAdvisorCheckRefreshStatuses
s@DescribeTrustedAdvisorCheckRefreshStatuses' {} [Text]
a -> DescribeTrustedAdvisorCheckRefreshStatuses
s {$sel:checkIds:DescribeTrustedAdvisorCheckRefreshStatuses' :: [Text]
checkIds = [Text]
a} :: DescribeTrustedAdvisorCheckRefreshStatuses) (([Text] -> f [Text])
 -> DescribeTrustedAdvisorCheckRefreshStatuses
 -> f DescribeTrustedAdvisorCheckRefreshStatuses)
-> (([Text] -> f [Text]) -> [Text] -> f [Text])
-> ([Text] -> f [Text])
-> DescribeTrustedAdvisorCheckRefreshStatuses
-> f DescribeTrustedAdvisorCheckRefreshStatuses
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
    DescribeTrustedAdvisorCheckRefreshStatuses
  where
  type
    AWSResponse
      DescribeTrustedAdvisorCheckRefreshStatuses =
      DescribeTrustedAdvisorCheckRefreshStatusesResponse
  request :: DescribeTrustedAdvisorCheckRefreshStatuses
-> Request DescribeTrustedAdvisorCheckRefreshStatuses
request = Service
-> DescribeTrustedAdvisorCheckRefreshStatuses
-> Request DescribeTrustedAdvisorCheckRefreshStatuses
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy DescribeTrustedAdvisorCheckRefreshStatuses
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse DescribeTrustedAdvisorCheckRefreshStatuses)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either
      String (AWSResponse DescribeTrustedAdvisorCheckRefreshStatuses))
-> Logger
-> Service
-> Proxy DescribeTrustedAdvisorCheckRefreshStatuses
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse DescribeTrustedAdvisorCheckRefreshStatuses)))
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
-> [TrustedAdvisorCheckRefreshStatus]
-> DescribeTrustedAdvisorCheckRefreshStatusesResponse
DescribeTrustedAdvisorCheckRefreshStatusesResponse'
            (Int
 -> [TrustedAdvisorCheckRefreshStatus]
 -> DescribeTrustedAdvisorCheckRefreshStatusesResponse)
-> Either String Int
-> Either
     String
     ([TrustedAdvisorCheckRefreshStatus]
      -> DescribeTrustedAdvisorCheckRefreshStatusesResponse)
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
  ([TrustedAdvisorCheckRefreshStatus]
   -> DescribeTrustedAdvisorCheckRefreshStatusesResponse)
-> Either String [TrustedAdvisorCheckRefreshStatus]
-> Either String DescribeTrustedAdvisorCheckRefreshStatusesResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Either String (Maybe [TrustedAdvisorCheckRefreshStatus])
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"statuses" Either String (Maybe [TrustedAdvisorCheckRefreshStatus])
-> [TrustedAdvisorCheckRefreshStatus]
-> Either String [TrustedAdvisorCheckRefreshStatus]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [TrustedAdvisorCheckRefreshStatus]
forall a. Monoid a => a
Prelude.mempty)
      )

instance
  Prelude.Hashable
    DescribeTrustedAdvisorCheckRefreshStatuses

instance
  Prelude.NFData
    DescribeTrustedAdvisorCheckRefreshStatuses

instance
  Core.ToHeaders
    DescribeTrustedAdvisorCheckRefreshStatuses
  where
  toHeaders :: DescribeTrustedAdvisorCheckRefreshStatuses -> ResponseHeaders
toHeaders =
    ResponseHeaders
-> DescribeTrustedAdvisorCheckRefreshStatuses -> 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.DescribeTrustedAdvisorCheckRefreshStatuses" ::
                          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
    DescribeTrustedAdvisorCheckRefreshStatuses
  where
  toJSON :: DescribeTrustedAdvisorCheckRefreshStatuses -> Value
toJSON
    DescribeTrustedAdvisorCheckRefreshStatuses' {[Text]
checkIds :: [Text]
$sel:checkIds:DescribeTrustedAdvisorCheckRefreshStatuses' :: DescribeTrustedAdvisorCheckRefreshStatuses -> [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
    DescribeTrustedAdvisorCheckRefreshStatuses
  where
  toPath :: DescribeTrustedAdvisorCheckRefreshStatuses -> ByteString
toPath = ByteString
-> DescribeTrustedAdvisorCheckRefreshStatuses -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"

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

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

-- |
-- Create a value of 'DescribeTrustedAdvisorCheckRefreshStatusesResponse' 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', 'describeTrustedAdvisorCheckRefreshStatusesResponse_httpStatus' - The response's http status code.
--
-- 'statuses', 'describeTrustedAdvisorCheckRefreshStatusesResponse_statuses' - The refresh status of the specified Trusted Advisor checks.
newDescribeTrustedAdvisorCheckRefreshStatusesResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeTrustedAdvisorCheckRefreshStatusesResponse
newDescribeTrustedAdvisorCheckRefreshStatusesResponse :: Int -> DescribeTrustedAdvisorCheckRefreshStatusesResponse
newDescribeTrustedAdvisorCheckRefreshStatusesResponse
  Int
pHttpStatus_ =
    DescribeTrustedAdvisorCheckRefreshStatusesResponse' :: Int
-> [TrustedAdvisorCheckRefreshStatus]
-> DescribeTrustedAdvisorCheckRefreshStatusesResponse
DescribeTrustedAdvisorCheckRefreshStatusesResponse'
      { $sel:httpStatus:DescribeTrustedAdvisorCheckRefreshStatusesResponse' :: Int
httpStatus =
          Int
pHttpStatus_,
        $sel:statuses:DescribeTrustedAdvisorCheckRefreshStatusesResponse' :: [TrustedAdvisorCheckRefreshStatus]
statuses =
          [TrustedAdvisorCheckRefreshStatus]
forall a. Monoid a => a
Prelude.mempty
      }

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

-- | The refresh status of the specified Trusted Advisor checks.
describeTrustedAdvisorCheckRefreshStatusesResponse_statuses :: Lens.Lens' DescribeTrustedAdvisorCheckRefreshStatusesResponse [TrustedAdvisorCheckRefreshStatus]
describeTrustedAdvisorCheckRefreshStatusesResponse_statuses :: ([TrustedAdvisorCheckRefreshStatus]
 -> f [TrustedAdvisorCheckRefreshStatus])
-> DescribeTrustedAdvisorCheckRefreshStatusesResponse
-> f DescribeTrustedAdvisorCheckRefreshStatusesResponse
describeTrustedAdvisorCheckRefreshStatusesResponse_statuses = (DescribeTrustedAdvisorCheckRefreshStatusesResponse
 -> [TrustedAdvisorCheckRefreshStatus])
-> (DescribeTrustedAdvisorCheckRefreshStatusesResponse
    -> [TrustedAdvisorCheckRefreshStatus]
    -> DescribeTrustedAdvisorCheckRefreshStatusesResponse)
-> Lens
     DescribeTrustedAdvisorCheckRefreshStatusesResponse
     DescribeTrustedAdvisorCheckRefreshStatusesResponse
     [TrustedAdvisorCheckRefreshStatus]
     [TrustedAdvisorCheckRefreshStatus]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrustedAdvisorCheckRefreshStatusesResponse' {[TrustedAdvisorCheckRefreshStatus]
statuses :: [TrustedAdvisorCheckRefreshStatus]
$sel:statuses:DescribeTrustedAdvisorCheckRefreshStatusesResponse' :: DescribeTrustedAdvisorCheckRefreshStatusesResponse
-> [TrustedAdvisorCheckRefreshStatus]
statuses} -> [TrustedAdvisorCheckRefreshStatus]
statuses) (\s :: DescribeTrustedAdvisorCheckRefreshStatusesResponse
s@DescribeTrustedAdvisorCheckRefreshStatusesResponse' {} [TrustedAdvisorCheckRefreshStatus]
a -> DescribeTrustedAdvisorCheckRefreshStatusesResponse
s {$sel:statuses:DescribeTrustedAdvisorCheckRefreshStatusesResponse' :: [TrustedAdvisorCheckRefreshStatus]
statuses = [TrustedAdvisorCheckRefreshStatus]
a} :: DescribeTrustedAdvisorCheckRefreshStatusesResponse) (([TrustedAdvisorCheckRefreshStatus]
  -> f [TrustedAdvisorCheckRefreshStatus])
 -> DescribeTrustedAdvisorCheckRefreshStatusesResponse
 -> f DescribeTrustedAdvisorCheckRefreshStatusesResponse)
-> (([TrustedAdvisorCheckRefreshStatus]
     -> f [TrustedAdvisorCheckRefreshStatus])
    -> [TrustedAdvisorCheckRefreshStatus]
    -> f [TrustedAdvisorCheckRefreshStatus])
-> ([TrustedAdvisorCheckRefreshStatus]
    -> f [TrustedAdvisorCheckRefreshStatus])
-> DescribeTrustedAdvisorCheckRefreshStatusesResponse
-> f DescribeTrustedAdvisorCheckRefreshStatusesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([TrustedAdvisorCheckRefreshStatus]
 -> f [TrustedAdvisorCheckRefreshStatus])
-> [TrustedAdvisorCheckRefreshStatus]
-> f [TrustedAdvisorCheckRefreshStatus]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance
  Prelude.NFData
    DescribeTrustedAdvisorCheckRefreshStatusesResponse