create_capacity_reservation_by_splitting
async
¶
create_capacity_reservation_by_splitting(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = 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/async_ec2.py
7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 | |