Skip to main content

reserved_capacities

Creates, updates, deletes, gets or lists a reserved_capacities resource.

Overview

Namereserved_capacities
TypeResource
Idaws.sagemaker.reserved_capacities

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
availability_zonestringThe Availability Zone where the reserved capacity is provisioned. (pattern: <code>[a-z]+-[0-9a-z-]+</code>)
available_instance_countintegerThe number of instances currently available for use in this reserved capacity.
duration_hoursinteger (int64)The total duration of the reserved capacity in hours.
duration_minutesinteger (int64)The number of minutes for the duration of the reserved capacity. For example, if a reserved capacity starts at 08:55 and ends at 11:30, the minutes field would be 35.
end_timestring (date-time)The timestamp when the reserved capacity expires.
in_use_instance_countintegerThe number of instances currently in use from this reserved capacity.
instance_typestringThe Amazon EC2 instance type used in the reserved capacity. (ml.p4d.24xlarge, ml.p5.48xlarge, ml.p5e.48xlarge, ml.p5en.48xlarge, ml.trn1.32xlarge, ml.trn2.48xlarge, ml.p6-b200.48xlarge, ml.p4de.24xlarge, ml.p6e-gb200.36xlarge, ml.p5.4xlarge, ml.p6-b300.48xlarge)
reserved_capacity_arnstringARN of the reserved capacity. (pattern: <code>arn:aws[a-z-]:sagemaker:[a-z0-9-]:[0-9]{12}:reserved-capacity/.*</code>)
reserved_capacity_typestringThe type of reserved capacity. (UltraServer, Instance)
start_timestring (date-time)The timestamp when the reserved capacity becomes active.
statusstringThe current status of the reserved capacity. (Pending, Active, Scheduled, Expired, Failed)
total_instance_countintegerThe total number of instances allocated to this reserved capacity.
ultra_server_summaryobjectA summary of the UltraServer associated with this reserved capacity.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_reserved_capacityselectregionRetrieves details about a reserved capacity.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieves details about a reserved capacity.

SELECT
availability_zone,
available_instance_count,
duration_hours,
duration_minutes,
end_time,
in_use_instance_count,
instance_type,
reserved_capacity_arn,
reserved_capacity_type,
start_time,
status,
total_instance_count,
ultra_server_summary
FROM aws.sagemaker.reserved_capacities
WHERE region = '{{ region }}' -- required
;