{-# 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.StackSetOperationResultSummary where
import Amazonka.CloudFormation.Types.AccountGateResult
import Amazonka.CloudFormation.Types.StackSetOperationResultStatus
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data StackSetOperationResultSummary = StackSetOperationResultSummary'
{
StackSetOperationResultSummary
-> Maybe StackSetOperationResultStatus
status :: Prelude.Maybe StackSetOperationResultStatus,
StackSetOperationResultSummary -> Maybe Text
account :: Prelude.Maybe Prelude.Text,
StackSetOperationResultSummary -> Maybe AccountGateResult
accountGateResult :: Prelude.Maybe AccountGateResult,
StackSetOperationResultSummary -> Maybe Text
organizationalUnitId :: Prelude.Maybe Prelude.Text,
StackSetOperationResultSummary -> Maybe Text
region :: Prelude.Maybe Prelude.Text,
StackSetOperationResultSummary -> Maybe Text
statusReason :: Prelude.Maybe Prelude.Text
}
deriving (StackSetOperationResultSummary
-> StackSetOperationResultSummary -> Bool
(StackSetOperationResultSummary
-> StackSetOperationResultSummary -> Bool)
-> (StackSetOperationResultSummary
-> StackSetOperationResultSummary -> Bool)
-> Eq StackSetOperationResultSummary
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StackSetOperationResultSummary
-> StackSetOperationResultSummary -> Bool
$c/= :: StackSetOperationResultSummary
-> StackSetOperationResultSummary -> Bool
== :: StackSetOperationResultSummary
-> StackSetOperationResultSummary -> Bool
$c== :: StackSetOperationResultSummary
-> StackSetOperationResultSummary -> Bool
Prelude.Eq, ReadPrec [StackSetOperationResultSummary]
ReadPrec StackSetOperationResultSummary
Int -> ReadS StackSetOperationResultSummary
ReadS [StackSetOperationResultSummary]
(Int -> ReadS StackSetOperationResultSummary)
-> ReadS [StackSetOperationResultSummary]
-> ReadPrec StackSetOperationResultSummary
-> ReadPrec [StackSetOperationResultSummary]
-> Read StackSetOperationResultSummary
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StackSetOperationResultSummary]
$creadListPrec :: ReadPrec [StackSetOperationResultSummary]
readPrec :: ReadPrec StackSetOperationResultSummary
$creadPrec :: ReadPrec StackSetOperationResultSummary
readList :: ReadS [StackSetOperationResultSummary]
$creadList :: ReadS [StackSetOperationResultSummary]
readsPrec :: Int -> ReadS StackSetOperationResultSummary
$creadsPrec :: Int -> ReadS StackSetOperationResultSummary
Prelude.Read, Int -> StackSetOperationResultSummary -> ShowS
[StackSetOperationResultSummary] -> ShowS
StackSetOperationResultSummary -> String
(Int -> StackSetOperationResultSummary -> ShowS)
-> (StackSetOperationResultSummary -> String)
-> ([StackSetOperationResultSummary] -> ShowS)
-> Show StackSetOperationResultSummary
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StackSetOperationResultSummary] -> ShowS
$cshowList :: [StackSetOperationResultSummary] -> ShowS
show :: StackSetOperationResultSummary -> String
$cshow :: StackSetOperationResultSummary -> String
showsPrec :: Int -> StackSetOperationResultSummary -> ShowS
$cshowsPrec :: Int -> StackSetOperationResultSummary -> ShowS
Prelude.Show, (forall x.
StackSetOperationResultSummary
-> Rep StackSetOperationResultSummary x)
-> (forall x.
Rep StackSetOperationResultSummary x
-> StackSetOperationResultSummary)
-> Generic StackSetOperationResultSummary
forall x.
Rep StackSetOperationResultSummary x
-> StackSetOperationResultSummary
forall x.
StackSetOperationResultSummary
-> Rep StackSetOperationResultSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep StackSetOperationResultSummary x
-> StackSetOperationResultSummary
$cfrom :: forall x.
StackSetOperationResultSummary
-> Rep StackSetOperationResultSummary x
Prelude.Generic)
newStackSetOperationResultSummary ::
StackSetOperationResultSummary
newStackSetOperationResultSummary :: StackSetOperationResultSummary
newStackSetOperationResultSummary =
StackSetOperationResultSummary' :: Maybe StackSetOperationResultStatus
-> Maybe Text
-> Maybe AccountGateResult
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> StackSetOperationResultSummary
StackSetOperationResultSummary'
{ $sel:status:StackSetOperationResultSummary' :: Maybe StackSetOperationResultStatus
status =
Maybe StackSetOperationResultStatus
forall a. Maybe a
Prelude.Nothing,
$sel:account:StackSetOperationResultSummary' :: Maybe Text
account = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:accountGateResult:StackSetOperationResultSummary' :: Maybe AccountGateResult
accountGateResult = Maybe AccountGateResult
forall a. Maybe a
Prelude.Nothing,
$sel:organizationalUnitId:StackSetOperationResultSummary' :: Maybe Text
organizationalUnitId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:region:StackSetOperationResultSummary' :: Maybe Text
region = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:statusReason:StackSetOperationResultSummary' :: Maybe Text
statusReason = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
stackSetOperationResultSummary_status :: Lens.Lens' StackSetOperationResultSummary (Prelude.Maybe StackSetOperationResultStatus)
stackSetOperationResultSummary_status :: (Maybe StackSetOperationResultStatus
-> f (Maybe StackSetOperationResultStatus))
-> StackSetOperationResultSummary
-> f StackSetOperationResultSummary
stackSetOperationResultSummary_status = (StackSetOperationResultSummary
-> Maybe StackSetOperationResultStatus)
-> (StackSetOperationResultSummary
-> Maybe StackSetOperationResultStatus
-> StackSetOperationResultSummary)
-> Lens
StackSetOperationResultSummary
StackSetOperationResultSummary
(Maybe StackSetOperationResultStatus)
(Maybe StackSetOperationResultStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StackSetOperationResultSummary' {Maybe StackSetOperationResultStatus
status :: Maybe StackSetOperationResultStatus
$sel:status:StackSetOperationResultSummary' :: StackSetOperationResultSummary
-> Maybe StackSetOperationResultStatus
status} -> Maybe StackSetOperationResultStatus
status) (\s :: StackSetOperationResultSummary
s@StackSetOperationResultSummary' {} Maybe StackSetOperationResultStatus
a -> StackSetOperationResultSummary
s {$sel:status:StackSetOperationResultSummary' :: Maybe StackSetOperationResultStatus
status = Maybe StackSetOperationResultStatus
a} :: StackSetOperationResultSummary)
stackSetOperationResultSummary_account :: Lens.Lens' StackSetOperationResultSummary (Prelude.Maybe Prelude.Text)
stackSetOperationResultSummary_account :: (Maybe Text -> f (Maybe Text))
-> StackSetOperationResultSummary
-> f StackSetOperationResultSummary
stackSetOperationResultSummary_account = (StackSetOperationResultSummary -> Maybe Text)
-> (StackSetOperationResultSummary
-> Maybe Text -> StackSetOperationResultSummary)
-> Lens
StackSetOperationResultSummary
StackSetOperationResultSummary
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StackSetOperationResultSummary' {Maybe Text
account :: Maybe Text
$sel:account:StackSetOperationResultSummary' :: StackSetOperationResultSummary -> Maybe Text
account} -> Maybe Text
account) (\s :: StackSetOperationResultSummary
s@StackSetOperationResultSummary' {} Maybe Text
a -> StackSetOperationResultSummary
s {$sel:account:StackSetOperationResultSummary' :: Maybe Text
account = Maybe Text
a} :: StackSetOperationResultSummary)
stackSetOperationResultSummary_accountGateResult :: Lens.Lens' StackSetOperationResultSummary (Prelude.Maybe AccountGateResult)
stackSetOperationResultSummary_accountGateResult :: (Maybe AccountGateResult -> f (Maybe AccountGateResult))
-> StackSetOperationResultSummary
-> f StackSetOperationResultSummary
stackSetOperationResultSummary_accountGateResult = (StackSetOperationResultSummary -> Maybe AccountGateResult)
-> (StackSetOperationResultSummary
-> Maybe AccountGateResult -> StackSetOperationResultSummary)
-> Lens
StackSetOperationResultSummary
StackSetOperationResultSummary
(Maybe AccountGateResult)
(Maybe AccountGateResult)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StackSetOperationResultSummary' {Maybe AccountGateResult
accountGateResult :: Maybe AccountGateResult
$sel:accountGateResult:StackSetOperationResultSummary' :: StackSetOperationResultSummary -> Maybe AccountGateResult
accountGateResult} -> Maybe AccountGateResult
accountGateResult) (\s :: StackSetOperationResultSummary
s@StackSetOperationResultSummary' {} Maybe AccountGateResult
a -> StackSetOperationResultSummary
s {$sel:accountGateResult:StackSetOperationResultSummary' :: Maybe AccountGateResult
accountGateResult = Maybe AccountGateResult
a} :: StackSetOperationResultSummary)
stackSetOperationResultSummary_organizationalUnitId :: Lens.Lens' StackSetOperationResultSummary (Prelude.Maybe Prelude.Text)
stackSetOperationResultSummary_organizationalUnitId :: (Maybe Text -> f (Maybe Text))
-> StackSetOperationResultSummary
-> f StackSetOperationResultSummary
stackSetOperationResultSummary_organizationalUnitId = (StackSetOperationResultSummary -> Maybe Text)
-> (StackSetOperationResultSummary
-> Maybe Text -> StackSetOperationResultSummary)
-> Lens
StackSetOperationResultSummary
StackSetOperationResultSummary
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StackSetOperationResultSummary' {Maybe Text
organizationalUnitId :: Maybe Text
$sel:organizationalUnitId:StackSetOperationResultSummary' :: StackSetOperationResultSummary -> Maybe Text
organizationalUnitId} -> Maybe Text
organizationalUnitId) (\s :: StackSetOperationResultSummary
s@StackSetOperationResultSummary' {} Maybe Text
a -> StackSetOperationResultSummary
s {$sel:organizationalUnitId:StackSetOperationResultSummary' :: Maybe Text
organizationalUnitId = Maybe Text
a} :: StackSetOperationResultSummary)
stackSetOperationResultSummary_region :: Lens.Lens' StackSetOperationResultSummary (Prelude.Maybe Prelude.Text)
stackSetOperationResultSummary_region :: (Maybe Text -> f (Maybe Text))
-> StackSetOperationResultSummary
-> f StackSetOperationResultSummary
stackSetOperationResultSummary_region = (StackSetOperationResultSummary -> Maybe Text)
-> (StackSetOperationResultSummary
-> Maybe Text -> StackSetOperationResultSummary)
-> Lens
StackSetOperationResultSummary
StackSetOperationResultSummary
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StackSetOperationResultSummary' {Maybe Text
region :: Maybe Text
$sel:region:StackSetOperationResultSummary' :: StackSetOperationResultSummary -> Maybe Text
region} -> Maybe Text
region) (\s :: StackSetOperationResultSummary
s@StackSetOperationResultSummary' {} Maybe Text
a -> StackSetOperationResultSummary
s {$sel:region:StackSetOperationResultSummary' :: Maybe Text
region = Maybe Text
a} :: StackSetOperationResultSummary)
stackSetOperationResultSummary_statusReason :: Lens.Lens' StackSetOperationResultSummary (Prelude.Maybe Prelude.Text)
stackSetOperationResultSummary_statusReason :: (Maybe Text -> f (Maybe Text))
-> StackSetOperationResultSummary
-> f StackSetOperationResultSummary
stackSetOperationResultSummary_statusReason = (StackSetOperationResultSummary -> Maybe Text)
-> (StackSetOperationResultSummary
-> Maybe Text -> StackSetOperationResultSummary)
-> Lens
StackSetOperationResultSummary
StackSetOperationResultSummary
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StackSetOperationResultSummary' {Maybe Text
statusReason :: Maybe Text
$sel:statusReason:StackSetOperationResultSummary' :: StackSetOperationResultSummary -> Maybe Text
statusReason} -> Maybe Text
statusReason) (\s :: StackSetOperationResultSummary
s@StackSetOperationResultSummary' {} Maybe Text
a -> StackSetOperationResultSummary
s {$sel:statusReason:StackSetOperationResultSummary' :: Maybe Text
statusReason = Maybe Text
a} :: StackSetOperationResultSummary)
instance Core.FromXML StackSetOperationResultSummary where
parseXML :: [Node] -> Either String StackSetOperationResultSummary
parseXML [Node]
x =
Maybe StackSetOperationResultStatus
-> Maybe Text
-> Maybe AccountGateResult
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> StackSetOperationResultSummary
StackSetOperationResultSummary'
(Maybe StackSetOperationResultStatus
-> Maybe Text
-> Maybe AccountGateResult
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> StackSetOperationResultSummary)
-> Either String (Maybe StackSetOperationResultStatus)
-> Either
String
(Maybe Text
-> Maybe AccountGateResult
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> StackSetOperationResultSummary)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x [Node]
-> Text -> Either String (Maybe StackSetOperationResultStatus)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"Status")
Either
String
(Maybe Text
-> Maybe AccountGateResult
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> StackSetOperationResultSummary)
-> Either String (Maybe Text)
-> Either
String
(Maybe AccountGateResult
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> StackSetOperationResultSummary)
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 AccountGateResult
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> StackSetOperationResultSummary)
-> Either String (Maybe AccountGateResult)
-> Either
String
(Maybe Text
-> Maybe Text -> Maybe Text -> StackSetOperationResultSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe AccountGateResult)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"AccountGateResult")
Either
String
(Maybe Text
-> Maybe Text -> Maybe Text -> StackSetOperationResultSummary)
-> Either String (Maybe Text)
-> Either
String (Maybe Text -> Maybe Text -> StackSetOperationResultSummary)
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 -> StackSetOperationResultSummary)
-> Either String (Maybe Text)
-> Either String (Maybe Text -> StackSetOperationResultSummary)
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 -> StackSetOperationResultSummary)
-> Either String (Maybe Text)
-> Either String StackSetOperationResultSummary
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")
instance
Prelude.Hashable
StackSetOperationResultSummary
instance
Prelude.NFData
StackSetOperationResultSummary