amazonka-ssm-2.0: Amazon Simple Systems Manager (SSM) SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.SSM.Types.Command

Description

 
Synopsis

Documentation

data Command Source #

Describes a command request.

See: newCommand smart constructor.

Constructors

Command' 

Fields

  • alarmConfiguration :: Maybe AlarmConfiguration

    The details for the CloudWatch alarm applied to your command.

  • cloudWatchOutputConfig :: Maybe CloudWatchOutputConfig

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

  • commandId :: Maybe Text

    A unique identifier for this command.

  • comment :: Maybe Text

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

  • completedCount :: Maybe Int

    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.

  • deliveryTimedOutCount :: Maybe Int

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

  • documentName :: Maybe Text

    The name of the document requested for execution.

  • documentVersion :: Maybe Text

    The Systems Manager document (SSM document) version.

  • errorCount :: Maybe Int

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

  • expiresAfter :: Maybe POSIX

    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.

  • instanceIds :: Maybe [Text]

    The managed node IDs against which this command was requested.

  • maxConcurrency :: Maybe Text

    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.

  • maxErrors :: Maybe Text

    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.

  • notificationConfig :: Maybe NotificationConfig

    Configurations for sending notifications about command status changes.

  • outputS3BucketName :: Maybe Text

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

  • outputS3KeyPrefix :: Maybe Text

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

  • outputS3Region :: Maybe Text

    (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.

  • parameters :: Maybe (Sensitive (HashMap Text [Text]))

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

  • requestedDateTime :: Maybe POSIX

    The date and time the command was requested.

  • serviceRole :: Maybe Text

    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.

  • status :: Maybe CommandStatus

    The status of the command.

  • statusDetails :: Maybe Text

    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.
  • targetCount :: Maybe Int

    The number of targets for the command.

  • targets :: Maybe [Target]

    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.

  • timeoutSeconds :: Maybe Natural

    The TimeoutSeconds value specified for a command.

  • triggeredAlarms :: Maybe (NonEmpty AlarmStateInformation)

    The CloudWatch alarm that was invoked by the command.

Instances

Instances details
FromJSON Command Source # 
Instance details

Defined in Amazonka.SSM.Types.Command

Generic Command Source # 
Instance details

Defined in Amazonka.SSM.Types.Command

Associated Types

type Rep Command :: Type -> Type #

Methods

from :: Command -> Rep Command x #

to :: Rep Command x -> Command #

Show Command Source # 
Instance details

Defined in Amazonka.SSM.Types.Command

NFData Command Source # 
Instance details

Defined in Amazonka.SSM.Types.Command

Methods

rnf :: Command -> () #

Eq Command Source # 
Instance details

Defined in Amazonka.SSM.Types.Command

Methods

(==) :: Command -> Command -> Bool #

(/=) :: Command -> Command -> Bool #

Hashable Command Source # 
Instance details

Defined in Amazonka.SSM.Types.Command

Methods

hashWithSalt :: Int -> Command -> Int #

hash :: Command -> Int #

type Rep Command Source # 
Instance details

Defined in Amazonka.SSM.Types.Command

type Rep Command = D1 ('MetaData "Command" "Amazonka.SSM.Types.Command" "amazonka-ssm-2.0-Ak65QSGRhJDC5x7UvsCpi8" 'False) (C1 ('MetaCons "Command'" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "alarmConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AlarmConfiguration)) :*: (S1 ('MetaSel ('Just "cloudWatchOutputConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CloudWatchOutputConfig)) :*: S1 ('MetaSel ('Just "commandId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "comment") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "completedCount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "deliveryTimedOutCount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int))))) :*: ((S1 ('MetaSel ('Just "documentName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "documentVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "errorCount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)))) :*: ((S1 ('MetaSel ('Just "expiresAfter") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "instanceIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text]))) :*: (S1 ('MetaSel ('Just "maxConcurrency") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "maxErrors") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))) :*: (((S1 ('MetaSel ('Just "notificationConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe NotificationConfig)) :*: (S1 ('MetaSel ('Just "outputS3BucketName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "outputS3KeyPrefix") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "outputS3Region") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "parameters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive (HashMap Text [Text])))) :*: S1 ('MetaSel ('Just "requestedDateTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX))))) :*: ((S1 ('MetaSel ('Just "serviceRole") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CommandStatus)) :*: S1 ('MetaSel ('Just "statusDetails") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "targetCount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "targets") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Target]))) :*: (S1 ('MetaSel ('Just "timeoutSeconds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "triggeredAlarms") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty AlarmStateInformation)))))))))

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_commandId :: Lens' Command (Maybe Text) Source #

A unique identifier for this 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, 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_targetCount :: Lens' Command (Maybe Int) Source #

The number of targets for the command.

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.