move_capacity_reservation_instances
async
¶
move_capacity_reservation_instances(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = 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/async_ec2.py
56045 56046 56047 56048 56049 56050 56051 56052 56053 56054 56055 56056 56057 56058 56059 56060 56061 56062 56063 56064 56065 56066 56067 56068 56069 56070 56071 56072 56073 56074 56075 56076 56077 56078 56079 56080 56081 56082 56083 56084 56085 56086 56087 56088 56089 56090 56091 56092 56093 56094 56095 56096 56097 56098 56099 56100 56101 56102 56103 56104 56105 56106 56107 56108 56109 56110 56111 | |