Skip to content

/AWS1/CL_EC2=>PURCHASECAPACITYBLOCK()

About PurchaseCapacityBlock

Purchase the Capacity Block for use with your account. With Capacity Blocks you ensure GPU capacity is available for machine learning (ML) workloads. You must specify the ID of the Capacity Block offering you are purchasing.

Method Signature

IMPORTING

Required arguments:

IV_CAPACITYBLOCKOFFERINGID TYPE /AWS1/EC2OFFERINGID /AWS1/EC2OFFERINGID

The ID of the Capacity Block offering.

IV_INSTANCEPLATFORM TYPE /AWS1/EC2CAPRESERVATIONINSTP00 /AWS1/EC2CAPRESERVATIONINSTP00

The type of operating system for which to reserve capacity.

Optional arguments:

IV_DRYRUN TYPE /AWS1/EC2BOOLEAN /AWS1/EC2BOOLEAN

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 is UnauthorizedOperation.

IT_TAGSPECIFICATIONS TYPE /AWS1/CL_EC2TAGSPECIFICATION=>TT_TAGSPECIFICATIONLIST TT_TAGSPECIFICATIONLIST

The tags to apply to the Capacity Block during launch.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_EC2PURCHASECAPBLOCKRS /AWS1/CL_EC2PURCHASECAPBLOCKRS