Learn R Programming

paws.compute (version 0.1.12)

ec2_cancel_spot_instance_requests: Cancels one or more Spot Instance requests

Description

Cancels one or more Spot Instance requests.

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

Usage

ec2_cancel_spot_instance_requests(DryRun, SpotInstanceRequestIds)

Value

A list with the following syntax:

list(
  CancelledSpotInstanceRequests = list(
    list(
      SpotInstanceRequestId = "string",
      State = "active"|"open"|"closed"|"cancelled"|"completed"
    )
  )
)

Arguments

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.

SpotInstanceRequestIds

[required] One or more Spot Instance request IDs.

Request syntax

svc$cancel_spot_instance_requests(
  DryRun = TRUE|FALSE,
  SpotInstanceRequestIds = list(
    "string"
  )
)

Examples

Run this code
if (FALSE) {
# This example cancels a Spot Instance request.
svc$cancel_spot_instance_requests(
  SpotInstanceRequestIds = list(
    "sir-08b93456"
  )
)
}

Run the code above in your browser using DataLab