Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data Command = Command' {
- alarmConfiguration :: Maybe AlarmConfiguration
- cloudWatchOutputConfig :: Maybe CloudWatchOutputConfig
- commandId :: Maybe Text
- comment :: Maybe Text
- completedCount :: Maybe Int
- deliveryTimedOutCount :: Maybe Int
- documentName :: Maybe Text
- documentVersion :: Maybe Text
- errorCount :: Maybe Int
- expiresAfter :: Maybe POSIX
- instanceIds :: Maybe [Text]
- maxConcurrency :: Maybe Text
- maxErrors :: Maybe Text
- notificationConfig :: Maybe NotificationConfig
- outputS3BucketName :: Maybe Text
- outputS3KeyPrefix :: Maybe Text
- outputS3Region :: Maybe Text
- parameters :: Maybe (Sensitive (HashMap Text [Text]))
- requestedDateTime :: Maybe POSIX
- serviceRole :: Maybe Text
- status :: Maybe CommandStatus
- statusDetails :: Maybe Text
- targetCount :: Maybe Int
- targets :: Maybe [Target]
- timeoutSeconds :: Maybe Natural
- triggeredAlarms :: Maybe (NonEmpty AlarmStateInformation)
- newCommand :: Command
- command_alarmConfiguration :: Lens' Command (Maybe AlarmConfiguration)
- command_cloudWatchOutputConfig :: Lens' Command (Maybe CloudWatchOutputConfig)
- command_commandId :: Lens' Command (Maybe Text)
- command_comment :: Lens' Command (Maybe Text)
- command_completedCount :: Lens' Command (Maybe Int)
- command_deliveryTimedOutCount :: Lens' Command (Maybe Int)
- command_documentName :: Lens' Command (Maybe Text)
- command_documentVersion :: Lens' Command (Maybe Text)
- command_errorCount :: Lens' Command (Maybe Int)
- command_expiresAfter :: Lens' Command (Maybe UTCTime)
- command_instanceIds :: Lens' Command (Maybe [Text])
- command_maxConcurrency :: Lens' Command (Maybe Text)
- command_maxErrors :: Lens' Command (Maybe Text)
- command_notificationConfig :: Lens' Command (Maybe NotificationConfig)
- command_outputS3BucketName :: Lens' Command (Maybe Text)
- command_outputS3KeyPrefix :: Lens' Command (Maybe Text)
- command_outputS3Region :: Lens' Command (Maybe Text)
- command_parameters :: Lens' Command (Maybe (HashMap Text [Text]))
- command_requestedDateTime :: Lens' Command (Maybe UTCTime)
- command_serviceRole :: Lens' Command (Maybe Text)
- command_status :: Lens' Command (Maybe CommandStatus)
- command_statusDetails :: Lens' Command (Maybe Text)
- command_targetCount :: Lens' Command (Maybe Int)
- command_targets :: Lens' Command (Maybe [Target])
- command_timeoutSeconds :: Lens' Command (Maybe Natural)
- command_triggeredAlarms :: Lens' Command (Maybe (NonEmpty AlarmStateInformation))
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:alarmConfiguration:Command'
, command_alarmConfiguration
- The details for the CloudWatch alarm applied to your command.
$sel:cloudWatchOutputConfig:Command'
, command_cloudWatchOutputConfig
- Amazon CloudWatch Logs information where you want Amazon Web Services
Systems Manager to send the command output.
$sel:commandId:Command'
, command_commandId
- A unique identifier for this 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, Cancelled, Terminated, or
Undeliverable.
$sel:deliveryTimedOutCount:Command'
, command_deliveryTimedOutCount
- The number of targets for which the status is Delivery Timed Out.
$sel:documentName:Command'
, command_documentName
- The name of the document requested for execution.
$sel:documentVersion:Command'
, command_documentVersion
- The Systems Manager document (SSM document) version.
$sel:errorCount:Command'
, command_errorCount
- The number of targets for which the status is Failed or Execution Timed
Out.
$sel:expiresAfter:Command'
, command_expiresAfter
- 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.
$sel:instanceIds:Command'
, command_instanceIds
- The managed node IDs against which this command was requested.
$sel:maxConcurrency:Command'
, command_maxConcurrency
- 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.
$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:notificationConfig:Command'
, command_notificationConfig
- Configurations for sending notifications about command status changes.
$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: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: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:parameters:Command'
, command_parameters
- The parameter values to be inserted in the document when running the
command.
$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.
$sel:status:Command'
, command_status
- The status of the command.
$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 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.
$sel:targetCount:Command'
, command_targetCount
- The number of targets for the command.
$sel:targets:Command'
, command_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.
$sel:timeoutSeconds:Command'
, command_timeoutSeconds
- The TimeoutSeconds
value specified for a command.
$sel:triggeredAlarms:Command'
, command_triggeredAlarms
- The CloudWatch alarm that was invoked by the command.
command_alarmConfiguration :: Lens' Command (Maybe AlarmConfiguration) Source #
The details for the CloudWatch alarm applied to your command.
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_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, Cancelled, Terminated, or Undeliverable.
command_deliveryTimedOutCount :: Lens' Command (Maybe Int) Source #
The number of targets for which the status is Delivery Timed Out.
command_documentName :: Lens' Command (Maybe Text) Source #
The name of the document requested for execution.
command_documentVersion :: Lens' Command (Maybe Text) Source #
The Systems Manager document (SSM document) version.
command_errorCount :: Lens' Command (Maybe Int) Source #
The number of targets for which the status is Failed or Execution Timed Out.
command_expiresAfter :: Lens' Command (Maybe UTCTime) Source #
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.
command_instanceIds :: Lens' Command (Maybe [Text]) Source #
The managed node IDs against which this command was requested.
command_maxConcurrency :: Lens' Command (Maybe Text) Source #
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.
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_notificationConfig :: Lens' Command (Maybe NotificationConfig) Source #
Configurations for sending notifications about command status changes.
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_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_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_parameters :: Lens' Command (Maybe (HashMap Text [Text])) Source #
The parameter values to be inserted in the document when running the command.
command_requestedDateTime :: Lens' Command (Maybe UTCTime) Source #
The date and time the command was requested.
command_serviceRole :: Lens' Command (Maybe Text) Source #
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_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 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.
command_targets :: Lens' Command (Maybe [Target]) Source #
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.
command_timeoutSeconds :: Lens' Command (Maybe Natural) Source #
The TimeoutSeconds
value specified for a command.
command_triggeredAlarms :: Lens' Command (Maybe (NonEmpty AlarmStateInformation)) Source #
The CloudWatch alarm that was invoked by the command.