purchase_capacity_block_extension
async
¶
purchase_capacity_block_extension(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
capacity_block_extension_offering_id: Optional[OfferingId] = None,
capacity_reservation_id: Optional[CapacityReservationId] = None,
dry_run: Optional[Boolean] = None,
) -> PurchaseCapacityBlockExtensionResult
Purchase the Capacity Block extension for use with your account. You must specify the ID of the Capacity Block extension offering you are purchasing.
Parameters:
-
capacity_block_extension_offering_id(Optional[OfferingId], default:None) –The ID of the Capacity Block extension offering to purchase.
-
capacity_reservation_id(Optional[CapacityReservationId], default:None) –The ID of the Capacity reservation to be extended.
-
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.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ec2/_services/async_ec2.py
56455 56456 56457 56458 56459 56460 56461 56462 56463 56464 56465 56466 56467 56468 56469 56470 56471 56472 56473 56474 56475 56476 56477 56478 56479 56480 56481 56482 56483 56484 56485 56486 56487 56488 56489 56490 56491 56492 56493 56494 56495 56496 56497 56498 56499 56500 56501 56502 56503 56504 56505 56506 56507 56508 56509 56510 56511 56512 | |