update_interruptible_capacity_reservation_allocation
async
¶
update_interruptible_capacity_reservation_allocation(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
capacity_reservation_id: Optional[CapacityReservationId] = None,
target_instance_count: Optional[Integer] = None,
dry_run: Optional[Boolean] = None,
zero_size_preference: Optional[ZeroSizePreference] = None,
) -> UpdateInterruptibleCapacityReservationAllocationResult
Modifies the number of instances allocated to an interruptible reservation, allowing you to add more capacity or reclaim capacity to your source Capacity Reservation.
Parameters:
-
capacity_reservation_id(Optional[CapacityReservationId], default:None) –The ID of the source Capacity Reservation containing the interruptible allocation to modify.
-
target_instance_count(Optional[Integer], default:None) –The 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.
-
dry_run(Optional[Boolean], default:None) –Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.
-
zero_size_preference(Optional[ZeroSizePreference], default:None) –Specifies 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.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ec2/_services/async_ec2.py
61084 61085 61086 61087 61088 61089 61090 61091 61092 61093 61094 61095 61096 61097 61098 61099 61100 61101 61102 61103 61104 61105 61106 61107 61108 61109 61110 61111 61112 61113 61114 61115 61116 61117 61118 61119 61120 61121 61122 61123 61124 61125 61126 61127 61128 61129 61130 61131 61132 61133 61134 61135 61136 61137 61138 61139 61140 61141 61142 61143 61144 | |