create_capacity_reservation_by_splitting
¶
create_capacity_reservation_by_splitting(
*,
config_overrides: Optional[EC2ClientConfig] = None,
dry_run: Optional[Boolean] = None,
client_token: Optional[String] = None,
source_capacity_reservation_id: Optional[CapacityReservationId] = None,
instance_count: Optional[Integer] = None,
tag_specifications: Optional[TagSpecificationList] = None,
) -> CreateCapacityReservationBySplittingResult
Create a new Capacity Reservation by splitting the capacity of the source Capacity Reservation. The new Capacity Reservation will have the same attributes as the source Capacity Reservation except for tags. The source Capacity Reservation must be active and owned by your Amazon Web Services account.
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 split the capacity.
-
instance_count(Optional[Integer], default:None) –The number of instances to split from the source Capacity Reservation.
-
tag_specifications(Optional[TagSpecificationList], default:None) –The tags to apply to the new 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
7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 | |