@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) |
boolean |
equalsBySdkFields(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() |
boolean |
hasInputs()
Returns true if the Inputs property was specified by the sender (it may be empty), or false if the sender did not
specify the value (it will be empty).
|
boolean |
hasOutputs()
Returns true if the Outputs property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
boolean |
hasOverriddenParameters()
Returns true if the OverriddenParameters property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
boolean |
hasTargets()
Returns true if the Targets property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
boolean |
hasValidNextSteps()
Returns true if the ValidNextSteps property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
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 running 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() |
String |
toString()
Returns a string representation of this object.
|
List<String> |
validNextSteps()
Strategies used when step fails, we support Continue and Abort.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
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.
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.
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 boolean hasInputs()
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.
You can use hasInputs()
to see if a value was sent in this field.
public boolean hasOutputs()
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.
You can use hasOutputs()
to see if a value was sent in this field.
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 boolean hasOverriddenParameters()
public Map<String,List<String>> overriddenParameters()
A user-specified list of parameters to override when running a step.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasOverriddenParameters()
to see if a value was sent in this field.
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 boolean hasValidNextSteps()
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 run 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.
You can use hasValidNextSteps()
to see if a value was sent in this field.
public boolean hasTargets()
public List<Target> targets()
The targets for the step execution.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasTargets()
to see if a value was sent in this field.
public TargetLocation targetLocation()
The combination of AWS Regions and accounts targeted by the current Automation execution.
public StepExecution.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<StepExecution.Builder,StepExecution>
public static StepExecution.Builder builder()
public static Class<? extends StepExecution.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public String toString()
Copyright © 2020. All rights reserved.