@Generated(value="software.amazon.awssdk:codegen") public final class StepExecution extends Object implements SdkPojo, Serializable, ToCopyableBuilder<StepExecution.Builder,StepExecution>
Detailed information about an the execution state of an Automation step.
Modifier and Type | Class and Description |
---|---|
static interface |
StepExecution.Builder |
Modifier and Type | Method and Description |
---|---|
String |
action()
The action this step performs.
|
static StepExecution.Builder |
builder() |
boolean |
equals(Object obj) |
Instant |
executionEndTime()
If a step has finished execution, this contains the time the execution ended.
|
Instant |
executionStartTime()
If a step has begun execution, this contains the time the step started.
|
FailureDetails |
failureDetails()
Information about the Automation failure.
|
String |
failureMessage()
If a step failed, this message explains why the execution failed.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Map<String,String> |
inputs()
Fully-resolved values passed into the step before execution.
|
Boolean |
isCritical()
The flag which can be used to help decide whether the failure of current step leads to the Automation failure.
|
Boolean |
isEnd()
The flag which can be used to end automation no matter whether the step succeeds or fails.
|
Integer |
maxAttempts()
The maximum number of tries to run the action of the step.
|
String |
nextStep()
The next step after the step succeeds.
|
String |
onFailure()
The action to take if the step fails.
|
Map<String,List<String>> |
outputs()
Returned values from the execution of the step.
|
Map<String,List<String>> |
overriddenParameters()
A user-specified list of parameters to override when executing a step.
|
String |
response()
A message associated with the response code for an execution.
|
String |
responseCode()
The response code returned by the execution of the step.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends StepExecution.Builder> |
serializableBuilderClass() |
String |
stepExecutionId()
The unique ID of a step execution.
|
String |
stepName()
The name of this execution step.
|
AutomationExecutionStatus |
stepStatus()
The execution status for this step.
|
String |
stepStatusAsString()
The execution status for this step.
|
TargetLocation |
targetLocation()
The combination of AWS Regions and accounts targeted by the current Automation execution.
|
List<Target> |
targets()
The targets for the step execution.
|
Long |
timeoutSeconds()
The timeout seconds of the step.
|
StepExecution.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
List<String> |
validNextSteps()
Strategies used when step fails, we support Continue and Abort.
|
copy
public String stepName()
The name of this execution step.
public String action()
The action this step performs. The action determines the behavior of the step.
public Long timeoutSeconds()
The timeout seconds of the step.
public String onFailure()
The action to take if the step fails. The default value is Abort.
public Integer maxAttempts()
The maximum number of tries to run the action of the step. The default value is 1.
public Instant executionStartTime()
If a step has begun execution, this contains the time the step started. If the step is in Pending status, this field is not populated.
public Instant executionEndTime()
If a step has finished execution, this contains the time the execution ended. If the step has not yet concluded, this field is not populated.
public AutomationExecutionStatus stepStatus()
The execution status for this step. Valid values include: Pending, InProgress, Success, Cancelled, Failed, and TimedOut.
If the service returns an enum value that is not available in the current SDK version, stepStatus
will
return AutomationExecutionStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is
available from stepStatusAsString()
.
AutomationExecutionStatus
public String stepStatusAsString()
The execution status for this step. Valid values include: Pending, InProgress, Success, Cancelled, Failed, and TimedOut.
If the service returns an enum value that is not available in the current SDK version, stepStatus
will
return AutomationExecutionStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is
available from stepStatusAsString()
.
AutomationExecutionStatus
public String responseCode()
The response code returned by the execution of the step.
public Map<String,String> inputs()
Fully-resolved values passed into the step before execution.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public Map<String,List<String>> outputs()
Returned values from the execution of the step.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public String response()
A message associated with the response code for an execution.
public String failureMessage()
If a step failed, this message explains why the execution failed.
public FailureDetails failureDetails()
Information about the Automation failure.
public String stepExecutionId()
The unique ID of a step execution.
public Map<String,List<String>> overriddenParameters()
A user-specified list of parameters to override when executing a step.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public Boolean isEnd()
The flag which can be used to end automation no matter whether the step succeeds or fails.
public String nextStep()
The next step after the step succeeds.
public Boolean isCritical()
The flag which can be used to help decide whether the failure of current step leads to the Automation failure.
public List<String> validNextSteps()
Strategies used when step fails, we support Continue and Abort. Abort will fail the automation when the step fails. Continue will ignore the failure of current step and allow automation to execute the next step. With conditional branching, we add step:stepName to support the automation to go to another specific step.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public List<Target> targets()
The targets for the step execution.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public TargetLocation targetLocation()
The combination of AWS Regions and accounts targeted by the current Automation execution.
public StepExecution.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<StepExecution.Builder,StepExecution>
public static StepExecution.Builder builder()
public static Class<? extends StepExecution.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.