#[non_exhaustive]pub struct Builder { /* private fields */ }
Expand description
A builder for Command
Implementations
A unique identifier for this command.
A unique identifier for this command.
The name of the document requested for execution.
The name of the document requested for execution.
The Systems Manager document (SSM document) version.
The Systems Manager document (SSM document) version.
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.
If this time is reached and the command hasn't already started running, it won't run. Calculated based on the ExpiresAfter
user input provided as part of the SendCommand
API operation.
If this time is reached and the command hasn't already started running, it won't run. Calculated based on the ExpiresAfter
user input provided as part of the SendCommand
API operation.
Adds a key-value pair to parameters
.
To override the contents of this collection use set_parameters
.
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.
Appends an item to instance_ids
.
To override the contents of this collection use set_instance_ids
.
The managed node IDs against which this command was requested.
The managed node IDs against which this command was requested.
Appends an item to targets
.
To override the contents of this collection use set_targets
.
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 date and time the command was requested.
The date and time the command was requested.
The status of the command.
The status of the command.
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.
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.
(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 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.
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 Running commands using 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 Running commands using 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 Running commands using 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 Running commands using Systems Manager Run Command in the Amazon Web Services Systems Manager User Guide.
The number of targets for the command.
The number of targets for the command.
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 Failed or Execution Timed Out.
The number of targets for which the status is Failed or Execution Timed Out.
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 Identity and Access Management (IAM) service role that Run Command, a capability of 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 capability of Amazon Web Services Systems Manager, uses to act on your behalf when sending notifications about command status changes.
Configurations for sending notifications about command status changes.
Configurations for sending notifications about command status changes.
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.
The TimeoutSeconds
value specified for a command.
The TimeoutSeconds
value specified for a command.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl UnwindSafe for Builder
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more