{-# 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.ApplicationDescription where
import qualified Amazonka.Core as Core
import Amazonka.ElasticBeanstalk.Types.ApplicationResourceLifecycleConfig
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data ApplicationDescription = ApplicationDescription'
{
ApplicationDescription -> Maybe Text
applicationArn :: Prelude.Maybe Prelude.Text,
ApplicationDescription -> Maybe [Text]
versions :: Prelude.Maybe [Prelude.Text],
ApplicationDescription -> Maybe ISO8601
dateUpdated :: Prelude.Maybe Core.ISO8601,
ApplicationDescription -> Maybe ISO8601
dateCreated :: Prelude.Maybe Core.ISO8601,
ApplicationDescription -> Maybe Text
applicationName :: Prelude.Maybe Prelude.Text,
ApplicationDescription -> Maybe [Text]
configurationTemplates :: Prelude.Maybe [Prelude.Text],
ApplicationDescription -> Maybe ApplicationResourceLifecycleConfig
resourceLifecycleConfig :: Prelude.Maybe ApplicationResourceLifecycleConfig,
ApplicationDescription -> Maybe Text
description :: Prelude.Maybe Prelude.Text
}
deriving (ApplicationDescription -> ApplicationDescription -> Bool
(ApplicationDescription -> ApplicationDescription -> Bool)
-> (ApplicationDescription -> ApplicationDescription -> Bool)
-> Eq ApplicationDescription
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ApplicationDescription -> ApplicationDescription -> Bool
$c/= :: ApplicationDescription -> ApplicationDescription -> Bool
== :: ApplicationDescription -> ApplicationDescription -> Bool
$c== :: ApplicationDescription -> ApplicationDescription -> Bool
Prelude.Eq, ReadPrec [ApplicationDescription]
ReadPrec ApplicationDescription
Int -> ReadS ApplicationDescription
ReadS [ApplicationDescription]
(Int -> ReadS ApplicationDescription)
-> ReadS [ApplicationDescription]
-> ReadPrec ApplicationDescription
-> ReadPrec [ApplicationDescription]
-> Read ApplicationDescription
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ApplicationDescription]
$creadListPrec :: ReadPrec [ApplicationDescription]
readPrec :: ReadPrec ApplicationDescription
$creadPrec :: ReadPrec ApplicationDescription
readList :: ReadS [ApplicationDescription]
$creadList :: ReadS [ApplicationDescription]
readsPrec :: Int -> ReadS ApplicationDescription
$creadsPrec :: Int -> ReadS ApplicationDescription
Prelude.Read, Int -> ApplicationDescription -> ShowS
[ApplicationDescription] -> ShowS
ApplicationDescription -> String
(Int -> ApplicationDescription -> ShowS)
-> (ApplicationDescription -> String)
-> ([ApplicationDescription] -> ShowS)
-> Show ApplicationDescription
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ApplicationDescription] -> ShowS
$cshowList :: [ApplicationDescription] -> ShowS
show :: ApplicationDescription -> String
$cshow :: ApplicationDescription -> String
showsPrec :: Int -> ApplicationDescription -> ShowS
$cshowsPrec :: Int -> ApplicationDescription -> ShowS
Prelude.Show, (forall x. ApplicationDescription -> Rep ApplicationDescription x)
-> (forall x.
Rep ApplicationDescription x -> ApplicationDescription)
-> Generic ApplicationDescription
forall x. Rep ApplicationDescription x -> ApplicationDescription
forall x. ApplicationDescription -> Rep ApplicationDescription x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ApplicationDescription x -> ApplicationDescription
$cfrom :: forall x. ApplicationDescription -> Rep ApplicationDescription x
Prelude.Generic)
newApplicationDescription ::
ApplicationDescription
newApplicationDescription :: ApplicationDescription
newApplicationDescription =
ApplicationDescription' :: Maybe Text
-> Maybe [Text]
-> Maybe ISO8601
-> Maybe ISO8601
-> Maybe Text
-> Maybe [Text]
-> Maybe ApplicationResourceLifecycleConfig
-> Maybe Text
-> ApplicationDescription
ApplicationDescription'
{ $sel:applicationArn:ApplicationDescription' :: Maybe Text
applicationArn =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:versions:ApplicationDescription' :: Maybe [Text]
versions = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:dateUpdated:ApplicationDescription' :: Maybe ISO8601
dateUpdated = Maybe ISO8601
forall a. Maybe a
Prelude.Nothing,
$sel:dateCreated:ApplicationDescription' :: Maybe ISO8601
dateCreated = Maybe ISO8601
forall a. Maybe a
Prelude.Nothing,
$sel:applicationName:ApplicationDescription' :: Maybe Text
applicationName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:configurationTemplates:ApplicationDescription' :: Maybe [Text]
configurationTemplates = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:resourceLifecycleConfig:ApplicationDescription' :: Maybe ApplicationResourceLifecycleConfig
resourceLifecycleConfig = Maybe ApplicationResourceLifecycleConfig
forall a. Maybe a
Prelude.Nothing,
$sel:description:ApplicationDescription' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
applicationDescription_applicationArn :: Lens.Lens' ApplicationDescription (Prelude.Maybe Prelude.Text)
applicationDescription_applicationArn :: (Maybe Text -> f (Maybe Text))
-> ApplicationDescription -> f ApplicationDescription
applicationDescription_applicationArn = (ApplicationDescription -> Maybe Text)
-> (ApplicationDescription -> Maybe Text -> ApplicationDescription)
-> Lens
ApplicationDescription
ApplicationDescription
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ApplicationDescription' {Maybe Text
applicationArn :: Maybe Text
$sel:applicationArn:ApplicationDescription' :: ApplicationDescription -> Maybe Text
applicationArn} -> Maybe Text
applicationArn) (\s :: ApplicationDescription
s@ApplicationDescription' {} Maybe Text
a -> ApplicationDescription
s {$sel:applicationArn:ApplicationDescription' :: Maybe Text
applicationArn = Maybe Text
a} :: ApplicationDescription)
applicationDescription_versions :: Lens.Lens' ApplicationDescription (Prelude.Maybe [Prelude.Text])
applicationDescription_versions :: (Maybe [Text] -> f (Maybe [Text]))
-> ApplicationDescription -> f ApplicationDescription
applicationDescription_versions = (ApplicationDescription -> Maybe [Text])
-> (ApplicationDescription
-> Maybe [Text] -> ApplicationDescription)
-> Lens
ApplicationDescription
ApplicationDescription
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ApplicationDescription' {Maybe [Text]
versions :: Maybe [Text]
$sel:versions:ApplicationDescription' :: ApplicationDescription -> Maybe [Text]
versions} -> Maybe [Text]
versions) (\s :: ApplicationDescription
s@ApplicationDescription' {} Maybe [Text]
a -> ApplicationDescription
s {$sel:versions:ApplicationDescription' :: Maybe [Text]
versions = Maybe [Text]
a} :: ApplicationDescription) ((Maybe [Text] -> f (Maybe [Text]))
-> ApplicationDescription -> f ApplicationDescription)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> ApplicationDescription
-> f ApplicationDescription
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
applicationDescription_dateUpdated :: Lens.Lens' ApplicationDescription (Prelude.Maybe Prelude.UTCTime)
applicationDescription_dateUpdated :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ApplicationDescription -> f ApplicationDescription
applicationDescription_dateUpdated = (ApplicationDescription -> Maybe ISO8601)
-> (ApplicationDescription
-> Maybe ISO8601 -> ApplicationDescription)
-> Lens
ApplicationDescription
ApplicationDescription
(Maybe ISO8601)
(Maybe ISO8601)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ApplicationDescription' {Maybe ISO8601
dateUpdated :: Maybe ISO8601
$sel:dateUpdated:ApplicationDescription' :: ApplicationDescription -> Maybe ISO8601
dateUpdated} -> Maybe ISO8601
dateUpdated) (\s :: ApplicationDescription
s@ApplicationDescription' {} Maybe ISO8601
a -> ApplicationDescription
s {$sel:dateUpdated:ApplicationDescription' :: Maybe ISO8601
dateUpdated = Maybe ISO8601
a} :: ApplicationDescription) ((Maybe ISO8601 -> f (Maybe ISO8601))
-> ApplicationDescription -> f ApplicationDescription)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe ISO8601 -> f (Maybe ISO8601))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ApplicationDescription
-> f ApplicationDescription
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
applicationDescription_dateCreated :: Lens.Lens' ApplicationDescription (Prelude.Maybe Prelude.UTCTime)
applicationDescription_dateCreated :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ApplicationDescription -> f ApplicationDescription
applicationDescription_dateCreated = (ApplicationDescription -> Maybe ISO8601)
-> (ApplicationDescription
-> Maybe ISO8601 -> ApplicationDescription)
-> Lens
ApplicationDescription
ApplicationDescription
(Maybe ISO8601)
(Maybe ISO8601)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ApplicationDescription' {Maybe ISO8601
dateCreated :: Maybe ISO8601
$sel:dateCreated:ApplicationDescription' :: ApplicationDescription -> Maybe ISO8601
dateCreated} -> Maybe ISO8601
dateCreated) (\s :: ApplicationDescription
s@ApplicationDescription' {} Maybe ISO8601
a -> ApplicationDescription
s {$sel:dateCreated:ApplicationDescription' :: Maybe ISO8601
dateCreated = Maybe ISO8601
a} :: ApplicationDescription) ((Maybe ISO8601 -> f (Maybe ISO8601))
-> ApplicationDescription -> f ApplicationDescription)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe ISO8601 -> f (Maybe ISO8601))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ApplicationDescription
-> f ApplicationDescription
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
applicationDescription_applicationName :: Lens.Lens' ApplicationDescription (Prelude.Maybe Prelude.Text)
applicationDescription_applicationName :: (Maybe Text -> f (Maybe Text))
-> ApplicationDescription -> f ApplicationDescription
applicationDescription_applicationName = (ApplicationDescription -> Maybe Text)
-> (ApplicationDescription -> Maybe Text -> ApplicationDescription)
-> Lens
ApplicationDescription
ApplicationDescription
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ApplicationDescription' {Maybe Text
applicationName :: Maybe Text
$sel:applicationName:ApplicationDescription' :: ApplicationDescription -> Maybe Text
applicationName} -> Maybe Text
applicationName) (\s :: ApplicationDescription
s@ApplicationDescription' {} Maybe Text
a -> ApplicationDescription
s {$sel:applicationName:ApplicationDescription' :: Maybe Text
applicationName = Maybe Text
a} :: ApplicationDescription)
applicationDescription_configurationTemplates :: Lens.Lens' ApplicationDescription (Prelude.Maybe [Prelude.Text])
applicationDescription_configurationTemplates :: (Maybe [Text] -> f (Maybe [Text]))
-> ApplicationDescription -> f ApplicationDescription
applicationDescription_configurationTemplates = (ApplicationDescription -> Maybe [Text])
-> (ApplicationDescription
-> Maybe [Text] -> ApplicationDescription)
-> Lens
ApplicationDescription
ApplicationDescription
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ApplicationDescription' {Maybe [Text]
configurationTemplates :: Maybe [Text]
$sel:configurationTemplates:ApplicationDescription' :: ApplicationDescription -> Maybe [Text]
configurationTemplates} -> Maybe [Text]
configurationTemplates) (\s :: ApplicationDescription
s@ApplicationDescription' {} Maybe [Text]
a -> ApplicationDescription
s {$sel:configurationTemplates:ApplicationDescription' :: Maybe [Text]
configurationTemplates = Maybe [Text]
a} :: ApplicationDescription) ((Maybe [Text] -> f (Maybe [Text]))
-> ApplicationDescription -> f ApplicationDescription)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> ApplicationDescription
-> f ApplicationDescription
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
applicationDescription_resourceLifecycleConfig :: Lens.Lens' ApplicationDescription (Prelude.Maybe ApplicationResourceLifecycleConfig)
applicationDescription_resourceLifecycleConfig :: (Maybe ApplicationResourceLifecycleConfig
-> f (Maybe ApplicationResourceLifecycleConfig))
-> ApplicationDescription -> f ApplicationDescription
applicationDescription_resourceLifecycleConfig = (ApplicationDescription
-> Maybe ApplicationResourceLifecycleConfig)
-> (ApplicationDescription
-> Maybe ApplicationResourceLifecycleConfig
-> ApplicationDescription)
-> Lens
ApplicationDescription
ApplicationDescription
(Maybe ApplicationResourceLifecycleConfig)
(Maybe ApplicationResourceLifecycleConfig)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ApplicationDescription' {Maybe ApplicationResourceLifecycleConfig
resourceLifecycleConfig :: Maybe ApplicationResourceLifecycleConfig
$sel:resourceLifecycleConfig:ApplicationDescription' :: ApplicationDescription -> Maybe ApplicationResourceLifecycleConfig
resourceLifecycleConfig} -> Maybe ApplicationResourceLifecycleConfig
resourceLifecycleConfig) (\s :: ApplicationDescription
s@ApplicationDescription' {} Maybe ApplicationResourceLifecycleConfig
a -> ApplicationDescription
s {$sel:resourceLifecycleConfig:ApplicationDescription' :: Maybe ApplicationResourceLifecycleConfig
resourceLifecycleConfig = Maybe ApplicationResourceLifecycleConfig
a} :: ApplicationDescription)
applicationDescription_description :: Lens.Lens' ApplicationDescription (Prelude.Maybe Prelude.Text)
applicationDescription_description :: (Maybe Text -> f (Maybe Text))
-> ApplicationDescription -> f ApplicationDescription
applicationDescription_description = (ApplicationDescription -> Maybe Text)
-> (ApplicationDescription -> Maybe Text -> ApplicationDescription)
-> Lens
ApplicationDescription
ApplicationDescription
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ApplicationDescription' {Maybe Text
description :: Maybe Text
$sel:description:ApplicationDescription' :: ApplicationDescription -> Maybe Text
description} -> Maybe Text
description) (\s :: ApplicationDescription
s@ApplicationDescription' {} Maybe Text
a -> ApplicationDescription
s {$sel:description:ApplicationDescription' :: Maybe Text
description = Maybe Text
a} :: ApplicationDescription)
instance Core.FromXML ApplicationDescription where
parseXML :: [Node] -> Either String ApplicationDescription
parseXML [Node]
x =
Maybe Text
-> Maybe [Text]
-> Maybe ISO8601
-> Maybe ISO8601
-> Maybe Text
-> Maybe [Text]
-> Maybe ApplicationResourceLifecycleConfig
-> Maybe Text
-> ApplicationDescription
ApplicationDescription'
(Maybe Text
-> Maybe [Text]
-> Maybe ISO8601
-> Maybe ISO8601
-> Maybe Text
-> Maybe [Text]
-> Maybe ApplicationResourceLifecycleConfig
-> Maybe Text
-> ApplicationDescription)
-> Either String (Maybe Text)
-> Either
String
(Maybe [Text]
-> Maybe ISO8601
-> Maybe ISO8601
-> Maybe Text
-> Maybe [Text]
-> Maybe ApplicationResourceLifecycleConfig
-> Maybe Text
-> ApplicationDescription)
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
"ApplicationArn")
Either
String
(Maybe [Text]
-> Maybe ISO8601
-> Maybe ISO8601
-> Maybe Text
-> Maybe [Text]
-> Maybe ApplicationResourceLifecycleConfig
-> Maybe Text
-> ApplicationDescription)
-> Either String (Maybe [Text])
-> Either
String
(Maybe ISO8601
-> Maybe ISO8601
-> Maybe Text
-> Maybe [Text]
-> Maybe ApplicationResourceLifecycleConfig
-> Maybe Text
-> ApplicationDescription)
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
"Versions" 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 [Text]))
-> Either String (Maybe [Text])
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= ([Node] -> Either String [Text])
-> [Node] -> Either String (Maybe [Text])
forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (Text -> [Node] -> Either String [Text]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"member")
)
Either
String
(Maybe ISO8601
-> Maybe ISO8601
-> Maybe Text
-> Maybe [Text]
-> Maybe ApplicationResourceLifecycleConfig
-> Maybe Text
-> ApplicationDescription)
-> Either String (Maybe ISO8601)
-> Either
String
(Maybe ISO8601
-> Maybe Text
-> Maybe [Text]
-> Maybe ApplicationResourceLifecycleConfig
-> Maybe Text
-> ApplicationDescription)
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 ApplicationResourceLifecycleConfig
-> Maybe Text
-> ApplicationDescription)
-> Either String (Maybe ISO8601)
-> Either
String
(Maybe Text
-> Maybe [Text]
-> Maybe ApplicationResourceLifecycleConfig
-> Maybe Text
-> ApplicationDescription)
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 ApplicationResourceLifecycleConfig
-> Maybe Text
-> ApplicationDescription)
-> Either String (Maybe Text)
-> Either
String
(Maybe [Text]
-> Maybe ApplicationResourceLifecycleConfig
-> Maybe Text
-> ApplicationDescription)
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 [Text]
-> Maybe ApplicationResourceLifecycleConfig
-> Maybe Text
-> ApplicationDescription)
-> Either String (Maybe [Text])
-> Either
String
(Maybe ApplicationResourceLifecycleConfig
-> Maybe Text -> ApplicationDescription)
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
"ConfigurationTemplates"
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 [Text]))
-> Either String (Maybe [Text])
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= ([Node] -> Either String [Text])
-> [Node] -> Either String (Maybe [Text])
forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (Text -> [Node] -> Either String [Text]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"member")
)
Either
String
(Maybe ApplicationResourceLifecycleConfig
-> Maybe Text -> ApplicationDescription)
-> Either String (Maybe ApplicationResourceLifecycleConfig)
-> Either String (Maybe Text -> ApplicationDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node]
-> Text -> Either String (Maybe ApplicationResourceLifecycleConfig)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"ResourceLifecycleConfig")
Either String (Maybe Text -> ApplicationDescription)
-> Either String (Maybe Text)
-> Either String ApplicationDescription
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 ApplicationDescription
instance Prelude.NFData ApplicationDescription