cancel_capacity_reservation
(**kwargs)¶Cancels the specified Capacity Reservation, releases the reserved capacity, and changes the Capacity Reservation's state to cancelled
.
Instances running in the reserved capacity continue running until you stop them. Stopped instances that target the Capacity Reservation can no longer launch. Modify these instances to either target a different Capacity Reservation, launch On-Demand Instance capacity, or run in any open Capacity Reservation that has matching attributes and sufficient capacity.
See also: AWS API Documentation
Request Syntax
response = client.cancel_capacity_reservation(
CapacityReservationId='string',
DryRun=True|False
)
[REQUIRED]
The ID of the Capacity Reservation to be cancelled.
DryRunOperation
. Otherwise, it is UnauthorizedOperation
.dict
Response Syntax
{
'Return': True|False
}
Response Structure
(dict) --
Return (boolean) --
Returns true
if the request succeeds; otherwise, it returns an error.