{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# 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.Types.ConfigurationSettingsDescription
-- 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)
module Amazonka.ElasticBeanstalk.Types.ConfigurationSettingsDescription where

import qualified Amazonka.Core as Core
import Amazonka.ElasticBeanstalk.Types.ConfigurationDeploymentStatus
import Amazonka.ElasticBeanstalk.Types.ConfigurationOptionSetting
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | Describes the settings for a configuration set.
--
-- /See:/ 'newConfigurationSettingsDescription' smart constructor.
data ConfigurationSettingsDescription = ConfigurationSettingsDescription'
  { -- | If not @null@, the name of the configuration template for this
    -- configuration set.
    ConfigurationSettingsDescription -> Maybe Text
templateName :: Prelude.Maybe Prelude.Text,
    -- | A list of the configuration options and their values in this
    -- configuration set.
    ConfigurationSettingsDescription
-> Maybe [ConfigurationOptionSetting]
optionSettings :: Prelude.Maybe [ConfigurationOptionSetting],
    -- | The date (in UTC time) when this configuration set was last modified.
    ConfigurationSettingsDescription -> Maybe ISO8601
dateUpdated :: Prelude.Maybe Core.ISO8601,
    -- | The date (in UTC time) when this configuration set was created.
    ConfigurationSettingsDescription -> Maybe ISO8601
dateCreated :: Prelude.Maybe Core.ISO8601,
    -- | The ARN of the platform version.
    ConfigurationSettingsDescription -> Maybe Text
platformArn :: Prelude.Maybe Prelude.Text,
    -- | If not @null@, the name of the environment for this configuration set.
    ConfigurationSettingsDescription -> Maybe Text
environmentName :: Prelude.Maybe Prelude.Text,
    -- | The name of the application associated with this configuration set.
    ConfigurationSettingsDescription -> Maybe Text
applicationName :: Prelude.Maybe Prelude.Text,
    -- | If this configuration set is associated with an environment, the
    -- @DeploymentStatus@ parameter indicates the deployment status of this
    -- configuration set:
    --
    -- -   @null@: This configuration is not associated with a running
    --     environment.
    --
    -- -   @pending@: This is a draft configuration that is not deployed to the
    --     associated environment but is in the process of deploying.
    --
    -- -   @deployed@: This is the configuration that is currently deployed to
    --     the associated running environment.
    --
    -- -   @failed@: This is a draft configuration that failed to successfully
    --     deploy.
    ConfigurationSettingsDescription
-> Maybe ConfigurationDeploymentStatus
deploymentStatus :: Prelude.Maybe ConfigurationDeploymentStatus,
    -- | The name of the solution stack this configuration set uses.
    ConfigurationSettingsDescription -> Maybe Text
solutionStackName :: Prelude.Maybe Prelude.Text,
    -- | Describes this configuration set.
    ConfigurationSettingsDescription -> Maybe Text
description :: Prelude.Maybe Prelude.Text
  }
  deriving (ConfigurationSettingsDescription
-> ConfigurationSettingsDescription -> Bool
(ConfigurationSettingsDescription
 -> ConfigurationSettingsDescription -> Bool)
-> (ConfigurationSettingsDescription
    -> ConfigurationSettingsDescription -> Bool)
-> Eq ConfigurationSettingsDescription
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ConfigurationSettingsDescription
-> ConfigurationSettingsDescription -> Bool
$c/= :: ConfigurationSettingsDescription
-> ConfigurationSettingsDescription -> Bool
== :: ConfigurationSettingsDescription
-> ConfigurationSettingsDescription -> Bool
$c== :: ConfigurationSettingsDescription
-> ConfigurationSettingsDescription -> Bool
Prelude.Eq, ReadPrec [ConfigurationSettingsDescription]
ReadPrec ConfigurationSettingsDescription
Int -> ReadS ConfigurationSettingsDescription
ReadS [ConfigurationSettingsDescription]
(Int -> ReadS ConfigurationSettingsDescription)
-> ReadS [ConfigurationSettingsDescription]
-> ReadPrec ConfigurationSettingsDescription
-> ReadPrec [ConfigurationSettingsDescription]
-> Read ConfigurationSettingsDescription
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ConfigurationSettingsDescription]
$creadListPrec :: ReadPrec [ConfigurationSettingsDescription]
readPrec :: ReadPrec ConfigurationSettingsDescription
$creadPrec :: ReadPrec ConfigurationSettingsDescription
readList :: ReadS [ConfigurationSettingsDescription]
$creadList :: ReadS [ConfigurationSettingsDescription]
readsPrec :: Int -> ReadS ConfigurationSettingsDescription
$creadsPrec :: Int -> ReadS ConfigurationSettingsDescription
Prelude.Read, Int -> ConfigurationSettingsDescription -> ShowS
[ConfigurationSettingsDescription] -> ShowS
ConfigurationSettingsDescription -> String
(Int -> ConfigurationSettingsDescription -> ShowS)
-> (ConfigurationSettingsDescription -> String)
-> ([ConfigurationSettingsDescription] -> ShowS)
-> Show ConfigurationSettingsDescription
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ConfigurationSettingsDescription] -> ShowS
$cshowList :: [ConfigurationSettingsDescription] -> ShowS
show :: ConfigurationSettingsDescription -> String
$cshow :: ConfigurationSettingsDescription -> String
showsPrec :: Int -> ConfigurationSettingsDescription -> ShowS
$cshowsPrec :: Int -> ConfigurationSettingsDescription -> ShowS
Prelude.Show, (forall x.
 ConfigurationSettingsDescription
 -> Rep ConfigurationSettingsDescription x)
-> (forall x.
    Rep ConfigurationSettingsDescription x
    -> ConfigurationSettingsDescription)
-> Generic ConfigurationSettingsDescription
forall x.
Rep ConfigurationSettingsDescription x
-> ConfigurationSettingsDescription
forall x.
ConfigurationSettingsDescription
-> Rep ConfigurationSettingsDescription x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ConfigurationSettingsDescription x
-> ConfigurationSettingsDescription
$cfrom :: forall x.
ConfigurationSettingsDescription
-> Rep ConfigurationSettingsDescription x
Prelude.Generic)

-- |
-- Create a value of 'ConfigurationSettingsDescription' 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', 'configurationSettingsDescription_templateName' - If not @null@, the name of the configuration template for this
-- configuration set.
--
-- 'optionSettings', 'configurationSettingsDescription_optionSettings' - A list of the configuration options and their values in this
-- configuration set.
--
-- 'dateUpdated', 'configurationSettingsDescription_dateUpdated' - The date (in UTC time) when this configuration set was last modified.
--
-- 'dateCreated', 'configurationSettingsDescription_dateCreated' - The date (in UTC time) when this configuration set was created.
--
-- 'platformArn', 'configurationSettingsDescription_platformArn' - The ARN of the platform version.
--
-- 'environmentName', 'configurationSettingsDescription_environmentName' - If not @null@, the name of the environment for this configuration set.
--
-- 'applicationName', 'configurationSettingsDescription_applicationName' - The name of the application associated with this configuration set.
--
-- 'deploymentStatus', 'configurationSettingsDescription_deploymentStatus' - If this configuration set is associated with an environment, the
-- @DeploymentStatus@ parameter indicates the deployment status of this
-- configuration set:
--
-- -   @null@: This configuration is not associated with a running
--     environment.
--
-- -   @pending@: This is a draft configuration that is not deployed to the
--     associated environment but is in the process of deploying.
--
-- -   @deployed@: This is the configuration that is currently deployed to
--     the associated running environment.
--
-- -   @failed@: This is a draft configuration that failed to successfully
--     deploy.
--
-- 'solutionStackName', 'configurationSettingsDescription_solutionStackName' - The name of the solution stack this configuration set uses.
--
-- 'description', 'configurationSettingsDescription_description' - Describes this configuration set.
newConfigurationSettingsDescription ::
  ConfigurationSettingsDescription
newConfigurationSettingsDescription :: ConfigurationSettingsDescription
newConfigurationSettingsDescription =
  ConfigurationSettingsDescription' :: Maybe Text
-> Maybe [ConfigurationOptionSetting]
-> Maybe ISO8601
-> Maybe ISO8601
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ConfigurationDeploymentStatus
-> Maybe Text
-> Maybe Text
-> ConfigurationSettingsDescription
ConfigurationSettingsDescription'
    { $sel:templateName:ConfigurationSettingsDescription' :: Maybe Text
templateName =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:optionSettings:ConfigurationSettingsDescription' :: Maybe [ConfigurationOptionSetting]
optionSettings = Maybe [ConfigurationOptionSetting]
forall a. Maybe a
Prelude.Nothing,
      $sel:dateUpdated:ConfigurationSettingsDescription' :: Maybe ISO8601
dateUpdated = Maybe ISO8601
forall a. Maybe a
Prelude.Nothing,
      $sel:dateCreated:ConfigurationSettingsDescription' :: Maybe ISO8601
dateCreated = Maybe ISO8601
forall a. Maybe a
Prelude.Nothing,
      $sel:platformArn:ConfigurationSettingsDescription' :: Maybe Text
platformArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:environmentName:ConfigurationSettingsDescription' :: Maybe Text
environmentName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:applicationName:ConfigurationSettingsDescription' :: Maybe Text
applicationName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:deploymentStatus:ConfigurationSettingsDescription' :: Maybe ConfigurationDeploymentStatus
deploymentStatus = Maybe ConfigurationDeploymentStatus
forall a. Maybe a
Prelude.Nothing,
      $sel:solutionStackName:ConfigurationSettingsDescription' :: Maybe Text
solutionStackName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:description:ConfigurationSettingsDescription' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing
    }

-- | If not @null@, the name of the configuration template for this
-- configuration set.
configurationSettingsDescription_templateName :: Lens.Lens' ConfigurationSettingsDescription (Prelude.Maybe Prelude.Text)
configurationSettingsDescription_templateName :: (Maybe Text -> f (Maybe Text))
-> ConfigurationSettingsDescription
-> f ConfigurationSettingsDescription
configurationSettingsDescription_templateName = (ConfigurationSettingsDescription -> Maybe Text)
-> (ConfigurationSettingsDescription
    -> Maybe Text -> ConfigurationSettingsDescription)
-> Lens
     ConfigurationSettingsDescription
     ConfigurationSettingsDescription
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ConfigurationSettingsDescription' {Maybe Text
templateName :: Maybe Text
$sel:templateName:ConfigurationSettingsDescription' :: ConfigurationSettingsDescription -> Maybe Text
templateName} -> Maybe Text
templateName) (\s :: ConfigurationSettingsDescription
s@ConfigurationSettingsDescription' {} Maybe Text
a -> ConfigurationSettingsDescription
s {$sel:templateName:ConfigurationSettingsDescription' :: Maybe Text
templateName = Maybe Text
a} :: ConfigurationSettingsDescription)

-- | A list of the configuration options and their values in this
-- configuration set.
configurationSettingsDescription_optionSettings :: Lens.Lens' ConfigurationSettingsDescription (Prelude.Maybe [ConfigurationOptionSetting])
configurationSettingsDescription_optionSettings :: (Maybe [ConfigurationOptionSetting]
 -> f (Maybe [ConfigurationOptionSetting]))
-> ConfigurationSettingsDescription
-> f ConfigurationSettingsDescription
configurationSettingsDescription_optionSettings = (ConfigurationSettingsDescription
 -> Maybe [ConfigurationOptionSetting])
-> (ConfigurationSettingsDescription
    -> Maybe [ConfigurationOptionSetting]
    -> ConfigurationSettingsDescription)
-> Lens
     ConfigurationSettingsDescription
     ConfigurationSettingsDescription
     (Maybe [ConfigurationOptionSetting])
     (Maybe [ConfigurationOptionSetting])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ConfigurationSettingsDescription' {Maybe [ConfigurationOptionSetting]
optionSettings :: Maybe [ConfigurationOptionSetting]
$sel:optionSettings:ConfigurationSettingsDescription' :: ConfigurationSettingsDescription
-> Maybe [ConfigurationOptionSetting]
optionSettings} -> Maybe [ConfigurationOptionSetting]
optionSettings) (\s :: ConfigurationSettingsDescription
s@ConfigurationSettingsDescription' {} Maybe [ConfigurationOptionSetting]
a -> ConfigurationSettingsDescription
s {$sel:optionSettings:ConfigurationSettingsDescription' :: Maybe [ConfigurationOptionSetting]
optionSettings = Maybe [ConfigurationOptionSetting]
a} :: ConfigurationSettingsDescription) ((Maybe [ConfigurationOptionSetting]
  -> f (Maybe [ConfigurationOptionSetting]))
 -> ConfigurationSettingsDescription
 -> f ConfigurationSettingsDescription)
-> ((Maybe [ConfigurationOptionSetting]
     -> f (Maybe [ConfigurationOptionSetting]))
    -> Maybe [ConfigurationOptionSetting]
    -> f (Maybe [ConfigurationOptionSetting]))
-> (Maybe [ConfigurationOptionSetting]
    -> f (Maybe [ConfigurationOptionSetting]))
-> ConfigurationSettingsDescription
-> f ConfigurationSettingsDescription
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [ConfigurationOptionSetting]
  [ConfigurationOptionSetting]
  [ConfigurationOptionSetting]
  [ConfigurationOptionSetting]
-> Iso
     (Maybe [ConfigurationOptionSetting])
     (Maybe [ConfigurationOptionSetting])
     (Maybe [ConfigurationOptionSetting])
     (Maybe [ConfigurationOptionSetting])
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
  [ConfigurationOptionSetting]
  [ConfigurationOptionSetting]
  [ConfigurationOptionSetting]
  [ConfigurationOptionSetting]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The date (in UTC time) when this configuration set was last modified.
configurationSettingsDescription_dateUpdated :: Lens.Lens' ConfigurationSettingsDescription (Prelude.Maybe Prelude.UTCTime)
configurationSettingsDescription_dateUpdated :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ConfigurationSettingsDescription
-> f ConfigurationSettingsDescription
configurationSettingsDescription_dateUpdated = (ConfigurationSettingsDescription -> Maybe ISO8601)
-> (ConfigurationSettingsDescription
    -> Maybe ISO8601 -> ConfigurationSettingsDescription)
-> Lens
     ConfigurationSettingsDescription
     ConfigurationSettingsDescription
     (Maybe ISO8601)
     (Maybe ISO8601)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ConfigurationSettingsDescription' {Maybe ISO8601
dateUpdated :: Maybe ISO8601
$sel:dateUpdated:ConfigurationSettingsDescription' :: ConfigurationSettingsDescription -> Maybe ISO8601
dateUpdated} -> Maybe ISO8601
dateUpdated) (\s :: ConfigurationSettingsDescription
s@ConfigurationSettingsDescription' {} Maybe ISO8601
a -> ConfigurationSettingsDescription
s {$sel:dateUpdated:ConfigurationSettingsDescription' :: Maybe ISO8601
dateUpdated = Maybe ISO8601
a} :: ConfigurationSettingsDescription) ((Maybe ISO8601 -> f (Maybe ISO8601))
 -> ConfigurationSettingsDescription
 -> f ConfigurationSettingsDescription)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe ISO8601 -> f (Maybe ISO8601))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ConfigurationSettingsDescription
-> f ConfigurationSettingsDescription
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso ISO8601 ISO8601 UTCTime UTCTime
-> Iso
     (Maybe ISO8601) (Maybe ISO8601) (Maybe UTCTime) (Maybe UTCTime)
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 ISO8601 ISO8601 UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | The date (in UTC time) when this configuration set was created.
configurationSettingsDescription_dateCreated :: Lens.Lens' ConfigurationSettingsDescription (Prelude.Maybe Prelude.UTCTime)
configurationSettingsDescription_dateCreated :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ConfigurationSettingsDescription
-> f ConfigurationSettingsDescription
configurationSettingsDescription_dateCreated = (ConfigurationSettingsDescription -> Maybe ISO8601)
-> (ConfigurationSettingsDescription
    -> Maybe ISO8601 -> ConfigurationSettingsDescription)
-> Lens
     ConfigurationSettingsDescription
     ConfigurationSettingsDescription
     (Maybe ISO8601)
     (Maybe ISO8601)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ConfigurationSettingsDescription' {Maybe ISO8601
dateCreated :: Maybe ISO8601
$sel:dateCreated:ConfigurationSettingsDescription' :: ConfigurationSettingsDescription -> Maybe ISO8601
dateCreated} -> Maybe ISO8601
dateCreated) (\s :: ConfigurationSettingsDescription
s@ConfigurationSettingsDescription' {} Maybe ISO8601
a -> ConfigurationSettingsDescription
s {$sel:dateCreated:ConfigurationSettingsDescription' :: Maybe ISO8601
dateCreated = Maybe ISO8601
a} :: ConfigurationSettingsDescription) ((Maybe ISO8601 -> f (Maybe ISO8601))
 -> ConfigurationSettingsDescription
 -> f ConfigurationSettingsDescription)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe ISO8601 -> f (Maybe ISO8601))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ConfigurationSettingsDescription
-> f ConfigurationSettingsDescription
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso ISO8601 ISO8601 UTCTime UTCTime
-> Iso
     (Maybe ISO8601) (Maybe ISO8601) (Maybe UTCTime) (Maybe UTCTime)
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 ISO8601 ISO8601 UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | The ARN of the platform version.
configurationSettingsDescription_platformArn :: Lens.Lens' ConfigurationSettingsDescription (Prelude.Maybe Prelude.Text)
configurationSettingsDescription_platformArn :: (Maybe Text -> f (Maybe Text))
-> ConfigurationSettingsDescription
-> f ConfigurationSettingsDescription
configurationSettingsDescription_platformArn = (ConfigurationSettingsDescription -> Maybe Text)
-> (ConfigurationSettingsDescription
    -> Maybe Text -> ConfigurationSettingsDescription)
-> Lens
     ConfigurationSettingsDescription
     ConfigurationSettingsDescription
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ConfigurationSettingsDescription' {Maybe Text
platformArn :: Maybe Text
$sel:platformArn:ConfigurationSettingsDescription' :: ConfigurationSettingsDescription -> Maybe Text
platformArn} -> Maybe Text
platformArn) (\s :: ConfigurationSettingsDescription
s@ConfigurationSettingsDescription' {} Maybe Text
a -> ConfigurationSettingsDescription
s {$sel:platformArn:ConfigurationSettingsDescription' :: Maybe Text
platformArn = Maybe Text
a} :: ConfigurationSettingsDescription)

-- | If not @null@, the name of the environment for this configuration set.
configurationSettingsDescription_environmentName :: Lens.Lens' ConfigurationSettingsDescription (Prelude.Maybe Prelude.Text)
configurationSettingsDescription_environmentName :: (Maybe Text -> f (Maybe Text))
-> ConfigurationSettingsDescription
-> f ConfigurationSettingsDescription
configurationSettingsDescription_environmentName = (ConfigurationSettingsDescription -> Maybe Text)
-> (ConfigurationSettingsDescription
    -> Maybe Text -> ConfigurationSettingsDescription)
-> Lens
     ConfigurationSettingsDescription
     ConfigurationSettingsDescription
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ConfigurationSettingsDescription' {Maybe Text
environmentName :: Maybe Text
$sel:environmentName:ConfigurationSettingsDescription' :: ConfigurationSettingsDescription -> Maybe Text
environmentName} -> Maybe Text
environmentName) (\s :: ConfigurationSettingsDescription
s@ConfigurationSettingsDescription' {} Maybe Text
a -> ConfigurationSettingsDescription
s {$sel:environmentName:ConfigurationSettingsDescription' :: Maybe Text
environmentName = Maybe Text
a} :: ConfigurationSettingsDescription)

-- | The name of the application associated with this configuration set.
configurationSettingsDescription_applicationName :: Lens.Lens' ConfigurationSettingsDescription (Prelude.Maybe Prelude.Text)
configurationSettingsDescription_applicationName :: (Maybe Text -> f (Maybe Text))
-> ConfigurationSettingsDescription
-> f ConfigurationSettingsDescription
configurationSettingsDescription_applicationName = (ConfigurationSettingsDescription -> Maybe Text)
-> (ConfigurationSettingsDescription
    -> Maybe Text -> ConfigurationSettingsDescription)
-> Lens
     ConfigurationSettingsDescription
     ConfigurationSettingsDescription
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ConfigurationSettingsDescription' {Maybe Text
applicationName :: Maybe Text
$sel:applicationName:ConfigurationSettingsDescription' :: ConfigurationSettingsDescription -> Maybe Text
applicationName} -> Maybe Text
applicationName) (\s :: ConfigurationSettingsDescription
s@ConfigurationSettingsDescription' {} Maybe Text
a -> ConfigurationSettingsDescription
s {$sel:applicationName:ConfigurationSettingsDescription' :: Maybe Text
applicationName = Maybe Text
a} :: ConfigurationSettingsDescription)

-- | If this configuration set is associated with an environment, the
-- @DeploymentStatus@ parameter indicates the deployment status of this
-- configuration set:
--
-- -   @null@: This configuration is not associated with a running
--     environment.
--
-- -   @pending@: This is a draft configuration that is not deployed to the
--     associated environment but is in the process of deploying.
--
-- -   @deployed@: This is the configuration that is currently deployed to
--     the associated running environment.
--
-- -   @failed@: This is a draft configuration that failed to successfully
--     deploy.
configurationSettingsDescription_deploymentStatus :: Lens.Lens' ConfigurationSettingsDescription (Prelude.Maybe ConfigurationDeploymentStatus)
configurationSettingsDescription_deploymentStatus :: (Maybe ConfigurationDeploymentStatus
 -> f (Maybe ConfigurationDeploymentStatus))
-> ConfigurationSettingsDescription
-> f ConfigurationSettingsDescription
configurationSettingsDescription_deploymentStatus = (ConfigurationSettingsDescription
 -> Maybe ConfigurationDeploymentStatus)
-> (ConfigurationSettingsDescription
    -> Maybe ConfigurationDeploymentStatus
    -> ConfigurationSettingsDescription)
-> Lens
     ConfigurationSettingsDescription
     ConfigurationSettingsDescription
     (Maybe ConfigurationDeploymentStatus)
     (Maybe ConfigurationDeploymentStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ConfigurationSettingsDescription' {Maybe ConfigurationDeploymentStatus
deploymentStatus :: Maybe ConfigurationDeploymentStatus
$sel:deploymentStatus:ConfigurationSettingsDescription' :: ConfigurationSettingsDescription
-> Maybe ConfigurationDeploymentStatus
deploymentStatus} -> Maybe ConfigurationDeploymentStatus
deploymentStatus) (\s :: ConfigurationSettingsDescription
s@ConfigurationSettingsDescription' {} Maybe ConfigurationDeploymentStatus
a -> ConfigurationSettingsDescription
s {$sel:deploymentStatus:ConfigurationSettingsDescription' :: Maybe ConfigurationDeploymentStatus
deploymentStatus = Maybe ConfigurationDeploymentStatus
a} :: ConfigurationSettingsDescription)

-- | The name of the solution stack this configuration set uses.
configurationSettingsDescription_solutionStackName :: Lens.Lens' ConfigurationSettingsDescription (Prelude.Maybe Prelude.Text)
configurationSettingsDescription_solutionStackName :: (Maybe Text -> f (Maybe Text))
-> ConfigurationSettingsDescription
-> f ConfigurationSettingsDescription
configurationSettingsDescription_solutionStackName = (ConfigurationSettingsDescription -> Maybe Text)
-> (ConfigurationSettingsDescription
    -> Maybe Text -> ConfigurationSettingsDescription)
-> Lens
     ConfigurationSettingsDescription
     ConfigurationSettingsDescription
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ConfigurationSettingsDescription' {Maybe Text
solutionStackName :: Maybe Text
$sel:solutionStackName:ConfigurationSettingsDescription' :: ConfigurationSettingsDescription -> Maybe Text
solutionStackName} -> Maybe Text
solutionStackName) (\s :: ConfigurationSettingsDescription
s@ConfigurationSettingsDescription' {} Maybe Text
a -> ConfigurationSettingsDescription
s {$sel:solutionStackName:ConfigurationSettingsDescription' :: Maybe Text
solutionStackName = Maybe Text
a} :: ConfigurationSettingsDescription)

-- | Describes this configuration set.
configurationSettingsDescription_description :: Lens.Lens' ConfigurationSettingsDescription (Prelude.Maybe Prelude.Text)
configurationSettingsDescription_description :: (Maybe Text -> f (Maybe Text))
-> ConfigurationSettingsDescription
-> f ConfigurationSettingsDescription
configurationSettingsDescription_description = (ConfigurationSettingsDescription -> Maybe Text)
-> (ConfigurationSettingsDescription
    -> Maybe Text -> ConfigurationSettingsDescription)
-> Lens
     ConfigurationSettingsDescription
     ConfigurationSettingsDescription
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ConfigurationSettingsDescription' {Maybe Text
description :: Maybe Text
$sel:description:ConfigurationSettingsDescription' :: ConfigurationSettingsDescription -> Maybe Text
description} -> Maybe Text
description) (\s :: ConfigurationSettingsDescription
s@ConfigurationSettingsDescription' {} Maybe Text
a -> ConfigurationSettingsDescription
s {$sel:description:ConfigurationSettingsDescription' :: Maybe Text
description = Maybe Text
a} :: ConfigurationSettingsDescription)

instance
  Core.FromXML
    ConfigurationSettingsDescription
  where
  parseXML :: [Node] -> Either String ConfigurationSettingsDescription
parseXML [Node]
x =
    Maybe Text
-> Maybe [ConfigurationOptionSetting]
-> Maybe ISO8601
-> Maybe ISO8601
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ConfigurationDeploymentStatus
-> Maybe Text
-> Maybe Text
-> ConfigurationSettingsDescription
ConfigurationSettingsDescription'
      (Maybe Text
 -> Maybe [ConfigurationOptionSetting]
 -> Maybe ISO8601
 -> Maybe ISO8601
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe ConfigurationDeploymentStatus
 -> Maybe Text
 -> Maybe Text
 -> ConfigurationSettingsDescription)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe [ConfigurationOptionSetting]
      -> Maybe ISO8601
      -> Maybe ISO8601
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe ConfigurationDeploymentStatus
      -> Maybe Text
      -> Maybe Text
      -> ConfigurationSettingsDescription)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"TemplateName")
      Either
  String
  (Maybe [ConfigurationOptionSetting]
   -> Maybe ISO8601
   -> Maybe ISO8601
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe ConfigurationDeploymentStatus
   -> Maybe Text
   -> Maybe Text
   -> ConfigurationSettingsDescription)
-> Either String (Maybe [ConfigurationOptionSetting])
-> Either
     String
     (Maybe ISO8601
      -> Maybe ISO8601
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe ConfigurationDeploymentStatus
      -> Maybe Text
      -> Maybe Text
      -> ConfigurationSettingsDescription)
forall (f :: * -> *) a b. Applicative f => 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
"OptionSettings" 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 [ConfigurationOptionSetting]))
-> Either String (Maybe [ConfigurationOptionSetting])
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= ([Node] -> Either String [ConfigurationOptionSetting])
-> [Node] -> Either String (Maybe [ConfigurationOptionSetting])
forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (Text -> [Node] -> Either String [ConfigurationOptionSetting]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"member")
                  )
      Either
  String
  (Maybe ISO8601
   -> Maybe ISO8601
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe ConfigurationDeploymentStatus
   -> Maybe Text
   -> Maybe Text
   -> ConfigurationSettingsDescription)
-> Either String (Maybe ISO8601)
-> Either
     String
     (Maybe ISO8601
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe ConfigurationDeploymentStatus
      -> Maybe Text
      -> Maybe Text
      -> ConfigurationSettingsDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe ISO8601)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"DateUpdated")
      Either
  String
  (Maybe ISO8601
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe ConfigurationDeploymentStatus
   -> Maybe Text
   -> Maybe Text
   -> ConfigurationSettingsDescription)
-> Either String (Maybe ISO8601)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe ConfigurationDeploymentStatus
      -> Maybe Text
      -> Maybe Text
      -> ConfigurationSettingsDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe ISO8601)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"DateCreated")
      Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe ConfigurationDeploymentStatus
   -> Maybe Text
   -> Maybe Text
   -> ConfigurationSettingsDescription)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe ConfigurationDeploymentStatus
      -> Maybe Text
      -> Maybe Text
      -> ConfigurationSettingsDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"PlatformArn")
      Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe ConfigurationDeploymentStatus
   -> Maybe Text
   -> Maybe Text
   -> ConfigurationSettingsDescription)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe ConfigurationDeploymentStatus
      -> Maybe Text
      -> Maybe Text
      -> ConfigurationSettingsDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"EnvironmentName")
      Either
  String
  (Maybe Text
   -> Maybe ConfigurationDeploymentStatus
   -> Maybe Text
   -> Maybe Text
   -> ConfigurationSettingsDescription)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe ConfigurationDeploymentStatus
      -> Maybe Text -> Maybe Text -> ConfigurationSettingsDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"ApplicationName")
      Either
  String
  (Maybe ConfigurationDeploymentStatus
   -> Maybe Text -> Maybe Text -> ConfigurationSettingsDescription)
-> Either String (Maybe ConfigurationDeploymentStatus)
-> Either
     String
     (Maybe Text -> Maybe Text -> ConfigurationSettingsDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node]
-> Text -> Either String (Maybe ConfigurationDeploymentStatus)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"DeploymentStatus")
      Either
  String
  (Maybe Text -> Maybe Text -> ConfigurationSettingsDescription)
-> Either String (Maybe Text)
-> Either String (Maybe Text -> ConfigurationSettingsDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"SolutionStackName")
      Either String (Maybe Text -> ConfigurationSettingsDescription)
-> Either String (Maybe Text)
-> Either String ConfigurationSettingsDescription
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"Description")

instance
  Prelude.Hashable
    ConfigurationSettingsDescription

instance
  Prelude.NFData
    ConfigurationSettingsDescription