amazonka-ec2-2.0: Amazon Elastic Compute Cloud 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.EC2.CancelSpotInstanceRequests

Description

Cancels one or more Spot Instance requests.

Canceling a Spot Instance request does not terminate running Spot Instances associated with the request.

Synopsis

Creating a Request

data CancelSpotInstanceRequests Source #

Contains the parameters for CancelSpotInstanceRequests.

See: newCancelSpotInstanceRequests smart constructor.

Constructors

CancelSpotInstanceRequests' 

Fields

  • dryRun :: Maybe Bool

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

  • spotInstanceRequestIds :: [Text]

    One or more Spot Instance request IDs.

Instances

Instances details
ToHeaders CancelSpotInstanceRequests Source # 
Instance details

Defined in Amazonka.EC2.CancelSpotInstanceRequests

ToPath CancelSpotInstanceRequests Source # 
Instance details

Defined in Amazonka.EC2.CancelSpotInstanceRequests

ToQuery CancelSpotInstanceRequests Source # 
Instance details

Defined in Amazonka.EC2.CancelSpotInstanceRequests

AWSRequest CancelSpotInstanceRequests Source # 
Instance details

Defined in Amazonka.EC2.CancelSpotInstanceRequests

Generic CancelSpotInstanceRequests Source # 
Instance details

Defined in Amazonka.EC2.CancelSpotInstanceRequests

Associated Types

type Rep CancelSpotInstanceRequests :: Type -> Type #

Read CancelSpotInstanceRequests Source # 
Instance details

Defined in Amazonka.EC2.CancelSpotInstanceRequests

Show CancelSpotInstanceRequests Source # 
Instance details

Defined in Amazonka.EC2.CancelSpotInstanceRequests

NFData CancelSpotInstanceRequests Source # 
Instance details

Defined in Amazonka.EC2.CancelSpotInstanceRequests

Eq CancelSpotInstanceRequests Source # 
Instance details

Defined in Amazonka.EC2.CancelSpotInstanceRequests

Hashable CancelSpotInstanceRequests Source # 
Instance details

Defined in Amazonka.EC2.CancelSpotInstanceRequests

type AWSResponse CancelSpotInstanceRequests Source # 
Instance details

Defined in Amazonka.EC2.CancelSpotInstanceRequests

type Rep CancelSpotInstanceRequests Source # 
Instance details

Defined in Amazonka.EC2.CancelSpotInstanceRequests

type Rep CancelSpotInstanceRequests = D1 ('MetaData "CancelSpotInstanceRequests" "Amazonka.EC2.CancelSpotInstanceRequests" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "CancelSpotInstanceRequests'" 'PrefixI 'True) (S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "spotInstanceRequestIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Text])))

newCancelSpotInstanceRequests :: CancelSpotInstanceRequests Source #

Create a value of CancelSpotInstanceRequests 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:dryRun:CancelSpotInstanceRequests', cancelSpotInstanceRequests_dryRun - Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

$sel:spotInstanceRequestIds:CancelSpotInstanceRequests', cancelSpotInstanceRequests_spotInstanceRequestIds - One or more Spot Instance request IDs.

Request Lenses

cancelSpotInstanceRequests_dryRun :: Lens' CancelSpotInstanceRequests (Maybe Bool) Source #

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

Destructuring the Response

data CancelSpotInstanceRequestsResponse Source #

Contains the output of CancelSpotInstanceRequests.

See: newCancelSpotInstanceRequestsResponse smart constructor.

Constructors

CancelSpotInstanceRequestsResponse' 

Fields

Instances

Instances details
Generic CancelSpotInstanceRequestsResponse Source # 
Instance details

Defined in Amazonka.EC2.CancelSpotInstanceRequests

Associated Types

type Rep CancelSpotInstanceRequestsResponse :: Type -> Type #

Read CancelSpotInstanceRequestsResponse Source # 
Instance details

Defined in Amazonka.EC2.CancelSpotInstanceRequests

Show CancelSpotInstanceRequestsResponse Source # 
Instance details

Defined in Amazonka.EC2.CancelSpotInstanceRequests

NFData CancelSpotInstanceRequestsResponse Source # 
Instance details

Defined in Amazonka.EC2.CancelSpotInstanceRequests

Eq CancelSpotInstanceRequestsResponse Source # 
Instance details

Defined in Amazonka.EC2.CancelSpotInstanceRequests

type Rep CancelSpotInstanceRequestsResponse Source # 
Instance details

Defined in Amazonka.EC2.CancelSpotInstanceRequests

type Rep CancelSpotInstanceRequestsResponse = D1 ('MetaData "CancelSpotInstanceRequestsResponse" "Amazonka.EC2.CancelSpotInstanceRequests" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "CancelSpotInstanceRequestsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "cancelledSpotInstanceRequests") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [CancelledSpotInstanceRequest])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCancelSpotInstanceRequestsResponse Source #

Create a value of CancelSpotInstanceRequestsResponse 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:cancelledSpotInstanceRequests:CancelSpotInstanceRequestsResponse', cancelSpotInstanceRequestsResponse_cancelledSpotInstanceRequests - One or more Spot Instance requests.

$sel:httpStatus:CancelSpotInstanceRequestsResponse', cancelSpotInstanceRequestsResponse_httpStatus - The response's http status code.

Response Lenses