purchase_capacity_block_extension
¶
purchase_capacity_block_extension(
*,
config_overrides: Optional[EC2ClientConfig] = 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/ec2.py
55680 55681 55682 55683 55684 55685 55686 55687 55688 55689 55690 55691 55692 55693 55694 55695 55696 55697 55698 55699 55700 55701 55702 55703 55704 55705 55706 55707 55708 55709 55710 55711 55712 55713 55714 55715 55716 55717 55718 55719 55720 55721 55722 55723 55724 55725 55726 55727 55728 55729 55730 55731 55732 55733 55734 55735 55736 | |