{-# 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 #-}
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
data ConfigurationSettingsDescription = ConfigurationSettingsDescription'
{
ConfigurationSettingsDescription -> Maybe Text
templateName :: Prelude.Maybe Prelude.Text,
ConfigurationSettingsDescription
-> Maybe [ConfigurationOptionSetting]
optionSettings :: Prelude.Maybe [ConfigurationOptionSetting],
ConfigurationSettingsDescription -> Maybe ISO8601
dateUpdated :: Prelude.Maybe Core.ISO8601,
ConfigurationSettingsDescription -> Maybe ISO8601
dateCreated :: Prelude.Maybe Core.ISO8601,
ConfigurationSettingsDescription -> Maybe Text
platformArn :: Prelude.Maybe Prelude.Text,
ConfigurationSettingsDescription -> Maybe Text
environmentName :: Prelude.Maybe Prelude.Text,
ConfigurationSettingsDescription -> Maybe Text
applicationName :: Prelude.Maybe Prelude.Text,
ConfigurationSettingsDescription
-> Maybe ConfigurationDeploymentStatus
deploymentStatus :: Prelude.Maybe ConfigurationDeploymentStatus,
ConfigurationSettingsDescription -> Maybe Text
solutionStackName :: Prelude.Maybe Prelude.Text,
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)
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
}
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)
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
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
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
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)
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)
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)
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)
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)
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