{-# 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.StackSetSummary where
import Amazonka.CloudFormation.Types.AutoDeployment
import Amazonka.CloudFormation.Types.PermissionModels
import Amazonka.CloudFormation.Types.StackDriftStatus
import Amazonka.CloudFormation.Types.StackSetStatus
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data StackSetSummary = StackSetSummary'
{
StackSetSummary -> Maybe StackSetStatus
status :: Prelude.Maybe StackSetStatus,
StackSetSummary -> Maybe ISO8601
lastDriftCheckTimestamp :: Prelude.Maybe Core.ISO8601,
StackSetSummary -> Maybe AutoDeployment
autoDeployment :: Prelude.Maybe AutoDeployment,
StackSetSummary -> Maybe StackDriftStatus
driftStatus :: Prelude.Maybe StackDriftStatus,
StackSetSummary -> Maybe PermissionModels
permissionModel :: Prelude.Maybe PermissionModels,
StackSetSummary -> Maybe Text
stackSetName :: Prelude.Maybe Prelude.Text,
StackSetSummary -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
StackSetSummary -> Maybe Text
stackSetId :: Prelude.Maybe Prelude.Text
}
deriving (StackSetSummary -> StackSetSummary -> Bool
(StackSetSummary -> StackSetSummary -> Bool)
-> (StackSetSummary -> StackSetSummary -> Bool)
-> Eq StackSetSummary
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StackSetSummary -> StackSetSummary -> Bool
$c/= :: StackSetSummary -> StackSetSummary -> Bool
== :: StackSetSummary -> StackSetSummary -> Bool
$c== :: StackSetSummary -> StackSetSummary -> Bool
Prelude.Eq, ReadPrec [StackSetSummary]
ReadPrec StackSetSummary
Int -> ReadS StackSetSummary
ReadS [StackSetSummary]
(Int -> ReadS StackSetSummary)
-> ReadS [StackSetSummary]
-> ReadPrec StackSetSummary
-> ReadPrec [StackSetSummary]
-> Read StackSetSummary
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StackSetSummary]
$creadListPrec :: ReadPrec [StackSetSummary]
readPrec :: ReadPrec StackSetSummary
$creadPrec :: ReadPrec StackSetSummary
readList :: ReadS [StackSetSummary]
$creadList :: ReadS [StackSetSummary]
readsPrec :: Int -> ReadS StackSetSummary
$creadsPrec :: Int -> ReadS StackSetSummary
Prelude.Read, Int -> StackSetSummary -> ShowS
[StackSetSummary] -> ShowS
StackSetSummary -> String
(Int -> StackSetSummary -> ShowS)
-> (StackSetSummary -> String)
-> ([StackSetSummary] -> ShowS)
-> Show StackSetSummary
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StackSetSummary] -> ShowS
$cshowList :: [StackSetSummary] -> ShowS
show :: StackSetSummary -> String
$cshow :: StackSetSummary -> String
showsPrec :: Int -> StackSetSummary -> ShowS
$cshowsPrec :: Int -> StackSetSummary -> ShowS
Prelude.Show, (forall x. StackSetSummary -> Rep StackSetSummary x)
-> (forall x. Rep StackSetSummary x -> StackSetSummary)
-> Generic StackSetSummary
forall x. Rep StackSetSummary x -> StackSetSummary
forall x. StackSetSummary -> Rep StackSetSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep StackSetSummary x -> StackSetSummary
$cfrom :: forall x. StackSetSummary -> Rep StackSetSummary x
Prelude.Generic)
newStackSetSummary ::
StackSetSummary
newStackSetSummary :: StackSetSummary
newStackSetSummary =
StackSetSummary' :: Maybe StackSetStatus
-> Maybe ISO8601
-> Maybe AutoDeployment
-> Maybe StackDriftStatus
-> Maybe PermissionModels
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> StackSetSummary
StackSetSummary'
{ $sel:status:StackSetSummary' :: Maybe StackSetStatus
status = Maybe StackSetStatus
forall a. Maybe a
Prelude.Nothing,
$sel:lastDriftCheckTimestamp:StackSetSummary' :: Maybe ISO8601
lastDriftCheckTimestamp = Maybe ISO8601
forall a. Maybe a
Prelude.Nothing,
$sel:autoDeployment:StackSetSummary' :: Maybe AutoDeployment
autoDeployment = Maybe AutoDeployment
forall a. Maybe a
Prelude.Nothing,
$sel:driftStatus:StackSetSummary' :: Maybe StackDriftStatus
driftStatus = Maybe StackDriftStatus
forall a. Maybe a
Prelude.Nothing,
$sel:permissionModel:StackSetSummary' :: Maybe PermissionModels
permissionModel = Maybe PermissionModels
forall a. Maybe a
Prelude.Nothing,
$sel:stackSetName:StackSetSummary' :: Maybe Text
stackSetName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:description:StackSetSummary' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:stackSetId:StackSetSummary' :: Maybe Text
stackSetId = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
stackSetSummary_status :: Lens.Lens' StackSetSummary (Prelude.Maybe StackSetStatus)
stackSetSummary_status :: (Maybe StackSetStatus -> f (Maybe StackSetStatus))
-> StackSetSummary -> f StackSetSummary
stackSetSummary_status = (StackSetSummary -> Maybe StackSetStatus)
-> (StackSetSummary -> Maybe StackSetStatus -> StackSetSummary)
-> Lens
StackSetSummary
StackSetSummary
(Maybe StackSetStatus)
(Maybe StackSetStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StackSetSummary' {Maybe StackSetStatus
status :: Maybe StackSetStatus
$sel:status:StackSetSummary' :: StackSetSummary -> Maybe StackSetStatus
status} -> Maybe StackSetStatus
status) (\s :: StackSetSummary
s@StackSetSummary' {} Maybe StackSetStatus
a -> StackSetSummary
s {$sel:status:StackSetSummary' :: Maybe StackSetStatus
status = Maybe StackSetStatus
a} :: StackSetSummary)
stackSetSummary_lastDriftCheckTimestamp :: Lens.Lens' StackSetSummary (Prelude.Maybe Prelude.UTCTime)
stackSetSummary_lastDriftCheckTimestamp :: (Maybe UTCTime -> f (Maybe UTCTime))
-> StackSetSummary -> f StackSetSummary
stackSetSummary_lastDriftCheckTimestamp = (StackSetSummary -> Maybe ISO8601)
-> (StackSetSummary -> Maybe ISO8601 -> StackSetSummary)
-> Lens
StackSetSummary StackSetSummary (Maybe ISO8601) (Maybe ISO8601)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StackSetSummary' {Maybe ISO8601
lastDriftCheckTimestamp :: Maybe ISO8601
$sel:lastDriftCheckTimestamp:StackSetSummary' :: StackSetSummary -> Maybe ISO8601
lastDriftCheckTimestamp} -> Maybe ISO8601
lastDriftCheckTimestamp) (\s :: StackSetSummary
s@StackSetSummary' {} Maybe ISO8601
a -> StackSetSummary
s {$sel:lastDriftCheckTimestamp:StackSetSummary' :: Maybe ISO8601
lastDriftCheckTimestamp = Maybe ISO8601
a} :: StackSetSummary) ((Maybe ISO8601 -> f (Maybe ISO8601))
-> StackSetSummary -> f StackSetSummary)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe ISO8601 -> f (Maybe ISO8601))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> StackSetSummary
-> f StackSetSummary
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
stackSetSummary_autoDeployment :: Lens.Lens' StackSetSummary (Prelude.Maybe AutoDeployment)
stackSetSummary_autoDeployment :: (Maybe AutoDeployment -> f (Maybe AutoDeployment))
-> StackSetSummary -> f StackSetSummary
stackSetSummary_autoDeployment = (StackSetSummary -> Maybe AutoDeployment)
-> (StackSetSummary -> Maybe AutoDeployment -> StackSetSummary)
-> Lens
StackSetSummary
StackSetSummary
(Maybe AutoDeployment)
(Maybe AutoDeployment)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StackSetSummary' {Maybe AutoDeployment
autoDeployment :: Maybe AutoDeployment
$sel:autoDeployment:StackSetSummary' :: StackSetSummary -> Maybe AutoDeployment
autoDeployment} -> Maybe AutoDeployment
autoDeployment) (\s :: StackSetSummary
s@StackSetSummary' {} Maybe AutoDeployment
a -> StackSetSummary
s {$sel:autoDeployment:StackSetSummary' :: Maybe AutoDeployment
autoDeployment = Maybe AutoDeployment
a} :: StackSetSummary)
stackSetSummary_driftStatus :: Lens.Lens' StackSetSummary (Prelude.Maybe StackDriftStatus)
stackSetSummary_driftStatus :: (Maybe StackDriftStatus -> f (Maybe StackDriftStatus))
-> StackSetSummary -> f StackSetSummary
stackSetSummary_driftStatus = (StackSetSummary -> Maybe StackDriftStatus)
-> (StackSetSummary -> Maybe StackDriftStatus -> StackSetSummary)
-> Lens
StackSetSummary
StackSetSummary
(Maybe StackDriftStatus)
(Maybe StackDriftStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StackSetSummary' {Maybe StackDriftStatus
driftStatus :: Maybe StackDriftStatus
$sel:driftStatus:StackSetSummary' :: StackSetSummary -> Maybe StackDriftStatus
driftStatus} -> Maybe StackDriftStatus
driftStatus) (\s :: StackSetSummary
s@StackSetSummary' {} Maybe StackDriftStatus
a -> StackSetSummary
s {$sel:driftStatus:StackSetSummary' :: Maybe StackDriftStatus
driftStatus = Maybe StackDriftStatus
a} :: StackSetSummary)
stackSetSummary_permissionModel :: Lens.Lens' StackSetSummary (Prelude.Maybe PermissionModels)
stackSetSummary_permissionModel :: (Maybe PermissionModels -> f (Maybe PermissionModels))
-> StackSetSummary -> f StackSetSummary
stackSetSummary_permissionModel = (StackSetSummary -> Maybe PermissionModels)
-> (StackSetSummary -> Maybe PermissionModels -> StackSetSummary)
-> Lens
StackSetSummary
StackSetSummary
(Maybe PermissionModels)
(Maybe PermissionModels)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StackSetSummary' {Maybe PermissionModels
permissionModel :: Maybe PermissionModels
$sel:permissionModel:StackSetSummary' :: StackSetSummary -> Maybe PermissionModels
permissionModel} -> Maybe PermissionModels
permissionModel) (\s :: StackSetSummary
s@StackSetSummary' {} Maybe PermissionModels
a -> StackSetSummary
s {$sel:permissionModel:StackSetSummary' :: Maybe PermissionModels
permissionModel = Maybe PermissionModels
a} :: StackSetSummary)
stackSetSummary_stackSetName :: Lens.Lens' StackSetSummary (Prelude.Maybe Prelude.Text)
stackSetSummary_stackSetName :: (Maybe Text -> f (Maybe Text))
-> StackSetSummary -> f StackSetSummary
stackSetSummary_stackSetName = (StackSetSummary -> Maybe Text)
-> (StackSetSummary -> Maybe Text -> StackSetSummary)
-> Lens StackSetSummary StackSetSummary (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StackSetSummary' {Maybe Text
stackSetName :: Maybe Text
$sel:stackSetName:StackSetSummary' :: StackSetSummary -> Maybe Text
stackSetName} -> Maybe Text
stackSetName) (\s :: StackSetSummary
s@StackSetSummary' {} Maybe Text
a -> StackSetSummary
s {$sel:stackSetName:StackSetSummary' :: Maybe Text
stackSetName = Maybe Text
a} :: StackSetSummary)
stackSetSummary_description :: Lens.Lens' StackSetSummary (Prelude.Maybe Prelude.Text)
stackSetSummary_description :: (Maybe Text -> f (Maybe Text))
-> StackSetSummary -> f StackSetSummary
stackSetSummary_description = (StackSetSummary -> Maybe Text)
-> (StackSetSummary -> Maybe Text -> StackSetSummary)
-> Lens StackSetSummary StackSetSummary (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StackSetSummary' {Maybe Text
description :: Maybe Text
$sel:description:StackSetSummary' :: StackSetSummary -> Maybe Text
description} -> Maybe Text
description) (\s :: StackSetSummary
s@StackSetSummary' {} Maybe Text
a -> StackSetSummary
s {$sel:description:StackSetSummary' :: Maybe Text
description = Maybe Text
a} :: StackSetSummary)
stackSetSummary_stackSetId :: Lens.Lens' StackSetSummary (Prelude.Maybe Prelude.Text)
stackSetSummary_stackSetId :: (Maybe Text -> f (Maybe Text))
-> StackSetSummary -> f StackSetSummary
stackSetSummary_stackSetId = (StackSetSummary -> Maybe Text)
-> (StackSetSummary -> Maybe Text -> StackSetSummary)
-> Lens StackSetSummary StackSetSummary (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StackSetSummary' {Maybe Text
stackSetId :: Maybe Text
$sel:stackSetId:StackSetSummary' :: StackSetSummary -> Maybe Text
stackSetId} -> Maybe Text
stackSetId) (\s :: StackSetSummary
s@StackSetSummary' {} Maybe Text
a -> StackSetSummary
s {$sel:stackSetId:StackSetSummary' :: Maybe Text
stackSetId = Maybe Text
a} :: StackSetSummary)
instance Core.FromXML StackSetSummary where
parseXML :: [Node] -> Either String StackSetSummary
parseXML [Node]
x =
Maybe StackSetStatus
-> Maybe ISO8601
-> Maybe AutoDeployment
-> Maybe StackDriftStatus
-> Maybe PermissionModels
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> StackSetSummary
StackSetSummary'
(Maybe StackSetStatus
-> Maybe ISO8601
-> Maybe AutoDeployment
-> Maybe StackDriftStatus
-> Maybe PermissionModels
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> StackSetSummary)
-> Either String (Maybe StackSetStatus)
-> Either
String
(Maybe ISO8601
-> Maybe AutoDeployment
-> Maybe StackDriftStatus
-> Maybe PermissionModels
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> StackSetSummary)
forall (f :: * -> *) a b. Functor 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 ISO8601
-> Maybe AutoDeployment
-> Maybe StackDriftStatus
-> Maybe PermissionModels
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> StackSetSummary)
-> Either String (Maybe ISO8601)
-> Either
String
(Maybe AutoDeployment
-> Maybe StackDriftStatus
-> Maybe PermissionModels
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> StackSetSummary)
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 AutoDeployment
-> Maybe StackDriftStatus
-> Maybe PermissionModels
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> StackSetSummary)
-> Either String (Maybe AutoDeployment)
-> Either
String
(Maybe StackDriftStatus
-> Maybe PermissionModels
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> StackSetSummary)
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 StackDriftStatus
-> Maybe PermissionModels
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> StackSetSummary)
-> Either String (Maybe StackDriftStatus)
-> Either
String
(Maybe PermissionModels
-> Maybe Text -> Maybe Text -> Maybe Text -> StackSetSummary)
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 PermissionModels
-> Maybe Text -> Maybe Text -> Maybe Text -> StackSetSummary)
-> Either String (Maybe PermissionModels)
-> Either
String (Maybe Text -> Maybe Text -> Maybe Text -> StackSetSummary)
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 Text -> Maybe Text -> Maybe Text -> StackSetSummary)
-> Either String (Maybe Text)
-> Either String (Maybe Text -> Maybe Text -> StackSetSummary)
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 Text -> StackSetSummary)
-> Either String (Maybe Text)
-> Either String (Maybe Text -> StackSetSummary)
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 Text -> StackSetSummary)
-> Either String (Maybe Text) -> Either String StackSetSummary
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 StackSetSummary
instance Prelude.NFData StackSetSummary