{-# 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.StackSet where
import Amazonka.CloudFormation.Types.AutoDeployment
import Amazonka.CloudFormation.Types.Capability
import Amazonka.CloudFormation.Types.Parameter
import Amazonka.CloudFormation.Types.PermissionModels
import Amazonka.CloudFormation.Types.StackSetDriftDetectionDetails
import Amazonka.CloudFormation.Types.StackSetStatus
import Amazonka.CloudFormation.Types.Tag
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data StackSet = StackSet'
{
StackSet -> Maybe StackSetDriftDetectionDetails
stackSetDriftDetectionDetails :: Prelude.Maybe StackSetDriftDetectionDetails,
StackSet -> Maybe StackSetStatus
status :: Prelude.Maybe StackSetStatus,
StackSet -> Maybe Text
administrationRoleARN :: Prelude.Maybe Prelude.Text,
StackSet -> Maybe AutoDeployment
autoDeployment :: Prelude.Maybe AutoDeployment,
StackSet -> Maybe [Text]
organizationalUnitIds :: Prelude.Maybe [Prelude.Text],
StackSet -> Maybe Text
stackSetARN :: Prelude.Maybe Prelude.Text,
StackSet -> Maybe PermissionModels
permissionModel :: Prelude.Maybe PermissionModels,
StackSet -> Maybe [Parameter]
parameters :: Prelude.Maybe [Parameter],
StackSet -> Maybe Text
templateBody :: Prelude.Maybe Prelude.Text,
StackSet -> Maybe Text
stackSetName :: Prelude.Maybe Prelude.Text,
StackSet -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
StackSet -> Maybe [Capability]
capabilities :: Prelude.Maybe [Capability],
StackSet -> Maybe [Tag]
tags :: Prelude.Maybe [Tag],
StackSet -> Maybe Text
stackSetId :: Prelude.Maybe Prelude.Text,
StackSet -> Maybe Text
executionRoleName :: Prelude.Maybe Prelude.Text
}
deriving (StackSet -> StackSet -> Bool
(StackSet -> StackSet -> Bool)
-> (StackSet -> StackSet -> Bool) -> Eq StackSet
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StackSet -> StackSet -> Bool
$c/= :: StackSet -> StackSet -> Bool
== :: StackSet -> StackSet -> Bool
$c== :: StackSet -> StackSet -> Bool
Prelude.Eq, ReadPrec [StackSet]
ReadPrec StackSet
Int -> ReadS StackSet
ReadS [StackSet]
(Int -> ReadS StackSet)
-> ReadS [StackSet]
-> ReadPrec StackSet
-> ReadPrec [StackSet]
-> Read StackSet
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StackSet]
$creadListPrec :: ReadPrec [StackSet]
readPrec :: ReadPrec StackSet
$creadPrec :: ReadPrec StackSet
readList :: ReadS [StackSet]
$creadList :: ReadS [StackSet]
readsPrec :: Int -> ReadS StackSet
$creadsPrec :: Int -> ReadS StackSet
Prelude.Read, Int -> StackSet -> ShowS
[StackSet] -> ShowS
StackSet -> String
(Int -> StackSet -> ShowS)
-> (StackSet -> String) -> ([StackSet] -> ShowS) -> Show StackSet
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StackSet] -> ShowS
$cshowList :: [StackSet] -> ShowS
show :: StackSet -> String
$cshow :: StackSet -> String
showsPrec :: Int -> StackSet -> ShowS
$cshowsPrec :: Int -> StackSet -> ShowS
Prelude.Show, (forall x. StackSet -> Rep StackSet x)
-> (forall x. Rep StackSet x -> StackSet) -> Generic StackSet
forall x. Rep StackSet x -> StackSet
forall x. StackSet -> Rep StackSet x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep StackSet x -> StackSet
$cfrom :: forall x. StackSet -> Rep StackSet x
Prelude.Generic)
newStackSet ::
StackSet
newStackSet :: StackSet
newStackSet =
StackSet' :: Maybe StackSetDriftDetectionDetails
-> Maybe StackSetStatus
-> Maybe Text
-> Maybe AutoDeployment
-> Maybe [Text]
-> Maybe Text
-> Maybe PermissionModels
-> Maybe [Parameter]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Capability]
-> Maybe [Tag]
-> Maybe Text
-> Maybe Text
-> StackSet
StackSet'
{ $sel:stackSetDriftDetectionDetails:StackSet' :: Maybe StackSetDriftDetectionDetails
stackSetDriftDetectionDetails =
Maybe StackSetDriftDetectionDetails
forall a. Maybe a
Prelude.Nothing,
$sel:status:StackSet' :: Maybe StackSetStatus
status = Maybe StackSetStatus
forall a. Maybe a
Prelude.Nothing,
$sel:administrationRoleARN:StackSet' :: Maybe Text
administrationRoleARN = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:autoDeployment:StackSet' :: Maybe AutoDeployment
autoDeployment = Maybe AutoDeployment
forall a. Maybe a
Prelude.Nothing,
$sel:organizationalUnitIds:StackSet' :: Maybe [Text]
organizationalUnitIds = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:stackSetARN:StackSet' :: Maybe Text
stackSetARN = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:permissionModel:StackSet' :: Maybe PermissionModels
permissionModel = Maybe PermissionModels
forall a. Maybe a
Prelude.Nothing,
$sel:parameters:StackSet' :: Maybe [Parameter]
parameters = Maybe [Parameter]
forall a. Maybe a
Prelude.Nothing,
$sel:templateBody:StackSet' :: Maybe Text
templateBody = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:stackSetName:StackSet' :: Maybe Text
stackSetName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:description:StackSet' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:capabilities:StackSet' :: Maybe [Capability]
capabilities = Maybe [Capability]
forall a. Maybe a
Prelude.Nothing,
$sel:tags:StackSet' :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing,
$sel:stackSetId:StackSet' :: Maybe Text
stackSetId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:executionRoleName:StackSet' :: Maybe Text
executionRoleName = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
stackSet_stackSetDriftDetectionDetails :: Lens.Lens' StackSet (Prelude.Maybe StackSetDriftDetectionDetails)
stackSet_stackSetDriftDetectionDetails :: (Maybe StackSetDriftDetectionDetails
-> f (Maybe StackSetDriftDetectionDetails))
-> StackSet -> f StackSet
stackSet_stackSetDriftDetectionDetails = (StackSet -> Maybe StackSetDriftDetectionDetails)
-> (StackSet -> Maybe StackSetDriftDetectionDetails -> StackSet)
-> Lens
StackSet
StackSet
(Maybe StackSetDriftDetectionDetails)
(Maybe StackSetDriftDetectionDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StackSet' {Maybe StackSetDriftDetectionDetails
stackSetDriftDetectionDetails :: Maybe StackSetDriftDetectionDetails
$sel:stackSetDriftDetectionDetails:StackSet' :: StackSet -> Maybe StackSetDriftDetectionDetails
stackSetDriftDetectionDetails} -> Maybe StackSetDriftDetectionDetails
stackSetDriftDetectionDetails) (\s :: StackSet
s@StackSet' {} Maybe StackSetDriftDetectionDetails
a -> StackSet
s {$sel:stackSetDriftDetectionDetails:StackSet' :: Maybe StackSetDriftDetectionDetails
stackSetDriftDetectionDetails = Maybe StackSetDriftDetectionDetails
a} :: StackSet)
stackSet_status :: Lens.Lens' StackSet (Prelude.Maybe StackSetStatus)
stackSet_status :: (Maybe StackSetStatus -> f (Maybe StackSetStatus))
-> StackSet -> f StackSet
stackSet_status = (StackSet -> Maybe StackSetStatus)
-> (StackSet -> Maybe StackSetStatus -> StackSet)
-> Lens
StackSet StackSet (Maybe StackSetStatus) (Maybe StackSetStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StackSet' {Maybe StackSetStatus
status :: Maybe StackSetStatus
$sel:status:StackSet' :: StackSet -> Maybe StackSetStatus
status} -> Maybe StackSetStatus
status) (\s :: StackSet
s@StackSet' {} Maybe StackSetStatus
a -> StackSet
s {$sel:status:StackSet' :: Maybe StackSetStatus
status = Maybe StackSetStatus
a} :: StackSet)
stackSet_administrationRoleARN :: Lens.Lens' StackSet (Prelude.Maybe Prelude.Text)
stackSet_administrationRoleARN :: (Maybe Text -> f (Maybe Text)) -> StackSet -> f StackSet
stackSet_administrationRoleARN = (StackSet -> Maybe Text)
-> (StackSet -> Maybe Text -> StackSet)
-> Lens StackSet StackSet (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StackSet' {Maybe Text
administrationRoleARN :: Maybe Text
$sel:administrationRoleARN:StackSet' :: StackSet -> Maybe Text
administrationRoleARN} -> Maybe Text
administrationRoleARN) (\s :: StackSet
s@StackSet' {} Maybe Text
a -> StackSet
s {$sel:administrationRoleARN:StackSet' :: Maybe Text
administrationRoleARN = Maybe Text
a} :: StackSet)
stackSet_autoDeployment :: Lens.Lens' StackSet (Prelude.Maybe AutoDeployment)
stackSet_autoDeployment :: (Maybe AutoDeployment -> f (Maybe AutoDeployment))
-> StackSet -> f StackSet
stackSet_autoDeployment = (StackSet -> Maybe AutoDeployment)
-> (StackSet -> Maybe AutoDeployment -> StackSet)
-> Lens
StackSet StackSet (Maybe AutoDeployment) (Maybe AutoDeployment)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StackSet' {Maybe AutoDeployment
autoDeployment :: Maybe AutoDeployment
$sel:autoDeployment:StackSet' :: StackSet -> Maybe AutoDeployment
autoDeployment} -> Maybe AutoDeployment
autoDeployment) (\s :: StackSet
s@StackSet' {} Maybe AutoDeployment
a -> StackSet
s {$sel:autoDeployment:StackSet' :: Maybe AutoDeployment
autoDeployment = Maybe AutoDeployment
a} :: StackSet)
stackSet_organizationalUnitIds :: Lens.Lens' StackSet (Prelude.Maybe [Prelude.Text])
stackSet_organizationalUnitIds :: (Maybe [Text] -> f (Maybe [Text])) -> StackSet -> f StackSet
stackSet_organizationalUnitIds = (StackSet -> Maybe [Text])
-> (StackSet -> Maybe [Text] -> StackSet)
-> Lens StackSet StackSet (Maybe [Text]) (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StackSet' {Maybe [Text]
organizationalUnitIds :: Maybe [Text]
$sel:organizationalUnitIds:StackSet' :: StackSet -> Maybe [Text]
organizationalUnitIds} -> Maybe [Text]
organizationalUnitIds) (\s :: StackSet
s@StackSet' {} Maybe [Text]
a -> StackSet
s {$sel:organizationalUnitIds:StackSet' :: Maybe [Text]
organizationalUnitIds = Maybe [Text]
a} :: StackSet) ((Maybe [Text] -> f (Maybe [Text])) -> StackSet -> f StackSet)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> StackSet
-> f StackSet
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
stackSet_stackSetARN :: Lens.Lens' StackSet (Prelude.Maybe Prelude.Text)
stackSet_stackSetARN :: (Maybe Text -> f (Maybe Text)) -> StackSet -> f StackSet
stackSet_stackSetARN = (StackSet -> Maybe Text)
-> (StackSet -> Maybe Text -> StackSet)
-> Lens StackSet StackSet (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StackSet' {Maybe Text
stackSetARN :: Maybe Text
$sel:stackSetARN:StackSet' :: StackSet -> Maybe Text
stackSetARN} -> Maybe Text
stackSetARN) (\s :: StackSet
s@StackSet' {} Maybe Text
a -> StackSet
s {$sel:stackSetARN:StackSet' :: Maybe Text
stackSetARN = Maybe Text
a} :: StackSet)
stackSet_permissionModel :: Lens.Lens' StackSet (Prelude.Maybe PermissionModels)
stackSet_permissionModel :: (Maybe PermissionModels -> f (Maybe PermissionModels))
-> StackSet -> f StackSet
stackSet_permissionModel = (StackSet -> Maybe PermissionModels)
-> (StackSet -> Maybe PermissionModels -> StackSet)
-> Lens
StackSet StackSet (Maybe PermissionModels) (Maybe PermissionModels)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StackSet' {Maybe PermissionModels
permissionModel :: Maybe PermissionModels
$sel:permissionModel:StackSet' :: StackSet -> Maybe PermissionModels
permissionModel} -> Maybe PermissionModels
permissionModel) (\s :: StackSet
s@StackSet' {} Maybe PermissionModels
a -> StackSet
s {$sel:permissionModel:StackSet' :: Maybe PermissionModels
permissionModel = Maybe PermissionModels
a} :: StackSet)
stackSet_parameters :: Lens.Lens' StackSet (Prelude.Maybe [Parameter])
stackSet_parameters :: (Maybe [Parameter] -> f (Maybe [Parameter]))
-> StackSet -> f StackSet
stackSet_parameters = (StackSet -> Maybe [Parameter])
-> (StackSet -> Maybe [Parameter] -> StackSet)
-> Lens StackSet StackSet (Maybe [Parameter]) (Maybe [Parameter])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StackSet' {Maybe [Parameter]
parameters :: Maybe [Parameter]
$sel:parameters:StackSet' :: StackSet -> Maybe [Parameter]
parameters} -> Maybe [Parameter]
parameters) (\s :: StackSet
s@StackSet' {} Maybe [Parameter]
a -> StackSet
s {$sel:parameters:StackSet' :: Maybe [Parameter]
parameters = Maybe [Parameter]
a} :: StackSet) ((Maybe [Parameter] -> f (Maybe [Parameter]))
-> StackSet -> f StackSet)
-> ((Maybe [Parameter] -> f (Maybe [Parameter]))
-> Maybe [Parameter] -> f (Maybe [Parameter]))
-> (Maybe [Parameter] -> f (Maybe [Parameter]))
-> StackSet
-> f StackSet
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
stackSet_templateBody :: Lens.Lens' StackSet (Prelude.Maybe Prelude.Text)
stackSet_templateBody :: (Maybe Text -> f (Maybe Text)) -> StackSet -> f StackSet
stackSet_templateBody = (StackSet -> Maybe Text)
-> (StackSet -> Maybe Text -> StackSet)
-> Lens StackSet StackSet (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StackSet' {Maybe Text
templateBody :: Maybe Text
$sel:templateBody:StackSet' :: StackSet -> Maybe Text
templateBody} -> Maybe Text
templateBody) (\s :: StackSet
s@StackSet' {} Maybe Text
a -> StackSet
s {$sel:templateBody:StackSet' :: Maybe Text
templateBody = Maybe Text
a} :: StackSet)
stackSet_stackSetName :: Lens.Lens' StackSet (Prelude.Maybe Prelude.Text)
stackSet_stackSetName :: (Maybe Text -> f (Maybe Text)) -> StackSet -> f StackSet
stackSet_stackSetName = (StackSet -> Maybe Text)
-> (StackSet -> Maybe Text -> StackSet)
-> Lens StackSet StackSet (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StackSet' {Maybe Text
stackSetName :: Maybe Text
$sel:stackSetName:StackSet' :: StackSet -> Maybe Text
stackSetName} -> Maybe Text
stackSetName) (\s :: StackSet
s@StackSet' {} Maybe Text
a -> StackSet
s {$sel:stackSetName:StackSet' :: Maybe Text
stackSetName = Maybe Text
a} :: StackSet)
stackSet_description :: Lens.Lens' StackSet (Prelude.Maybe Prelude.Text)
stackSet_description :: (Maybe Text -> f (Maybe Text)) -> StackSet -> f StackSet
stackSet_description = (StackSet -> Maybe Text)
-> (StackSet -> Maybe Text -> StackSet)
-> Lens StackSet StackSet (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StackSet' {Maybe Text
description :: Maybe Text
$sel:description:StackSet' :: StackSet -> Maybe Text
description} -> Maybe Text
description) (\s :: StackSet
s@StackSet' {} Maybe Text
a -> StackSet
s {$sel:description:StackSet' :: Maybe Text
description = Maybe Text
a} :: StackSet)
stackSet_capabilities :: Lens.Lens' StackSet (Prelude.Maybe [Capability])
stackSet_capabilities :: (Maybe [Capability] -> f (Maybe [Capability]))
-> StackSet -> f StackSet
stackSet_capabilities = (StackSet -> Maybe [Capability])
-> (StackSet -> Maybe [Capability] -> StackSet)
-> Lens StackSet StackSet (Maybe [Capability]) (Maybe [Capability])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StackSet' {Maybe [Capability]
capabilities :: Maybe [Capability]
$sel:capabilities:StackSet' :: StackSet -> Maybe [Capability]
capabilities} -> Maybe [Capability]
capabilities) (\s :: StackSet
s@StackSet' {} Maybe [Capability]
a -> StackSet
s {$sel:capabilities:StackSet' :: Maybe [Capability]
capabilities = Maybe [Capability]
a} :: StackSet) ((Maybe [Capability] -> f (Maybe [Capability]))
-> StackSet -> f StackSet)
-> ((Maybe [Capability] -> f (Maybe [Capability]))
-> Maybe [Capability] -> f (Maybe [Capability]))
-> (Maybe [Capability] -> f (Maybe [Capability]))
-> StackSet
-> f StackSet
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Capability] [Capability] [Capability] [Capability]
-> Iso
(Maybe [Capability])
(Maybe [Capability])
(Maybe [Capability])
(Maybe [Capability])
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 [Capability] [Capability] [Capability] [Capability]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
stackSet_tags :: Lens.Lens' StackSet (Prelude.Maybe [Tag])
stackSet_tags :: (Maybe [Tag] -> f (Maybe [Tag])) -> StackSet -> f StackSet
stackSet_tags = (StackSet -> Maybe [Tag])
-> (StackSet -> Maybe [Tag] -> StackSet)
-> Lens StackSet StackSet (Maybe [Tag]) (Maybe [Tag])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StackSet' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:StackSet' :: StackSet -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: StackSet
s@StackSet' {} Maybe [Tag]
a -> StackSet
s {$sel:tags:StackSet' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: StackSet) ((Maybe [Tag] -> f (Maybe [Tag])) -> StackSet -> f StackSet)
-> ((Maybe [Tag] -> f (Maybe [Tag]))
-> Maybe [Tag] -> f (Maybe [Tag]))
-> (Maybe [Tag] -> f (Maybe [Tag]))
-> StackSet
-> f StackSet
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Tag] [Tag] [Tag] [Tag]
-> Iso (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag])
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 [Tag] [Tag] [Tag] [Tag]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
stackSet_stackSetId :: Lens.Lens' StackSet (Prelude.Maybe Prelude.Text)
stackSet_stackSetId :: (Maybe Text -> f (Maybe Text)) -> StackSet -> f StackSet
stackSet_stackSetId = (StackSet -> Maybe Text)
-> (StackSet -> Maybe Text -> StackSet)
-> Lens StackSet StackSet (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StackSet' {Maybe Text
stackSetId :: Maybe Text
$sel:stackSetId:StackSet' :: StackSet -> Maybe Text
stackSetId} -> Maybe Text
stackSetId) (\s :: StackSet
s@StackSet' {} Maybe Text
a -> StackSet
s {$sel:stackSetId:StackSet' :: Maybe Text
stackSetId = Maybe Text
a} :: StackSet)
stackSet_executionRoleName :: Lens.Lens' StackSet (Prelude.Maybe Prelude.Text)
stackSet_executionRoleName :: (Maybe Text -> f (Maybe Text)) -> StackSet -> f StackSet
stackSet_executionRoleName = (StackSet -> Maybe Text)
-> (StackSet -> Maybe Text -> StackSet)
-> Lens StackSet StackSet (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StackSet' {Maybe Text
executionRoleName :: Maybe Text
$sel:executionRoleName:StackSet' :: StackSet -> Maybe Text
executionRoleName} -> Maybe Text
executionRoleName) (\s :: StackSet
s@StackSet' {} Maybe Text
a -> StackSet
s {$sel:executionRoleName:StackSet' :: Maybe Text
executionRoleName = Maybe Text
a} :: StackSet)
instance Core.FromXML StackSet where
parseXML :: [Node] -> Either String StackSet
parseXML [Node]
x =
Maybe StackSetDriftDetectionDetails
-> Maybe StackSetStatus
-> Maybe Text
-> Maybe AutoDeployment
-> Maybe [Text]
-> Maybe Text
-> Maybe PermissionModels
-> Maybe [Parameter]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Capability]
-> Maybe [Tag]
-> Maybe Text
-> Maybe Text
-> StackSet
StackSet'
(Maybe StackSetDriftDetectionDetails
-> Maybe StackSetStatus
-> Maybe Text
-> Maybe AutoDeployment
-> Maybe [Text]
-> Maybe Text
-> Maybe PermissionModels
-> Maybe [Parameter]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Capability]
-> Maybe [Tag]
-> Maybe Text
-> Maybe Text
-> StackSet)
-> Either String (Maybe StackSetDriftDetectionDetails)
-> Either
String
(Maybe StackSetStatus
-> Maybe Text
-> Maybe AutoDeployment
-> Maybe [Text]
-> Maybe Text
-> Maybe PermissionModels
-> Maybe [Parameter]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Capability]
-> Maybe [Tag]
-> Maybe Text
-> Maybe Text
-> StackSet)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x [Node]
-> Text -> Either String (Maybe StackSetDriftDetectionDetails)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"StackSetDriftDetectionDetails")
Either
String
(Maybe StackSetStatus
-> Maybe Text
-> Maybe AutoDeployment
-> Maybe [Text]
-> Maybe Text
-> Maybe PermissionModels
-> Maybe [Parameter]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Capability]
-> Maybe [Tag]
-> Maybe Text
-> Maybe Text
-> StackSet)
-> Either String (Maybe StackSetStatus)
-> Either
String
(Maybe Text
-> Maybe AutoDeployment
-> Maybe [Text]
-> Maybe Text
-> Maybe PermissionModels
-> Maybe [Parameter]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Capability]
-> Maybe [Tag]
-> Maybe Text
-> Maybe Text
-> StackSet)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe StackSetStatus)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"Status")
Either
String
(Maybe Text
-> Maybe AutoDeployment
-> Maybe [Text]
-> Maybe Text
-> Maybe PermissionModels
-> Maybe [Parameter]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Capability]
-> Maybe [Tag]
-> Maybe Text
-> Maybe Text
-> StackSet)
-> Either String (Maybe Text)
-> Either
String
(Maybe AutoDeployment
-> Maybe [Text]
-> Maybe Text
-> Maybe PermissionModels
-> Maybe [Parameter]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Capability]
-> Maybe [Tag]
-> Maybe Text
-> Maybe Text
-> StackSet)
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
"AdministrationRoleARN")
Either
String
(Maybe AutoDeployment
-> Maybe [Text]
-> Maybe Text
-> Maybe PermissionModels
-> Maybe [Parameter]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Capability]
-> Maybe [Tag]
-> Maybe Text
-> Maybe Text
-> StackSet)
-> Either String (Maybe AutoDeployment)
-> Either
String
(Maybe [Text]
-> Maybe Text
-> Maybe PermissionModels
-> Maybe [Parameter]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Capability]
-> Maybe [Tag]
-> Maybe Text
-> Maybe Text
-> StackSet)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe AutoDeployment)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"AutoDeployment")
Either
String
(Maybe [Text]
-> Maybe Text
-> Maybe PermissionModels
-> Maybe [Parameter]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Capability]
-> Maybe [Tag]
-> Maybe Text
-> Maybe Text
-> StackSet)
-> Either String (Maybe [Text])
-> Either
String
(Maybe Text
-> Maybe PermissionModels
-> Maybe [Parameter]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Capability]
-> Maybe [Tag]
-> Maybe Text
-> Maybe Text
-> StackSet)
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
"OrganizationalUnitIds"
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 Text
-> Maybe PermissionModels
-> Maybe [Parameter]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Capability]
-> Maybe [Tag]
-> Maybe Text
-> Maybe Text
-> StackSet)
-> Either String (Maybe Text)
-> Either
String
(Maybe PermissionModels
-> Maybe [Parameter]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Capability]
-> Maybe [Tag]
-> Maybe Text
-> Maybe Text
-> StackSet)
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
"StackSetARN")
Either
String
(Maybe PermissionModels
-> Maybe [Parameter]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Capability]
-> Maybe [Tag]
-> Maybe Text
-> Maybe Text
-> StackSet)
-> Either String (Maybe PermissionModels)
-> Either
String
(Maybe [Parameter]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Capability]
-> Maybe [Tag]
-> Maybe Text
-> Maybe Text
-> StackSet)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe PermissionModels)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"PermissionModel")
Either
String
(Maybe [Parameter]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Capability]
-> Maybe [Tag]
-> Maybe Text
-> Maybe Text
-> StackSet)
-> Either String (Maybe [Parameter])
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Capability]
-> Maybe [Tag]
-> Maybe Text
-> Maybe Text
-> StackSet)
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
"Parameters" 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
-> Maybe Text
-> Maybe Text
-> Maybe [Capability]
-> Maybe [Tag]
-> Maybe Text
-> Maybe Text
-> StackSet)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe [Capability]
-> Maybe [Tag]
-> Maybe Text
-> Maybe Text
-> StackSet)
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
"TemplateBody")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe [Capability]
-> Maybe [Tag]
-> Maybe Text
-> Maybe Text
-> StackSet)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe [Capability]
-> Maybe [Tag]
-> Maybe Text
-> Maybe Text
-> StackSet)
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
"StackSetName")
Either
String
(Maybe Text
-> Maybe [Capability]
-> Maybe [Tag]
-> Maybe Text
-> Maybe Text
-> StackSet)
-> Either String (Maybe Text)
-> Either
String
(Maybe [Capability]
-> Maybe [Tag] -> Maybe Text -> Maybe Text -> StackSet)
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")
Either
String
(Maybe [Capability]
-> Maybe [Tag] -> Maybe Text -> Maybe Text -> StackSet)
-> Either String (Maybe [Capability])
-> Either
String (Maybe [Tag] -> Maybe Text -> Maybe Text -> StackSet)
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
"Capabilities" 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 [Capability]))
-> Either String (Maybe [Capability])
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= ([Node] -> Either String [Capability])
-> [Node] -> Either String (Maybe [Capability])
forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (Text -> [Node] -> Either String [Capability]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"member")
)
Either String (Maybe [Tag] -> Maybe Text -> Maybe Text -> StackSet)
-> Either String (Maybe [Tag])
-> Either String (Maybe Text -> Maybe Text -> StackSet)
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
"Tags" 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 [Tag]))
-> Either String (Maybe [Tag])
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= ([Node] -> Either String [Tag])
-> [Node] -> Either String (Maybe [Tag])
forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (Text -> [Node] -> Either String [Tag]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"member")
)
Either String (Maybe Text -> Maybe Text -> StackSet)
-> Either String (Maybe Text)
-> Either String (Maybe Text -> StackSet)
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")
Either String (Maybe Text -> StackSet)
-> Either String (Maybe Text) -> Either String StackSet
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
"ExecutionRoleName")
instance Prelude.Hashable StackSet
instance Prelude.NFData StackSet