{-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE DuplicateRecordFields #-} {-# LANGUAGE NamedFieldPuns #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE StrictData #-} {-# LANGUAGE NoImplicitPrelude #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} {-# OPTIONS_GHC -fno-warn-unused-matches #-} -- Derived from AWS service descriptions, licensed under Apache 2.0. -- | -- Module : Amazonka.SSM.Types.Command -- Copyright : (c) 2013-2023 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay -- Stability : auto-generated -- Portability : non-portable (GHC extensions) module Amazonka.SSM.Types.Command where import qualified Amazonka.Core as Core import qualified Amazonka.Core.Lens.Internal as Lens import qualified Amazonka.Data as Data import qualified Amazonka.Prelude as Prelude import Amazonka.SSM.Types.AlarmConfiguration import Amazonka.SSM.Types.AlarmStateInformation import Amazonka.SSM.Types.CloudWatchOutputConfig import Amazonka.SSM.Types.CommandStatus import Amazonka.SSM.Types.NotificationConfig import Amazonka.SSM.Types.Target -- | Describes a command request. -- -- /See:/ 'newCommand' smart constructor. data Command = Command' { -- | The details for the CloudWatch alarm applied to your command. alarmConfiguration :: Prelude.Maybe AlarmConfiguration, -- | Amazon CloudWatch Logs information where you want Amazon Web Services -- Systems Manager to send the command output. cloudWatchOutputConfig :: Prelude.Maybe CloudWatchOutputConfig, -- | A unique identifier for this command. commandId :: Prelude.Maybe Prelude.Text, -- | User-specified information about the command, such as a brief -- description of what the command should do. comment :: Prelude.Maybe Prelude.Text, -- | 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. completedCount :: Prelude.Maybe Prelude.Int, -- | The number of targets for which the status is Delivery Timed Out. deliveryTimedOutCount :: Prelude.Maybe Prelude.Int, -- | The name of the document requested for execution. documentName :: Prelude.Maybe Prelude.Text, -- | The Systems Manager document (SSM document) version. documentVersion :: Prelude.Maybe Prelude.Text, -- | The number of targets for which the status is Failed or Execution Timed -- Out. errorCount :: Prelude.Maybe Prelude.Int, -- | 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 -- -- in the /Amazon Web Services Systems Manager User Guide/. expiresAfter :: Prelude.Maybe Data.POSIX, -- | The managed node IDs against which this command was requested. instanceIds :: Prelude.Maybe [Prelude.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 -- -- in the /Amazon Web Services Systems Manager User Guide/. maxConcurrency :: Prelude.Maybe Prelude.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 -- -- in the /Amazon Web Services Systems Manager User Guide/. maxErrors :: Prelude.Maybe Prelude.Text, -- | Configurations for sending notifications about command status changes. notificationConfig :: Prelude.Maybe NotificationConfig, -- | The S3 bucket where the responses to the command executions should be -- stored. This was requested when issuing the command. outputS3BucketName :: Prelude.Maybe Prelude.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. outputS3KeyPrefix :: Prelude.Maybe Prelude.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. outputS3Region :: Prelude.Maybe Prelude.Text, -- | The parameter values to be inserted in the document when running the -- command. parameters :: Prelude.Maybe (Data.Sensitive (Prelude.HashMap Prelude.Text [Prelude.Text])), -- | The date and time the command was requested. requestedDateTime :: Prelude.Maybe Data.POSIX, -- | 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. serviceRole :: Prelude.Maybe Prelude.Text, -- | The status of the command. status :: Prelude.Maybe CommandStatus, -- | 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 -- -- 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. statusDetails :: Prelude.Maybe Prelude.Text, -- | The number of targets for the command. targetCount :: Prelude.Maybe Prelude.Int, -- | 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. targets :: Prelude.Maybe [Target], -- | The @TimeoutSeconds@ value specified for a command. timeoutSeconds :: Prelude.Maybe Prelude.Natural, -- | The CloudWatch alarm that was invoked by the command. triggeredAlarms :: Prelude.Maybe (Prelude.NonEmpty AlarmStateInformation) } deriving (Prelude.Eq, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'Command' with all optional fields omitted. -- -- Use or to modify other optional fields. -- -- The following record fields are available, with the corresponding lenses provided -- for backwards compatibility: -- -- 'alarmConfiguration', 'command_alarmConfiguration' - The details for the CloudWatch alarm applied to your command. -- -- 'cloudWatchOutputConfig', 'command_cloudWatchOutputConfig' - Amazon CloudWatch Logs information where you want Amazon Web Services -- Systems Manager to send the command output. -- -- 'commandId', 'command_commandId' - A unique identifier for this command. -- -- 'comment', 'command_comment' - User-specified information about the command, such as a brief -- description of what the command should do. -- -- 'completedCount', '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. -- -- 'deliveryTimedOutCount', 'command_deliveryTimedOutCount' - The number of targets for which the status is Delivery Timed Out. -- -- 'documentName', 'command_documentName' - The name of the document requested for execution. -- -- 'documentVersion', 'command_documentVersion' - The Systems Manager document (SSM document) version. -- -- 'errorCount', 'command_errorCount' - The number of targets for which the status is Failed or Execution Timed -- Out. -- -- 'expiresAfter', '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 -- -- in the /Amazon Web Services Systems Manager User Guide/. -- -- 'instanceIds', 'command_instanceIds' - The managed node IDs against which this command was requested. -- -- 'maxConcurrency', '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 -- -- in the /Amazon Web Services Systems Manager User Guide/. -- -- 'maxErrors', '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 -- -- in the /Amazon Web Services Systems Manager User Guide/. -- -- 'notificationConfig', 'command_notificationConfig' - Configurations for sending notifications about command status changes. -- -- 'outputS3BucketName', 'command_outputS3BucketName' - The S3 bucket where the responses to the command executions should be -- stored. This was requested when issuing the command. -- -- 'outputS3KeyPrefix', '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. -- -- 'outputS3Region', '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. -- -- 'parameters', 'command_parameters' - The parameter values to be inserted in the document when running the -- command. -- -- 'requestedDateTime', 'command_requestedDateTime' - The date and time the command was requested. -- -- 'serviceRole', '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. -- -- 'status', 'command_status' - The status of the command. -- -- 'statusDetails', '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 -- -- 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', 'command_targetCount' - The number of targets for the command. -- -- 'targets', '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. -- -- 'timeoutSeconds', 'command_timeoutSeconds' - The @TimeoutSeconds@ value specified for a command. -- -- 'triggeredAlarms', 'command_triggeredAlarms' - The CloudWatch alarm that was invoked by the command. newCommand :: Command newCommand = Command' { alarmConfiguration = Prelude.Nothing, cloudWatchOutputConfig = Prelude.Nothing, commandId = Prelude.Nothing, comment = Prelude.Nothing, completedCount = Prelude.Nothing, deliveryTimedOutCount = Prelude.Nothing, documentName = Prelude.Nothing, documentVersion = Prelude.Nothing, errorCount = Prelude.Nothing, expiresAfter = Prelude.Nothing, instanceIds = Prelude.Nothing, maxConcurrency = Prelude.Nothing, maxErrors = Prelude.Nothing, notificationConfig = Prelude.Nothing, outputS3BucketName = Prelude.Nothing, outputS3KeyPrefix = Prelude.Nothing, outputS3Region = Prelude.Nothing, parameters = Prelude.Nothing, requestedDateTime = Prelude.Nothing, serviceRole = Prelude.Nothing, status = Prelude.Nothing, statusDetails = Prelude.Nothing, targetCount = Prelude.Nothing, targets = Prelude.Nothing, timeoutSeconds = Prelude.Nothing, triggeredAlarms = Prelude.Nothing } -- | The details for the CloudWatch alarm applied to your command. command_alarmConfiguration :: Lens.Lens' Command (Prelude.Maybe AlarmConfiguration) command_alarmConfiguration = Lens.lens (\Command' {alarmConfiguration} -> alarmConfiguration) (\s@Command' {} a -> s {alarmConfiguration = a} :: Command) -- | Amazon CloudWatch Logs information where you want Amazon Web Services -- Systems Manager to send the command output. command_cloudWatchOutputConfig :: Lens.Lens' Command (Prelude.Maybe CloudWatchOutputConfig) command_cloudWatchOutputConfig = Lens.lens (\Command' {cloudWatchOutputConfig} -> cloudWatchOutputConfig) (\s@Command' {} a -> s {cloudWatchOutputConfig = a} :: Command) -- | A unique identifier for this command. command_commandId :: Lens.Lens' Command (Prelude.Maybe Prelude.Text) command_commandId = Lens.lens (\Command' {commandId} -> commandId) (\s@Command' {} a -> s {commandId = a} :: Command) -- | User-specified information about the command, such as a brief -- description of what the command should do. command_comment :: Lens.Lens' Command (Prelude.Maybe Prelude.Text) command_comment = Lens.lens (\Command' {comment} -> comment) (\s@Command' {} a -> s {comment = a} :: 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. command_completedCount :: Lens.Lens' Command (Prelude.Maybe Prelude.Int) command_completedCount = Lens.lens (\Command' {completedCount} -> completedCount) (\s@Command' {} a -> s {completedCount = a} :: Command) -- | The number of targets for which the status is Delivery Timed Out. command_deliveryTimedOutCount :: Lens.Lens' Command (Prelude.Maybe Prelude.Int) command_deliveryTimedOutCount = Lens.lens (\Command' {deliveryTimedOutCount} -> deliveryTimedOutCount) (\s@Command' {} a -> s {deliveryTimedOutCount = a} :: Command) -- | The name of the document requested for execution. command_documentName :: Lens.Lens' Command (Prelude.Maybe Prelude.Text) command_documentName = Lens.lens (\Command' {documentName} -> documentName) (\s@Command' {} a -> s {documentName = a} :: Command) -- | The Systems Manager document (SSM document) version. command_documentVersion :: Lens.Lens' Command (Prelude.Maybe Prelude.Text) command_documentVersion = Lens.lens (\Command' {documentVersion} -> documentVersion) (\s@Command' {} a -> s {documentVersion = a} :: Command) -- | The number of targets for which the status is Failed or Execution Timed -- Out. command_errorCount :: Lens.Lens' Command (Prelude.Maybe Prelude.Int) command_errorCount = Lens.lens (\Command' {errorCount} -> errorCount) (\s@Command' {} a -> s {errorCount = a} :: Command) -- | 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 -- -- in the /Amazon Web Services Systems Manager User Guide/. command_expiresAfter :: Lens.Lens' Command (Prelude.Maybe Prelude.UTCTime) command_expiresAfter = Lens.lens (\Command' {expiresAfter} -> expiresAfter) (\s@Command' {} a -> s {expiresAfter = a} :: Command) Prelude.. Lens.mapping Data._Time -- | The managed node IDs against which this command was requested. command_instanceIds :: Lens.Lens' Command (Prelude.Maybe [Prelude.Text]) command_instanceIds = Lens.lens (\Command' {instanceIds} -> instanceIds) (\s@Command' {} a -> s {instanceIds = a} :: Command) Prelude.. Lens.mapping Lens.coerced -- | 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 -- -- in the /Amazon Web Services Systems Manager User Guide/. command_maxConcurrency :: Lens.Lens' Command (Prelude.Maybe Prelude.Text) command_maxConcurrency = Lens.lens (\Command' {maxConcurrency} -> maxConcurrency) (\s@Command' {} a -> s {maxConcurrency = a} :: Command) -- | 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 -- -- in the /Amazon Web Services Systems Manager User Guide/. command_maxErrors :: Lens.Lens' Command (Prelude.Maybe Prelude.Text) command_maxErrors = Lens.lens (\Command' {maxErrors} -> maxErrors) (\s@Command' {} a -> s {maxErrors = a} :: Command) -- | Configurations for sending notifications about command status changes. command_notificationConfig :: Lens.Lens' Command (Prelude.Maybe NotificationConfig) command_notificationConfig = Lens.lens (\Command' {notificationConfig} -> notificationConfig) (\s@Command' {} a -> s {notificationConfig = a} :: Command) -- | The S3 bucket where the responses to the command executions should be -- stored. This was requested when issuing the command. command_outputS3BucketName :: Lens.Lens' Command (Prelude.Maybe Prelude.Text) command_outputS3BucketName = Lens.lens (\Command' {outputS3BucketName} -> outputS3BucketName) (\s@Command' {} a -> s {outputS3BucketName = a} :: 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. command_outputS3KeyPrefix :: Lens.Lens' Command (Prelude.Maybe Prelude.Text) command_outputS3KeyPrefix = Lens.lens (\Command' {outputS3KeyPrefix} -> outputS3KeyPrefix) (\s@Command' {} a -> s {outputS3KeyPrefix = a} :: Command) -- | (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_outputS3Region :: Lens.Lens' Command (Prelude.Maybe Prelude.Text) command_outputS3Region = Lens.lens (\Command' {outputS3Region} -> outputS3Region) (\s@Command' {} a -> s {outputS3Region = a} :: Command) -- | The parameter values to be inserted in the document when running the -- command. command_parameters :: Lens.Lens' Command (Prelude.Maybe (Prelude.HashMap Prelude.Text [Prelude.Text])) command_parameters = Lens.lens (\Command' {parameters} -> parameters) (\s@Command' {} a -> s {parameters = a} :: Command) Prelude.. Lens.mapping (Data._Sensitive Prelude.. Lens.coerced) -- | The date and time the command was requested. command_requestedDateTime :: Lens.Lens' Command (Prelude.Maybe Prelude.UTCTime) command_requestedDateTime = Lens.lens (\Command' {requestedDateTime} -> requestedDateTime) (\s@Command' {} a -> s {requestedDateTime = a} :: Command) Prelude.. Lens.mapping Data._Time -- | 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_serviceRole :: Lens.Lens' Command (Prelude.Maybe Prelude.Text) command_serviceRole = Lens.lens (\Command' {serviceRole} -> serviceRole) (\s@Command' {} a -> s {serviceRole = a} :: Command) -- | The status of the command. command_status :: Lens.Lens' Command (Prelude.Maybe CommandStatus) command_status = Lens.lens (\Command' {status} -> status) (\s@Command' {} a -> s {status = a} :: 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 -- -- 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_statusDetails :: Lens.Lens' Command (Prelude.Maybe Prelude.Text) command_statusDetails = Lens.lens (\Command' {statusDetails} -> statusDetails) (\s@Command' {} a -> s {statusDetails = a} :: Command) -- | The number of targets for the command. command_targetCount :: Lens.Lens' Command (Prelude.Maybe Prelude.Int) command_targetCount = Lens.lens (\Command' {targetCount} -> targetCount) (\s@Command' {} a -> s {targetCount = a} :: Command) -- | 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_targets :: Lens.Lens' Command (Prelude.Maybe [Target]) command_targets = Lens.lens (\Command' {targets} -> targets) (\s@Command' {} a -> s {targets = a} :: Command) Prelude.. Lens.mapping Lens.coerced -- | The @TimeoutSeconds@ value specified for a command. command_timeoutSeconds :: Lens.Lens' Command (Prelude.Maybe Prelude.Natural) command_timeoutSeconds = Lens.lens (\Command' {timeoutSeconds} -> timeoutSeconds) (\s@Command' {} a -> s {timeoutSeconds = a} :: Command) -- | The CloudWatch alarm that was invoked by the command. command_triggeredAlarms :: Lens.Lens' Command (Prelude.Maybe (Prelude.NonEmpty AlarmStateInformation)) command_triggeredAlarms = Lens.lens (\Command' {triggeredAlarms} -> triggeredAlarms) (\s@Command' {} a -> s {triggeredAlarms = a} :: Command) Prelude.. Lens.mapping Lens.coerced instance Data.FromJSON Command where parseJSON = Data.withObject "Command" ( \x -> Command' Prelude.<$> (x Data..:? "AlarmConfiguration") Prelude.<*> (x Data..:? "CloudWatchOutputConfig") Prelude.<*> (x Data..:? "CommandId") Prelude.<*> (x Data..:? "Comment") Prelude.<*> (x Data..:? "CompletedCount") Prelude.<*> (x Data..:? "DeliveryTimedOutCount") Prelude.<*> (x Data..:? "DocumentName") Prelude.<*> (x Data..:? "DocumentVersion") Prelude.<*> (x Data..:? "ErrorCount") Prelude.<*> (x Data..:? "ExpiresAfter") Prelude.<*> (x Data..:? "InstanceIds" Data..!= Prelude.mempty) Prelude.<*> (x Data..:? "MaxConcurrency") Prelude.<*> (x Data..:? "MaxErrors") Prelude.<*> (x Data..:? "NotificationConfig") Prelude.<*> (x Data..:? "OutputS3BucketName") Prelude.<*> (x Data..:? "OutputS3KeyPrefix") Prelude.<*> (x Data..:? "OutputS3Region") Prelude.<*> (x Data..:? "Parameters" Data..!= Prelude.mempty) Prelude.<*> (x Data..:? "RequestedDateTime") Prelude.<*> (x Data..:? "ServiceRole") Prelude.<*> (x Data..:? "Status") Prelude.<*> (x Data..:? "StatusDetails") Prelude.<*> (x Data..:? "TargetCount") Prelude.<*> (x Data..:? "Targets" Data..!= Prelude.mempty) Prelude.<*> (x Data..:? "TimeoutSeconds") Prelude.<*> (x Data..:? "TriggeredAlarms") ) instance Prelude.Hashable Command where hashWithSalt _salt Command' {..} = _salt `Prelude.hashWithSalt` alarmConfiguration `Prelude.hashWithSalt` cloudWatchOutputConfig `Prelude.hashWithSalt` commandId `Prelude.hashWithSalt` comment `Prelude.hashWithSalt` completedCount `Prelude.hashWithSalt` deliveryTimedOutCount `Prelude.hashWithSalt` documentName `Prelude.hashWithSalt` documentVersion `Prelude.hashWithSalt` errorCount `Prelude.hashWithSalt` expiresAfter `Prelude.hashWithSalt` instanceIds `Prelude.hashWithSalt` maxConcurrency `Prelude.hashWithSalt` maxErrors `Prelude.hashWithSalt` notificationConfig `Prelude.hashWithSalt` outputS3BucketName `Prelude.hashWithSalt` outputS3KeyPrefix `Prelude.hashWithSalt` outputS3Region `Prelude.hashWithSalt` parameters `Prelude.hashWithSalt` requestedDateTime `Prelude.hashWithSalt` serviceRole `Prelude.hashWithSalt` status `Prelude.hashWithSalt` statusDetails `Prelude.hashWithSalt` targetCount `Prelude.hashWithSalt` targets `Prelude.hashWithSalt` timeoutSeconds `Prelude.hashWithSalt` triggeredAlarms instance Prelude.NFData Command where rnf Command' {..} = Prelude.rnf alarmConfiguration `Prelude.seq` Prelude.rnf cloudWatchOutputConfig `Prelude.seq` Prelude.rnf commandId `Prelude.seq` Prelude.rnf comment `Prelude.seq` Prelude.rnf completedCount `Prelude.seq` Prelude.rnf deliveryTimedOutCount `Prelude.seq` Prelude.rnf documentName `Prelude.seq` Prelude.rnf documentVersion `Prelude.seq` Prelude.rnf errorCount `Prelude.seq` Prelude.rnf expiresAfter `Prelude.seq` Prelude.rnf instanceIds `Prelude.seq` Prelude.rnf maxConcurrency `Prelude.seq` Prelude.rnf maxErrors `Prelude.seq` Prelude.rnf notificationConfig `Prelude.seq` Prelude.rnf outputS3BucketName `Prelude.seq` Prelude.rnf outputS3KeyPrefix `Prelude.seq` Prelude.rnf outputS3Region `Prelude.seq` Prelude.rnf parameters `Prelude.seq` Prelude.rnf requestedDateTime `Prelude.seq` Prelude.rnf serviceRole `Prelude.seq` Prelude.rnf status `Prelude.seq` Prelude.rnf statusDetails `Prelude.seq` Prelude.rnf targetCount `Prelude.seq` Prelude.rnf targets `Prelude.seq` Prelude.rnf timeoutSeconds `Prelude.seq` Prelude.rnf triggeredAlarms