Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data Command = Command' {
- status :: Maybe CommandStatus
- expiresAfter :: Maybe POSIX
- notificationConfig :: Maybe NotificationConfig
- targetCount :: Maybe Int
- cloudWatchOutputConfig :: Maybe CloudWatchOutputConfig
- deliveryTimedOutCount :: Maybe Int
- outputS3KeyPrefix :: Maybe Text
- documentName :: Maybe Text
- errorCount :: Maybe Int
- statusDetails :: Maybe Text
- maxErrors :: Maybe Text
- instanceIds :: Maybe [Text]
- outputS3Region :: Maybe Text
- targets :: Maybe [Target]
- commandId :: Maybe Text
- parameters :: Maybe (HashMap Text [Text])
- documentVersion :: Maybe Text
- timeoutSeconds :: Maybe Natural
- comment :: Maybe Text
- completedCount :: Maybe Int
- outputS3BucketName :: Maybe Text
- maxConcurrency :: Maybe Text
- requestedDateTime :: Maybe POSIX
- serviceRole :: Maybe Text
- newCommand :: Command
- command_status :: Lens' Command (Maybe CommandStatus)
- command_expiresAfter :: Lens' Command (Maybe UTCTime)
- command_notificationConfig :: Lens' Command (Maybe NotificationConfig)
- command_targetCount :: Lens' Command (Maybe Int)
- command_cloudWatchOutputConfig :: Lens' Command (Maybe CloudWatchOutputConfig)
- command_deliveryTimedOutCount :: Lens' Command (Maybe Int)
- command_outputS3KeyPrefix :: Lens' Command (Maybe Text)
- command_documentName :: Lens' Command (Maybe Text)
- command_errorCount :: Lens' Command (Maybe Int)
- command_statusDetails :: Lens' Command (Maybe Text)
- command_maxErrors :: Lens' Command (Maybe Text)
- command_instanceIds :: Lens' Command (Maybe [Text])
- command_outputS3Region :: Lens' Command (Maybe Text)
- command_targets :: Lens' Command (Maybe [Target])
- command_commandId :: Lens' Command (Maybe Text)
- command_parameters :: Lens' Command (Maybe (HashMap Text [Text]))
- command_documentVersion :: Lens' Command (Maybe Text)
- command_timeoutSeconds :: Lens' Command (Maybe Natural)
- command_comment :: Lens' Command (Maybe Text)
- command_completedCount :: Lens' Command (Maybe Int)
- command_outputS3BucketName :: Lens' Command (Maybe Text)
- command_maxConcurrency :: Lens' Command (Maybe Text)
- command_requestedDateTime :: Lens' Command (Maybe UTCTime)
- command_serviceRole :: Lens' Command (Maybe Text)
Documentation
Describes a command request.
See: newCommand
smart constructor.
Command' | |
|
Instances
newCommand :: Command Source #
Create a value of Command
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:status:Command'
, command_status
- The status of the command.
$sel:expiresAfter:Command'
, command_expiresAfter
- 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.
$sel:notificationConfig:Command'
, command_notificationConfig
- Configurations for sending notifications about command status changes.
$sel:targetCount:Command'
, command_targetCount
- The number of targets for the command.
$sel:cloudWatchOutputConfig:Command'
, command_cloudWatchOutputConfig
- Amazon CloudWatch Logs information where you want Amazon Web Services
Systems Manager to send the command output.
$sel:deliveryTimedOutCount:Command'
, command_deliveryTimedOutCount
- The number of targets for which the status is Delivery Timed Out.
$sel:outputS3KeyPrefix:Command'
, command_outputS3KeyPrefix
- The S3 directory path inside the bucket where the responses to the
command executions should be stored. This was requested when issuing the
command.
$sel:documentName:Command'
, command_documentName
- The name of the document requested for execution.
$sel:errorCount:Command'
, command_errorCount
- The number of targets for which the status is Failed or Execution Timed
Out.
$sel:statusDetails:Command'
, command_statusDetails
- 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 instances.
- In Progress: The command has been sent to at least one instance but hasn't 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 doesn't 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.
$sel:maxErrors:Command'
, command_maxErrors
- 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.
$sel:instanceIds:Command'
, command_instanceIds
- The instance IDs against which this command was requested.
$sel:outputS3Region:Command'
, command_outputS3Region
- (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.
$sel:targets:Command'
, command_targets
- 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.
$sel:commandId:Command'
, command_commandId
- A unique identifier for this command.
$sel:parameters:Command'
, command_parameters
- The parameter values to be inserted in the document when running the
command.
$sel:documentVersion:Command'
, command_documentVersion
- The Systems Manager document (SSM document) version.
$sel:timeoutSeconds:Command'
, command_timeoutSeconds
- The TimeoutSeconds
value specified for a command.
$sel:comment:Command'
, command_comment
- User-specified information about the command, such as a brief
description of what the command should do.
$sel:completedCount:Command'
, command_completedCount
- 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.
$sel:outputS3BucketName:Command'
, command_outputS3BucketName
- The S3 bucket where the responses to the command executions should be
stored. This was requested when issuing the command.
$sel:maxConcurrency:Command'
, command_maxConcurrency
- 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 Amazon Web Services Systems Manager User Guide.
$sel:requestedDateTime:Command'
, command_requestedDateTime
- The date and time the command was requested.
$sel:serviceRole:Command'
, command_serviceRole
- 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.
command_status :: Lens' Command (Maybe CommandStatus) Source #
The status of the command.
command_expiresAfter :: Lens' Command (Maybe UTCTime) Source #
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.
command_notificationConfig :: Lens' Command (Maybe NotificationConfig) Source #
Configurations for sending notifications about command status changes.
command_cloudWatchOutputConfig :: Lens' Command (Maybe CloudWatchOutputConfig) Source #
Amazon CloudWatch Logs information where you want Amazon Web Services Systems Manager to send the command output.
command_deliveryTimedOutCount :: Lens' Command (Maybe Int) Source #
The number of targets for which the status is Delivery Timed Out.
command_outputS3KeyPrefix :: Lens' Command (Maybe Text) Source #
The S3 directory path inside the bucket where the responses to the command executions should be stored. This was requested when issuing the command.
command_documentName :: Lens' Command (Maybe Text) Source #
The name of the document requested for execution.
command_errorCount :: Lens' Command (Maybe Int) Source #
The number of targets for which the status is Failed or Execution Timed Out.
command_statusDetails :: Lens' Command (Maybe Text) Source #
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 instances.
- In Progress: The command has been sent to at least one instance but hasn't 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 doesn't 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.
command_maxErrors :: Lens' Command (Maybe Text) Source #
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.
command_instanceIds :: Lens' Command (Maybe [Text]) Source #
The instance IDs against which this command was requested.
command_outputS3Region :: Lens' Command (Maybe Text) Source #
(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.
command_targets :: Lens' Command (Maybe [Target]) Source #
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.
command_parameters :: Lens' Command (Maybe (HashMap Text [Text])) Source #
The parameter values to be inserted in the document when running the command.
command_documentVersion :: Lens' Command (Maybe Text) Source #
The Systems Manager document (SSM document) version.
command_timeoutSeconds :: Lens' Command (Maybe Natural) Source #
The TimeoutSeconds
value specified for a command.
command_comment :: Lens' Command (Maybe Text) Source #
User-specified information about the command, such as a brief description of what the command should do.
command_completedCount :: Lens' Command (Maybe Int) Source #
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.
command_outputS3BucketName :: Lens' Command (Maybe Text) Source #
The S3 bucket where the responses to the command executions should be stored. This was requested when issuing the command.
command_maxConcurrency :: Lens' Command (Maybe Text) Source #
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 Amazon Web Services Systems Manager User Guide.