{-# 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.Config.DescribeConfigurationRecorderStatus
-- 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 current status of the specified configuration recorder. If a
-- configuration recorder is not specified, this action returns the status
-- of all configuration recorders associated with the account.
--
-- Currently, you can specify only one configuration recorder per region in
-- your account.
module Amazonka.Config.DescribeConfigurationRecorderStatus
  ( -- * Creating a Request
    DescribeConfigurationRecorderStatus (..),
    newDescribeConfigurationRecorderStatus,

    -- * Request Lenses
    describeConfigurationRecorderStatus_configurationRecorderNames,

    -- * Destructuring the Response
    DescribeConfigurationRecorderStatusResponse (..),
    newDescribeConfigurationRecorderStatusResponse,

    -- * Response Lenses
    describeConfigurationRecorderStatusResponse_configurationRecordersStatus,
    describeConfigurationRecorderStatusResponse_httpStatus,
  )
where

import Amazonka.Config.Types
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | The input for the DescribeConfigurationRecorderStatus action.
--
-- /See:/ 'newDescribeConfigurationRecorderStatus' smart constructor.
data DescribeConfigurationRecorderStatus = DescribeConfigurationRecorderStatus'
  { -- | The name(s) of the configuration recorder. If the name is not specified,
    -- the action returns the current status of all the configuration recorders
    -- associated with the account.
    DescribeConfigurationRecorderStatus -> Maybe [Text]
configurationRecorderNames :: Prelude.Maybe [Prelude.Text]
  }
  deriving (DescribeConfigurationRecorderStatus
-> DescribeConfigurationRecorderStatus -> Bool
(DescribeConfigurationRecorderStatus
 -> DescribeConfigurationRecorderStatus -> Bool)
-> (DescribeConfigurationRecorderStatus
    -> DescribeConfigurationRecorderStatus -> Bool)
-> Eq DescribeConfigurationRecorderStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeConfigurationRecorderStatus
-> DescribeConfigurationRecorderStatus -> Bool
$c/= :: DescribeConfigurationRecorderStatus
-> DescribeConfigurationRecorderStatus -> Bool
== :: DescribeConfigurationRecorderStatus
-> DescribeConfigurationRecorderStatus -> Bool
$c== :: DescribeConfigurationRecorderStatus
-> DescribeConfigurationRecorderStatus -> Bool
Prelude.Eq, ReadPrec [DescribeConfigurationRecorderStatus]
ReadPrec DescribeConfigurationRecorderStatus
Int -> ReadS DescribeConfigurationRecorderStatus
ReadS [DescribeConfigurationRecorderStatus]
(Int -> ReadS DescribeConfigurationRecorderStatus)
-> ReadS [DescribeConfigurationRecorderStatus]
-> ReadPrec DescribeConfigurationRecorderStatus
-> ReadPrec [DescribeConfigurationRecorderStatus]
-> Read DescribeConfigurationRecorderStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeConfigurationRecorderStatus]
$creadListPrec :: ReadPrec [DescribeConfigurationRecorderStatus]
readPrec :: ReadPrec DescribeConfigurationRecorderStatus
$creadPrec :: ReadPrec DescribeConfigurationRecorderStatus
readList :: ReadS [DescribeConfigurationRecorderStatus]
$creadList :: ReadS [DescribeConfigurationRecorderStatus]
readsPrec :: Int -> ReadS DescribeConfigurationRecorderStatus
$creadsPrec :: Int -> ReadS DescribeConfigurationRecorderStatus
Prelude.Read, Int -> DescribeConfigurationRecorderStatus -> ShowS
[DescribeConfigurationRecorderStatus] -> ShowS
DescribeConfigurationRecorderStatus -> String
(Int -> DescribeConfigurationRecorderStatus -> ShowS)
-> (DescribeConfigurationRecorderStatus -> String)
-> ([DescribeConfigurationRecorderStatus] -> ShowS)
-> Show DescribeConfigurationRecorderStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeConfigurationRecorderStatus] -> ShowS
$cshowList :: [DescribeConfigurationRecorderStatus] -> ShowS
show :: DescribeConfigurationRecorderStatus -> String
$cshow :: DescribeConfigurationRecorderStatus -> String
showsPrec :: Int -> DescribeConfigurationRecorderStatus -> ShowS
$cshowsPrec :: Int -> DescribeConfigurationRecorderStatus -> ShowS
Prelude.Show, (forall x.
 DescribeConfigurationRecorderStatus
 -> Rep DescribeConfigurationRecorderStatus x)
-> (forall x.
    Rep DescribeConfigurationRecorderStatus x
    -> DescribeConfigurationRecorderStatus)
-> Generic DescribeConfigurationRecorderStatus
forall x.
Rep DescribeConfigurationRecorderStatus x
-> DescribeConfigurationRecorderStatus
forall x.
DescribeConfigurationRecorderStatus
-> Rep DescribeConfigurationRecorderStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeConfigurationRecorderStatus x
-> DescribeConfigurationRecorderStatus
$cfrom :: forall x.
DescribeConfigurationRecorderStatus
-> Rep DescribeConfigurationRecorderStatus x
Prelude.Generic)

-- |
-- Create a value of 'DescribeConfigurationRecorderStatus' 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:
--
-- 'configurationRecorderNames', 'describeConfigurationRecorderStatus_configurationRecorderNames' - The name(s) of the configuration recorder. If the name is not specified,
-- the action returns the current status of all the configuration recorders
-- associated with the account.
newDescribeConfigurationRecorderStatus ::
  DescribeConfigurationRecorderStatus
newDescribeConfigurationRecorderStatus :: DescribeConfigurationRecorderStatus
newDescribeConfigurationRecorderStatus =
  DescribeConfigurationRecorderStatus' :: Maybe [Text] -> DescribeConfigurationRecorderStatus
DescribeConfigurationRecorderStatus'
    { $sel:configurationRecorderNames:DescribeConfigurationRecorderStatus' :: Maybe [Text]
configurationRecorderNames =
        Maybe [Text]
forall a. Maybe a
Prelude.Nothing
    }

-- | The name(s) of the configuration recorder. If the name is not specified,
-- the action returns the current status of all the configuration recorders
-- associated with the account.
describeConfigurationRecorderStatus_configurationRecorderNames :: Lens.Lens' DescribeConfigurationRecorderStatus (Prelude.Maybe [Prelude.Text])
describeConfigurationRecorderStatus_configurationRecorderNames :: (Maybe [Text] -> f (Maybe [Text]))
-> DescribeConfigurationRecorderStatus
-> f DescribeConfigurationRecorderStatus
describeConfigurationRecorderStatus_configurationRecorderNames = (DescribeConfigurationRecorderStatus -> Maybe [Text])
-> (DescribeConfigurationRecorderStatus
    -> Maybe [Text] -> DescribeConfigurationRecorderStatus)
-> Lens
     DescribeConfigurationRecorderStatus
     DescribeConfigurationRecorderStatus
     (Maybe [Text])
     (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeConfigurationRecorderStatus' {Maybe [Text]
configurationRecorderNames :: Maybe [Text]
$sel:configurationRecorderNames:DescribeConfigurationRecorderStatus' :: DescribeConfigurationRecorderStatus -> Maybe [Text]
configurationRecorderNames} -> Maybe [Text]
configurationRecorderNames) (\s :: DescribeConfigurationRecorderStatus
s@DescribeConfigurationRecorderStatus' {} Maybe [Text]
a -> DescribeConfigurationRecorderStatus
s {$sel:configurationRecorderNames:DescribeConfigurationRecorderStatus' :: Maybe [Text]
configurationRecorderNames = Maybe [Text]
a} :: DescribeConfigurationRecorderStatus) ((Maybe [Text] -> f (Maybe [Text]))
 -> DescribeConfigurationRecorderStatus
 -> f DescribeConfigurationRecorderStatus)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> DescribeConfigurationRecorderStatus
-> f DescribeConfigurationRecorderStatus
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance
  Prelude.Hashable
    DescribeConfigurationRecorderStatus

instance
  Prelude.NFData
    DescribeConfigurationRecorderStatus

instance
  Core.ToHeaders
    DescribeConfigurationRecorderStatus
  where
  toHeaders :: DescribeConfigurationRecorderStatus -> ResponseHeaders
toHeaders =
    ResponseHeaders
-> DescribeConfigurationRecorderStatus -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"X-Amz-Target"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"StarlingDoveService.DescribeConfigurationRecorderStatus" ::
                          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
    DescribeConfigurationRecorderStatus
  where
  toJSON :: DescribeConfigurationRecorderStatus -> Value
toJSON DescribeConfigurationRecorderStatus' {Maybe [Text]
configurationRecorderNames :: Maybe [Text]
$sel:configurationRecorderNames:DescribeConfigurationRecorderStatus' :: DescribeConfigurationRecorderStatus -> Maybe [Text]
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"ConfigurationRecorderNames" Text -> [Text] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              ([Text] -> Pair) -> Maybe [Text] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
configurationRecorderNames
          ]
      )

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

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

-- | The output for the DescribeConfigurationRecorderStatus action, in JSON
-- format.
--
-- /See:/ 'newDescribeConfigurationRecorderStatusResponse' smart constructor.
data DescribeConfigurationRecorderStatusResponse = DescribeConfigurationRecorderStatusResponse'
  { -- | A list that contains status of the specified recorders.
    DescribeConfigurationRecorderStatusResponse
-> Maybe [ConfigurationRecorderStatus]
configurationRecordersStatus :: Prelude.Maybe [ConfigurationRecorderStatus],
    -- | The response's http status code.
    DescribeConfigurationRecorderStatusResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribeConfigurationRecorderStatusResponse
-> DescribeConfigurationRecorderStatusResponse -> Bool
(DescribeConfigurationRecorderStatusResponse
 -> DescribeConfigurationRecorderStatusResponse -> Bool)
-> (DescribeConfigurationRecorderStatusResponse
    -> DescribeConfigurationRecorderStatusResponse -> Bool)
-> Eq DescribeConfigurationRecorderStatusResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeConfigurationRecorderStatusResponse
-> DescribeConfigurationRecorderStatusResponse -> Bool
$c/= :: DescribeConfigurationRecorderStatusResponse
-> DescribeConfigurationRecorderStatusResponse -> Bool
== :: DescribeConfigurationRecorderStatusResponse
-> DescribeConfigurationRecorderStatusResponse -> Bool
$c== :: DescribeConfigurationRecorderStatusResponse
-> DescribeConfigurationRecorderStatusResponse -> Bool
Prelude.Eq, ReadPrec [DescribeConfigurationRecorderStatusResponse]
ReadPrec DescribeConfigurationRecorderStatusResponse
Int -> ReadS DescribeConfigurationRecorderStatusResponse
ReadS [DescribeConfigurationRecorderStatusResponse]
(Int -> ReadS DescribeConfigurationRecorderStatusResponse)
-> ReadS [DescribeConfigurationRecorderStatusResponse]
-> ReadPrec DescribeConfigurationRecorderStatusResponse
-> ReadPrec [DescribeConfigurationRecorderStatusResponse]
-> Read DescribeConfigurationRecorderStatusResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeConfigurationRecorderStatusResponse]
$creadListPrec :: ReadPrec [DescribeConfigurationRecorderStatusResponse]
readPrec :: ReadPrec DescribeConfigurationRecorderStatusResponse
$creadPrec :: ReadPrec DescribeConfigurationRecorderStatusResponse
readList :: ReadS [DescribeConfigurationRecorderStatusResponse]
$creadList :: ReadS [DescribeConfigurationRecorderStatusResponse]
readsPrec :: Int -> ReadS DescribeConfigurationRecorderStatusResponse
$creadsPrec :: Int -> ReadS DescribeConfigurationRecorderStatusResponse
Prelude.Read, Int -> DescribeConfigurationRecorderStatusResponse -> ShowS
[DescribeConfigurationRecorderStatusResponse] -> ShowS
DescribeConfigurationRecorderStatusResponse -> String
(Int -> DescribeConfigurationRecorderStatusResponse -> ShowS)
-> (DescribeConfigurationRecorderStatusResponse -> String)
-> ([DescribeConfigurationRecorderStatusResponse] -> ShowS)
-> Show DescribeConfigurationRecorderStatusResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeConfigurationRecorderStatusResponse] -> ShowS
$cshowList :: [DescribeConfigurationRecorderStatusResponse] -> ShowS
show :: DescribeConfigurationRecorderStatusResponse -> String
$cshow :: DescribeConfigurationRecorderStatusResponse -> String
showsPrec :: Int -> DescribeConfigurationRecorderStatusResponse -> ShowS
$cshowsPrec :: Int -> DescribeConfigurationRecorderStatusResponse -> ShowS
Prelude.Show, (forall x.
 DescribeConfigurationRecorderStatusResponse
 -> Rep DescribeConfigurationRecorderStatusResponse x)
-> (forall x.
    Rep DescribeConfigurationRecorderStatusResponse x
    -> DescribeConfigurationRecorderStatusResponse)
-> Generic DescribeConfigurationRecorderStatusResponse
forall x.
Rep DescribeConfigurationRecorderStatusResponse x
-> DescribeConfigurationRecorderStatusResponse
forall x.
DescribeConfigurationRecorderStatusResponse
-> Rep DescribeConfigurationRecorderStatusResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeConfigurationRecorderStatusResponse x
-> DescribeConfigurationRecorderStatusResponse
$cfrom :: forall x.
DescribeConfigurationRecorderStatusResponse
-> Rep DescribeConfigurationRecorderStatusResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeConfigurationRecorderStatusResponse' 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:
--
-- 'configurationRecordersStatus', 'describeConfigurationRecorderStatusResponse_configurationRecordersStatus' - A list that contains status of the specified recorders.
--
-- 'httpStatus', 'describeConfigurationRecorderStatusResponse_httpStatus' - The response's http status code.
newDescribeConfigurationRecorderStatusResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeConfigurationRecorderStatusResponse
newDescribeConfigurationRecorderStatusResponse :: Int -> DescribeConfigurationRecorderStatusResponse
newDescribeConfigurationRecorderStatusResponse
  Int
pHttpStatus_ =
    DescribeConfigurationRecorderStatusResponse' :: Maybe [ConfigurationRecorderStatus]
-> Int -> DescribeConfigurationRecorderStatusResponse
DescribeConfigurationRecorderStatusResponse'
      { $sel:configurationRecordersStatus:DescribeConfigurationRecorderStatusResponse' :: Maybe [ConfigurationRecorderStatus]
configurationRecordersStatus =
          Maybe [ConfigurationRecorderStatus]
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:DescribeConfigurationRecorderStatusResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | A list that contains status of the specified recorders.
describeConfigurationRecorderStatusResponse_configurationRecordersStatus :: Lens.Lens' DescribeConfigurationRecorderStatusResponse (Prelude.Maybe [ConfigurationRecorderStatus])
describeConfigurationRecorderStatusResponse_configurationRecordersStatus :: (Maybe [ConfigurationRecorderStatus]
 -> f (Maybe [ConfigurationRecorderStatus]))
-> DescribeConfigurationRecorderStatusResponse
-> f DescribeConfigurationRecorderStatusResponse
describeConfigurationRecorderStatusResponse_configurationRecordersStatus = (DescribeConfigurationRecorderStatusResponse
 -> Maybe [ConfigurationRecorderStatus])
-> (DescribeConfigurationRecorderStatusResponse
    -> Maybe [ConfigurationRecorderStatus]
    -> DescribeConfigurationRecorderStatusResponse)
-> Lens
     DescribeConfigurationRecorderStatusResponse
     DescribeConfigurationRecorderStatusResponse
     (Maybe [ConfigurationRecorderStatus])
     (Maybe [ConfigurationRecorderStatus])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeConfigurationRecorderStatusResponse' {Maybe [ConfigurationRecorderStatus]
configurationRecordersStatus :: Maybe [ConfigurationRecorderStatus]
$sel:configurationRecordersStatus:DescribeConfigurationRecorderStatusResponse' :: DescribeConfigurationRecorderStatusResponse
-> Maybe [ConfigurationRecorderStatus]
configurationRecordersStatus} -> Maybe [ConfigurationRecorderStatus]
configurationRecordersStatus) (\s :: DescribeConfigurationRecorderStatusResponse
s@DescribeConfigurationRecorderStatusResponse' {} Maybe [ConfigurationRecorderStatus]
a -> DescribeConfigurationRecorderStatusResponse
s {$sel:configurationRecordersStatus:DescribeConfigurationRecorderStatusResponse' :: Maybe [ConfigurationRecorderStatus]
configurationRecordersStatus = Maybe [ConfigurationRecorderStatus]
a} :: DescribeConfigurationRecorderStatusResponse) ((Maybe [ConfigurationRecorderStatus]
  -> f (Maybe [ConfigurationRecorderStatus]))
 -> DescribeConfigurationRecorderStatusResponse
 -> f DescribeConfigurationRecorderStatusResponse)
-> ((Maybe [ConfigurationRecorderStatus]
     -> f (Maybe [ConfigurationRecorderStatus]))
    -> Maybe [ConfigurationRecorderStatus]
    -> f (Maybe [ConfigurationRecorderStatus]))
-> (Maybe [ConfigurationRecorderStatus]
    -> f (Maybe [ConfigurationRecorderStatus]))
-> DescribeConfigurationRecorderStatusResponse
-> f DescribeConfigurationRecorderStatusResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [ConfigurationRecorderStatus]
  [ConfigurationRecorderStatus]
  [ConfigurationRecorderStatus]
  [ConfigurationRecorderStatus]
-> Iso
     (Maybe [ConfigurationRecorderStatus])
     (Maybe [ConfigurationRecorderStatus])
     (Maybe [ConfigurationRecorderStatus])
     (Maybe [ConfigurationRecorderStatus])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
  [ConfigurationRecorderStatus]
  [ConfigurationRecorderStatus]
  [ConfigurationRecorderStatus]
  [ConfigurationRecorderStatus]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance
  Prelude.NFData
    DescribeConfigurationRecorderStatusResponse