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

    -- * Request Lenses
    describeConfigurationRecorders_configurationRecorderNames,

    -- * Destructuring the Response
    DescribeConfigurationRecordersResponse (..),
    newDescribeConfigurationRecordersResponse,

    -- * Response Lenses
    describeConfigurationRecordersResponse_configurationRecorders,
    describeConfigurationRecordersResponse_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 DescribeConfigurationRecorders action.
--
-- /See:/ 'newDescribeConfigurationRecorders' smart constructor.
data DescribeConfigurationRecorders = DescribeConfigurationRecorders'
  { -- | A list of configuration recorder names.
    DescribeConfigurationRecorders -> Maybe [Text]
configurationRecorderNames :: Prelude.Maybe [Prelude.Text]
  }
  deriving (DescribeConfigurationRecorders
-> DescribeConfigurationRecorders -> Bool
(DescribeConfigurationRecorders
 -> DescribeConfigurationRecorders -> Bool)
-> (DescribeConfigurationRecorders
    -> DescribeConfigurationRecorders -> Bool)
-> Eq DescribeConfigurationRecorders
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeConfigurationRecorders
-> DescribeConfigurationRecorders -> Bool
$c/= :: DescribeConfigurationRecorders
-> DescribeConfigurationRecorders -> Bool
== :: DescribeConfigurationRecorders
-> DescribeConfigurationRecorders -> Bool
$c== :: DescribeConfigurationRecorders
-> DescribeConfigurationRecorders -> Bool
Prelude.Eq, ReadPrec [DescribeConfigurationRecorders]
ReadPrec DescribeConfigurationRecorders
Int -> ReadS DescribeConfigurationRecorders
ReadS [DescribeConfigurationRecorders]
(Int -> ReadS DescribeConfigurationRecorders)
-> ReadS [DescribeConfigurationRecorders]
-> ReadPrec DescribeConfigurationRecorders
-> ReadPrec [DescribeConfigurationRecorders]
-> Read DescribeConfigurationRecorders
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeConfigurationRecorders]
$creadListPrec :: ReadPrec [DescribeConfigurationRecorders]
readPrec :: ReadPrec DescribeConfigurationRecorders
$creadPrec :: ReadPrec DescribeConfigurationRecorders
readList :: ReadS [DescribeConfigurationRecorders]
$creadList :: ReadS [DescribeConfigurationRecorders]
readsPrec :: Int -> ReadS DescribeConfigurationRecorders
$creadsPrec :: Int -> ReadS DescribeConfigurationRecorders
Prelude.Read, Int -> DescribeConfigurationRecorders -> ShowS
[DescribeConfigurationRecorders] -> ShowS
DescribeConfigurationRecorders -> String
(Int -> DescribeConfigurationRecorders -> ShowS)
-> (DescribeConfigurationRecorders -> String)
-> ([DescribeConfigurationRecorders] -> ShowS)
-> Show DescribeConfigurationRecorders
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeConfigurationRecorders] -> ShowS
$cshowList :: [DescribeConfigurationRecorders] -> ShowS
show :: DescribeConfigurationRecorders -> String
$cshow :: DescribeConfigurationRecorders -> String
showsPrec :: Int -> DescribeConfigurationRecorders -> ShowS
$cshowsPrec :: Int -> DescribeConfigurationRecorders -> ShowS
Prelude.Show, (forall x.
 DescribeConfigurationRecorders
 -> Rep DescribeConfigurationRecorders x)
-> (forall x.
    Rep DescribeConfigurationRecorders x
    -> DescribeConfigurationRecorders)
-> Generic DescribeConfigurationRecorders
forall x.
Rep DescribeConfigurationRecorders x
-> DescribeConfigurationRecorders
forall x.
DescribeConfigurationRecorders
-> Rep DescribeConfigurationRecorders x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeConfigurationRecorders x
-> DescribeConfigurationRecorders
$cfrom :: forall x.
DescribeConfigurationRecorders
-> Rep DescribeConfigurationRecorders x
Prelude.Generic)

-- |
-- Create a value of 'DescribeConfigurationRecorders' 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', 'describeConfigurationRecorders_configurationRecorderNames' - A list of configuration recorder names.
newDescribeConfigurationRecorders ::
  DescribeConfigurationRecorders
newDescribeConfigurationRecorders :: DescribeConfigurationRecorders
newDescribeConfigurationRecorders =
  DescribeConfigurationRecorders' :: Maybe [Text] -> DescribeConfigurationRecorders
DescribeConfigurationRecorders'
    { $sel:configurationRecorderNames:DescribeConfigurationRecorders' :: Maybe [Text]
configurationRecorderNames =
        Maybe [Text]
forall a. Maybe a
Prelude.Nothing
    }

-- | A list of configuration recorder names.
describeConfigurationRecorders_configurationRecorderNames :: Lens.Lens' DescribeConfigurationRecorders (Prelude.Maybe [Prelude.Text])
describeConfigurationRecorders_configurationRecorderNames :: (Maybe [Text] -> f (Maybe [Text]))
-> DescribeConfigurationRecorders
-> f DescribeConfigurationRecorders
describeConfigurationRecorders_configurationRecorderNames = (DescribeConfigurationRecorders -> Maybe [Text])
-> (DescribeConfigurationRecorders
    -> Maybe [Text] -> DescribeConfigurationRecorders)
-> Lens
     DescribeConfigurationRecorders
     DescribeConfigurationRecorders
     (Maybe [Text])
     (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeConfigurationRecorders' {Maybe [Text]
configurationRecorderNames :: Maybe [Text]
$sel:configurationRecorderNames:DescribeConfigurationRecorders' :: DescribeConfigurationRecorders -> Maybe [Text]
configurationRecorderNames} -> Maybe [Text]
configurationRecorderNames) (\s :: DescribeConfigurationRecorders
s@DescribeConfigurationRecorders' {} Maybe [Text]
a -> DescribeConfigurationRecorders
s {$sel:configurationRecorderNames:DescribeConfigurationRecorders' :: Maybe [Text]
configurationRecorderNames = Maybe [Text]
a} :: DescribeConfigurationRecorders) ((Maybe [Text] -> f (Maybe [Text]))
 -> DescribeConfigurationRecorders
 -> f DescribeConfigurationRecorders)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> DescribeConfigurationRecorders
-> f DescribeConfigurationRecorders
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
    DescribeConfigurationRecorders
  where
  type
    AWSResponse DescribeConfigurationRecorders =
      DescribeConfigurationRecordersResponse
  request :: DescribeConfigurationRecorders
-> Request DescribeConfigurationRecorders
request = Service
-> DescribeConfigurationRecorders
-> Request DescribeConfigurationRecorders
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy DescribeConfigurationRecorders
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse DescribeConfigurationRecorders)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse DescribeConfigurationRecorders))
-> Logger
-> Service
-> Proxy DescribeConfigurationRecorders
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse DescribeConfigurationRecorders)))
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 [ConfigurationRecorder]
-> Int -> DescribeConfigurationRecordersResponse
DescribeConfigurationRecordersResponse'
            (Maybe [ConfigurationRecorder]
 -> Int -> DescribeConfigurationRecordersResponse)
-> Either String (Maybe [ConfigurationRecorder])
-> Either String (Int -> DescribeConfigurationRecordersResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object
-> Text -> Either String (Maybe (Maybe [ConfigurationRecorder]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ConfigurationRecorders"
                            Either String (Maybe (Maybe [ConfigurationRecorder]))
-> Maybe [ConfigurationRecorder]
-> Either String (Maybe [ConfigurationRecorder])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [ConfigurationRecorder]
forall a. Monoid a => a
Prelude.mempty
                        )
            Either String (Int -> DescribeConfigurationRecordersResponse)
-> Either String Int
-> Either String DescribeConfigurationRecordersResponse
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
    DescribeConfigurationRecorders

instance
  Prelude.NFData
    DescribeConfigurationRecorders

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

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

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

-- |
-- Create a value of 'DescribeConfigurationRecordersResponse' 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:
--
-- 'configurationRecorders', 'describeConfigurationRecordersResponse_configurationRecorders' - A list that contains the descriptions of the specified configuration
-- recorders.
--
-- 'httpStatus', 'describeConfigurationRecordersResponse_httpStatus' - The response's http status code.
newDescribeConfigurationRecordersResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeConfigurationRecordersResponse
newDescribeConfigurationRecordersResponse :: Int -> DescribeConfigurationRecordersResponse
newDescribeConfigurationRecordersResponse
  Int
pHttpStatus_ =
    DescribeConfigurationRecordersResponse' :: Maybe [ConfigurationRecorder]
-> Int -> DescribeConfigurationRecordersResponse
DescribeConfigurationRecordersResponse'
      { $sel:configurationRecorders:DescribeConfigurationRecordersResponse' :: Maybe [ConfigurationRecorder]
configurationRecorders =
          Maybe [ConfigurationRecorder]
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:DescribeConfigurationRecordersResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | A list that contains the descriptions of the specified configuration
-- recorders.
describeConfigurationRecordersResponse_configurationRecorders :: Lens.Lens' DescribeConfigurationRecordersResponse (Prelude.Maybe [ConfigurationRecorder])
describeConfigurationRecordersResponse_configurationRecorders :: (Maybe [ConfigurationRecorder]
 -> f (Maybe [ConfigurationRecorder]))
-> DescribeConfigurationRecordersResponse
-> f DescribeConfigurationRecordersResponse
describeConfigurationRecordersResponse_configurationRecorders = (DescribeConfigurationRecordersResponse
 -> Maybe [ConfigurationRecorder])
-> (DescribeConfigurationRecordersResponse
    -> Maybe [ConfigurationRecorder]
    -> DescribeConfigurationRecordersResponse)
-> Lens
     DescribeConfigurationRecordersResponse
     DescribeConfigurationRecordersResponse
     (Maybe [ConfigurationRecorder])
     (Maybe [ConfigurationRecorder])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeConfigurationRecordersResponse' {Maybe [ConfigurationRecorder]
configurationRecorders :: Maybe [ConfigurationRecorder]
$sel:configurationRecorders:DescribeConfigurationRecordersResponse' :: DescribeConfigurationRecordersResponse
-> Maybe [ConfigurationRecorder]
configurationRecorders} -> Maybe [ConfigurationRecorder]
configurationRecorders) (\s :: DescribeConfigurationRecordersResponse
s@DescribeConfigurationRecordersResponse' {} Maybe [ConfigurationRecorder]
a -> DescribeConfigurationRecordersResponse
s {$sel:configurationRecorders:DescribeConfigurationRecordersResponse' :: Maybe [ConfigurationRecorder]
configurationRecorders = Maybe [ConfigurationRecorder]
a} :: DescribeConfigurationRecordersResponse) ((Maybe [ConfigurationRecorder]
  -> f (Maybe [ConfigurationRecorder]))
 -> DescribeConfigurationRecordersResponse
 -> f DescribeConfigurationRecordersResponse)
-> ((Maybe [ConfigurationRecorder]
     -> f (Maybe [ConfigurationRecorder]))
    -> Maybe [ConfigurationRecorder]
    -> f (Maybe [ConfigurationRecorder]))
-> (Maybe [ConfigurationRecorder]
    -> f (Maybe [ConfigurationRecorder]))
-> DescribeConfigurationRecordersResponse
-> f DescribeConfigurationRecordersResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [ConfigurationRecorder]
  [ConfigurationRecorder]
  [ConfigurationRecorder]
  [ConfigurationRecorder]
-> Iso
     (Maybe [ConfigurationRecorder])
     (Maybe [ConfigurationRecorder])
     (Maybe [ConfigurationRecorder])
     (Maybe [ConfigurationRecorder])
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
  [ConfigurationRecorder]
  [ConfigurationRecorder]
  [ConfigurationRecorder]
  [ConfigurationRecorder]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance
  Prelude.NFData
    DescribeConfigurationRecordersResponse