class
Amazonite::Ssm::Command
- Amazonite::Ssm::Command
- Reference
- Object
Overview
Describes a command request.
Included Modules
- JSON::Serializable
Defined in:
ssm/command.crConstructors
- .new(pull : JSON::PullParser)
- .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)
Instance Method Summary
-
#==(other : self)
Returns
trueif this reference is the same as other. -
#alarm_configuration : AlarmConfiguration | Nil
The details for the CloudWatch alarm applied to your command.
-
#alarm_configuration=(alarm_configuration : AlarmConfiguration | Nil)
The details for the CloudWatch alarm applied to your command.
-
#cloud_watch_output_config : CloudWatchOutputConfig | Nil
Amazon CloudWatch Logs information where you want Amazon Web Services Systems Manager to send the command output.
-
#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.
-
#command_id : String | Nil
A unique identifier for this command.
-
#command_id=(command_id : String | Nil)
A unique identifier for this command.
-
#comment : String | Nil
User-specified information about the command, such as a brief description of what the command should do.
-
#comment=(comment : String | Nil)
User-specified information about the command, such as a brief description of what the command should do.
-
#completed_count : Int32 | Nil
The number of targets for which the command invocation reached a terminal state.
-
#completed_count=(completed_count : Int32 | Nil)
The number of targets for which the command invocation reached a terminal state.
-
#delivery_timed_out_count : Int32 | Nil
The number of targets for which the status is Delivery Timed Out.
-
#delivery_timed_out_count=(delivery_timed_out_count : Int32 | Nil)
The number of targets for which the status is Delivery Timed Out.
-
#document_name : String | Nil
The name of the document requested for execution.
-
#document_name=(document_name : String | Nil)
The name of the document requested for execution.
-
#document_version : String | Nil
The Systems Manager document (SSM document) version.
-
#document_version=(document_version : String | Nil)
The Systems Manager document (SSM document) version.
-
#error_count : Int32 | Nil
The number of targets for which the status is Failed or Execution Timed Out.
-
#error_count=(error_count : Int32 | Nil)
The number of targets for which the status is Failed or Execution Timed Out.
-
#expires_after : Time | Nil
If a command expires, it changes status to
DeliveryTimedOutfor all invocations that have the statusInProgress,Pending, orDelayed. -
#expires_after=(expires_after : Time | Nil)
If a command expires, it changes status to
DeliveryTimedOutfor all invocations that have the statusInProgress,Pending, orDelayed. -
#hash(hasher)
See
Object#hash(hasher) -
#instance_ids : Array(String) | Nil
The managed node IDs against which this command was requested.
-
#instance_ids=(instance_ids : Array(String) | Nil)
The managed node IDs against which this command was requested.
-
#max_concurrency : String | Nil
The maximum number of managed nodes that are allowed to run the command at the same time.
-
#max_concurrency=(max_concurrency : String | Nil)
The maximum number of managed nodes that are allowed to run the command at the same time.
-
#max_errors : String | Nil
The maximum number of errors allowed before the system stops sending the command to additional targets.
-
#max_errors=(max_errors : String | Nil)
The maximum number of errors allowed before the system stops sending the command to additional targets.
-
#notification_config : NotificationConfig | Nil
Configurations for sending notifications about command status changes.
-
#notification_config=(notification_config : NotificationConfig | Nil)
Configurations for sending notifications about command status changes.
-
#output_s3_bucket_name : String | Nil
The S3 bucket where the responses to the command executions should be stored.
-
#output_s3_bucket_name=(output_s3_bucket_name : String | Nil)
The S3 bucket where the responses to the command executions should be stored.
-
#output_s3_key_prefix : String | Nil
The S3 directory path inside the bucket where the responses to the command executions should be stored.
-
#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.
-
#output_s3_region : String | Nil
(Deprecated) You can no longer specify this parameter.
-
#output_s3_region=(output_s3_region : String | Nil)
(Deprecated) You can no longer specify this parameter.
-
#parameters : Hash(String, Array(String)) | Nil
The parameter values to be inserted in the document when running the command.
-
#parameters=(parameters : Hash(String, Array(String)) | Nil)
The parameter values to be inserted in the document when running the command.
-
#requested_date_time : Time | Nil
The date and time the command was requested.
-
#requested_date_time=(requested_date_time : Time | Nil)
The date and time the command was requested.
-
#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.
-
#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.
-
#status : CommandStatus | Nil
The status of the command.
-
#status=(status : CommandStatus | Nil)
The status of the command.
-
#status_details : String | Nil
A detailed status of the command execution.
-
#status_details=(status_details : String | Nil)
A detailed status of the command execution.
-
#target_count : Int32 | Nil
The number of targets for the command.
-
#target_count=(target_count : Int32 | Nil)
The number of targets for the command.
-
#targets : Array(Target) | Nil
An array of search criteria that targets managed nodes using a Key,Value combination that you specify.
-
#targets=(targets : Array(Target) | Nil)
An array of search criteria that targets managed nodes using a Key,Value combination that you specify.
-
#timeout_seconds : Int32 | Nil
The
TimeoutSecondsvalue specified for a command. -
#timeout_seconds=(timeout_seconds : Int32 | Nil)
The
TimeoutSecondsvalue specified for a command. -
#triggered_alarms : Array(AlarmStateInformation) | Nil
The CloudWatch alarm that was invoked by the command.
-
#triggered_alarms=(triggered_alarms : Array(AlarmStateInformation) | Nil)
The CloudWatch alarm that was invoked by the command.
- #validate! : Nil
Constructor Detail
Instance Method Detail
Returns true if this reference is the same as other. Invokes same?.
The details for the CloudWatch alarm applied to your command.
The details for the CloudWatch alarm applied to your command.
Amazon CloudWatch Logs information where you want Amazon Web Services Systems Manager to send the command output.
Amazon CloudWatch Logs information where you want Amazon Web Services Systems Manager to send the command output.
User-specified information about the command, such as a brief description of what the command should do.
User-specified information about the command, such as a brief description of what the command should do.
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.
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.
The number of targets for which the status is Delivery Timed Out.
The number of targets for which the status is Delivery Timed Out.
The name of the document requested for execution.
The Systems Manager document (SSM document) version.
The number of targets for which the status is Failed or Execution Timed Out.
The number of targets for which the status is Failed or Execution Timed Out.
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.
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.
The managed node IDs against which this command was requested.
The managed node IDs against which this command was requested.
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.
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.
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.
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.
Configurations for sending notifications about command status changes.
Configurations for sending notifications about command status changes.
The S3 bucket where the responses to the command executions should be stored. This was requested when issuing the command.
The S3 bucket where the responses to the command executions should be stored. This was requested when issuing the command.
The S3 directory path inside the bucket where the responses to the command executions should be stored. This was requested when issuing the command.
The S3 directory path inside the bucket where the responses to the command executions should be stored. This was requested when issuing the command.
(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.
(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.
The parameter values to be inserted in the document when running the command.
The parameter values to be inserted in the document when running the command.
The date and time the command was requested.
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.
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.
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.
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.
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.
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.
The TimeoutSeconds value specified for a command.
The CloudWatch alarm that was invoked by the command.
The CloudWatch alarm that was invoked by the command.