Skip to content

/AWS1/CL_EC2=>CANCELSPOTFLEETREQUESTS()

About CancelSpotFleetRequests

Cancels the specified Spot Fleet requests.

After you cancel a Spot Fleet request, the Spot Fleet launches no new instances.

You must also specify whether a canceled Spot Fleet request should terminate its instances. If you choose to terminate the instances, the Spot Fleet request enters the cancelled_terminating state. Otherwise, the Spot Fleet request enters the cancelled_running state and the instances continue to run until they are interrupted or you terminate them manually.

Restrictions

  • You can delete up to 100 fleets in a single request. If you exceed the specified number, no fleets are deleted.

Method Signature

IMPORTING

Required arguments:

IT_SPOTFLEETREQUESTIDS TYPE /AWS1/CL_EC2SPOTFLEETREQIDLS00=>TT_SPOTFLEETREQUESTIDLIST TT_SPOTFLEETREQUESTIDLIST

The IDs of the Spot Fleet requests.

Constraint: You can specify up to 100 IDs in a single request.

IV_TERMINATEINSTANCES TYPE /AWS1/EC2BOOLEAN /AWS1/EC2BOOLEAN

Indicates whether to terminate the associated instances when the Spot Fleet request is canceled. The default is to terminate the instances.

To let the instances continue to run after the Spot Fleet request is canceled, specify no-terminate-instances.

Optional arguments:

IV_DRYRUN TYPE /AWS1/EC2BOOLEAN /AWS1/EC2BOOLEAN

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.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_EC2CANCSPOTFLEETREQ01 /AWS1/CL_EC2CANCSPOTFLEETREQ01