Class AutomationExecution
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<AutomationExecution.Builder,
AutomationExecution>
Detailed information about the current state of an individual Automation execution.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal AlarmConfiguration
The details for the CloudWatch alarm applied to your automation.final String
The ID of a State Manager association used in the Automation operation.final String
The execution ID.The execution status of the Automation.final String
The execution status of the Automation.final AutomationSubtype
The subtype of the Automation operation.final String
The subtype of the Automation operation.static AutomationExecution.Builder
builder()
final String
The name of the Change Manager change request.final String
The action of the step that is currently running.final String
The name of the step that is currently running.final String
The name of the Automation runbook used during the execution.final String
The version of the document to use during execution.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final String
The Amazon Resource Name (ARN) of the user who ran the automation.final Instant
The time the execution finished.final Instant
The time the execution started.final String
A message describing why an execution has failed, if the status is set to Failed.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
final boolean
For responses, this returns true if the service returned a value for the Outputs property.final boolean
For responses, this returns true if the service returned a value for the Parameters property.final boolean
For responses, this returns true if the service returned a value for the Runbooks property.final boolean
For responses, this returns true if the service returned a value for the StepExecutions property.final boolean
For responses, this returns true if the service returned a value for the TargetLocations property.final boolean
For responses, this returns true if the service returned a value for the TargetMaps property.final boolean
For responses, this returns true if the service returned a value for the Targets property.final boolean
For responses, this returns true if the service returned a value for the TriggeredAlarms property.final boolean
For responses, this returns true if the service returned a value for the Variables property.final String
TheMaxConcurrency
value specified by the user when the execution started.final String
The MaxErrors value specified by the user when the execution started.final ExecutionMode
mode()
The automation execution mode.final String
The automation execution mode.final String
The ID of an OpsItem that is created to represent a Change Manager change request.outputs()
The list of execution outputs as defined in the Automation runbook.The key-value map of execution parameters, which were supplied when calling StartAutomationExecution.final String
The AutomationExecutionId of the parent automation.final ProgressCounters
An aggregate of step execution statuses displayed in the Amazon Web Services Systems Manager console for a multi-Region and multi-account Automation execution.final ResolvedTargets
A list of resolved targets in the rate control execution.runbooks()
Information about the Automation runbooks that are run as part of a runbook workflow.final Instant
The date and time the Automation operation is scheduled to start.static Class
<? extends AutomationExecution.Builder> final List
<StepExecution> A list of details about the current state of all steps that comprise an execution.final Boolean
A boolean value that indicates if the response contains the full list of the Automation step executions.final String
target()
The target of the execution.final List
<TargetLocation> The combination of Amazon Web Services Regions and/or Amazon Web Services accounts where you want to run the Automation.final String
A publicly accessible URL for a file that contains theTargetLocations
body.The specified key-value mapping of document parameters to target resources.final String
The parameter name.targets()
The specified targets.Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.final List
<AlarmStateInformation> The CloudWatch alarm that was invoked by the automation.Variables defined for the automation.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
automationExecutionId
-
documentName
The name of the Automation runbook used during the execution.
- Returns:
- The name of the Automation runbook used during the execution.
-
documentVersion
The version of the document to use during execution.
- Returns:
- The version of the document to use during execution.
-
executionStartTime
The time the execution started.
- Returns:
- The time the execution started.
-
executionEndTime
The time the execution finished.
- Returns:
- The time the execution finished.
-
automationExecutionStatus
The execution status of the Automation.
If the service returns an enum value that is not available in the current SDK version,
automationExecutionStatus
will returnAutomationExecutionStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromautomationExecutionStatusAsString()
.- Returns:
- The execution status of the Automation.
- See Also:
-
automationExecutionStatusAsString
The execution status of the Automation.
If the service returns an enum value that is not available in the current SDK version,
automationExecutionStatus
will returnAutomationExecutionStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromautomationExecutionStatusAsString()
.- Returns:
- The execution status of the Automation.
- See Also:
-
hasStepExecutions
public final boolean hasStepExecutions()For responses, this returns true if the service returned a value for the StepExecutions property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
stepExecutions
A list of details about the current state of all steps that comprise an execution. An Automation runbook contains a list of steps that are run in order.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasStepExecutions()
method.- Returns:
- A list of details about the current state of all steps that comprise an execution. An Automation runbook contains a list of steps that are run in order.
-
stepExecutionsTruncated
A boolean value that indicates if the response contains the full list of the Automation step executions. If true, use the DescribeAutomationStepExecutions API operation to get the full list of step executions.
- Returns:
- A boolean value that indicates if the response contains the full list of the Automation step executions. If true, use the DescribeAutomationStepExecutions API operation to get the full list of step executions.
-
hasParameters
public final boolean hasParameters()For responses, this returns true if the service returned a value for the Parameters property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
parameters
The key-value map of execution parameters, which were supplied when calling StartAutomationExecution.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasParameters()
method.- Returns:
- The key-value map of execution parameters, which were supplied when calling StartAutomationExecution.
-
hasOutputs
public final boolean hasOutputs()For responses, this returns true if the service returned a value for the Outputs property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
outputs
The list of execution outputs as defined in the Automation runbook.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasOutputs()
method.- Returns:
- The list of execution outputs as defined in the Automation runbook.
-
failureMessage
A message describing why an execution has failed, if the status is set to Failed.
- Returns:
- A message describing why an execution has failed, if the status is set to Failed.
-
mode
The automation execution mode.
If the service returns an enum value that is not available in the current SDK version,
mode
will returnExecutionMode.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available frommodeAsString()
.- Returns:
- The automation execution mode.
- See Also:
-
modeAsString
The automation execution mode.
If the service returns an enum value that is not available in the current SDK version,
mode
will returnExecutionMode.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available frommodeAsString()
.- Returns:
- The automation execution mode.
- See Also:
-
parentAutomationExecutionId
The AutomationExecutionId of the parent automation.
- Returns:
- The AutomationExecutionId of the parent automation.
-
executedBy
The Amazon Resource Name (ARN) of the user who ran the automation.
- Returns:
- The Amazon Resource Name (ARN) of the user who ran the automation.
-
currentStepName
The name of the step that is currently running.
- Returns:
- The name of the step that is currently running.
-
currentAction
The action of the step that is currently running.
- Returns:
- The action of the step that is currently running.
-
targetParameterName
-
hasTargets
public final boolean hasTargets()For responses, this returns true if the service returned a value for the Targets property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
targets
The specified targets.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasTargets()
method.- Returns:
- The specified targets.
-
hasTargetMaps
public final boolean hasTargetMaps()For responses, this returns true if the service returned a value for the TargetMaps property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
targetMaps
The specified key-value mapping of document parameters to target resources.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasTargetMaps()
method.- Returns:
- The specified key-value mapping of document parameters to target resources.
-
resolvedTargets
A list of resolved targets in the rate control execution.
- Returns:
- A list of resolved targets in the rate control execution.
-
maxConcurrency
The
MaxConcurrency
value specified by the user when the execution started.- Returns:
- The
MaxConcurrency
value specified by the user when the execution started.
-
maxErrors
The MaxErrors value specified by the user when the execution started.
- Returns:
- The MaxErrors value specified by the user when the execution started.
-
target
-
hasTargetLocations
public final boolean hasTargetLocations()For responses, this returns true if the service returned a value for the TargetLocations property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
targetLocations
The combination of Amazon Web Services Regions and/or Amazon Web Services accounts where you want to run the Automation.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasTargetLocations()
method.- Returns:
- The combination of Amazon Web Services Regions and/or Amazon Web Services accounts where you want to run the Automation.
-
progressCounters
An aggregate of step execution statuses displayed in the Amazon Web Services Systems Manager console for a multi-Region and multi-account Automation execution.
- Returns:
- An aggregate of step execution statuses displayed in the Amazon Web Services Systems Manager console for a multi-Region and multi-account Automation execution.
-
alarmConfiguration
The details for the CloudWatch alarm applied to your automation.
- Returns:
- The details for the CloudWatch alarm applied to your automation.
-
hasTriggeredAlarms
public final boolean hasTriggeredAlarms()For responses, this returns true if the service returned a value for the TriggeredAlarms property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
triggeredAlarms
The CloudWatch alarm that was invoked by the automation.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasTriggeredAlarms()
method.- Returns:
- The CloudWatch alarm that was invoked by the automation.
-
targetLocationsURL
A publicly accessible URL for a file that contains the
TargetLocations
body. Currently, only files in presigned Amazon S3 buckets are supported- Returns:
- A publicly accessible URL for a file that contains the
TargetLocations
body. Currently, only files in presigned Amazon S3 buckets are supported
-
automationSubtype
The subtype of the Automation operation. Currently, the only supported value is
ChangeRequest
.If the service returns an enum value that is not available in the current SDK version,
automationSubtype
will returnAutomationSubtype.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromautomationSubtypeAsString()
.- Returns:
- The subtype of the Automation operation. Currently, the only supported value is
ChangeRequest
. - See Also:
-
automationSubtypeAsString
The subtype of the Automation operation. Currently, the only supported value is
ChangeRequest
.If the service returns an enum value that is not available in the current SDK version,
automationSubtype
will returnAutomationSubtype.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromautomationSubtypeAsString()
.- Returns:
- The subtype of the Automation operation. Currently, the only supported value is
ChangeRequest
. - See Also:
-
scheduledTime
The date and time the Automation operation is scheduled to start.
- Returns:
- The date and time the Automation operation is scheduled to start.
-
hasRunbooks
public final boolean hasRunbooks()For responses, this returns true if the service returned a value for the Runbooks property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
runbooks
Information about the Automation runbooks that are run as part of a runbook workflow.
The Automation runbooks specified for the runbook workflow can't run until all required approvals for the change request have been received.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasRunbooks()
method.- Returns:
- Information about the Automation runbooks that are run as part of a runbook workflow.
The Automation runbooks specified for the runbook workflow can't run until all required approvals for the change request have been received.
-
opsItemId
The ID of an OpsItem that is created to represent a Change Manager change request.
- Returns:
- The ID of an OpsItem that is created to represent a Change Manager change request.
-
associationId
The ID of a State Manager association used in the Automation operation.
- Returns:
- The ID of a State Manager association used in the Automation operation.
-
changeRequestName
The name of the Change Manager change request.
- Returns:
- The name of the Change Manager change request.
-
hasVariables
public final boolean hasVariables()For responses, this returns true if the service returned a value for the Variables property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
variables
Variables defined for the automation.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasVariables()
method.- Returns:
- Variables defined for the automation.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<AutomationExecution.Builder,
AutomationExecution> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToField
in interfaceSdkPojo
- Returns:
- The mapping between the field name and its corresponding field.
-