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

Description

Attempts to cancel the command specified by the Command ID. There is no guarantee that the command will be terminated and the underlying process stopped.

Synopsis

Creating a Request

data CancelCommand Source #

See: newCancelCommand smart constructor.

Constructors

CancelCommand' 

Fields

  • instanceIds :: Maybe [Text]

    (Optional) A list of managed node IDs on which you want to cancel the command. If not provided, the command is canceled on every node on which it was requested.

  • commandId :: Text

    The ID of the command you want to cancel.

Instances

Instances details
ToJSON CancelCommand Source # 
Instance details

Defined in Amazonka.SSM.CancelCommand

ToHeaders CancelCommand Source # 
Instance details

Defined in Amazonka.SSM.CancelCommand

ToPath CancelCommand Source # 
Instance details

Defined in Amazonka.SSM.CancelCommand

ToQuery CancelCommand Source # 
Instance details

Defined in Amazonka.SSM.CancelCommand

AWSRequest CancelCommand Source # 
Instance details

Defined in Amazonka.SSM.CancelCommand

Associated Types

type AWSResponse CancelCommand #

Generic CancelCommand Source # 
Instance details

Defined in Amazonka.SSM.CancelCommand

Associated Types

type Rep CancelCommand :: Type -> Type #

Read CancelCommand Source # 
Instance details

Defined in Amazonka.SSM.CancelCommand

Show CancelCommand Source # 
Instance details

Defined in Amazonka.SSM.CancelCommand

NFData CancelCommand Source # 
Instance details

Defined in Amazonka.SSM.CancelCommand

Methods

rnf :: CancelCommand -> () #

Eq CancelCommand Source # 
Instance details

Defined in Amazonka.SSM.CancelCommand

Hashable CancelCommand Source # 
Instance details

Defined in Amazonka.SSM.CancelCommand

type AWSResponse CancelCommand Source # 
Instance details

Defined in Amazonka.SSM.CancelCommand

type Rep CancelCommand Source # 
Instance details

Defined in Amazonka.SSM.CancelCommand

type Rep CancelCommand = D1 ('MetaData "CancelCommand" "Amazonka.SSM.CancelCommand" "amazonka-ssm-2.0-Ak65QSGRhJDC5x7UvsCpi8" 'False) (C1 ('MetaCons "CancelCommand'" 'PrefixI 'True) (S1 ('MetaSel ('Just "instanceIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "commandId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newCancelCommand Source #

Create a value of CancelCommand 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:

CancelCommand, cancelCommand_instanceIds - (Optional) A list of managed node IDs on which you want to cancel the command. If not provided, the command is canceled on every node on which it was requested.

CancelCommand, cancelCommand_commandId - The ID of the command you want to cancel.

Request Lenses

cancelCommand_instanceIds :: Lens' CancelCommand (Maybe [Text]) Source #

(Optional) A list of managed node IDs on which you want to cancel the command. If not provided, the command is canceled on every node on which it was requested.

cancelCommand_commandId :: Lens' CancelCommand Text Source #

The ID of the command you want to cancel.

Destructuring the Response

data CancelCommandResponse Source #

Whether or not the command was successfully canceled. There is no guarantee that a request can be canceled.

See: newCancelCommandResponse smart constructor.

Constructors

CancelCommandResponse' 

Fields

Instances

Instances details
Generic CancelCommandResponse Source # 
Instance details

Defined in Amazonka.SSM.CancelCommand

Associated Types

type Rep CancelCommandResponse :: Type -> Type #

Read CancelCommandResponse Source # 
Instance details

Defined in Amazonka.SSM.CancelCommand

Show CancelCommandResponse Source # 
Instance details

Defined in Amazonka.SSM.CancelCommand

NFData CancelCommandResponse Source # 
Instance details

Defined in Amazonka.SSM.CancelCommand

Methods

rnf :: CancelCommandResponse -> () #

Eq CancelCommandResponse Source # 
Instance details

Defined in Amazonka.SSM.CancelCommand

type Rep CancelCommandResponse Source # 
Instance details

Defined in Amazonka.SSM.CancelCommand

type Rep CancelCommandResponse = D1 ('MetaData "CancelCommandResponse" "Amazonka.SSM.CancelCommand" "amazonka-ssm-2.0-Ak65QSGRhJDC5x7UvsCpi8" 'False) (C1 ('MetaCons "CancelCommandResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCancelCommandResponse Source #

Create a value of CancelCommandResponse 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:httpStatus:CancelCommandResponse', cancelCommandResponse_httpStatus - The response's http status code.

Response Lenses