class Amazonite::Ssm::StepExecution

Overview

Detailed information about an the execution state of an Automation step.

Included Modules

Defined in:

ssm/step_execution.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(step_name : String | Nil = nil, action : String | Nil = nil, timeout_seconds : Int64 | Nil = nil, on_failure : String | Nil = nil, max_attempts : Int32 | Nil = nil, execution_start_time : Time | Nil = nil, execution_end_time : Time | Nil = nil, step_status : AutomationExecutionStatus | Nil = nil, response_code : String | Nil = nil, inputs : Hash(String, String) | Nil = nil, outputs : Hash(String, Array(String)) | Nil = nil, response : String | Nil = nil, failure_message : String | Nil = nil, warning_message : String | Nil = nil, failure_details : FailureDetails | Nil = nil, step_execution_id : String | Nil = nil, overridden_parameters : Hash(String, Array(String)) | Nil = nil, is_end : Bool | Nil = nil, next_step : String | Nil = nil, is_critical : Bool | Nil = nil, valid_next_steps : Array(String) | Nil = nil, targets : Array(Target) | Nil = nil, target_location : TargetLocation | Nil = nil, triggered_alarms : Array(AlarmStateInformation) | Nil = nil, parent_step_details : ParentStepDetails | Nil = nil) #

[View source]

Instance Method Detail

def ==(other : self) #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


def action : String | Nil #

The action this step performs. The action determines the behavior of the step.


[View source]
def action=(action : String | Nil) #

The action this step performs. The action determines the behavior of the step.


[View source]
def execution_end_time : Time | Nil #

If a step has finished execution, this contains the time the execution ended. If the step hasn't yet concluded, this field isn't populated.


[View source]
def execution_end_time=(execution_end_time : Time | Nil) #

If a step has finished execution, this contains the time the execution ended. If the step hasn't yet concluded, this field isn't populated.


[View source]
def execution_start_time : Time | Nil #

If a step has begun execution, this contains the time the step started. If the step is in Pending status, this field isn't populated.


[View source]
def execution_start_time=(execution_start_time : Time | Nil) #

If a step has begun execution, this contains the time the step started. If the step is in Pending status, this field isn't populated.


[View source]
def failure_details : FailureDetails | Nil #

Information about the Automation failure.


[View source]
def failure_details=(failure_details : FailureDetails | Nil) #

Information about the Automation failure.


[View source]
def failure_message : String | Nil #

If a step failed, this message explains why the execution failed.


[View source]
def failure_message=(failure_message : String | Nil) #

If a step failed, this message explains why the execution failed.


[View source]
def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def inputs : Hash(String, String) | Nil #

Fully-resolved values passed into the step before execution.


[View source]
def inputs=(inputs : Hash(String, String) | Nil) #

Fully-resolved values passed into the step before execution.


[View source]
def is_critical : Bool | Nil #

The flag which can be used to help decide whether the failure of current step leads to the Automation failure.


[View source]
def is_critical=(is_critical : Bool | Nil) #

The flag which can be used to help decide whether the failure of current step leads to the Automation failure.


[View source]
def is_end : Bool | Nil #

The flag which can be used to end automation no matter whether the step succeeds or fails.


[View source]
def is_end=(is_end : Bool | Nil) #

The flag which can be used to end automation no matter whether the step succeeds or fails.


[View source]
def max_attempts : Int32 | Nil #

The maximum number of tries to run the action of the step. The default value is 1.


[View source]
def max_attempts=(max_attempts : Int32 | Nil) #

The maximum number of tries to run the action of the step. The default value is 1.


[View source]
def next_step : String | Nil #

The next step after the step succeeds.


[View source]
def next_step=(next_step : String | Nil) #

The next step after the step succeeds.


[View source]
def on_failure : String | Nil #

The action to take if the step fails. The default value is Abort.


[View source]
def on_failure=(on_failure : String | Nil) #

The action to take if the step fails. The default value is Abort.


[View source]
def outputs : Hash(String, Array(String)) | Nil #

Returned values from the execution of the step.


[View source]
def outputs=(outputs : Hash(String, Array(String)) | Nil) #

Returned values from the execution of the step.


[View source]
def overridden_parameters : Hash(String, Array(String)) | Nil #

A user-specified list of parameters to override when running a step.


[View source]
def overridden_parameters=(overridden_parameters : Hash(String, Array(String)) | Nil) #

A user-specified list of parameters to override when running a step.


[View source]
def parent_step_details : ParentStepDetails | Nil #

Information about the parent step.


[View source]
def parent_step_details=(parent_step_details : ParentStepDetails | Nil) #

Information about the parent step.


[View source]
def response : String | Nil #

A message associated with the response code for an execution.


[View source]
def response=(response : String | Nil) #

A message associated with the response code for an execution.


[View source]
def response_code : String | Nil #

The response code returned by the execution of the step.


[View source]
def response_code=(response_code : String | Nil) #

The response code returned by the execution of the step.


[View source]
def step_execution_id : String | Nil #

The unique ID of a step execution.


[View source]
def step_execution_id=(step_execution_id : String | Nil) #

The unique ID of a step execution.


[View source]
def step_name : String | Nil #

The name of this execution step.


[View source]
def step_name=(step_name : String | Nil) #

The name of this execution step.


[View source]
def step_status : AutomationExecutionStatus | Nil #

The execution status for this step.


[View source]
def step_status=(step_status : AutomationExecutionStatus | Nil) #

The execution status for this step.


[View source]
def target_location : TargetLocation | Nil #

The combination of Amazon Web Services Regions and Amazon Web Services accounts targeted by the current Automation execution.


[View source]
def target_location=(target_location : TargetLocation | Nil) #

The combination of Amazon Web Services Regions and Amazon Web Services accounts targeted by the current Automation execution.


[View source]
def targets : Array(Target) | Nil #

The targets for the step execution.


[View source]
def targets=(targets : Array(Target) | Nil) #

The targets for the step execution.


[View source]
def timeout_seconds : Int64 | Nil #

The timeout seconds of the step.


[View source]
def timeout_seconds=(timeout_seconds : Int64 | Nil) #

The timeout seconds of the step.


[View source]
def triggered_alarms : Array(AlarmStateInformation) | Nil #

The CloudWatch alarms that were invoked by the automation.


[View source]
def triggered_alarms=(triggered_alarms : Array(AlarmStateInformation) | Nil) #

The CloudWatch alarms that were invoked by the automation.


[View source]
def valid_next_steps : Array(String) | Nil #

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.


[View source]
def valid_next_steps=(valid_next_steps : Array(String) | Nil) #

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.


[View source]
def validate! : Nil #

[View source]
def warning_message : String | Nil #

A message that describes a non-critical issue that occurred during the step execution. Present only if the step status includes a warning.


[View source]
def warning_message=(warning_message : String | Nil) #

A message that describes a non-critical issue that occurred during the step execution. Present only if the step status includes a warning.


[View source]