move_capacity_reservation_instances
¶
move_capacity_reservation_instances(
*,
config_overrides: Optional[EC2ClientConfig] = None,
dry_run: Optional[Boolean] = None,
client_token: Optional[String] = None,
source_capacity_reservation_id: Optional[CapacityReservationId] = None,
destination_capacity_reservation_id: Optional[CapacityReservationId] = None,
instance_count: Optional[Integer] = None,
) -> MoveCapacityReservationInstancesResult
Move available capacity from a source Capacity Reservation to a destination Capacity Reservation. The source Capacity Reservation and the destination Capacity Reservation must be active, owned by your Amazon Web Services account, and share the following:
-
Instance type
-
Platform
-
Availability Zone
-
Tenancy
-
Placement group
-
Capacity Reservation end time -
At specific timeorManually.
Parameters:
-
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. If you have the required permissions, the error response is
DryRunOperation. Otherwise, it isUnauthorizedOperation. -
client_token(Optional[String], default:None) –Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensure Idempotency.
-
source_capacity_reservation_id(Optional[CapacityReservationId], default:None) –The ID of the Capacity Reservation from which you want to move capacity.
-
destination_capacity_reservation_id(Optional[CapacityReservationId], default:None) –The ID of the Capacity Reservation that you want to move capacity into.
-
instance_count(Optional[Integer], default:None) –The number of instances that you want to move from the 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
55276 55277 55278 55279 55280 55281 55282 55283 55284 55285 55286 55287 55288 55289 55290 55291 55292 55293 55294 55295 55296 55297 55298 55299 55300 55301 55302 55303 55304 55305 55306 55307 55308 55309 55310 55311 55312 55313 55314 55315 55316 55317 55318 55319 55320 55321 55322 55323 55324 55325 55326 55327 55328 55329 55330 55331 55332 55333 55334 55335 55336 55337 55338 55339 55340 55341 | |