paws.compute (version 0.1.0)

ec2_cancel_spot_instance_requests: Cancels one or more Spot Instance requests

Description

Cancels one or more Spot Instance requests.

Usage

ec2_cancel_spot_instance_requests(DryRun, SpotInstanceRequestIds)

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"
  )
)

Details

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

Examples

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

Run the code above in your browser using DataCamp Workspace