{-# 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.CloudFormation.Types.StackInstance where
import Amazonka.CloudFormation.Types.Parameter
import Amazonka.CloudFormation.Types.StackDriftStatus
import Amazonka.CloudFormation.Types.StackInstanceComprehensiveStatus
import Amazonka.CloudFormation.Types.StackInstanceStatus
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data StackInstance = StackInstance'
{
StackInstance -> Maybe StackInstanceStatus
status :: Prelude.Maybe StackInstanceStatus,
StackInstance -> Maybe ISO8601
lastDriftCheckTimestamp :: Prelude.Maybe Core.ISO8601,
StackInstance -> Maybe Text
account :: Prelude.Maybe Prelude.Text,
StackInstance -> Maybe StackDriftStatus
driftStatus :: Prelude.Maybe StackDriftStatus,
StackInstance -> Maybe Text
organizationalUnitId :: Prelude.Maybe Prelude.Text,
StackInstance -> Maybe Text
region :: Prelude.Maybe Prelude.Text,
StackInstance -> Maybe Text
statusReason :: Prelude.Maybe Prelude.Text,
StackInstance -> Maybe Text
stackId :: Prelude.Maybe Prelude.Text,
StackInstance -> Maybe StackInstanceComprehensiveStatus
stackInstanceStatus :: Prelude.Maybe StackInstanceComprehensiveStatus,
StackInstance -> Maybe [Parameter]
parameterOverrides :: Prelude.Maybe [Parameter],
StackInstance -> Maybe Text
stackSetId :: Prelude.Maybe Prelude.Text
}
deriving (StackInstance -> StackInstance -> Bool
(StackInstance -> StackInstance -> Bool)
-> (StackInstance -> StackInstance -> Bool) -> Eq StackInstance
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StackInstance -> StackInstance -> Bool
$c/= :: StackInstance -> StackInstance -> Bool
== :: StackInstance -> StackInstance -> Bool
$c== :: StackInstance -> StackInstance -> Bool
Prelude.Eq, ReadPrec [StackInstance]
ReadPrec StackInstance
Int -> ReadS StackInstance
ReadS [StackInstance]
(Int -> ReadS StackInstance)
-> ReadS [StackInstance]
-> ReadPrec StackInstance
-> ReadPrec [StackInstance]
-> Read StackInstance
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StackInstance]
$creadListPrec :: ReadPrec [StackInstance]
readPrec :: ReadPrec StackInstance
$creadPrec :: ReadPrec StackInstance
readList :: ReadS [StackInstance]
$creadList :: ReadS [StackInstance]
readsPrec :: Int -> ReadS StackInstance
$creadsPrec :: Int -> ReadS StackInstance
Prelude.Read, Int -> StackInstance -> ShowS
[StackInstance] -> ShowS
StackInstance -> String
(Int -> StackInstance -> ShowS)
-> (StackInstance -> String)
-> ([StackInstance] -> ShowS)
-> Show StackInstance
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StackInstance] -> ShowS
$cshowList :: [StackInstance] -> ShowS
show :: StackInstance -> String
$cshow :: StackInstance -> String
showsPrec :: Int -> StackInstance -> ShowS
$cshowsPrec :: Int -> StackInstance -> ShowS
Prelude.Show, (forall x. StackInstance -> Rep StackInstance x)
-> (forall x. Rep StackInstance x -> StackInstance)
-> Generic StackInstance
forall x. Rep StackInstance x -> StackInstance
forall x. StackInstance -> Rep StackInstance x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep StackInstance x -> StackInstance
$cfrom :: forall x. StackInstance -> Rep StackInstance x
Prelude.Generic)
newStackInstance ::
StackInstance
newStackInstance :: StackInstance
newStackInstance =
StackInstance' :: Maybe StackInstanceStatus
-> Maybe ISO8601
-> Maybe Text
-> Maybe StackDriftStatus
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe StackInstanceComprehensiveStatus
-> Maybe [Parameter]
-> Maybe Text
-> StackInstance
StackInstance'
{ $sel:status:StackInstance' :: Maybe StackInstanceStatus
status = Maybe StackInstanceStatus
forall a. Maybe a
Prelude.Nothing,
$sel:lastDriftCheckTimestamp:StackInstance' :: Maybe ISO8601
lastDriftCheckTimestamp = Maybe ISO8601
forall a. Maybe a
Prelude.Nothing,
$sel:account:StackInstance' :: Maybe Text
account = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:driftStatus:StackInstance' :: Maybe StackDriftStatus
driftStatus = Maybe StackDriftStatus
forall a. Maybe a
Prelude.Nothing,
$sel:organizationalUnitId:StackInstance' :: Maybe Text
organizationalUnitId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:region:StackInstance' :: Maybe Text
region = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:statusReason:StackInstance' :: Maybe Text
statusReason = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:stackId:StackInstance' :: Maybe Text
stackId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:stackInstanceStatus:StackInstance' :: Maybe StackInstanceComprehensiveStatus
stackInstanceStatus = Maybe StackInstanceComprehensiveStatus
forall a. Maybe a
Prelude.Nothing,
$sel:parameterOverrides:StackInstance' :: Maybe [Parameter]
parameterOverrides = Maybe [Parameter]
forall a. Maybe a
Prelude.Nothing,
$sel:stackSetId:StackInstance' :: Maybe Text
stackSetId = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
stackInstance_status :: Lens.Lens' StackInstance (Prelude.Maybe StackInstanceStatus)
stackInstance_status :: (Maybe StackInstanceStatus -> f (Maybe StackInstanceStatus))
-> StackInstance -> f StackInstance
stackInstance_status = (StackInstance -> Maybe StackInstanceStatus)
-> (StackInstance -> Maybe StackInstanceStatus -> StackInstance)
-> Lens
StackInstance
StackInstance
(Maybe StackInstanceStatus)
(Maybe StackInstanceStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StackInstance' {Maybe StackInstanceStatus
status :: Maybe StackInstanceStatus
$sel:status:StackInstance' :: StackInstance -> Maybe StackInstanceStatus
status} -> Maybe StackInstanceStatus
status) (\s :: StackInstance
s@StackInstance' {} Maybe StackInstanceStatus
a -> StackInstance
s {$sel:status:StackInstance' :: Maybe StackInstanceStatus
status = Maybe StackInstanceStatus
a} :: StackInstance)
stackInstance_lastDriftCheckTimestamp :: Lens.Lens' StackInstance (Prelude.Maybe Prelude.UTCTime)
stackInstance_lastDriftCheckTimestamp :: (Maybe UTCTime -> f (Maybe UTCTime))
-> StackInstance -> f StackInstance
stackInstance_lastDriftCheckTimestamp = (StackInstance -> Maybe ISO8601)
-> (StackInstance -> Maybe ISO8601 -> StackInstance)
-> Lens StackInstance StackInstance (Maybe ISO8601) (Maybe ISO8601)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StackInstance' {Maybe ISO8601
lastDriftCheckTimestamp :: Maybe ISO8601
$sel:lastDriftCheckTimestamp:StackInstance' :: StackInstance -> Maybe ISO8601
lastDriftCheckTimestamp} -> Maybe ISO8601
lastDriftCheckTimestamp) (\s :: StackInstance
s@StackInstance' {} Maybe ISO8601
a -> StackInstance
s {$sel:lastDriftCheckTimestamp:StackInstance' :: Maybe ISO8601
lastDriftCheckTimestamp = Maybe ISO8601
a} :: StackInstance) ((Maybe ISO8601 -> f (Maybe ISO8601))
-> StackInstance -> f StackInstance)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe ISO8601 -> f (Maybe ISO8601))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> StackInstance
-> f StackInstance
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
stackInstance_account :: Lens.Lens' StackInstance (Prelude.Maybe Prelude.Text)
stackInstance_account :: (Maybe Text -> f (Maybe Text)) -> StackInstance -> f StackInstance
stackInstance_account = (StackInstance -> Maybe Text)
-> (StackInstance -> Maybe Text -> StackInstance)
-> Lens StackInstance StackInstance (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StackInstance' {Maybe Text
account :: Maybe Text
$sel:account:StackInstance' :: StackInstance -> Maybe Text
account} -> Maybe Text
account) (\s :: StackInstance
s@StackInstance' {} Maybe Text
a -> StackInstance
s {$sel:account:StackInstance' :: Maybe Text
account = Maybe Text
a} :: StackInstance)
stackInstance_driftStatus :: Lens.Lens' StackInstance (Prelude.Maybe StackDriftStatus)
stackInstance_driftStatus :: (Maybe StackDriftStatus -> f (Maybe StackDriftStatus))
-> StackInstance -> f StackInstance
stackInstance_driftStatus = (StackInstance -> Maybe StackDriftStatus)
-> (StackInstance -> Maybe StackDriftStatus -> StackInstance)
-> Lens
StackInstance
StackInstance
(Maybe StackDriftStatus)
(Maybe StackDriftStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StackInstance' {Maybe StackDriftStatus
driftStatus :: Maybe StackDriftStatus
$sel:driftStatus:StackInstance' :: StackInstance -> Maybe StackDriftStatus
driftStatus} -> Maybe StackDriftStatus
driftStatus) (\s :: StackInstance
s@StackInstance' {} Maybe StackDriftStatus
a -> StackInstance
s {$sel:driftStatus:StackInstance' :: Maybe StackDriftStatus
driftStatus = Maybe StackDriftStatus
a} :: StackInstance)
stackInstance_organizationalUnitId :: Lens.Lens' StackInstance (Prelude.Maybe Prelude.Text)
stackInstance_organizationalUnitId :: (Maybe Text -> f (Maybe Text)) -> StackInstance -> f StackInstance
stackInstance_organizationalUnitId = (StackInstance -> Maybe Text)
-> (StackInstance -> Maybe Text -> StackInstance)
-> Lens StackInstance StackInstance (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StackInstance' {Maybe Text
organizationalUnitId :: Maybe Text
$sel:organizationalUnitId:StackInstance' :: StackInstance -> Maybe Text
organizationalUnitId} -> Maybe Text
organizationalUnitId) (\s :: StackInstance
s@StackInstance' {} Maybe Text
a -> StackInstance
s {$sel:organizationalUnitId:StackInstance' :: Maybe Text
organizationalUnitId = Maybe Text
a} :: StackInstance)
stackInstance_region :: Lens.Lens' StackInstance (Prelude.Maybe Prelude.Text)
stackInstance_region :: (Maybe Text -> f (Maybe Text)) -> StackInstance -> f StackInstance
stackInstance_region = (StackInstance -> Maybe Text)
-> (StackInstance -> Maybe Text -> StackInstance)
-> Lens StackInstance StackInstance (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StackInstance' {Maybe Text
region :: Maybe Text
$sel:region:StackInstance' :: StackInstance -> Maybe Text
region} -> Maybe Text
region) (\s :: StackInstance
s@StackInstance' {} Maybe Text
a -> StackInstance
s {$sel:region:StackInstance' :: Maybe Text
region = Maybe Text
a} :: StackInstance)
stackInstance_statusReason :: Lens.Lens' StackInstance (Prelude.Maybe Prelude.Text)
stackInstance_statusReason :: (Maybe Text -> f (Maybe Text)) -> StackInstance -> f StackInstance
stackInstance_statusReason = (StackInstance -> Maybe Text)
-> (StackInstance -> Maybe Text -> StackInstance)
-> Lens StackInstance StackInstance (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StackInstance' {Maybe Text
statusReason :: Maybe Text
$sel:statusReason:StackInstance' :: StackInstance -> Maybe Text
statusReason} -> Maybe Text
statusReason) (\s :: StackInstance
s@StackInstance' {} Maybe Text
a -> StackInstance
s {$sel:statusReason:StackInstance' :: Maybe Text
statusReason = Maybe Text
a} :: StackInstance)
stackInstance_stackId :: Lens.Lens' StackInstance (Prelude.Maybe Prelude.Text)
stackInstance_stackId :: (Maybe Text -> f (Maybe Text)) -> StackInstance -> f StackInstance
stackInstance_stackId = (StackInstance -> Maybe Text)
-> (StackInstance -> Maybe Text -> StackInstance)
-> Lens StackInstance StackInstance (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StackInstance' {Maybe Text
stackId :: Maybe Text
$sel:stackId:StackInstance' :: StackInstance -> Maybe Text
stackId} -> Maybe Text
stackId) (\s :: StackInstance
s@StackInstance' {} Maybe Text
a -> StackInstance
s {$sel:stackId:StackInstance' :: Maybe Text
stackId = Maybe Text
a} :: StackInstance)
stackInstance_stackInstanceStatus :: Lens.Lens' StackInstance (Prelude.Maybe StackInstanceComprehensiveStatus)
stackInstance_stackInstanceStatus :: (Maybe StackInstanceComprehensiveStatus
-> f (Maybe StackInstanceComprehensiveStatus))
-> StackInstance -> f StackInstance
stackInstance_stackInstanceStatus = (StackInstance -> Maybe StackInstanceComprehensiveStatus)
-> (StackInstance
-> Maybe StackInstanceComprehensiveStatus -> StackInstance)
-> Lens
StackInstance
StackInstance
(Maybe StackInstanceComprehensiveStatus)
(Maybe StackInstanceComprehensiveStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StackInstance' {Maybe StackInstanceComprehensiveStatus
stackInstanceStatus :: Maybe StackInstanceComprehensiveStatus
$sel:stackInstanceStatus:StackInstance' :: StackInstance -> Maybe StackInstanceComprehensiveStatus
stackInstanceStatus} -> Maybe StackInstanceComprehensiveStatus
stackInstanceStatus) (\s :: StackInstance
s@StackInstance' {} Maybe StackInstanceComprehensiveStatus
a -> StackInstance
s {$sel:stackInstanceStatus:StackInstance' :: Maybe StackInstanceComprehensiveStatus
stackInstanceStatus = Maybe StackInstanceComprehensiveStatus
a} :: StackInstance)
stackInstance_parameterOverrides :: Lens.Lens' StackInstance (Prelude.Maybe [Parameter])
stackInstance_parameterOverrides :: (Maybe [Parameter] -> f (Maybe [Parameter]))
-> StackInstance -> f StackInstance
stackInstance_parameterOverrides = (StackInstance -> Maybe [Parameter])
-> (StackInstance -> Maybe [Parameter] -> StackInstance)
-> Lens
StackInstance StackInstance (Maybe [Parameter]) (Maybe [Parameter])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StackInstance' {Maybe [Parameter]
parameterOverrides :: Maybe [Parameter]
$sel:parameterOverrides:StackInstance' :: StackInstance -> Maybe [Parameter]
parameterOverrides} -> Maybe [Parameter]
parameterOverrides) (\s :: StackInstance
s@StackInstance' {} Maybe [Parameter]
a -> StackInstance
s {$sel:parameterOverrides:StackInstance' :: Maybe [Parameter]
parameterOverrides = Maybe [Parameter]
a} :: StackInstance) ((Maybe [Parameter] -> f (Maybe [Parameter]))
-> StackInstance -> f StackInstance)
-> ((Maybe [Parameter] -> f (Maybe [Parameter]))
-> Maybe [Parameter] -> f (Maybe [Parameter]))
-> (Maybe [Parameter] -> f (Maybe [Parameter]))
-> StackInstance
-> f StackInstance
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Parameter] [Parameter] [Parameter] [Parameter]
-> Iso
(Maybe [Parameter])
(Maybe [Parameter])
(Maybe [Parameter])
(Maybe [Parameter])
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 [Parameter] [Parameter] [Parameter] [Parameter]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
stackInstance_stackSetId :: Lens.Lens' StackInstance (Prelude.Maybe Prelude.Text)
stackInstance_stackSetId :: (Maybe Text -> f (Maybe Text)) -> StackInstance -> f StackInstance
stackInstance_stackSetId = (StackInstance -> Maybe Text)
-> (StackInstance -> Maybe Text -> StackInstance)
-> Lens StackInstance StackInstance (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StackInstance' {Maybe Text
stackSetId :: Maybe Text
$sel:stackSetId:StackInstance' :: StackInstance -> Maybe Text
stackSetId} -> Maybe Text
stackSetId) (\s :: StackInstance
s@StackInstance' {} Maybe Text
a -> StackInstance
s {$sel:stackSetId:StackInstance' :: Maybe Text
stackSetId = Maybe Text
a} :: StackInstance)
instance Core.FromXML StackInstance where
parseXML :: [Node] -> Either String StackInstance
parseXML [Node]
x =
Maybe StackInstanceStatus
-> Maybe ISO8601
-> Maybe Text
-> Maybe StackDriftStatus
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe StackInstanceComprehensiveStatus
-> Maybe [Parameter]
-> Maybe Text
-> StackInstance
StackInstance'
(Maybe StackInstanceStatus
-> Maybe ISO8601
-> Maybe Text
-> Maybe StackDriftStatus
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe StackInstanceComprehensiveStatus
-> Maybe [Parameter]
-> Maybe Text
-> StackInstance)
-> Either String (Maybe StackInstanceStatus)
-> Either
String
(Maybe ISO8601
-> Maybe Text
-> Maybe StackDriftStatus
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe StackInstanceComprehensiveStatus
-> Maybe [Parameter]
-> Maybe Text
-> StackInstance)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x [Node] -> Text -> Either String (Maybe StackInstanceStatus)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"Status")
Either
String
(Maybe ISO8601
-> Maybe Text
-> Maybe StackDriftStatus
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe StackInstanceComprehensiveStatus
-> Maybe [Parameter]
-> Maybe Text
-> StackInstance)
-> Either String (Maybe ISO8601)
-> Either
String
(Maybe Text
-> Maybe StackDriftStatus
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe StackInstanceComprehensiveStatus
-> Maybe [Parameter]
-> Maybe Text
-> StackInstance)
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
"LastDriftCheckTimestamp")
Either
String
(Maybe Text
-> Maybe StackDriftStatus
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe StackInstanceComprehensiveStatus
-> Maybe [Parameter]
-> Maybe Text
-> StackInstance)
-> Either String (Maybe Text)
-> Either
String
(Maybe StackDriftStatus
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe StackInstanceComprehensiveStatus
-> Maybe [Parameter]
-> Maybe Text
-> StackInstance)
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
"Account")
Either
String
(Maybe StackDriftStatus
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe StackInstanceComprehensiveStatus
-> Maybe [Parameter]
-> Maybe Text
-> StackInstance)
-> Either String (Maybe StackDriftStatus)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe StackInstanceComprehensiveStatus
-> Maybe [Parameter]
-> Maybe Text
-> StackInstance)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe StackDriftStatus)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"DriftStatus")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe StackInstanceComprehensiveStatus
-> Maybe [Parameter]
-> Maybe Text
-> StackInstance)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe StackInstanceComprehensiveStatus
-> Maybe [Parameter]
-> Maybe Text
-> StackInstance)
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
"OrganizationalUnitId")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe StackInstanceComprehensiveStatus
-> Maybe [Parameter]
-> Maybe Text
-> StackInstance)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe StackInstanceComprehensiveStatus
-> Maybe [Parameter]
-> Maybe Text
-> StackInstance)
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
"Region")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe StackInstanceComprehensiveStatus
-> Maybe [Parameter]
-> Maybe Text
-> StackInstance)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe StackInstanceComprehensiveStatus
-> Maybe [Parameter]
-> Maybe Text
-> StackInstance)
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
"StatusReason")
Either
String
(Maybe Text
-> Maybe StackInstanceComprehensiveStatus
-> Maybe [Parameter]
-> Maybe Text
-> StackInstance)
-> Either String (Maybe Text)
-> Either
String
(Maybe StackInstanceComprehensiveStatus
-> Maybe [Parameter] -> Maybe Text -> StackInstance)
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
"StackId")
Either
String
(Maybe StackInstanceComprehensiveStatus
-> Maybe [Parameter] -> Maybe Text -> StackInstance)
-> Either String (Maybe StackInstanceComprehensiveStatus)
-> Either String (Maybe [Parameter] -> Maybe Text -> StackInstance)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node]
-> Text -> Either String (Maybe StackInstanceComprehensiveStatus)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"StackInstanceStatus")
Either String (Maybe [Parameter] -> Maybe Text -> StackInstance)
-> Either String (Maybe [Parameter])
-> Either String (Maybe Text -> StackInstance)
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
"ParameterOverrides"
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 [Parameter]))
-> Either String (Maybe [Parameter])
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= ([Node] -> Either String [Parameter])
-> [Node] -> Either String (Maybe [Parameter])
forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (Text -> [Node] -> Either String [Parameter]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"member")
)
Either String (Maybe Text -> StackInstance)
-> Either String (Maybe Text) -> Either String StackInstance
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
"StackSetId")
instance Prelude.Hashable StackInstance
instance Prelude.NFData StackInstance