{-# 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.SSM.Types.AutomationExecution where
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
import Amazonka.SSM.Types.AlarmConfiguration
import Amazonka.SSM.Types.AlarmStateInformation
import Amazonka.SSM.Types.AutomationExecutionStatus
import Amazonka.SSM.Types.AutomationSubtype
import Amazonka.SSM.Types.ExecutionMode
import Amazonka.SSM.Types.ProgressCounters
import Amazonka.SSM.Types.ResolvedTargets
import Amazonka.SSM.Types.Runbook
import Amazonka.SSM.Types.StepExecution
import Amazonka.SSM.Types.Target
import Amazonka.SSM.Types.TargetLocation
data AutomationExecution = AutomationExecution'
{
AutomationExecution -> Maybe AlarmConfiguration
alarmConfiguration :: Prelude.Maybe AlarmConfiguration,
AutomationExecution -> Maybe Text
associationId :: Prelude.Maybe Prelude.Text,
AutomationExecution -> Maybe Text
automationExecutionId :: Prelude.Maybe Prelude.Text,
AutomationExecution -> Maybe AutomationExecutionStatus
automationExecutionStatus :: Prelude.Maybe AutomationExecutionStatus,
AutomationExecution -> Maybe AutomationSubtype
automationSubtype :: Prelude.Maybe AutomationSubtype,
AutomationExecution -> Maybe Text
changeRequestName :: Prelude.Maybe Prelude.Text,
AutomationExecution -> Maybe Text
currentAction :: Prelude.Maybe Prelude.Text,
AutomationExecution -> Maybe Text
currentStepName :: Prelude.Maybe Prelude.Text,
AutomationExecution -> Maybe Text
documentName :: Prelude.Maybe Prelude.Text,
AutomationExecution -> Maybe Text
documentVersion :: Prelude.Maybe Prelude.Text,
AutomationExecution -> Maybe Text
executedBy :: Prelude.Maybe Prelude.Text,
AutomationExecution -> Maybe POSIX
executionEndTime :: Prelude.Maybe Data.POSIX,
AutomationExecution -> Maybe POSIX
executionStartTime :: Prelude.Maybe Data.POSIX,
AutomationExecution -> Maybe Text
failureMessage :: Prelude.Maybe Prelude.Text,
AutomationExecution -> Maybe Text
maxConcurrency :: Prelude.Maybe Prelude.Text,
AutomationExecution -> Maybe Text
maxErrors :: Prelude.Maybe Prelude.Text,
AutomationExecution -> Maybe ExecutionMode
mode :: Prelude.Maybe ExecutionMode,
AutomationExecution -> Maybe Text
opsItemId :: Prelude.Maybe Prelude.Text,
AutomationExecution -> Maybe (HashMap Text [Text])
outputs :: Prelude.Maybe (Prelude.HashMap Prelude.Text [Prelude.Text]),
AutomationExecution -> Maybe (HashMap Text [Text])
parameters :: Prelude.Maybe (Prelude.HashMap Prelude.Text [Prelude.Text]),
AutomationExecution -> Maybe Text
parentAutomationExecutionId :: Prelude.Maybe Prelude.Text,
AutomationExecution -> Maybe ProgressCounters
progressCounters :: Prelude.Maybe ProgressCounters,
AutomationExecution -> Maybe ResolvedTargets
resolvedTargets :: Prelude.Maybe ResolvedTargets,
AutomationExecution -> Maybe (NonEmpty Runbook)
runbooks :: Prelude.Maybe (Prelude.NonEmpty Runbook),
AutomationExecution -> Maybe POSIX
scheduledTime :: Prelude.Maybe Data.POSIX,
AutomationExecution -> Maybe [StepExecution]
stepExecutions :: Prelude.Maybe [StepExecution],
AutomationExecution -> Maybe Bool
stepExecutionsTruncated :: Prelude.Maybe Prelude.Bool,
AutomationExecution -> Maybe Text
target :: Prelude.Maybe Prelude.Text,
AutomationExecution -> Maybe (NonEmpty TargetLocation)
targetLocations :: Prelude.Maybe (Prelude.NonEmpty TargetLocation),
AutomationExecution -> Maybe [HashMap Text [Text]]
targetMaps :: Prelude.Maybe [Prelude.HashMap Prelude.Text [Prelude.Text]],
AutomationExecution -> Maybe Text
targetParameterName :: Prelude.Maybe Prelude.Text,
AutomationExecution -> Maybe [Target]
targets :: Prelude.Maybe [Target],
AutomationExecution -> Maybe (NonEmpty AlarmStateInformation)
triggeredAlarms :: Prelude.Maybe (Prelude.NonEmpty AlarmStateInformation)
}
deriving (AutomationExecution -> AutomationExecution -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AutomationExecution -> AutomationExecution -> Bool
$c/= :: AutomationExecution -> AutomationExecution -> Bool
== :: AutomationExecution -> AutomationExecution -> Bool
$c== :: AutomationExecution -> AutomationExecution -> Bool
Prelude.Eq, ReadPrec [AutomationExecution]
ReadPrec AutomationExecution
Int -> ReadS AutomationExecution
ReadS [AutomationExecution]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AutomationExecution]
$creadListPrec :: ReadPrec [AutomationExecution]
readPrec :: ReadPrec AutomationExecution
$creadPrec :: ReadPrec AutomationExecution
readList :: ReadS [AutomationExecution]
$creadList :: ReadS [AutomationExecution]
readsPrec :: Int -> ReadS AutomationExecution
$creadsPrec :: Int -> ReadS AutomationExecution
Prelude.Read, Int -> AutomationExecution -> ShowS
[AutomationExecution] -> ShowS
AutomationExecution -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AutomationExecution] -> ShowS
$cshowList :: [AutomationExecution] -> ShowS
show :: AutomationExecution -> String
$cshow :: AutomationExecution -> String
showsPrec :: Int -> AutomationExecution -> ShowS
$cshowsPrec :: Int -> AutomationExecution -> ShowS
Prelude.Show, forall x. Rep AutomationExecution x -> AutomationExecution
forall x. AutomationExecution -> Rep AutomationExecution x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep AutomationExecution x -> AutomationExecution
$cfrom :: forall x. AutomationExecution -> Rep AutomationExecution x
Prelude.Generic)
newAutomationExecution ::
AutomationExecution
newAutomationExecution :: AutomationExecution
newAutomationExecution =
AutomationExecution'
{ $sel:alarmConfiguration:AutomationExecution' :: Maybe AlarmConfiguration
alarmConfiguration =
forall a. Maybe a
Prelude.Nothing,
$sel:associationId:AutomationExecution' :: Maybe Text
associationId = forall a. Maybe a
Prelude.Nothing,
$sel:automationExecutionId:AutomationExecution' :: Maybe Text
automationExecutionId = forall a. Maybe a
Prelude.Nothing,
$sel:automationExecutionStatus:AutomationExecution' :: Maybe AutomationExecutionStatus
automationExecutionStatus = forall a. Maybe a
Prelude.Nothing,
$sel:automationSubtype:AutomationExecution' :: Maybe AutomationSubtype
automationSubtype = forall a. Maybe a
Prelude.Nothing,
$sel:changeRequestName:AutomationExecution' :: Maybe Text
changeRequestName = forall a. Maybe a
Prelude.Nothing,
$sel:currentAction:AutomationExecution' :: Maybe Text
currentAction = forall a. Maybe a
Prelude.Nothing,
$sel:currentStepName:AutomationExecution' :: Maybe Text
currentStepName = forall a. Maybe a
Prelude.Nothing,
$sel:documentName:AutomationExecution' :: Maybe Text
documentName = forall a. Maybe a
Prelude.Nothing,
$sel:documentVersion:AutomationExecution' :: Maybe Text
documentVersion = forall a. Maybe a
Prelude.Nothing,
$sel:executedBy:AutomationExecution' :: Maybe Text
executedBy = forall a. Maybe a
Prelude.Nothing,
$sel:executionEndTime:AutomationExecution' :: Maybe POSIX
executionEndTime = forall a. Maybe a
Prelude.Nothing,
$sel:executionStartTime:AutomationExecution' :: Maybe POSIX
executionStartTime = forall a. Maybe a
Prelude.Nothing,
$sel:failureMessage:AutomationExecution' :: Maybe Text
failureMessage = forall a. Maybe a
Prelude.Nothing,
$sel:maxConcurrency:AutomationExecution' :: Maybe Text
maxConcurrency = forall a. Maybe a
Prelude.Nothing,
$sel:maxErrors:AutomationExecution' :: Maybe Text
maxErrors = forall a. Maybe a
Prelude.Nothing,
$sel:mode:AutomationExecution' :: Maybe ExecutionMode
mode = forall a. Maybe a
Prelude.Nothing,
$sel:opsItemId:AutomationExecution' :: Maybe Text
opsItemId = forall a. Maybe a
Prelude.Nothing,
$sel:outputs:AutomationExecution' :: Maybe (HashMap Text [Text])
outputs = forall a. Maybe a
Prelude.Nothing,
$sel:parameters:AutomationExecution' :: Maybe (HashMap Text [Text])
parameters = forall a. Maybe a
Prelude.Nothing,
$sel:parentAutomationExecutionId:AutomationExecution' :: Maybe Text
parentAutomationExecutionId = forall a. Maybe a
Prelude.Nothing,
$sel:progressCounters:AutomationExecution' :: Maybe ProgressCounters
progressCounters = forall a. Maybe a
Prelude.Nothing,
$sel:resolvedTargets:AutomationExecution' :: Maybe ResolvedTargets
resolvedTargets = forall a. Maybe a
Prelude.Nothing,
$sel:runbooks:AutomationExecution' :: Maybe (NonEmpty Runbook)
runbooks = forall a. Maybe a
Prelude.Nothing,
$sel:scheduledTime:AutomationExecution' :: Maybe POSIX
scheduledTime = forall a. Maybe a
Prelude.Nothing,
$sel:stepExecutions:AutomationExecution' :: Maybe [StepExecution]
stepExecutions = forall a. Maybe a
Prelude.Nothing,
$sel:stepExecutionsTruncated:AutomationExecution' :: Maybe Bool
stepExecutionsTruncated = forall a. Maybe a
Prelude.Nothing,
$sel:target:AutomationExecution' :: Maybe Text
target = forall a. Maybe a
Prelude.Nothing,
$sel:targetLocations:AutomationExecution' :: Maybe (NonEmpty TargetLocation)
targetLocations = forall a. Maybe a
Prelude.Nothing,
$sel:targetMaps:AutomationExecution' :: Maybe [HashMap Text [Text]]
targetMaps = forall a. Maybe a
Prelude.Nothing,
$sel:targetParameterName:AutomationExecution' :: Maybe Text
targetParameterName = forall a. Maybe a
Prelude.Nothing,
$sel:targets:AutomationExecution' :: Maybe [Target]
targets = forall a. Maybe a
Prelude.Nothing,
$sel:triggeredAlarms:AutomationExecution' :: Maybe (NonEmpty AlarmStateInformation)
triggeredAlarms = forall a. Maybe a
Prelude.Nothing
}
automationExecution_alarmConfiguration :: Lens.Lens' AutomationExecution (Prelude.Maybe AlarmConfiguration)
automationExecution_alarmConfiguration :: Lens' AutomationExecution (Maybe AlarmConfiguration)
automationExecution_alarmConfiguration = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AutomationExecution' {Maybe AlarmConfiguration
alarmConfiguration :: Maybe AlarmConfiguration
$sel:alarmConfiguration:AutomationExecution' :: AutomationExecution -> Maybe AlarmConfiguration
alarmConfiguration} -> Maybe AlarmConfiguration
alarmConfiguration) (\s :: AutomationExecution
s@AutomationExecution' {} Maybe AlarmConfiguration
a -> AutomationExecution
s {$sel:alarmConfiguration:AutomationExecution' :: Maybe AlarmConfiguration
alarmConfiguration = Maybe AlarmConfiguration
a} :: AutomationExecution)
automationExecution_associationId :: Lens.Lens' AutomationExecution (Prelude.Maybe Prelude.Text)
automationExecution_associationId :: Lens' AutomationExecution (Maybe Text)
automationExecution_associationId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AutomationExecution' {Maybe Text
associationId :: Maybe Text
$sel:associationId:AutomationExecution' :: AutomationExecution -> Maybe Text
associationId} -> Maybe Text
associationId) (\s :: AutomationExecution
s@AutomationExecution' {} Maybe Text
a -> AutomationExecution
s {$sel:associationId:AutomationExecution' :: Maybe Text
associationId = Maybe Text
a} :: AutomationExecution)
automationExecution_automationExecutionId :: Lens.Lens' AutomationExecution (Prelude.Maybe Prelude.Text)
automationExecution_automationExecutionId :: Lens' AutomationExecution (Maybe Text)
automationExecution_automationExecutionId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AutomationExecution' {Maybe Text
automationExecutionId :: Maybe Text
$sel:automationExecutionId:AutomationExecution' :: AutomationExecution -> Maybe Text
automationExecutionId} -> Maybe Text
automationExecutionId) (\s :: AutomationExecution
s@AutomationExecution' {} Maybe Text
a -> AutomationExecution
s {$sel:automationExecutionId:AutomationExecution' :: Maybe Text
automationExecutionId = Maybe Text
a} :: AutomationExecution)
automationExecution_automationExecutionStatus :: Lens.Lens' AutomationExecution (Prelude.Maybe AutomationExecutionStatus)
automationExecution_automationExecutionStatus :: Lens' AutomationExecution (Maybe AutomationExecutionStatus)
automationExecution_automationExecutionStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AutomationExecution' {Maybe AutomationExecutionStatus
automationExecutionStatus :: Maybe AutomationExecutionStatus
$sel:automationExecutionStatus:AutomationExecution' :: AutomationExecution -> Maybe AutomationExecutionStatus
automationExecutionStatus} -> Maybe AutomationExecutionStatus
automationExecutionStatus) (\s :: AutomationExecution
s@AutomationExecution' {} Maybe AutomationExecutionStatus
a -> AutomationExecution
s {$sel:automationExecutionStatus:AutomationExecution' :: Maybe AutomationExecutionStatus
automationExecutionStatus = Maybe AutomationExecutionStatus
a} :: AutomationExecution)
automationExecution_automationSubtype :: Lens.Lens' AutomationExecution (Prelude.Maybe AutomationSubtype)
automationExecution_automationSubtype :: Lens' AutomationExecution (Maybe AutomationSubtype)
automationExecution_automationSubtype = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AutomationExecution' {Maybe AutomationSubtype
automationSubtype :: Maybe AutomationSubtype
$sel:automationSubtype:AutomationExecution' :: AutomationExecution -> Maybe AutomationSubtype
automationSubtype} -> Maybe AutomationSubtype
automationSubtype) (\s :: AutomationExecution
s@AutomationExecution' {} Maybe AutomationSubtype
a -> AutomationExecution
s {$sel:automationSubtype:AutomationExecution' :: Maybe AutomationSubtype
automationSubtype = Maybe AutomationSubtype
a} :: AutomationExecution)
automationExecution_changeRequestName :: Lens.Lens' AutomationExecution (Prelude.Maybe Prelude.Text)
automationExecution_changeRequestName :: Lens' AutomationExecution (Maybe Text)
automationExecution_changeRequestName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AutomationExecution' {Maybe Text
changeRequestName :: Maybe Text
$sel:changeRequestName:AutomationExecution' :: AutomationExecution -> Maybe Text
changeRequestName} -> Maybe Text
changeRequestName) (\s :: AutomationExecution
s@AutomationExecution' {} Maybe Text
a -> AutomationExecution
s {$sel:changeRequestName:AutomationExecution' :: Maybe Text
changeRequestName = Maybe Text
a} :: AutomationExecution)
automationExecution_currentAction :: Lens.Lens' AutomationExecution (Prelude.Maybe Prelude.Text)
automationExecution_currentAction :: Lens' AutomationExecution (Maybe Text)
automationExecution_currentAction = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AutomationExecution' {Maybe Text
currentAction :: Maybe Text
$sel:currentAction:AutomationExecution' :: AutomationExecution -> Maybe Text
currentAction} -> Maybe Text
currentAction) (\s :: AutomationExecution
s@AutomationExecution' {} Maybe Text
a -> AutomationExecution
s {$sel:currentAction:AutomationExecution' :: Maybe Text
currentAction = Maybe Text
a} :: AutomationExecution)
automationExecution_currentStepName :: Lens.Lens' AutomationExecution (Prelude.Maybe Prelude.Text)
automationExecution_currentStepName :: Lens' AutomationExecution (Maybe Text)
automationExecution_currentStepName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AutomationExecution' {Maybe Text
currentStepName :: Maybe Text
$sel:currentStepName:AutomationExecution' :: AutomationExecution -> Maybe Text
currentStepName} -> Maybe Text
currentStepName) (\s :: AutomationExecution
s@AutomationExecution' {} Maybe Text
a -> AutomationExecution
s {$sel:currentStepName:AutomationExecution' :: Maybe Text
currentStepName = Maybe Text
a} :: AutomationExecution)
automationExecution_documentName :: Lens.Lens' AutomationExecution (Prelude.Maybe Prelude.Text)
automationExecution_documentName :: Lens' AutomationExecution (Maybe Text)
automationExecution_documentName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AutomationExecution' {Maybe Text
documentName :: Maybe Text
$sel:documentName:AutomationExecution' :: AutomationExecution -> Maybe Text
documentName} -> Maybe Text
documentName) (\s :: AutomationExecution
s@AutomationExecution' {} Maybe Text
a -> AutomationExecution
s {$sel:documentName:AutomationExecution' :: Maybe Text
documentName = Maybe Text
a} :: AutomationExecution)
automationExecution_documentVersion :: Lens.Lens' AutomationExecution (Prelude.Maybe Prelude.Text)
automationExecution_documentVersion :: Lens' AutomationExecution (Maybe Text)
automationExecution_documentVersion = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AutomationExecution' {Maybe Text
documentVersion :: Maybe Text
$sel:documentVersion:AutomationExecution' :: AutomationExecution -> Maybe Text
documentVersion} -> Maybe Text
documentVersion) (\s :: AutomationExecution
s@AutomationExecution' {} Maybe Text
a -> AutomationExecution
s {$sel:documentVersion:AutomationExecution' :: Maybe Text
documentVersion = Maybe Text
a} :: AutomationExecution)
automationExecution_executedBy :: Lens.Lens' AutomationExecution (Prelude.Maybe Prelude.Text)
automationExecution_executedBy :: Lens' AutomationExecution (Maybe Text)
automationExecution_executedBy = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AutomationExecution' {Maybe Text
executedBy :: Maybe Text
$sel:executedBy:AutomationExecution' :: AutomationExecution -> Maybe Text
executedBy} -> Maybe Text
executedBy) (\s :: AutomationExecution
s@AutomationExecution' {} Maybe Text
a -> AutomationExecution
s {$sel:executedBy:AutomationExecution' :: Maybe Text
executedBy = Maybe Text
a} :: AutomationExecution)
automationExecution_executionEndTime :: Lens.Lens' AutomationExecution (Prelude.Maybe Prelude.UTCTime)
automationExecution_executionEndTime :: Lens' AutomationExecution (Maybe UTCTime)
automationExecution_executionEndTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AutomationExecution' {Maybe POSIX
executionEndTime :: Maybe POSIX
$sel:executionEndTime:AutomationExecution' :: AutomationExecution -> Maybe POSIX
executionEndTime} -> Maybe POSIX
executionEndTime) (\s :: AutomationExecution
s@AutomationExecution' {} Maybe POSIX
a -> AutomationExecution
s {$sel:executionEndTime:AutomationExecution' :: Maybe POSIX
executionEndTime = Maybe POSIX
a} :: AutomationExecution) 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
automationExecution_executionStartTime :: Lens.Lens' AutomationExecution (Prelude.Maybe Prelude.UTCTime)
automationExecution_executionStartTime :: Lens' AutomationExecution (Maybe UTCTime)
automationExecution_executionStartTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AutomationExecution' {Maybe POSIX
executionStartTime :: Maybe POSIX
$sel:executionStartTime:AutomationExecution' :: AutomationExecution -> Maybe POSIX
executionStartTime} -> Maybe POSIX
executionStartTime) (\s :: AutomationExecution
s@AutomationExecution' {} Maybe POSIX
a -> AutomationExecution
s {$sel:executionStartTime:AutomationExecution' :: Maybe POSIX
executionStartTime = Maybe POSIX
a} :: AutomationExecution) 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
automationExecution_failureMessage :: Lens.Lens' AutomationExecution (Prelude.Maybe Prelude.Text)
automationExecution_failureMessage :: Lens' AutomationExecution (Maybe Text)
automationExecution_failureMessage = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AutomationExecution' {Maybe Text
failureMessage :: Maybe Text
$sel:failureMessage:AutomationExecution' :: AutomationExecution -> Maybe Text
failureMessage} -> Maybe Text
failureMessage) (\s :: AutomationExecution
s@AutomationExecution' {} Maybe Text
a -> AutomationExecution
s {$sel:failureMessage:AutomationExecution' :: Maybe Text
failureMessage = Maybe Text
a} :: AutomationExecution)
automationExecution_maxConcurrency :: Lens.Lens' AutomationExecution (Prelude.Maybe Prelude.Text)
automationExecution_maxConcurrency :: Lens' AutomationExecution (Maybe Text)
automationExecution_maxConcurrency = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AutomationExecution' {Maybe Text
maxConcurrency :: Maybe Text
$sel:maxConcurrency:AutomationExecution' :: AutomationExecution -> Maybe Text
maxConcurrency} -> Maybe Text
maxConcurrency) (\s :: AutomationExecution
s@AutomationExecution' {} Maybe Text
a -> AutomationExecution
s {$sel:maxConcurrency:AutomationExecution' :: Maybe Text
maxConcurrency = Maybe Text
a} :: AutomationExecution)
automationExecution_maxErrors :: Lens.Lens' AutomationExecution (Prelude.Maybe Prelude.Text)
automationExecution_maxErrors :: Lens' AutomationExecution (Maybe Text)
automationExecution_maxErrors = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AutomationExecution' {Maybe Text
maxErrors :: Maybe Text
$sel:maxErrors:AutomationExecution' :: AutomationExecution -> Maybe Text
maxErrors} -> Maybe Text
maxErrors) (\s :: AutomationExecution
s@AutomationExecution' {} Maybe Text
a -> AutomationExecution
s {$sel:maxErrors:AutomationExecution' :: Maybe Text
maxErrors = Maybe Text
a} :: AutomationExecution)
automationExecution_mode :: Lens.Lens' AutomationExecution (Prelude.Maybe ExecutionMode)
automationExecution_mode :: Lens' AutomationExecution (Maybe ExecutionMode)
automationExecution_mode = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AutomationExecution' {Maybe ExecutionMode
mode :: Maybe ExecutionMode
$sel:mode:AutomationExecution' :: AutomationExecution -> Maybe ExecutionMode
mode} -> Maybe ExecutionMode
mode) (\s :: AutomationExecution
s@AutomationExecution' {} Maybe ExecutionMode
a -> AutomationExecution
s {$sel:mode:AutomationExecution' :: Maybe ExecutionMode
mode = Maybe ExecutionMode
a} :: AutomationExecution)
automationExecution_opsItemId :: Lens.Lens' AutomationExecution (Prelude.Maybe Prelude.Text)
automationExecution_opsItemId :: Lens' AutomationExecution (Maybe Text)
automationExecution_opsItemId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AutomationExecution' {Maybe Text
opsItemId :: Maybe Text
$sel:opsItemId:AutomationExecution' :: AutomationExecution -> Maybe Text
opsItemId} -> Maybe Text
opsItemId) (\s :: AutomationExecution
s@AutomationExecution' {} Maybe Text
a -> AutomationExecution
s {$sel:opsItemId:AutomationExecution' :: Maybe Text
opsItemId = Maybe Text
a} :: AutomationExecution)
automationExecution_outputs :: Lens.Lens' AutomationExecution (Prelude.Maybe (Prelude.HashMap Prelude.Text [Prelude.Text]))
automationExecution_outputs :: Lens' AutomationExecution (Maybe (HashMap Text [Text]))
automationExecution_outputs = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AutomationExecution' {Maybe (HashMap Text [Text])
outputs :: Maybe (HashMap Text [Text])
$sel:outputs:AutomationExecution' :: AutomationExecution -> Maybe (HashMap Text [Text])
outputs} -> Maybe (HashMap Text [Text])
outputs) (\s :: AutomationExecution
s@AutomationExecution' {} Maybe (HashMap Text [Text])
a -> AutomationExecution
s {$sel:outputs:AutomationExecution' :: Maybe (HashMap Text [Text])
outputs = Maybe (HashMap Text [Text])
a} :: AutomationExecution) 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 s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
automationExecution_parameters :: Lens.Lens' AutomationExecution (Prelude.Maybe (Prelude.HashMap Prelude.Text [Prelude.Text]))
automationExecution_parameters :: Lens' AutomationExecution (Maybe (HashMap Text [Text]))
automationExecution_parameters = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AutomationExecution' {Maybe (HashMap Text [Text])
parameters :: Maybe (HashMap Text [Text])
$sel:parameters:AutomationExecution' :: AutomationExecution -> Maybe (HashMap Text [Text])
parameters} -> Maybe (HashMap Text [Text])
parameters) (\s :: AutomationExecution
s@AutomationExecution' {} Maybe (HashMap Text [Text])
a -> AutomationExecution
s {$sel:parameters:AutomationExecution' :: Maybe (HashMap Text [Text])
parameters = Maybe (HashMap Text [Text])
a} :: AutomationExecution) 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 s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
automationExecution_parentAutomationExecutionId :: Lens.Lens' AutomationExecution (Prelude.Maybe Prelude.Text)
automationExecution_parentAutomationExecutionId :: Lens' AutomationExecution (Maybe Text)
automationExecution_parentAutomationExecutionId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AutomationExecution' {Maybe Text
parentAutomationExecutionId :: Maybe Text
$sel:parentAutomationExecutionId:AutomationExecution' :: AutomationExecution -> Maybe Text
parentAutomationExecutionId} -> Maybe Text
parentAutomationExecutionId) (\s :: AutomationExecution
s@AutomationExecution' {} Maybe Text
a -> AutomationExecution
s {$sel:parentAutomationExecutionId:AutomationExecution' :: Maybe Text
parentAutomationExecutionId = Maybe Text
a} :: AutomationExecution)
automationExecution_progressCounters :: Lens.Lens' AutomationExecution (Prelude.Maybe ProgressCounters)
automationExecution_progressCounters :: Lens' AutomationExecution (Maybe ProgressCounters)
automationExecution_progressCounters = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AutomationExecution' {Maybe ProgressCounters
progressCounters :: Maybe ProgressCounters
$sel:progressCounters:AutomationExecution' :: AutomationExecution -> Maybe ProgressCounters
progressCounters} -> Maybe ProgressCounters
progressCounters) (\s :: AutomationExecution
s@AutomationExecution' {} Maybe ProgressCounters
a -> AutomationExecution
s {$sel:progressCounters:AutomationExecution' :: Maybe ProgressCounters
progressCounters = Maybe ProgressCounters
a} :: AutomationExecution)
automationExecution_resolvedTargets :: Lens.Lens' AutomationExecution (Prelude.Maybe ResolvedTargets)
automationExecution_resolvedTargets :: Lens' AutomationExecution (Maybe ResolvedTargets)
automationExecution_resolvedTargets = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AutomationExecution' {Maybe ResolvedTargets
resolvedTargets :: Maybe ResolvedTargets
$sel:resolvedTargets:AutomationExecution' :: AutomationExecution -> Maybe ResolvedTargets
resolvedTargets} -> Maybe ResolvedTargets
resolvedTargets) (\s :: AutomationExecution
s@AutomationExecution' {} Maybe ResolvedTargets
a -> AutomationExecution
s {$sel:resolvedTargets:AutomationExecution' :: Maybe ResolvedTargets
resolvedTargets = Maybe ResolvedTargets
a} :: AutomationExecution)
automationExecution_runbooks :: Lens.Lens' AutomationExecution (Prelude.Maybe (Prelude.NonEmpty Runbook))
automationExecution_runbooks :: Lens' AutomationExecution (Maybe (NonEmpty Runbook))
automationExecution_runbooks = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AutomationExecution' {Maybe (NonEmpty Runbook)
runbooks :: Maybe (NonEmpty Runbook)
$sel:runbooks:AutomationExecution' :: AutomationExecution -> Maybe (NonEmpty Runbook)
runbooks} -> Maybe (NonEmpty Runbook)
runbooks) (\s :: AutomationExecution
s@AutomationExecution' {} Maybe (NonEmpty Runbook)
a -> AutomationExecution
s {$sel:runbooks:AutomationExecution' :: Maybe (NonEmpty Runbook)
runbooks = Maybe (NonEmpty Runbook)
a} :: AutomationExecution) 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 s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
automationExecution_scheduledTime :: Lens.Lens' AutomationExecution (Prelude.Maybe Prelude.UTCTime)
automationExecution_scheduledTime :: Lens' AutomationExecution (Maybe UTCTime)
automationExecution_scheduledTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AutomationExecution' {Maybe POSIX
scheduledTime :: Maybe POSIX
$sel:scheduledTime:AutomationExecution' :: AutomationExecution -> Maybe POSIX
scheduledTime} -> Maybe POSIX
scheduledTime) (\s :: AutomationExecution
s@AutomationExecution' {} Maybe POSIX
a -> AutomationExecution
s {$sel:scheduledTime:AutomationExecution' :: Maybe POSIX
scheduledTime = Maybe POSIX
a} :: AutomationExecution) 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
automationExecution_stepExecutions :: Lens.Lens' AutomationExecution (Prelude.Maybe [StepExecution])
automationExecution_stepExecutions :: Lens' AutomationExecution (Maybe [StepExecution])
automationExecution_stepExecutions = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AutomationExecution' {Maybe [StepExecution]
stepExecutions :: Maybe [StepExecution]
$sel:stepExecutions:AutomationExecution' :: AutomationExecution -> Maybe [StepExecution]
stepExecutions} -> Maybe [StepExecution]
stepExecutions) (\s :: AutomationExecution
s@AutomationExecution' {} Maybe [StepExecution]
a -> AutomationExecution
s {$sel:stepExecutions:AutomationExecution' :: Maybe [StepExecution]
stepExecutions = Maybe [StepExecution]
a} :: AutomationExecution) 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 s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
automationExecution_stepExecutionsTruncated :: Lens.Lens' AutomationExecution (Prelude.Maybe Prelude.Bool)
automationExecution_stepExecutionsTruncated :: Lens' AutomationExecution (Maybe Bool)
automationExecution_stepExecutionsTruncated = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AutomationExecution' {Maybe Bool
stepExecutionsTruncated :: Maybe Bool
$sel:stepExecutionsTruncated:AutomationExecution' :: AutomationExecution -> Maybe Bool
stepExecutionsTruncated} -> Maybe Bool
stepExecutionsTruncated) (\s :: AutomationExecution
s@AutomationExecution' {} Maybe Bool
a -> AutomationExecution
s {$sel:stepExecutionsTruncated:AutomationExecution' :: Maybe Bool
stepExecutionsTruncated = Maybe Bool
a} :: AutomationExecution)
automationExecution_target :: Lens.Lens' AutomationExecution (Prelude.Maybe Prelude.Text)
automationExecution_target :: Lens' AutomationExecution (Maybe Text)
automationExecution_target = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AutomationExecution' {Maybe Text
target :: Maybe Text
$sel:target:AutomationExecution' :: AutomationExecution -> Maybe Text
target} -> Maybe Text
target) (\s :: AutomationExecution
s@AutomationExecution' {} Maybe Text
a -> AutomationExecution
s {$sel:target:AutomationExecution' :: Maybe Text
target = Maybe Text
a} :: AutomationExecution)
automationExecution_targetLocations :: Lens.Lens' AutomationExecution (Prelude.Maybe (Prelude.NonEmpty TargetLocation))
automationExecution_targetLocations :: Lens' AutomationExecution (Maybe (NonEmpty TargetLocation))
automationExecution_targetLocations = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AutomationExecution' {Maybe (NonEmpty TargetLocation)
targetLocations :: Maybe (NonEmpty TargetLocation)
$sel:targetLocations:AutomationExecution' :: AutomationExecution -> Maybe (NonEmpty TargetLocation)
targetLocations} -> Maybe (NonEmpty TargetLocation)
targetLocations) (\s :: AutomationExecution
s@AutomationExecution' {} Maybe (NonEmpty TargetLocation)
a -> AutomationExecution
s {$sel:targetLocations:AutomationExecution' :: Maybe (NonEmpty TargetLocation)
targetLocations = Maybe (NonEmpty TargetLocation)
a} :: AutomationExecution) 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 s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
automationExecution_targetMaps :: Lens.Lens' AutomationExecution (Prelude.Maybe [Prelude.HashMap Prelude.Text [Prelude.Text]])
automationExecution_targetMaps :: Lens' AutomationExecution (Maybe [HashMap Text [Text]])
automationExecution_targetMaps = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AutomationExecution' {Maybe [HashMap Text [Text]]
targetMaps :: Maybe [HashMap Text [Text]]
$sel:targetMaps:AutomationExecution' :: AutomationExecution -> Maybe [HashMap Text [Text]]
targetMaps} -> Maybe [HashMap Text [Text]]
targetMaps) (\s :: AutomationExecution
s@AutomationExecution' {} Maybe [HashMap Text [Text]]
a -> AutomationExecution
s {$sel:targetMaps:AutomationExecution' :: Maybe [HashMap Text [Text]]
targetMaps = Maybe [HashMap Text [Text]]
a} :: AutomationExecution) 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 s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
automationExecution_targetParameterName :: Lens.Lens' AutomationExecution (Prelude.Maybe Prelude.Text)
automationExecution_targetParameterName :: Lens' AutomationExecution (Maybe Text)
automationExecution_targetParameterName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AutomationExecution' {Maybe Text
targetParameterName :: Maybe Text
$sel:targetParameterName:AutomationExecution' :: AutomationExecution -> Maybe Text
targetParameterName} -> Maybe Text
targetParameterName) (\s :: AutomationExecution
s@AutomationExecution' {} Maybe Text
a -> AutomationExecution
s {$sel:targetParameterName:AutomationExecution' :: Maybe Text
targetParameterName = Maybe Text
a} :: AutomationExecution)
automationExecution_targets :: Lens.Lens' AutomationExecution (Prelude.Maybe [Target])
automationExecution_targets :: Lens' AutomationExecution (Maybe [Target])
automationExecution_targets = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AutomationExecution' {Maybe [Target]
targets :: Maybe [Target]
$sel:targets:AutomationExecution' :: AutomationExecution -> Maybe [Target]
targets} -> Maybe [Target]
targets) (\s :: AutomationExecution
s@AutomationExecution' {} Maybe [Target]
a -> AutomationExecution
s {$sel:targets:AutomationExecution' :: Maybe [Target]
targets = Maybe [Target]
a} :: AutomationExecution) 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 s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
automationExecution_triggeredAlarms :: Lens.Lens' AutomationExecution (Prelude.Maybe (Prelude.NonEmpty AlarmStateInformation))
automationExecution_triggeredAlarms :: Lens' AutomationExecution (Maybe (NonEmpty AlarmStateInformation))
automationExecution_triggeredAlarms = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AutomationExecution' {Maybe (NonEmpty AlarmStateInformation)
triggeredAlarms :: Maybe (NonEmpty AlarmStateInformation)
$sel:triggeredAlarms:AutomationExecution' :: AutomationExecution -> Maybe (NonEmpty AlarmStateInformation)
triggeredAlarms} -> Maybe (NonEmpty AlarmStateInformation)
triggeredAlarms) (\s :: AutomationExecution
s@AutomationExecution' {} Maybe (NonEmpty AlarmStateInformation)
a -> AutomationExecution
s {$sel:triggeredAlarms:AutomationExecution' :: Maybe (NonEmpty AlarmStateInformation)
triggeredAlarms = Maybe (NonEmpty AlarmStateInformation)
a} :: AutomationExecution) 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 s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Data.FromJSON AutomationExecution where
parseJSON :: Value -> Parser AutomationExecution
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"AutomationExecution"
( \Object
x ->
Maybe AlarmConfiguration
-> Maybe Text
-> Maybe Text
-> Maybe AutomationExecutionStatus
-> Maybe AutomationSubtype
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ExecutionMode
-> Maybe Text
-> Maybe (HashMap Text [Text])
-> Maybe (HashMap Text [Text])
-> Maybe Text
-> Maybe ProgressCounters
-> Maybe ResolvedTargets
-> Maybe (NonEmpty Runbook)
-> Maybe POSIX
-> Maybe [StepExecution]
-> Maybe Bool
-> Maybe Text
-> Maybe (NonEmpty TargetLocation)
-> Maybe [HashMap Text [Text]]
-> Maybe Text
-> Maybe [Target]
-> Maybe (NonEmpty AlarmStateInformation)
-> AutomationExecution
AutomationExecution'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"AlarmConfiguration")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"AssociationId")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"AutomationExecutionId")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"AutomationExecutionStatus")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"AutomationSubtype")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ChangeRequestName")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"CurrentAction")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"CurrentStepName")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"DocumentName")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"DocumentVersion")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ExecutedBy")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ExecutionEndTime")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ExecutionStartTime")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"FailureMessage")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"MaxConcurrency")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"MaxErrors")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Mode")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"OpsItemId")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Outputs" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Parameters" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ParentAutomationExecutionId")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ProgressCounters")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ResolvedTargets")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Runbooks")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ScheduledTime")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"StepExecutions" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"StepExecutionsTruncated")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Target")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"TargetLocations")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"TargetMaps" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"TargetParameterName")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Targets" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"TriggeredAlarms")
)
instance Prelude.Hashable AutomationExecution where
hashWithSalt :: Int -> AutomationExecution -> Int
hashWithSalt Int
_salt AutomationExecution' {Maybe Bool
Maybe [HashMap Text [Text]]
Maybe [Target]
Maybe [StepExecution]
Maybe (NonEmpty AlarmStateInformation)
Maybe (NonEmpty TargetLocation)
Maybe (NonEmpty Runbook)
Maybe Text
Maybe (HashMap Text [Text])
Maybe POSIX
Maybe AlarmConfiguration
Maybe AutomationExecutionStatus
Maybe AutomationSubtype
Maybe ExecutionMode
Maybe ProgressCounters
Maybe ResolvedTargets
triggeredAlarms :: Maybe (NonEmpty AlarmStateInformation)
targets :: Maybe [Target]
targetParameterName :: Maybe Text
targetMaps :: Maybe [HashMap Text [Text]]
targetLocations :: Maybe (NonEmpty TargetLocation)
target :: Maybe Text
stepExecutionsTruncated :: Maybe Bool
stepExecutions :: Maybe [StepExecution]
scheduledTime :: Maybe POSIX
runbooks :: Maybe (NonEmpty Runbook)
resolvedTargets :: Maybe ResolvedTargets
progressCounters :: Maybe ProgressCounters
parentAutomationExecutionId :: Maybe Text
parameters :: Maybe (HashMap Text [Text])
outputs :: Maybe (HashMap Text [Text])
opsItemId :: Maybe Text
mode :: Maybe ExecutionMode
maxErrors :: Maybe Text
maxConcurrency :: Maybe Text
failureMessage :: Maybe Text
executionStartTime :: Maybe POSIX
executionEndTime :: Maybe POSIX
executedBy :: Maybe Text
documentVersion :: Maybe Text
documentName :: Maybe Text
currentStepName :: Maybe Text
currentAction :: Maybe Text
changeRequestName :: Maybe Text
automationSubtype :: Maybe AutomationSubtype
automationExecutionStatus :: Maybe AutomationExecutionStatus
automationExecutionId :: Maybe Text
associationId :: Maybe Text
alarmConfiguration :: Maybe AlarmConfiguration
$sel:triggeredAlarms:AutomationExecution' :: AutomationExecution -> Maybe (NonEmpty AlarmStateInformation)
$sel:targets:AutomationExecution' :: AutomationExecution -> Maybe [Target]
$sel:targetParameterName:AutomationExecution' :: AutomationExecution -> Maybe Text
$sel:targetMaps:AutomationExecution' :: AutomationExecution -> Maybe [HashMap Text [Text]]
$sel:targetLocations:AutomationExecution' :: AutomationExecution -> Maybe (NonEmpty TargetLocation)
$sel:target:AutomationExecution' :: AutomationExecution -> Maybe Text
$sel:stepExecutionsTruncated:AutomationExecution' :: AutomationExecution -> Maybe Bool
$sel:stepExecutions:AutomationExecution' :: AutomationExecution -> Maybe [StepExecution]
$sel:scheduledTime:AutomationExecution' :: AutomationExecution -> Maybe POSIX
$sel:runbooks:AutomationExecution' :: AutomationExecution -> Maybe (NonEmpty Runbook)
$sel:resolvedTargets:AutomationExecution' :: AutomationExecution -> Maybe ResolvedTargets
$sel:progressCounters:AutomationExecution' :: AutomationExecution -> Maybe ProgressCounters
$sel:parentAutomationExecutionId:AutomationExecution' :: AutomationExecution -> Maybe Text
$sel:parameters:AutomationExecution' :: AutomationExecution -> Maybe (HashMap Text [Text])
$sel:outputs:AutomationExecution' :: AutomationExecution -> Maybe (HashMap Text [Text])
$sel:opsItemId:AutomationExecution' :: AutomationExecution -> Maybe Text
$sel:mode:AutomationExecution' :: AutomationExecution -> Maybe ExecutionMode
$sel:maxErrors:AutomationExecution' :: AutomationExecution -> Maybe Text
$sel:maxConcurrency:AutomationExecution' :: AutomationExecution -> Maybe Text
$sel:failureMessage:AutomationExecution' :: AutomationExecution -> Maybe Text
$sel:executionStartTime:AutomationExecution' :: AutomationExecution -> Maybe POSIX
$sel:executionEndTime:AutomationExecution' :: AutomationExecution -> Maybe POSIX
$sel:executedBy:AutomationExecution' :: AutomationExecution -> Maybe Text
$sel:documentVersion:AutomationExecution' :: AutomationExecution -> Maybe Text
$sel:documentName:AutomationExecution' :: AutomationExecution -> Maybe Text
$sel:currentStepName:AutomationExecution' :: AutomationExecution -> Maybe Text
$sel:currentAction:AutomationExecution' :: AutomationExecution -> Maybe Text
$sel:changeRequestName:AutomationExecution' :: AutomationExecution -> Maybe Text
$sel:automationSubtype:AutomationExecution' :: AutomationExecution -> Maybe AutomationSubtype
$sel:automationExecutionStatus:AutomationExecution' :: AutomationExecution -> Maybe AutomationExecutionStatus
$sel:automationExecutionId:AutomationExecution' :: AutomationExecution -> Maybe Text
$sel:associationId:AutomationExecution' :: AutomationExecution -> Maybe Text
$sel:alarmConfiguration:AutomationExecution' :: AutomationExecution -> Maybe AlarmConfiguration
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe AlarmConfiguration
alarmConfiguration
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
associationId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
automationExecutionId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe AutomationExecutionStatus
automationExecutionStatus
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe AutomationSubtype
automationSubtype
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
changeRequestName
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
currentAction
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
currentStepName
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
documentName
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
documentVersion
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
executedBy
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
executionEndTime
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
executionStartTime
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
failureMessage
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
maxConcurrency
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
maxErrors
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ExecutionMode
mode
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
opsItemId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (HashMap Text [Text])
outputs
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (HashMap Text [Text])
parameters
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
parentAutomationExecutionId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ProgressCounters
progressCounters
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ResolvedTargets
resolvedTargets
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (NonEmpty Runbook)
runbooks
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
scheduledTime
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [StepExecution]
stepExecutions
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
stepExecutionsTruncated
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
target
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (NonEmpty TargetLocation)
targetLocations
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [HashMap Text [Text]]
targetMaps
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
targetParameterName
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Target]
targets
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (NonEmpty AlarmStateInformation)
triggeredAlarms
instance Prelude.NFData AutomationExecution where
rnf :: AutomationExecution -> ()
rnf AutomationExecution' {Maybe Bool
Maybe [HashMap Text [Text]]
Maybe [Target]
Maybe [StepExecution]
Maybe (NonEmpty AlarmStateInformation)
Maybe (NonEmpty TargetLocation)
Maybe (NonEmpty Runbook)
Maybe Text
Maybe (HashMap Text [Text])
Maybe POSIX
Maybe AlarmConfiguration
Maybe AutomationExecutionStatus
Maybe AutomationSubtype
Maybe ExecutionMode
Maybe ProgressCounters
Maybe ResolvedTargets
triggeredAlarms :: Maybe (NonEmpty AlarmStateInformation)
targets :: Maybe [Target]
targetParameterName :: Maybe Text
targetMaps :: Maybe [HashMap Text [Text]]
targetLocations :: Maybe (NonEmpty TargetLocation)
target :: Maybe Text
stepExecutionsTruncated :: Maybe Bool
stepExecutions :: Maybe [StepExecution]
scheduledTime :: Maybe POSIX
runbooks :: Maybe (NonEmpty Runbook)
resolvedTargets :: Maybe ResolvedTargets
progressCounters :: Maybe ProgressCounters
parentAutomationExecutionId :: Maybe Text
parameters :: Maybe (HashMap Text [Text])
outputs :: Maybe (HashMap Text [Text])
opsItemId :: Maybe Text
mode :: Maybe ExecutionMode
maxErrors :: Maybe Text
maxConcurrency :: Maybe Text
failureMessage :: Maybe Text
executionStartTime :: Maybe POSIX
executionEndTime :: Maybe POSIX
executedBy :: Maybe Text
documentVersion :: Maybe Text
documentName :: Maybe Text
currentStepName :: Maybe Text
currentAction :: Maybe Text
changeRequestName :: Maybe Text
automationSubtype :: Maybe AutomationSubtype
automationExecutionStatus :: Maybe AutomationExecutionStatus
automationExecutionId :: Maybe Text
associationId :: Maybe Text
alarmConfiguration :: Maybe AlarmConfiguration
$sel:triggeredAlarms:AutomationExecution' :: AutomationExecution -> Maybe (NonEmpty AlarmStateInformation)
$sel:targets:AutomationExecution' :: AutomationExecution -> Maybe [Target]
$sel:targetParameterName:AutomationExecution' :: AutomationExecution -> Maybe Text
$sel:targetMaps:AutomationExecution' :: AutomationExecution -> Maybe [HashMap Text [Text]]
$sel:targetLocations:AutomationExecution' :: AutomationExecution -> Maybe (NonEmpty TargetLocation)
$sel:target:AutomationExecution' :: AutomationExecution -> Maybe Text
$sel:stepExecutionsTruncated:AutomationExecution' :: AutomationExecution -> Maybe Bool
$sel:stepExecutions:AutomationExecution' :: AutomationExecution -> Maybe [StepExecution]
$sel:scheduledTime:AutomationExecution' :: AutomationExecution -> Maybe POSIX
$sel:runbooks:AutomationExecution' :: AutomationExecution -> Maybe (NonEmpty Runbook)
$sel:resolvedTargets:AutomationExecution' :: AutomationExecution -> Maybe ResolvedTargets
$sel:progressCounters:AutomationExecution' :: AutomationExecution -> Maybe ProgressCounters
$sel:parentAutomationExecutionId:AutomationExecution' :: AutomationExecution -> Maybe Text
$sel:parameters:AutomationExecution' :: AutomationExecution -> Maybe (HashMap Text [Text])
$sel:outputs:AutomationExecution' :: AutomationExecution -> Maybe (HashMap Text [Text])
$sel:opsItemId:AutomationExecution' :: AutomationExecution -> Maybe Text
$sel:mode:AutomationExecution' :: AutomationExecution -> Maybe ExecutionMode
$sel:maxErrors:AutomationExecution' :: AutomationExecution -> Maybe Text
$sel:maxConcurrency:AutomationExecution' :: AutomationExecution -> Maybe Text
$sel:failureMessage:AutomationExecution' :: AutomationExecution -> Maybe Text
$sel:executionStartTime:AutomationExecution' :: AutomationExecution -> Maybe POSIX
$sel:executionEndTime:AutomationExecution' :: AutomationExecution -> Maybe POSIX
$sel:executedBy:AutomationExecution' :: AutomationExecution -> Maybe Text
$sel:documentVersion:AutomationExecution' :: AutomationExecution -> Maybe Text
$sel:documentName:AutomationExecution' :: AutomationExecution -> Maybe Text
$sel:currentStepName:AutomationExecution' :: AutomationExecution -> Maybe Text
$sel:currentAction:AutomationExecution' :: AutomationExecution -> Maybe Text
$sel:changeRequestName:AutomationExecution' :: AutomationExecution -> Maybe Text
$sel:automationSubtype:AutomationExecution' :: AutomationExecution -> Maybe AutomationSubtype
$sel:automationExecutionStatus:AutomationExecution' :: AutomationExecution -> Maybe AutomationExecutionStatus
$sel:automationExecutionId:AutomationExecution' :: AutomationExecution -> Maybe Text
$sel:associationId:AutomationExecution' :: AutomationExecution -> Maybe Text
$sel:alarmConfiguration:AutomationExecution' :: AutomationExecution -> Maybe AlarmConfiguration
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe AlarmConfiguration
alarmConfiguration
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
associationId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
automationExecutionId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe AutomationExecutionStatus
automationExecutionStatus
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe AutomationSubtype
automationSubtype
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
changeRequestName
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
currentAction
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
currentStepName
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
documentName
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
documentVersion
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
executedBy
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
executionEndTime
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
executionStartTime
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
failureMessage
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
maxConcurrency
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
maxErrors
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ExecutionMode
mode
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
opsItemId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text [Text])
outputs
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text [Text])
parameters
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
Maybe Text
parentAutomationExecutionId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
Maybe ProgressCounters
progressCounters
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
Maybe ResolvedTargets
resolvedTargets
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (NonEmpty Runbook)
runbooks
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
Maybe POSIX
scheduledTime
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
Maybe [StepExecution]
stepExecutions
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
Maybe Bool
stepExecutionsTruncated
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
Maybe Text
target
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
Maybe (NonEmpty TargetLocation)
targetLocations
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
Maybe [HashMap Text [Text]]
targetMaps
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
Maybe Text
targetParameterName
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
Maybe [Target]
targets
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
Maybe (NonEmpty AlarmStateInformation)
triggeredAlarms