class Amazonite::Ssm::Command

Overview

Describes a command request.

Included Modules

Defined in:

ssm/command.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]
def self.new(command_id : String | Nil = nil, document_name : String | Nil = nil, document_version : String | Nil = nil, comment : String | Nil = nil, expires_after : Time | Nil = nil, parameters : Hash(String, Array(String)) | Nil = nil, instance_ids : Array(String) | Nil = nil, targets : Array(Target) | Nil = nil, requested_date_time : Time | Nil = nil, status : CommandStatus | Nil = nil, status_details : String | Nil = nil, output_s3_region : String | Nil = nil, output_s3_bucket_name : String | Nil = nil, output_s3_key_prefix : String | Nil = nil, max_concurrency : String | Nil = nil, max_errors : String | Nil = nil, target_count : Int32 | Nil = nil, completed_count : Int32 | Nil = nil, error_count : Int32 | Nil = nil, delivery_timed_out_count : Int32 | Nil = nil, service_role : String | Nil = nil, notification_config : NotificationConfig | Nil = nil, cloud_watch_output_config : CloudWatchOutputConfig | Nil = nil, timeout_seconds : Int32 | Nil = nil, alarm_configuration : AlarmConfiguration | Nil = nil, triggered_alarms : Array(AlarmStateInformation) | Nil = nil) #

[View source]
def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

[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 alarm_configuration : AlarmConfiguration | Nil #

The details for the CloudWatch alarm applied to your command.


[View source]
def alarm_configuration=(alarm_configuration : AlarmConfiguration | Nil) #

The details for the CloudWatch alarm applied to your command.


[View source]
def cloud_watch_output_config : CloudWatchOutputConfig | Nil #

Amazon CloudWatch Logs information where you want Amazon Web Services Systems Manager to send the command output.


[View source]
def cloud_watch_output_config=(cloud_watch_output_config : CloudWatchOutputConfig | Nil) #

Amazon CloudWatch Logs information where you want Amazon Web Services Systems Manager to send the command output.


[View source]
def command_id : String | Nil #

A unique identifier for this command.


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

A unique identifier for this command.


[View source]
def comment : String | Nil #

User-specified information about the command, such as a brief description of what the command should do.


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

User-specified information about the command, such as a brief description of what the command should do.


[View source]
def completed_count : Int32 | Nil #

The number of targets for which the command invocation reached a terminal state. Terminal states include the following: Success, Failed, Execution Timed Out, Delivery Timed Out, Cancelled, Terminated, or Undeliverable.


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

The number of targets for which the command invocation reached a terminal state. Terminal states include the following: Success, Failed, Execution Timed Out, Delivery Timed Out, Cancelled, Terminated, or Undeliverable.


[View source]
def delivery_timed_out_count : Int32 | Nil #

The number of targets for which the status is Delivery Timed Out.


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

The number of targets for which the status is Delivery Timed Out.


[View source]
def document_name : String | Nil #

The name of the document requested for execution.


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

The name of the document requested for execution.


[View source]
def document_version : String | Nil #

The Systems Manager document (SSM document) version.


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

The Systems Manager document (SSM document) version.


[View source]
def error_count : Int32 | Nil #

The number of targets for which the status is Failed or Execution Timed Out.


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

The number of targets for which the status is Failed or Execution Timed Out.


[View source]
def expires_after : Time | Nil #

If a command expires, it changes status to DeliveryTimedOut for all invocations that have the status InProgress, Pending, or Delayed. ExpiresAfter is calculated based on the total timeout for the overall command. For more information, see Understanding command timeout values in the Amazon Web Services Systems Manager User Guide.


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

If a command expires, it changes status to DeliveryTimedOut for all invocations that have the status InProgress, Pending, or Delayed. ExpiresAfter is calculated based on the total timeout for the overall command. For more information, see Understanding command timeout values in the Amazon Web Services Systems Manager User Guide.


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

See Object#hash(hasher)


def instance_ids : Array(String) | Nil #

The managed node IDs against which this command was requested.


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

The managed node IDs against which this command was requested.


[View source]
def max_concurrency : String | Nil #

The maximum number of managed nodes that are allowed to run the command at the same time. You can specify a number of managed nodes, such as 10, or a percentage of nodes, such as 10%. The default value is 50. For more information about how to use MaxConcurrency, see Amazon Web Services Systems Manager Run Command in the Amazon Web Services Systems Manager User Guide.


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

The maximum number of managed nodes that are allowed to run the command at the same time. You can specify a number of managed nodes, such as 10, or a percentage of nodes, such as 10%. The default value is 50. For more information about how to use MaxConcurrency, see Amazon Web Services Systems Manager Run Command in the Amazon Web Services Systems Manager User Guide.


[View source]
def max_errors : String | Nil #

The maximum number of errors allowed before the system stops sending the command to additional targets. You can specify a number of errors, such as 10, or a percentage or errors, such as 10%. The default value is 0. For more information about how to use MaxErrors, see Amazon Web Services Systems Manager Run Command in the Amazon Web Services Systems Manager User Guide.


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

The maximum number of errors allowed before the system stops sending the command to additional targets. You can specify a number of errors, such as 10, or a percentage or errors, such as 10%. The default value is 0. For more information about how to use MaxErrors, see Amazon Web Services Systems Manager Run Command in the Amazon Web Services Systems Manager User Guide.


[View source]
def notification_config : NotificationConfig | Nil #

Configurations for sending notifications about command status changes.


[View source]
def notification_config=(notification_config : NotificationConfig | Nil) #

Configurations for sending notifications about command status changes.


[View source]
def output_s3_bucket_name : String | Nil #

The S3 bucket where the responses to the command executions should be stored. This was requested when issuing the command.


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

The S3 bucket where the responses to the command executions should be stored. This was requested when issuing the command.


[View source]
def output_s3_key_prefix : String | Nil #

The S3 directory path inside the bucket where the responses to the command executions should be stored. This was requested when issuing the command.


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

The S3 directory path inside the bucket where the responses to the command executions should be stored. This was requested when issuing the command.


[View source]
def output_s3_region : String | Nil #

(Deprecated) You can no longer specify this parameter. The system ignores it. Instead, Systems Manager automatically determines the Amazon Web Services Region of the S3 bucket.


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

(Deprecated) You can no longer specify this parameter. The system ignores it. Instead, Systems Manager automatically determines the Amazon Web Services Region of the S3 bucket.


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

The parameter values to be inserted in the document when running the command.


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

The parameter values to be inserted in the document when running the command.


[View source]
def requested_date_time : Time | Nil #

The date and time the command was requested.


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

The date and time the command was requested.


[View source]
def service_role : String | Nil #

The Identity and Access Management (IAM) service role that Run Command, a tool in Amazon Web Services Systems Manager, uses to act on your behalf when sending notifications about command status changes.


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

The Identity and Access Management (IAM) service role that Run Command, a tool in Amazon Web Services Systems Manager, uses to act on your behalf when sending notifications about command status changes.


[View source]
def status : CommandStatus | Nil #

The status of the command.


[View source]
def status=(status : CommandStatus | Nil) #

The status of the command.


[View source]
def status_details : String | Nil #

A detailed status of the command execution. StatusDetails includes more information than Status because it includes states resulting from error and concurrency control parameters. StatusDetails can show different results than Status. For more information about these statuses, see Understanding command statuses in the Amazon Web Services Systems Manager User Guide. StatusDetails can be one of the following values:

  • Pending: The command hasn't been sent to any managed nodes.

  • In Progress: The command has been sent to at least one managed node but hasn't reached a final state on all managed nodes.

  • Success: The command successfully ran on all invocations. This is a terminal state.

  • Delivery Timed Out: The value of MaxErrors or more command invocations shows a status of Delivery Timed Out. This is a terminal state.

  • Execution Timed Out: The value of MaxErrors or more command invocations shows a status of Execution Timed Out. This is a terminal state.

  • Failed: The value of MaxErrors or more command invocations shows a status of Failed. This is a terminal state.

  • Incomplete: The command was attempted on all managed nodes and one or more invocations doesn't have a value of Success but not enough invocations failed for the status to be Failed. This is a terminal state.

  • Cancelled: The command was terminated before it was completed. This is a terminal state.

  • Rate Exceeded: The number of managed nodes targeted by the command exceeded the account limit for pending invocations. The system has canceled the command before running it on any managed node. This is a terminal state.

  • Delayed: The system attempted to send the command to the managed node but wasn't successful. The system retries again.


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

A detailed status of the command execution. StatusDetails includes more information than Status because it includes states resulting from error and concurrency control parameters. StatusDetails can show different results than Status. For more information about these statuses, see Understanding command statuses in the Amazon Web Services Systems Manager User Guide. StatusDetails can be one of the following values:

  • Pending: The command hasn't been sent to any managed nodes.

  • In Progress: The command has been sent to at least one managed node but hasn't reached a final state on all managed nodes.

  • Success: The command successfully ran on all invocations. This is a terminal state.

  • Delivery Timed Out: The value of MaxErrors or more command invocations shows a status of Delivery Timed Out. This is a terminal state.

  • Execution Timed Out: The value of MaxErrors or more command invocations shows a status of Execution Timed Out. This is a terminal state.

  • Failed: The value of MaxErrors or more command invocations shows a status of Failed. This is a terminal state.

  • Incomplete: The command was attempted on all managed nodes and one or more invocations doesn't have a value of Success but not enough invocations failed for the status to be Failed. This is a terminal state.

  • Cancelled: The command was terminated before it was completed. This is a terminal state.

  • Rate Exceeded: The number of managed nodes targeted by the command exceeded the account limit for pending invocations. The system has canceled the command before running it on any managed node. This is a terminal state.

  • Delayed: The system attempted to send the command to the managed node but wasn't successful. The system retries again.


[View source]
def target_count : Int32 | Nil #

The number of targets for the command.


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

The number of targets for the command.


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

An array of search criteria that targets managed nodes using a Key,Value combination that you specify. Targets is required if you don't provide one or more managed node IDs in the call.


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

An array of search criteria that targets managed nodes using a Key,Value combination that you specify. Targets is required if you don't provide one or more managed node IDs in the call.


[View source]
def timeout_seconds : Int32 | Nil #

The TimeoutSeconds value specified for a command.


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

The TimeoutSeconds value specified for a command.


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

The CloudWatch alarm that was invoked by the command.


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

The CloudWatch alarm that was invoked by the command.


[View source]
def validate! : Nil #

[View source]