{-# 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.StackSetOperationPreferences
import Amazonka.CloudFormation.Types.StackSetOperationStatus
import Amazonka.CloudFormation.Types.StackSetOperationStatusDetails
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 StackSetOperationSummary = StackSetOperationSummary'
{
StackSetOperationSummary -> Maybe StackSetOperationAction
action :: Prelude.Maybe StackSetOperationAction,
StackSetOperationSummary -> Maybe ISO8601
creationTimestamp :: Prelude.Maybe Data.ISO8601,
StackSetOperationSummary -> Maybe ISO8601
endTimestamp :: Prelude.Maybe Data.ISO8601,
StackSetOperationSummary -> Maybe Text
operationId :: Prelude.Maybe Prelude.Text,
StackSetOperationSummary -> Maybe StackSetOperationPreferences
operationPreferences :: Prelude.Maybe StackSetOperationPreferences,
StackSetOperationSummary -> Maybe StackSetOperationStatus
status :: Prelude.Maybe StackSetOperationStatus,
StackSetOperationSummary -> Maybe StackSetOperationStatusDetails
statusDetails :: Prelude.Maybe StackSetOperationStatusDetails,
StackSetOperationSummary -> Maybe Text
statusReason :: Prelude.Maybe Prelude.Text
}
deriving (StackSetOperationSummary -> StackSetOperationSummary -> Bool
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]
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
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.
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'
{ $sel:action:StackSetOperationSummary' :: Maybe StackSetOperationAction
action = forall a. Maybe a
Prelude.Nothing,
$sel:creationTimestamp:StackSetOperationSummary' :: Maybe ISO8601
creationTimestamp = forall a. Maybe a
Prelude.Nothing,
$sel:endTimestamp:StackSetOperationSummary' :: Maybe ISO8601
endTimestamp = forall a. Maybe a
Prelude.Nothing,
$sel:operationId:StackSetOperationSummary' :: Maybe Text
operationId = forall a. Maybe a
Prelude.Nothing,
$sel:operationPreferences:StackSetOperationSummary' :: Maybe StackSetOperationPreferences
operationPreferences = forall a. Maybe a
Prelude.Nothing,
$sel:status:StackSetOperationSummary' :: Maybe StackSetOperationStatus
status = forall a. Maybe a
Prelude.Nothing,
$sel:statusDetails:StackSetOperationSummary' :: Maybe StackSetOperationStatusDetails
statusDetails = forall a. Maybe a
Prelude.Nothing,
$sel:statusReason:StackSetOperationSummary' :: Maybe Text
statusReason = forall a. Maybe a
Prelude.Nothing
}
stackSetOperationSummary_action :: Lens.Lens' StackSetOperationSummary (Prelude.Maybe StackSetOperationAction)
stackSetOperationSummary_action :: Lens' StackSetOperationSummary (Maybe StackSetOperationAction)
stackSetOperationSummary_action = 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_creationTimestamp :: Lens.Lens' StackSetOperationSummary (Prelude.Maybe Prelude.UTCTime)
stackSetOperationSummary_creationTimestamp :: Lens' StackSetOperationSummary (Maybe UTCTime)
stackSetOperationSummary_creationTimestamp = 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) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall (a :: Format). Iso' (Time a) UTCTime
Data._Time
stackSetOperationSummary_endTimestamp :: Lens.Lens' StackSetOperationSummary (Prelude.Maybe Prelude.UTCTime)
stackSetOperationSummary_endTimestamp :: Lens' StackSetOperationSummary (Maybe UTCTime)
stackSetOperationSummary_endTimestamp = 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) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall (a :: Format). Iso' (Time a) UTCTime
Data._Time
stackSetOperationSummary_operationId :: Lens.Lens' StackSetOperationSummary (Prelude.Maybe Prelude.Text)
stackSetOperationSummary_operationId :: Lens' StackSetOperationSummary (Maybe Text)
stackSetOperationSummary_operationId = 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)
stackSetOperationSummary_operationPreferences :: Lens.Lens' StackSetOperationSummary (Prelude.Maybe StackSetOperationPreferences)
stackSetOperationSummary_operationPreferences :: Lens' StackSetOperationSummary (Maybe StackSetOperationPreferences)
stackSetOperationSummary_operationPreferences = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StackSetOperationSummary' {Maybe StackSetOperationPreferences
operationPreferences :: Maybe StackSetOperationPreferences
$sel:operationPreferences:StackSetOperationSummary' :: StackSetOperationSummary -> Maybe StackSetOperationPreferences
operationPreferences} -> Maybe StackSetOperationPreferences
operationPreferences) (\s :: StackSetOperationSummary
s@StackSetOperationSummary' {} Maybe StackSetOperationPreferences
a -> StackSetOperationSummary
s {$sel:operationPreferences:StackSetOperationSummary' :: Maybe StackSetOperationPreferences
operationPreferences = Maybe StackSetOperationPreferences
a} :: StackSetOperationSummary)
stackSetOperationSummary_status :: Lens.Lens' StackSetOperationSummary (Prelude.Maybe StackSetOperationStatus)
stackSetOperationSummary_status :: Lens' StackSetOperationSummary (Maybe StackSetOperationStatus)
stackSetOperationSummary_status = 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_statusDetails :: Lens.Lens' StackSetOperationSummary (Prelude.Maybe StackSetOperationStatusDetails)
stackSetOperationSummary_statusDetails :: Lens'
StackSetOperationSummary (Maybe StackSetOperationStatusDetails)
stackSetOperationSummary_statusDetails = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StackSetOperationSummary' {Maybe StackSetOperationStatusDetails
statusDetails :: Maybe StackSetOperationStatusDetails
$sel:statusDetails:StackSetOperationSummary' :: StackSetOperationSummary -> Maybe StackSetOperationStatusDetails
statusDetails} -> Maybe StackSetOperationStatusDetails
statusDetails) (\s :: StackSetOperationSummary
s@StackSetOperationSummary' {} Maybe StackSetOperationStatusDetails
a -> StackSetOperationSummary
s {$sel:statusDetails:StackSetOperationSummary' :: Maybe StackSetOperationStatusDetails
statusDetails = Maybe StackSetOperationStatusDetails
a} :: StackSetOperationSummary)
stackSetOperationSummary_statusReason :: Lens.Lens' StackSetOperationSummary (Prelude.Maybe Prelude.Text)
stackSetOperationSummary_statusReason :: Lens' StackSetOperationSummary (Maybe Text)
stackSetOperationSummary_statusReason = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StackSetOperationSummary' {Maybe Text
statusReason :: Maybe Text
$sel:statusReason:StackSetOperationSummary' :: StackSetOperationSummary -> Maybe Text
statusReason} -> Maybe Text
statusReason) (\s :: StackSetOperationSummary
s@StackSetOperationSummary' {} Maybe Text
a -> StackSetOperationSummary
s {$sel:statusReason:StackSetOperationSummary' :: Maybe Text
statusReason = Maybe Text
a} :: StackSetOperationSummary)
instance Data.FromXML StackSetOperationSummary where
parseXML :: [Node] -> Either String StackSetOperationSummary
parseXML [Node]
x =
Maybe StackSetOperationAction
-> Maybe ISO8601
-> Maybe ISO8601
-> Maybe Text
-> Maybe StackSetOperationPreferences
-> Maybe StackSetOperationStatus
-> Maybe StackSetOperationStatusDetails
-> Maybe Text
-> StackSetOperationSummary
StackSetOperationSummary'
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
"Action")
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
"CreationTimestamp")
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
"EndTimestamp")
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
"OperationId")
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
"OperationPreferences")
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
"StatusDetails")
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 StackSetOperationSummary where
hashWithSalt :: Int -> StackSetOperationSummary -> Int
hashWithSalt Int
_salt StackSetOperationSummary' {Maybe Text
Maybe ISO8601
Maybe StackSetOperationAction
Maybe StackSetOperationPreferences
Maybe StackSetOperationStatus
Maybe StackSetOperationStatusDetails
statusReason :: Maybe Text
statusDetails :: Maybe StackSetOperationStatusDetails
status :: Maybe StackSetOperationStatus
operationPreferences :: Maybe StackSetOperationPreferences
operationId :: Maybe Text
endTimestamp :: Maybe ISO8601
creationTimestamp :: Maybe ISO8601
action :: Maybe StackSetOperationAction
$sel:statusReason:StackSetOperationSummary' :: StackSetOperationSummary -> Maybe Text
$sel:statusDetails:StackSetOperationSummary' :: StackSetOperationSummary -> Maybe StackSetOperationStatusDetails
$sel:status:StackSetOperationSummary' :: StackSetOperationSummary -> Maybe StackSetOperationStatus
$sel:operationPreferences:StackSetOperationSummary' :: StackSetOperationSummary -> Maybe StackSetOperationPreferences
$sel:operationId:StackSetOperationSummary' :: StackSetOperationSummary -> Maybe Text
$sel:endTimestamp:StackSetOperationSummary' :: StackSetOperationSummary -> Maybe ISO8601
$sel:creationTimestamp:StackSetOperationSummary' :: StackSetOperationSummary -> Maybe ISO8601
$sel:action:StackSetOperationSummary' :: StackSetOperationSummary -> Maybe StackSetOperationAction
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe StackSetOperationAction
action
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ISO8601
creationTimestamp
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ISO8601
endTimestamp
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
operationId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe StackSetOperationPreferences
operationPreferences
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe StackSetOperationStatus
status
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe StackSetOperationStatusDetails
statusDetails
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
statusReason
instance Prelude.NFData StackSetOperationSummary where
rnf :: StackSetOperationSummary -> ()
rnf StackSetOperationSummary' {Maybe Text
Maybe ISO8601
Maybe StackSetOperationAction
Maybe StackSetOperationPreferences
Maybe StackSetOperationStatus
Maybe StackSetOperationStatusDetails
statusReason :: Maybe Text
statusDetails :: Maybe StackSetOperationStatusDetails
status :: Maybe StackSetOperationStatus
operationPreferences :: Maybe StackSetOperationPreferences
operationId :: Maybe Text
endTimestamp :: Maybe ISO8601
creationTimestamp :: Maybe ISO8601
action :: Maybe StackSetOperationAction
$sel:statusReason:StackSetOperationSummary' :: StackSetOperationSummary -> Maybe Text
$sel:statusDetails:StackSetOperationSummary' :: StackSetOperationSummary -> Maybe StackSetOperationStatusDetails
$sel:status:StackSetOperationSummary' :: StackSetOperationSummary -> Maybe StackSetOperationStatus
$sel:operationPreferences:StackSetOperationSummary' :: StackSetOperationSummary -> Maybe StackSetOperationPreferences
$sel:operationId:StackSetOperationSummary' :: StackSetOperationSummary -> Maybe Text
$sel:endTimestamp:StackSetOperationSummary' :: StackSetOperationSummary -> Maybe ISO8601
$sel:creationTimestamp:StackSetOperationSummary' :: StackSetOperationSummary -> Maybe ISO8601
$sel:action:StackSetOperationSummary' :: StackSetOperationSummary -> Maybe StackSetOperationAction
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe StackSetOperationAction
action
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ISO8601
creationTimestamp
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ISO8601
endTimestamp
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
operationId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe StackSetOperationPreferences
operationPreferences
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe StackSetOperationStatus
status
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe StackSetOperationStatusDetails
statusDetails
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
statusReason