{-# 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.ElasticBeanstalk.DescribeConfigurationSettings
-- 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 a description of the settings for the specified configuration
-- set, that is, either a configuration template or the configuration set
-- associated with a running environment.
--
-- When describing the settings for the configuration set associated with a
-- running environment, it is possible to receive two sets of setting
-- descriptions. One is the deployed configuration set, and the other is a
-- draft configuration of an environment that is either in the process of
-- deployment or that failed to deploy.
--
-- Related Topics
--
-- -   DeleteEnvironmentConfiguration
module Amazonka.ElasticBeanstalk.DescribeConfigurationSettings
  ( -- * Creating a Request
    DescribeConfigurationSettings (..),
    newDescribeConfigurationSettings,

    -- * Request Lenses
    describeConfigurationSettings_templateName,
    describeConfigurationSettings_environmentName,
    describeConfigurationSettings_applicationName,

    -- * Destructuring the Response
    DescribeConfigurationSettingsResponse (..),
    newDescribeConfigurationSettingsResponse,

    -- * Response Lenses
    describeConfigurationSettingsResponse_configurationSettings,
    describeConfigurationSettingsResponse_httpStatus,
  )
where

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

-- | Result message containing all of the configuration settings for a
-- specified solution stack or configuration template.
--
-- /See:/ 'newDescribeConfigurationSettings' smart constructor.
data DescribeConfigurationSettings = DescribeConfigurationSettings'
  { -- | The name of the configuration template to describe.
    --
    -- Conditional: You must specify either this parameter or an
    -- EnvironmentName, but not both. If you specify both, AWS Elastic
    -- Beanstalk returns an @InvalidParameterCombination@ error. If you do not
    -- specify either, AWS Elastic Beanstalk returns a
    -- @MissingRequiredParameter@ error.
    DescribeConfigurationSettings -> Maybe Text
templateName :: Prelude.Maybe Prelude.Text,
    -- | The name of the environment to describe.
    --
    -- Condition: You must specify either this or a TemplateName, but not both.
    -- If you specify both, AWS Elastic Beanstalk returns an
    -- @InvalidParameterCombination@ error. If you do not specify either, AWS
    -- Elastic Beanstalk returns @MissingRequiredParameter@ error.
    DescribeConfigurationSettings -> Maybe Text
environmentName :: Prelude.Maybe Prelude.Text,
    -- | The application for the environment or configuration template.
    DescribeConfigurationSettings -> Text
applicationName :: Prelude.Text
  }
  deriving (DescribeConfigurationSettings
-> DescribeConfigurationSettings -> Bool
(DescribeConfigurationSettings
 -> DescribeConfigurationSettings -> Bool)
-> (DescribeConfigurationSettings
    -> DescribeConfigurationSettings -> Bool)
-> Eq DescribeConfigurationSettings
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeConfigurationSettings
-> DescribeConfigurationSettings -> Bool
$c/= :: DescribeConfigurationSettings
-> DescribeConfigurationSettings -> Bool
== :: DescribeConfigurationSettings
-> DescribeConfigurationSettings -> Bool
$c== :: DescribeConfigurationSettings
-> DescribeConfigurationSettings -> Bool
Prelude.Eq, ReadPrec [DescribeConfigurationSettings]
ReadPrec DescribeConfigurationSettings
Int -> ReadS DescribeConfigurationSettings
ReadS [DescribeConfigurationSettings]
(Int -> ReadS DescribeConfigurationSettings)
-> ReadS [DescribeConfigurationSettings]
-> ReadPrec DescribeConfigurationSettings
-> ReadPrec [DescribeConfigurationSettings]
-> Read DescribeConfigurationSettings
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeConfigurationSettings]
$creadListPrec :: ReadPrec [DescribeConfigurationSettings]
readPrec :: ReadPrec DescribeConfigurationSettings
$creadPrec :: ReadPrec DescribeConfigurationSettings
readList :: ReadS [DescribeConfigurationSettings]
$creadList :: ReadS [DescribeConfigurationSettings]
readsPrec :: Int -> ReadS DescribeConfigurationSettings
$creadsPrec :: Int -> ReadS DescribeConfigurationSettings
Prelude.Read, Int -> DescribeConfigurationSettings -> ShowS
[DescribeConfigurationSettings] -> ShowS
DescribeConfigurationSettings -> String
(Int -> DescribeConfigurationSettings -> ShowS)
-> (DescribeConfigurationSettings -> String)
-> ([DescribeConfigurationSettings] -> ShowS)
-> Show DescribeConfigurationSettings
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeConfigurationSettings] -> ShowS
$cshowList :: [DescribeConfigurationSettings] -> ShowS
show :: DescribeConfigurationSettings -> String
$cshow :: DescribeConfigurationSettings -> String
showsPrec :: Int -> DescribeConfigurationSettings -> ShowS
$cshowsPrec :: Int -> DescribeConfigurationSettings -> ShowS
Prelude.Show, (forall x.
 DescribeConfigurationSettings
 -> Rep DescribeConfigurationSettings x)
-> (forall x.
    Rep DescribeConfigurationSettings x
    -> DescribeConfigurationSettings)
-> Generic DescribeConfigurationSettings
forall x.
Rep DescribeConfigurationSettings x
-> DescribeConfigurationSettings
forall x.
DescribeConfigurationSettings
-> Rep DescribeConfigurationSettings x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeConfigurationSettings x
-> DescribeConfigurationSettings
$cfrom :: forall x.
DescribeConfigurationSettings
-> Rep DescribeConfigurationSettings x
Prelude.Generic)

-- |
-- Create a value of 'DescribeConfigurationSettings' 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:
--
-- 'templateName', 'describeConfigurationSettings_templateName' - The name of the configuration template to describe.
--
-- Conditional: You must specify either this parameter or an
-- EnvironmentName, but not both. If you specify both, AWS Elastic
-- Beanstalk returns an @InvalidParameterCombination@ error. If you do not
-- specify either, AWS Elastic Beanstalk returns a
-- @MissingRequiredParameter@ error.
--
-- 'environmentName', 'describeConfigurationSettings_environmentName' - The name of the environment to describe.
--
-- Condition: You must specify either this or a TemplateName, but not both.
-- If you specify both, AWS Elastic Beanstalk returns an
-- @InvalidParameterCombination@ error. If you do not specify either, AWS
-- Elastic Beanstalk returns @MissingRequiredParameter@ error.
--
-- 'applicationName', 'describeConfigurationSettings_applicationName' - The application for the environment or configuration template.
newDescribeConfigurationSettings ::
  -- | 'applicationName'
  Prelude.Text ->
  DescribeConfigurationSettings
newDescribeConfigurationSettings :: Text -> DescribeConfigurationSettings
newDescribeConfigurationSettings Text
pApplicationName_ =
  DescribeConfigurationSettings' :: Maybe Text -> Maybe Text -> Text -> DescribeConfigurationSettings
DescribeConfigurationSettings'
    { $sel:templateName:DescribeConfigurationSettings' :: Maybe Text
templateName =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:environmentName:DescribeConfigurationSettings' :: Maybe Text
environmentName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:applicationName:DescribeConfigurationSettings' :: Text
applicationName = Text
pApplicationName_
    }

-- | The name of the configuration template to describe.
--
-- Conditional: You must specify either this parameter or an
-- EnvironmentName, but not both. If you specify both, AWS Elastic
-- Beanstalk returns an @InvalidParameterCombination@ error. If you do not
-- specify either, AWS Elastic Beanstalk returns a
-- @MissingRequiredParameter@ error.
describeConfigurationSettings_templateName :: Lens.Lens' DescribeConfigurationSettings (Prelude.Maybe Prelude.Text)
describeConfigurationSettings_templateName :: (Maybe Text -> f (Maybe Text))
-> DescribeConfigurationSettings -> f DescribeConfigurationSettings
describeConfigurationSettings_templateName = (DescribeConfigurationSettings -> Maybe Text)
-> (DescribeConfigurationSettings
    -> Maybe Text -> DescribeConfigurationSettings)
-> Lens
     DescribeConfigurationSettings
     DescribeConfigurationSettings
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeConfigurationSettings' {Maybe Text
templateName :: Maybe Text
$sel:templateName:DescribeConfigurationSettings' :: DescribeConfigurationSettings -> Maybe Text
templateName} -> Maybe Text
templateName) (\s :: DescribeConfigurationSettings
s@DescribeConfigurationSettings' {} Maybe Text
a -> DescribeConfigurationSettings
s {$sel:templateName:DescribeConfigurationSettings' :: Maybe Text
templateName = Maybe Text
a} :: DescribeConfigurationSettings)

-- | The name of the environment to describe.
--
-- Condition: You must specify either this or a TemplateName, but not both.
-- If you specify both, AWS Elastic Beanstalk returns an
-- @InvalidParameterCombination@ error. If you do not specify either, AWS
-- Elastic Beanstalk returns @MissingRequiredParameter@ error.
describeConfigurationSettings_environmentName :: Lens.Lens' DescribeConfigurationSettings (Prelude.Maybe Prelude.Text)
describeConfigurationSettings_environmentName :: (Maybe Text -> f (Maybe Text))
-> DescribeConfigurationSettings -> f DescribeConfigurationSettings
describeConfigurationSettings_environmentName = (DescribeConfigurationSettings -> Maybe Text)
-> (DescribeConfigurationSettings
    -> Maybe Text -> DescribeConfigurationSettings)
-> Lens
     DescribeConfigurationSettings
     DescribeConfigurationSettings
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeConfigurationSettings' {Maybe Text
environmentName :: Maybe Text
$sel:environmentName:DescribeConfigurationSettings' :: DescribeConfigurationSettings -> Maybe Text
environmentName} -> Maybe Text
environmentName) (\s :: DescribeConfigurationSettings
s@DescribeConfigurationSettings' {} Maybe Text
a -> DescribeConfigurationSettings
s {$sel:environmentName:DescribeConfigurationSettings' :: Maybe Text
environmentName = Maybe Text
a} :: DescribeConfigurationSettings)

-- | The application for the environment or configuration template.
describeConfigurationSettings_applicationName :: Lens.Lens' DescribeConfigurationSettings Prelude.Text
describeConfigurationSettings_applicationName :: (Text -> f Text)
-> DescribeConfigurationSettings -> f DescribeConfigurationSettings
describeConfigurationSettings_applicationName = (DescribeConfigurationSettings -> Text)
-> (DescribeConfigurationSettings
    -> Text -> DescribeConfigurationSettings)
-> Lens
     DescribeConfigurationSettings
     DescribeConfigurationSettings
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeConfigurationSettings' {Text
applicationName :: Text
$sel:applicationName:DescribeConfigurationSettings' :: DescribeConfigurationSettings -> Text
applicationName} -> Text
applicationName) (\s :: DescribeConfigurationSettings
s@DescribeConfigurationSettings' {} Text
a -> DescribeConfigurationSettings
s {$sel:applicationName:DescribeConfigurationSettings' :: Text
applicationName = Text
a} :: DescribeConfigurationSettings)

instance
  Core.AWSRequest
    DescribeConfigurationSettings
  where
  type
    AWSResponse DescribeConfigurationSettings =
      DescribeConfigurationSettingsResponse
  request :: DescribeConfigurationSettings
-> Request DescribeConfigurationSettings
request = Service
-> DescribeConfigurationSettings
-> Request DescribeConfigurationSettings
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
  response :: Logger
-> Service
-> Proxy DescribeConfigurationSettings
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeConfigurationSettings)))
response =
    Text
-> (Int
    -> ResponseHeaders
    -> [Node]
    -> Either String (AWSResponse DescribeConfigurationSettings))
-> Logger
-> Service
-> Proxy DescribeConfigurationSettings
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeConfigurationSettings)))
forall (m :: * -> *) a.
MonadResource m =>
Text
-> (Int
    -> ResponseHeaders -> [Node] -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveXMLWrapper
      Text
"DescribeConfigurationSettingsResult"
      ( \Int
s ResponseHeaders
h [Node]
x ->
          Maybe [ConfigurationSettingsDescription]
-> Int -> DescribeConfigurationSettingsResponse
DescribeConfigurationSettingsResponse'
            (Maybe [ConfigurationSettingsDescription]
 -> Int -> DescribeConfigurationSettingsResponse)
-> Either String (Maybe [ConfigurationSettingsDescription])
-> Either String (Int -> DescribeConfigurationSettingsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( [Node]
x [Node] -> Text -> Either String (Maybe [Node])
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"ConfigurationSettings"
                            Either String (Maybe [Node]) -> [Node] -> Either String [Node]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [Node]
forall a. Monoid a => a
Prelude.mempty
                            Either String [Node]
-> ([Node]
    -> Either String (Maybe [ConfigurationSettingsDescription]))
-> Either String (Maybe [ConfigurationSettingsDescription])
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= ([Node] -> Either String [ConfigurationSettingsDescription])
-> [Node]
-> Either String (Maybe [ConfigurationSettingsDescription])
forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (Text -> [Node] -> Either String [ConfigurationSettingsDescription]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"member")
                        )
            Either String (Int -> DescribeConfigurationSettingsResponse)
-> Either String Int
-> Either String DescribeConfigurationSettingsResponse
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
    DescribeConfigurationSettings

instance Prelude.NFData DescribeConfigurationSettings

instance Core.ToHeaders DescribeConfigurationSettings where
  toHeaders :: DescribeConfigurationSettings -> ResponseHeaders
toHeaders = ResponseHeaders -> DescribeConfigurationSettings -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty

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

instance Core.ToQuery DescribeConfigurationSettings where
  toQuery :: DescribeConfigurationSettings -> QueryString
toQuery DescribeConfigurationSettings' {Maybe Text
Text
applicationName :: Text
environmentName :: Maybe Text
templateName :: Maybe Text
$sel:applicationName:DescribeConfigurationSettings' :: DescribeConfigurationSettings -> Text
$sel:environmentName:DescribeConfigurationSettings' :: DescribeConfigurationSettings -> Maybe Text
$sel:templateName:DescribeConfigurationSettings' :: DescribeConfigurationSettings -> Maybe Text
..} =
    [QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"Action"
          ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: ( ByteString
"DescribeConfigurationSettings" ::
                      Prelude.ByteString
                  ),
        ByteString
"Version"
          ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2010-12-01" :: Prelude.ByteString),
        ByteString
"TemplateName" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
templateName,
        ByteString
"EnvironmentName" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
environmentName,
        ByteString
"ApplicationName" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
applicationName
      ]

-- | The results from a request to change the configuration settings of an
-- environment.
--
-- /See:/ 'newDescribeConfigurationSettingsResponse' smart constructor.
data DescribeConfigurationSettingsResponse = DescribeConfigurationSettingsResponse'
  { -- | A list of ConfigurationSettingsDescription.
    DescribeConfigurationSettingsResponse
-> Maybe [ConfigurationSettingsDescription]
configurationSettings :: Prelude.Maybe [ConfigurationSettingsDescription],
    -- | The response's http status code.
    DescribeConfigurationSettingsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribeConfigurationSettingsResponse
-> DescribeConfigurationSettingsResponse -> Bool
(DescribeConfigurationSettingsResponse
 -> DescribeConfigurationSettingsResponse -> Bool)
-> (DescribeConfigurationSettingsResponse
    -> DescribeConfigurationSettingsResponse -> Bool)
-> Eq DescribeConfigurationSettingsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeConfigurationSettingsResponse
-> DescribeConfigurationSettingsResponse -> Bool
$c/= :: DescribeConfigurationSettingsResponse
-> DescribeConfigurationSettingsResponse -> Bool
== :: DescribeConfigurationSettingsResponse
-> DescribeConfigurationSettingsResponse -> Bool
$c== :: DescribeConfigurationSettingsResponse
-> DescribeConfigurationSettingsResponse -> Bool
Prelude.Eq, ReadPrec [DescribeConfigurationSettingsResponse]
ReadPrec DescribeConfigurationSettingsResponse
Int -> ReadS DescribeConfigurationSettingsResponse
ReadS [DescribeConfigurationSettingsResponse]
(Int -> ReadS DescribeConfigurationSettingsResponse)
-> ReadS [DescribeConfigurationSettingsResponse]
-> ReadPrec DescribeConfigurationSettingsResponse
-> ReadPrec [DescribeConfigurationSettingsResponse]
-> Read DescribeConfigurationSettingsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeConfigurationSettingsResponse]
$creadListPrec :: ReadPrec [DescribeConfigurationSettingsResponse]
readPrec :: ReadPrec DescribeConfigurationSettingsResponse
$creadPrec :: ReadPrec DescribeConfigurationSettingsResponse
readList :: ReadS [DescribeConfigurationSettingsResponse]
$creadList :: ReadS [DescribeConfigurationSettingsResponse]
readsPrec :: Int -> ReadS DescribeConfigurationSettingsResponse
$creadsPrec :: Int -> ReadS DescribeConfigurationSettingsResponse
Prelude.Read, Int -> DescribeConfigurationSettingsResponse -> ShowS
[DescribeConfigurationSettingsResponse] -> ShowS
DescribeConfigurationSettingsResponse -> String
(Int -> DescribeConfigurationSettingsResponse -> ShowS)
-> (DescribeConfigurationSettingsResponse -> String)
-> ([DescribeConfigurationSettingsResponse] -> ShowS)
-> Show DescribeConfigurationSettingsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeConfigurationSettingsResponse] -> ShowS
$cshowList :: [DescribeConfigurationSettingsResponse] -> ShowS
show :: DescribeConfigurationSettingsResponse -> String
$cshow :: DescribeConfigurationSettingsResponse -> String
showsPrec :: Int -> DescribeConfigurationSettingsResponse -> ShowS
$cshowsPrec :: Int -> DescribeConfigurationSettingsResponse -> ShowS
Prelude.Show, (forall x.
 DescribeConfigurationSettingsResponse
 -> Rep DescribeConfigurationSettingsResponse x)
-> (forall x.
    Rep DescribeConfigurationSettingsResponse x
    -> DescribeConfigurationSettingsResponse)
-> Generic DescribeConfigurationSettingsResponse
forall x.
Rep DescribeConfigurationSettingsResponse x
-> DescribeConfigurationSettingsResponse
forall x.
DescribeConfigurationSettingsResponse
-> Rep DescribeConfigurationSettingsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeConfigurationSettingsResponse x
-> DescribeConfigurationSettingsResponse
$cfrom :: forall x.
DescribeConfigurationSettingsResponse
-> Rep DescribeConfigurationSettingsResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeConfigurationSettingsResponse' 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:
--
-- 'configurationSettings', 'describeConfigurationSettingsResponse_configurationSettings' - A list of ConfigurationSettingsDescription.
--
-- 'httpStatus', 'describeConfigurationSettingsResponse_httpStatus' - The response's http status code.
newDescribeConfigurationSettingsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeConfigurationSettingsResponse
newDescribeConfigurationSettingsResponse :: Int -> DescribeConfigurationSettingsResponse
newDescribeConfigurationSettingsResponse Int
pHttpStatus_ =
  DescribeConfigurationSettingsResponse' :: Maybe [ConfigurationSettingsDescription]
-> Int -> DescribeConfigurationSettingsResponse
DescribeConfigurationSettingsResponse'
    { $sel:configurationSettings:DescribeConfigurationSettingsResponse' :: Maybe [ConfigurationSettingsDescription]
configurationSettings =
        Maybe [ConfigurationSettingsDescription]
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:DescribeConfigurationSettingsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | A list of ConfigurationSettingsDescription.
describeConfigurationSettingsResponse_configurationSettings :: Lens.Lens' DescribeConfigurationSettingsResponse (Prelude.Maybe [ConfigurationSettingsDescription])
describeConfigurationSettingsResponse_configurationSettings :: (Maybe [ConfigurationSettingsDescription]
 -> f (Maybe [ConfigurationSettingsDescription]))
-> DescribeConfigurationSettingsResponse
-> f DescribeConfigurationSettingsResponse
describeConfigurationSettingsResponse_configurationSettings = (DescribeConfigurationSettingsResponse
 -> Maybe [ConfigurationSettingsDescription])
-> (DescribeConfigurationSettingsResponse
    -> Maybe [ConfigurationSettingsDescription]
    -> DescribeConfigurationSettingsResponse)
-> Lens
     DescribeConfigurationSettingsResponse
     DescribeConfigurationSettingsResponse
     (Maybe [ConfigurationSettingsDescription])
     (Maybe [ConfigurationSettingsDescription])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeConfigurationSettingsResponse' {Maybe [ConfigurationSettingsDescription]
configurationSettings :: Maybe [ConfigurationSettingsDescription]
$sel:configurationSettings:DescribeConfigurationSettingsResponse' :: DescribeConfigurationSettingsResponse
-> Maybe [ConfigurationSettingsDescription]
configurationSettings} -> Maybe [ConfigurationSettingsDescription]
configurationSettings) (\s :: DescribeConfigurationSettingsResponse
s@DescribeConfigurationSettingsResponse' {} Maybe [ConfigurationSettingsDescription]
a -> DescribeConfigurationSettingsResponse
s {$sel:configurationSettings:DescribeConfigurationSettingsResponse' :: Maybe [ConfigurationSettingsDescription]
configurationSettings = Maybe [ConfigurationSettingsDescription]
a} :: DescribeConfigurationSettingsResponse) ((Maybe [ConfigurationSettingsDescription]
  -> f (Maybe [ConfigurationSettingsDescription]))
 -> DescribeConfigurationSettingsResponse
 -> f DescribeConfigurationSettingsResponse)
-> ((Maybe [ConfigurationSettingsDescription]
     -> f (Maybe [ConfigurationSettingsDescription]))
    -> Maybe [ConfigurationSettingsDescription]
    -> f (Maybe [ConfigurationSettingsDescription]))
-> (Maybe [ConfigurationSettingsDescription]
    -> f (Maybe [ConfigurationSettingsDescription]))
-> DescribeConfigurationSettingsResponse
-> f DescribeConfigurationSettingsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [ConfigurationSettingsDescription]
  [ConfigurationSettingsDescription]
  [ConfigurationSettingsDescription]
  [ConfigurationSettingsDescription]
-> Iso
     (Maybe [ConfigurationSettingsDescription])
     (Maybe [ConfigurationSettingsDescription])
     (Maybe [ConfigurationSettingsDescription])
     (Maybe [ConfigurationSettingsDescription])
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
  [ConfigurationSettingsDescription]
  [ConfigurationSettingsDescription]
  [ConfigurationSettingsDescription]
  [ConfigurationSettingsDescription]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance
  Prelude.NFData
    DescribeConfigurationSettingsResponse