You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::SSM::Types::Command

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Describes a command request.

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#cloud_watch_output_configTypes::CloudWatchOutputConfig

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

Returns:

#command_idString

A unique identifier for this command.

Returns:

  • (String)

    A unique identifier for this command.

#commentString

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

Returns:

  • (String)

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

#completed_countInteger

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, Canceled, Terminated, or Undeliverable.

Returns:

  • (Integer)

    The number of targets for which the command invocation reached a terminal state.

#delivery_timed_out_countInteger

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

Returns:

  • (Integer)

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

#document_nameString

The name of the document requested for execution.

Returns:

  • (String)

    The name of the document requested for execution.

#document_versionString

The SSM document version.

Returns:

  • (String)

    The SSM document version.

#error_countInteger

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

Returns:

  • (Integer)

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

#expires_afterTime

If this time is reached and the command has not already started running, it will not run. Calculated based on the ExpiresAfter user input provided as part of the SendCommand API.

Returns:

  • (Time)

    If this time is reached and the command has not already started running, it will not run.

#instance_idsArray<String>

The instance IDs against which this command was requested.

Returns:

  • (Array<String>)

    The instance IDs against which this command was requested.

#max_concurrencyString

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

Returns:

  • (String)

    The maximum number of instances that are allowed to run the command at the same time.

#max_errorsString

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 Running commands using Systems Manager Run Command in the AWS Systems Manager User Guide.

Returns:

  • (String)

    The maximum number of errors allowed before the system stops sending the command to additional targets.

#notification_configTypes::NotificationConfig

Configurations for sending notifications about command status changes.

Returns:

#output_s3_bucket_nameString

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

Returns:

  • (String)

    The S3 bucket where the responses to the command executions should be stored.

#output_s3_key_prefixString

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

Returns:

  • (String)

    The S3 directory path inside the bucket where the responses to the command executions should be stored.

#output_s3_regionString

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

Returns:

  • (String)

    (Deprecated) You can no longer specify this parameter.

#parametersHash<String,Array<String>>

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

Returns:

  • (Hash<String,Array<String>>)

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

#requested_date_timeTime

The date and time the command was requested.

Returns:

  • (Time)

    The date and time the command was requested.

#service_roleString

The IAM service role that Run Command uses to act on your behalf when sending notifications about command status changes.

Returns:

  • (String)

    The IAM service role that Run Command uses to act on your behalf when sending notifications about command status changes.

#statusString

The status of the command.

Possible values:

  • Pending
  • InProgress
  • Success
  • Cancelled
  • Failed
  • TimedOut
  • Cancelling

Returns:

  • (String)

    The status of the command.

#status_detailsString

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 AWS Systems Manager User Guide. StatusDetails can be one of the following values:

  • Pending: The command has not been sent to any instances.

  • In Progress: The command has been sent to at least one instance but has not reached a final state on all instances.

  • 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 instances and one or more invocations does not have a value of Success but not enough invocations failed for the status to be Failed. This is a terminal state.

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

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

Returns:

  • (String)

    A detailed status of the command execution.

#target_countInteger

The number of targets for the command.

Returns:

  • (Integer)

    The number of targets for the command.

#targetsArray<Types::Target>

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

Returns:

  • (Array<Types::Target>)

    An array of search criteria that targets instances using a Key,Value combination that you specify.

#timeout_secondsInteger

The TimeoutSeconds value specified for a command.

Returns:

  • (Integer)

    The TimeoutSeconds value specified for a command.