Modifies the number of instances allocated to an interruptible reservation, allowing you to add more capacity or reclaim capacity to your source Capacity Reservation¶
Description¶
Modifies the number of instances allocated to an interruptible reservation, allowing you to add more capacity or reclaim capacity to your source Capacity Reservation.
Usage¶
ec2_update_interruptible_capacity_reservation_allocation(
CapacityReservationId, TargetInstanceCount, DryRun, ZeroSizePreference)
Arguments¶
-
CapacityReservationId[required] The ID of the source Capacity Reservation containing the interruptible allocation to modify.
-
TargetInstanceCountThe new number of instances to allocate. Enter a higher number to add more capacity to share, or a lower number to reclaim capacity to your source Capacity Reservation.
-
DryRunChecks whether you have the required permissions for the action, without actually making the request, and provides an error response.
-
ZeroSizePreferenceSpecifies the updated behavior for the interruptible Capacity Reservation when you reduce its allocation to zero instances. Specify
retainto keep the interruptible Capacity Reservation active at zero capacity so that you can allocate instances to it again later. Specifydefaultto cancel the interruptible Capacity Reservation and return the capacity to your source Capacity Reservation.
Value¶
A list with the following syntax:
list(
InterruptibleCapacityReservationId = "string",
SourceCapacityReservationId = "string",
InstanceCount = 123,
TargetInstanceCount = 123,
Status = "pending"|"active"|"updating"|"canceling"|"canceled"|"failed",
InterruptionType = "adhoc"
)