update_interruptible_capacity_reservation_allocation
¶
update_interruptible_capacity_reservation_allocation(
*,
config_overrides: Optional[EC2ClientConfig] = 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/ec2.py
60241 60242 60243 60244 60245 60246 60247 60248 60249 60250 60251 60252 60253 60254 60255 60256 60257 60258 60259 60260 60261 60262 60263 60264 60265 60266 60267 60268 60269 60270 60271 60272 60273 60274 60275 60276 60277 60278 60279 60280 60281 60282 60283 60284 60285 60286 60287 60288 60289 60290 60291 60292 60293 60294 60295 60296 60297 60298 60299 60300 | |