{-# 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.StackSetOperationSummary where
import Amazonka.CloudFormation.Types.StackSetOperationAction
import Amazonka.CloudFormation.Types.StackSetOperationStatus
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data StackSetOperationSummary = StackSetOperationSummary'
{
StackSetOperationSummary -> Maybe StackSetOperationStatus
status :: Prelude.Maybe StackSetOperationStatus,
StackSetOperationSummary -> Maybe StackSetOperationAction
action :: Prelude.Maybe StackSetOperationAction,
StackSetOperationSummary -> Maybe ISO8601
endTimestamp :: Prelude.Maybe Core.ISO8601,
StackSetOperationSummary -> Maybe ISO8601
creationTimestamp :: Prelude.Maybe Core.ISO8601,
StackSetOperationSummary -> Maybe Text
operationId :: Prelude.Maybe Prelude.Text
}
deriving (StackSetOperationSummary -> StackSetOperationSummary -> Bool
(StackSetOperationSummary -> StackSetOperationSummary -> Bool)
-> (StackSetOperationSummary -> StackSetOperationSummary -> Bool)
-> Eq StackSetOperationSummary
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StackSetOperationSummary -> StackSetOperationSummary -> Bool
$c/= :: StackSetOperationSummary -> StackSetOperationSummary -> Bool
== :: StackSetOperationSummary -> StackSetOperationSummary -> Bool
$c== :: StackSetOperationSummary -> StackSetOperationSummary -> Bool
Prelude.Eq, ReadPrec [StackSetOperationSummary]
ReadPrec StackSetOperationSummary
Int -> ReadS StackSetOperationSummary
ReadS [StackSetOperationSummary]
(Int -> ReadS StackSetOperationSummary)
-> ReadS [StackSetOperationSummary]
-> ReadPrec StackSetOperationSummary
-> ReadPrec [StackSetOperationSummary]
-> Read StackSetOperationSummary
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StackSetOperationSummary]
$creadListPrec :: ReadPrec [StackSetOperationSummary]
readPrec :: ReadPrec StackSetOperationSummary
$creadPrec :: ReadPrec StackSetOperationSummary
readList :: ReadS [StackSetOperationSummary]
$creadList :: ReadS [StackSetOperationSummary]
readsPrec :: Int -> ReadS StackSetOperationSummary
$creadsPrec :: Int -> ReadS StackSetOperationSummary
Prelude.Read, Int -> StackSetOperationSummary -> ShowS
[StackSetOperationSummary] -> ShowS
StackSetOperationSummary -> String
(Int -> StackSetOperationSummary -> ShowS)
-> (StackSetOperationSummary -> String)
-> ([StackSetOperationSummary] -> ShowS)
-> Show StackSetOperationSummary
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StackSetOperationSummary] -> ShowS
$cshowList :: [StackSetOperationSummary] -> ShowS
show :: StackSetOperationSummary -> String
$cshow :: StackSetOperationSummary -> String
showsPrec :: Int -> StackSetOperationSummary -> ShowS
$cshowsPrec :: Int -> StackSetOperationSummary -> ShowS
Prelude.Show, (forall x.
StackSetOperationSummary -> Rep StackSetOperationSummary x)
-> (forall x.
Rep StackSetOperationSummary x -> StackSetOperationSummary)
-> Generic StackSetOperationSummary
forall x.
Rep StackSetOperationSummary x -> StackSetOperationSummary
forall x.
StackSetOperationSummary -> Rep StackSetOperationSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep StackSetOperationSummary x -> StackSetOperationSummary
$cfrom :: forall x.
StackSetOperationSummary -> Rep StackSetOperationSummary x
Prelude.Generic)
newStackSetOperationSummary ::
StackSetOperationSummary
newStackSetOperationSummary :: StackSetOperationSummary
newStackSetOperationSummary =
StackSetOperationSummary' :: Maybe StackSetOperationStatus
-> Maybe StackSetOperationAction
-> Maybe ISO8601
-> Maybe ISO8601
-> Maybe Text
-> StackSetOperationSummary
StackSetOperationSummary'
{ $sel:status:StackSetOperationSummary' :: Maybe StackSetOperationStatus
status = Maybe StackSetOperationStatus
forall a. Maybe a
Prelude.Nothing,
$sel:action:StackSetOperationSummary' :: Maybe StackSetOperationAction
action = Maybe StackSetOperationAction
forall a. Maybe a
Prelude.Nothing,
$sel:endTimestamp:StackSetOperationSummary' :: Maybe ISO8601
endTimestamp = Maybe ISO8601
forall a. Maybe a
Prelude.Nothing,
$sel:creationTimestamp:StackSetOperationSummary' :: Maybe ISO8601
creationTimestamp = Maybe ISO8601
forall a. Maybe a
Prelude.Nothing,
$sel:operationId:StackSetOperationSummary' :: Maybe Text
operationId = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
stackSetOperationSummary_status :: Lens.Lens' StackSetOperationSummary (Prelude.Maybe StackSetOperationStatus)
stackSetOperationSummary_status :: (Maybe StackSetOperationStatus
-> f (Maybe StackSetOperationStatus))
-> StackSetOperationSummary -> f StackSetOperationSummary
stackSetOperationSummary_status = (StackSetOperationSummary -> Maybe StackSetOperationStatus)
-> (StackSetOperationSummary
-> Maybe StackSetOperationStatus -> StackSetOperationSummary)
-> Lens
StackSetOperationSummary
StackSetOperationSummary
(Maybe StackSetOperationStatus)
(Maybe StackSetOperationStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StackSetOperationSummary' {Maybe StackSetOperationStatus
status :: Maybe StackSetOperationStatus
$sel:status:StackSetOperationSummary' :: StackSetOperationSummary -> Maybe StackSetOperationStatus
status} -> Maybe StackSetOperationStatus
status) (\s :: StackSetOperationSummary
s@StackSetOperationSummary' {} Maybe StackSetOperationStatus
a -> StackSetOperationSummary
s {$sel:status:StackSetOperationSummary' :: Maybe StackSetOperationStatus
status = Maybe StackSetOperationStatus
a} :: StackSetOperationSummary)
stackSetOperationSummary_action :: Lens.Lens' StackSetOperationSummary (Prelude.Maybe StackSetOperationAction)
stackSetOperationSummary_action :: (Maybe StackSetOperationAction
-> f (Maybe StackSetOperationAction))
-> StackSetOperationSummary -> f StackSetOperationSummary
stackSetOperationSummary_action = (StackSetOperationSummary -> Maybe StackSetOperationAction)
-> (StackSetOperationSummary
-> Maybe StackSetOperationAction -> StackSetOperationSummary)
-> Lens
StackSetOperationSummary
StackSetOperationSummary
(Maybe StackSetOperationAction)
(Maybe StackSetOperationAction)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StackSetOperationSummary' {Maybe StackSetOperationAction
action :: Maybe StackSetOperationAction
$sel:action:StackSetOperationSummary' :: StackSetOperationSummary -> Maybe StackSetOperationAction
action} -> Maybe StackSetOperationAction
action) (\s :: StackSetOperationSummary
s@StackSetOperationSummary' {} Maybe StackSetOperationAction
a -> StackSetOperationSummary
s {$sel:action:StackSetOperationSummary' :: Maybe StackSetOperationAction
action = Maybe StackSetOperationAction
a} :: StackSetOperationSummary)
stackSetOperationSummary_endTimestamp :: Lens.Lens' StackSetOperationSummary (Prelude.Maybe Prelude.UTCTime)
stackSetOperationSummary_endTimestamp :: (Maybe UTCTime -> f (Maybe UTCTime))
-> StackSetOperationSummary -> f StackSetOperationSummary
stackSetOperationSummary_endTimestamp = (StackSetOperationSummary -> Maybe ISO8601)
-> (StackSetOperationSummary
-> Maybe ISO8601 -> StackSetOperationSummary)
-> Lens
StackSetOperationSummary
StackSetOperationSummary
(Maybe ISO8601)
(Maybe ISO8601)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StackSetOperationSummary' {Maybe ISO8601
endTimestamp :: Maybe ISO8601
$sel:endTimestamp:StackSetOperationSummary' :: StackSetOperationSummary -> Maybe ISO8601
endTimestamp} -> Maybe ISO8601
endTimestamp) (\s :: StackSetOperationSummary
s@StackSetOperationSummary' {} Maybe ISO8601
a -> StackSetOperationSummary
s {$sel:endTimestamp:StackSetOperationSummary' :: Maybe ISO8601
endTimestamp = Maybe ISO8601
a} :: StackSetOperationSummary) ((Maybe ISO8601 -> f (Maybe ISO8601))
-> StackSetOperationSummary -> f StackSetOperationSummary)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe ISO8601 -> f (Maybe ISO8601))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> StackSetOperationSummary
-> f StackSetOperationSummary
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
stackSetOperationSummary_creationTimestamp :: Lens.Lens' StackSetOperationSummary (Prelude.Maybe Prelude.UTCTime)
stackSetOperationSummary_creationTimestamp :: (Maybe UTCTime -> f (Maybe UTCTime))
-> StackSetOperationSummary -> f StackSetOperationSummary
stackSetOperationSummary_creationTimestamp = (StackSetOperationSummary -> Maybe ISO8601)
-> (StackSetOperationSummary
-> Maybe ISO8601 -> StackSetOperationSummary)
-> Lens
StackSetOperationSummary
StackSetOperationSummary
(Maybe ISO8601)
(Maybe ISO8601)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StackSetOperationSummary' {Maybe ISO8601
creationTimestamp :: Maybe ISO8601
$sel:creationTimestamp:StackSetOperationSummary' :: StackSetOperationSummary -> Maybe ISO8601
creationTimestamp} -> Maybe ISO8601
creationTimestamp) (\s :: StackSetOperationSummary
s@StackSetOperationSummary' {} Maybe ISO8601
a -> StackSetOperationSummary
s {$sel:creationTimestamp:StackSetOperationSummary' :: Maybe ISO8601
creationTimestamp = Maybe ISO8601
a} :: StackSetOperationSummary) ((Maybe ISO8601 -> f (Maybe ISO8601))
-> StackSetOperationSummary -> f StackSetOperationSummary)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe ISO8601 -> f (Maybe ISO8601))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> StackSetOperationSummary
-> f StackSetOperationSummary
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
stackSetOperationSummary_operationId :: Lens.Lens' StackSetOperationSummary (Prelude.Maybe Prelude.Text)
stackSetOperationSummary_operationId :: (Maybe Text -> f (Maybe Text))
-> StackSetOperationSummary -> f StackSetOperationSummary
stackSetOperationSummary_operationId = (StackSetOperationSummary -> Maybe Text)
-> (StackSetOperationSummary
-> Maybe Text -> StackSetOperationSummary)
-> Lens
StackSetOperationSummary
StackSetOperationSummary
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StackSetOperationSummary' {Maybe Text
operationId :: Maybe Text
$sel:operationId:StackSetOperationSummary' :: StackSetOperationSummary -> Maybe Text
operationId} -> Maybe Text
operationId) (\s :: StackSetOperationSummary
s@StackSetOperationSummary' {} Maybe Text
a -> StackSetOperationSummary
s {$sel:operationId:StackSetOperationSummary' :: Maybe Text
operationId = Maybe Text
a} :: StackSetOperationSummary)
instance Core.FromXML StackSetOperationSummary where
parseXML :: [Node] -> Either String StackSetOperationSummary
parseXML [Node]
x =
Maybe StackSetOperationStatus
-> Maybe StackSetOperationAction
-> Maybe ISO8601
-> Maybe ISO8601
-> Maybe Text
-> StackSetOperationSummary
StackSetOperationSummary'
(Maybe StackSetOperationStatus
-> Maybe StackSetOperationAction
-> Maybe ISO8601
-> Maybe ISO8601
-> Maybe Text
-> StackSetOperationSummary)
-> Either String (Maybe StackSetOperationStatus)
-> Either
String
(Maybe StackSetOperationAction
-> Maybe ISO8601
-> Maybe ISO8601
-> Maybe Text
-> StackSetOperationSummary)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x [Node] -> Text -> Either String (Maybe StackSetOperationStatus)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"Status")
Either
String
(Maybe StackSetOperationAction
-> Maybe ISO8601
-> Maybe ISO8601
-> Maybe Text
-> StackSetOperationSummary)
-> Either String (Maybe StackSetOperationAction)
-> Either
String
(Maybe ISO8601
-> Maybe ISO8601 -> Maybe Text -> StackSetOperationSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe StackSetOperationAction)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"Action")
Either
String
(Maybe ISO8601
-> Maybe ISO8601 -> Maybe Text -> StackSetOperationSummary)
-> Either String (Maybe ISO8601)
-> Either
String (Maybe ISO8601 -> Maybe Text -> StackSetOperationSummary)
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
"EndTimestamp")
Either
String (Maybe ISO8601 -> Maybe Text -> StackSetOperationSummary)
-> Either String (Maybe ISO8601)
-> Either String (Maybe Text -> StackSetOperationSummary)
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
"CreationTimestamp")
Either String (Maybe Text -> StackSetOperationSummary)
-> Either String (Maybe Text)
-> Either String StackSetOperationSummary
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
"OperationId")
instance Prelude.Hashable StackSetOperationSummary
instance Prelude.NFData StackSetOperationSummary