Skip to main content

compute_quotas

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

Overview

Namecompute_quotas
TypeResource
Idaws.sagemaker.compute_quotas

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
activation_statestringThe state of the compute allocation being described. Use to enable or disable compute allocation. Default is Enabled. (Enabled, Disabled)
cluster_arnstringARN of the cluster. (pattern: <code>arn:aws[a-z-]:sagemaker:[a-z0-9-]:[0-9]{12}:cluster/[a-z0-9]{12}</code>)
compute_quota_arnstringARN of the compute allocation definition. (pattern: <code>arn:aws[a-z-]:sagemaker:[a-z0-9-]:[0-9]{12}:compute-quota/[a-z0-9]{12}</code>)
compute_quota_configobjectConfiguration of the compute allocation definition. This includes the resource sharing option, and the setting to preempt low priority tasks.
compute_quota_idstringID of the compute allocation definition. (pattern: <code>[a-z0-9]{12}</code>)
compute_quota_targetobjectThe target entity to allocate compute resources to.
compute_quota_versionintegerVersion of the compute allocation definition.
created_byobjectInformation about the user who created or modified a SageMaker resource.
creation_timestring (date-time)Creation time of the compute allocation configuration.
descriptionstringDescription of the compute allocation definition. (pattern: <code>[\p{L}\p{M}\p{Z}\p{S}\p{N}\p{P}]*</code>)
failure_reasonstringFailure reason of the compute allocation definition.
last_modified_byobjectInformation about the user who created or modified a SageMaker resource.
last_modified_timestring (date-time)Last modified time of the compute allocation configuration.
namestringName of the compute allocation definition. (pattern: <code>[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}</code>)
statusstringStatus of the compute allocation definition. (Creating, CreateFailed, CreateRollbackFailed, Created, Updating, UpdateFailed, UpdateRollbackFailed, Updated, Deleting, DeleteFailed, DeleteRollbackFailed, Deleted)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_compute_quotaselectregionDescription of the compute allocation definition.
list_compute_quotasselectregionList the resource allocation definitions.
create_compute_quotainsertregion, ClusterArn, ComputeQuotaConfig, ComputeQuotaTargetCreate compute allocation definition. This defines how compute is allocated, shared, and borrowed for specified entities. Specifically, how to lend and borrow idle compute and assign a fair-share weight to the specified entities.
update_compute_quotaupdateregion, ComputeQuotaId, TargetVersionUpdate the compute allocation definition.
delete_compute_quotadeleteregionDeletes the compute allocation from the cluster.

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

Description of the compute allocation definition.

SELECT
activation_state,
cluster_arn,
compute_quota_arn,
compute_quota_config,
compute_quota_id,
compute_quota_target,
compute_quota_version,
created_by,
creation_time,
description,
failure_reason,
last_modified_by,
last_modified_time,
name,
status
FROM aws.sagemaker.compute_quotas
WHERE region = '{{ region }}' -- required
;

INSERT examples

Create compute allocation definition. This defines how compute is allocated, shared, and borrowed for specified entities. Specifically, how to lend and borrow idle compute and assign a fair-share weight to the specified entities.

INSERT INTO aws.sagemaker.compute_quotas (
Name,
Description,
ClusterArn,
ComputeQuotaConfig,
ComputeQuotaTarget,
ActivationState,
Tags,
region
)
SELECT
'{{ Name }}',
'{{ Description }}',
'{{ ClusterArn }}' /* required */,
'{{ ComputeQuotaConfig }}' /* required */,
'{{ ComputeQuotaTarget }}' /* required */,
'{{ ActivationState }}',
'{{ Tags }}',
'{{ region }}'
RETURNING
compute_quota_arn,
compute_quota_id
;

UPDATE examples

Update the compute allocation definition.

UPDATE aws.sagemaker.compute_quotas
SET
ComputeQuotaId = '{{ ComputeQuotaId }}',
TargetVersion = {{ TargetVersion }},
ComputeQuotaConfig = '{{ ComputeQuotaConfig }}',
ComputeQuotaTarget = '{{ ComputeQuotaTarget }}',
ActivationState = '{{ ActivationState }}',
Description = '{{ Description }}'
WHERE
region = '{{ region }}' --required
AND ComputeQuotaId = '{{ ComputeQuotaId }}' --required
AND TargetVersion = '{{ TargetVersion }}' --required
RETURNING
compute_quota_arn,
compute_quota_version;

DELETE examples

Deletes the compute allocation from the cluster.

DELETE FROM aws.sagemaker.compute_quotas
WHERE region = '{{ region }}' --required
;