cancelSpotInstanceRequests

Cancels one or more Spot Instance requests.

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

Samples

// This example cancels a Spot Instance request.
val resp = ec2Client.cancelSpotInstanceRequests {
    spotInstanceRequestIds = listOf<String>(
        "sir-08b93456"
    )
}