{-# 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.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
data StackSetOperationResultSummary = StackSetOperationResultSummary'
{
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 StackSetOperationResultStatus
status :: Prelude.Maybe StackSetOperationResultStatus,
StackSetOperationResultSummary -> Maybe Text
statusReason :: Prelude.Maybe Prelude.Text
}
deriving (StackSetOperationResultSummary
-> StackSetOperationResultSummary -> Bool
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]
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
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.
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'
{ $sel:account:StackSetOperationResultSummary' :: Maybe Text
account =
forall a. Maybe a
Prelude.Nothing,
$sel:accountGateResult:StackSetOperationResultSummary' :: Maybe AccountGateResult
accountGateResult = forall a. Maybe a
Prelude.Nothing,
$sel:organizationalUnitId:StackSetOperationResultSummary' :: Maybe Text
organizationalUnitId = forall a. Maybe a
Prelude.Nothing,
$sel:region:StackSetOperationResultSummary' :: Maybe Text
region = forall a. Maybe a
Prelude.Nothing,
$sel:status:StackSetOperationResultSummary' :: Maybe StackSetOperationResultStatus
status = forall a. Maybe a
Prelude.Nothing,
$sel:statusReason:StackSetOperationResultSummary' :: Maybe Text
statusReason = forall a. Maybe a
Prelude.Nothing
}
stackSetOperationResultSummary_account :: Lens.Lens' StackSetOperationResultSummary (Prelude.Maybe Prelude.Text)
stackSetOperationResultSummary_account :: Lens' StackSetOperationResultSummary (Maybe Text)
stackSetOperationResultSummary_account = 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 :: Lens' StackSetOperationResultSummary (Maybe AccountGateResult)
stackSetOperationResultSummary_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 :: Lens' StackSetOperationResultSummary (Maybe Text)
stackSetOperationResultSummary_organizationalUnitId = 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 :: Lens' StackSetOperationResultSummary (Maybe Text)
stackSetOperationResultSummary_region = 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_status :: Lens.Lens' StackSetOperationResultSummary (Prelude.Maybe StackSetOperationResultStatus)
stackSetOperationResultSummary_status :: Lens'
StackSetOperationResultSummary
(Maybe StackSetOperationResultStatus)
stackSetOperationResultSummary_status = 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_statusReason :: Lens.Lens' StackSetOperationResultSummary (Prelude.Maybe Prelude.Text)
stackSetOperationResultSummary_statusReason :: Lens' StackSetOperationResultSummary (Maybe Text)
stackSetOperationResultSummary_statusReason = 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 Data.FromXML StackSetOperationResultSummary where
parseXML :: [Node] -> Either String StackSetOperationResultSummary
parseXML [Node]
x =
Maybe Text
-> Maybe AccountGateResult
-> Maybe Text
-> Maybe Text
-> Maybe StackSetOperationResultStatus
-> Maybe Text
-> StackSetOperationResultSummary
StackSetOperationResultSummary'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"Account")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"AccountGateResult")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"OrganizationalUnitId")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"Region")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"Status")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"StatusReason")
instance
Prelude.Hashable
StackSetOperationResultSummary
where
hashWithSalt :: Int -> StackSetOperationResultSummary -> Int
hashWithSalt
Int
_salt
StackSetOperationResultSummary' {Maybe Text
Maybe AccountGateResult
Maybe StackSetOperationResultStatus
statusReason :: Maybe Text
status :: Maybe StackSetOperationResultStatus
region :: Maybe Text
organizationalUnitId :: Maybe Text
accountGateResult :: Maybe AccountGateResult
account :: Maybe Text
$sel:statusReason:StackSetOperationResultSummary' :: StackSetOperationResultSummary -> Maybe Text
$sel:status:StackSetOperationResultSummary' :: StackSetOperationResultSummary
-> Maybe StackSetOperationResultStatus
$sel:region:StackSetOperationResultSummary' :: StackSetOperationResultSummary -> Maybe Text
$sel:organizationalUnitId:StackSetOperationResultSummary' :: StackSetOperationResultSummary -> Maybe Text
$sel:accountGateResult:StackSetOperationResultSummary' :: StackSetOperationResultSummary -> Maybe AccountGateResult
$sel:account:StackSetOperationResultSummary' :: StackSetOperationResultSummary -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
account
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe AccountGateResult
accountGateResult
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
organizationalUnitId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
region
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe StackSetOperationResultStatus
status
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
statusReason
instance
Prelude.NFData
StackSetOperationResultSummary
where
rnf :: StackSetOperationResultSummary -> ()
rnf StackSetOperationResultSummary' {Maybe Text
Maybe AccountGateResult
Maybe StackSetOperationResultStatus
statusReason :: Maybe Text
status :: Maybe StackSetOperationResultStatus
region :: Maybe Text
organizationalUnitId :: Maybe Text
accountGateResult :: Maybe AccountGateResult
account :: Maybe Text
$sel:statusReason:StackSetOperationResultSummary' :: StackSetOperationResultSummary -> Maybe Text
$sel:status:StackSetOperationResultSummary' :: StackSetOperationResultSummary
-> Maybe StackSetOperationResultStatus
$sel:region:StackSetOperationResultSummary' :: StackSetOperationResultSummary -> Maybe Text
$sel:organizationalUnitId:StackSetOperationResultSummary' :: StackSetOperationResultSummary -> Maybe Text
$sel:accountGateResult:StackSetOperationResultSummary' :: StackSetOperationResultSummary -> Maybe AccountGateResult
$sel:account:StackSetOperationResultSummary' :: StackSetOperationResultSummary -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
account
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe AccountGateResult
accountGateResult
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
organizationalUnitId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
region
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe StackSetOperationResultStatus
status
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
statusReason