Skip to main content

cluster_scheduler_configs

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

Overview

Namecluster_scheduler_configs
TypeResource
Idaws.sagemaker.cluster_scheduler_configs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
cluster_arnstringARN of the cluster where the cluster policy is applied. (pattern: <code>arn:aws[a-z-]:sagemaker:[a-z0-9-]:[0-9]{12}:cluster/[a-z0-9]{12}</code>)
cluster_scheduler_config_arnstringARN of the cluster policy. (pattern: <code>arn:aws[a-z-]*:sagemaker:[a-z0-9-]{9,16}:[0-9]{12}:cluster-scheduler-config/[a-z0-9]{12}</code>)
cluster_scheduler_config_idstringID of the cluster policy. (pattern: <code>[a-z0-9]{12}</code>)
cluster_scheduler_config_versionintegerVersion of the cluster policy.
created_byobjectInformation about the user who created or modified a SageMaker resource.
creation_timestring (date-time)Creation time of the cluster policy.
descriptionstringDescription of the cluster policy. (pattern: <code>[\p{L}\p{M}\p{Z}\p{S}\p{N}\p{P}]*</code>)
failure_reasonstringFailure reason of the cluster policy.
last_modified_byobjectInformation about the user who created or modified a SageMaker resource.
last_modified_timestring (date-time)Last modified time of the cluster policy.
namestringName of the cluster policy. (pattern: <code>[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}</code>)
scheduler_configobjectCluster policy configuration. This policy is used for task prioritization and fair-share allocation. This helps prioritize critical workloads and distributes idle compute across entities.
statusstringStatus of the cluster policy. (Creating, CreateFailed, CreateRollbackFailed, Created, Updating, UpdateFailed, UpdateRollbackFailed, Updated, Deleting, DeleteFailed, DeleteRollbackFailed, Deleted)
status_detailsobjectAdditional details about the status of the cluster policy. This field provides context when the policy is in a non-active state, such as during creation, updates, or if failures occur.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_cluster_scheduler_configselectregionDescription of the cluster policy. This policy is used for task prioritization and fair-share allocation. This helps prioritize critical workloads and distributes idle compute across entities.
list_cluster_scheduler_configsselectregionList the cluster policy configurations.
create_cluster_scheduler_configinsertregion, ClusterArn, SchedulerConfigCreate cluster policy configuration. This policy is used for task prioritization and fair-share allocation of idle compute. This helps prioritize critical workloads and distributes idle compute across entities.
update_cluster_scheduler_configupdateregion, ClusterSchedulerConfigId, TargetVersionUpdate the cluster policy configuration.
delete_cluster_scheduler_configdeleteregionDeletes the cluster policy of 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 cluster policy. This policy is used for task prioritization and fair-share allocation. This helps prioritize critical workloads and distributes idle compute across entities.

SELECT
cluster_arn,
cluster_scheduler_config_arn,
cluster_scheduler_config_id,
cluster_scheduler_config_version,
created_by,
creation_time,
description,
failure_reason,
last_modified_by,
last_modified_time,
name,
scheduler_config,
status,
status_details
FROM aws.sagemaker.cluster_scheduler_configs
WHERE region = '{{ region }}' -- required
;

INSERT examples

Create cluster policy configuration. This policy is used for task prioritization and fair-share allocation of idle compute. This helps prioritize critical workloads and distributes idle compute across entities.

INSERT INTO aws.sagemaker.cluster_scheduler_configs (
Name,
ClusterArn,
SchedulerConfig,
Description,
Tags,
region
)
SELECT
'{{ Name }}',
'{{ ClusterArn }}' /* required */,
'{{ SchedulerConfig }}' /* required */,
'{{ Description }}',
'{{ Tags }}',
'{{ region }}'
RETURNING
cluster_scheduler_config_arn,
cluster_scheduler_config_id
;

UPDATE examples

Update the cluster policy configuration.

UPDATE aws.sagemaker.cluster_scheduler_configs
SET
ClusterSchedulerConfigId = '{{ ClusterSchedulerConfigId }}',
TargetVersion = {{ TargetVersion }},
SchedulerConfig = '{{ SchedulerConfig }}',
Description = '{{ Description }}'
WHERE
region = '{{ region }}' --required
AND ClusterSchedulerConfigId = '{{ ClusterSchedulerConfigId }}' --required
AND TargetVersion = '{{ TargetVersion }}' --required
RETURNING
cluster_scheduler_config_arn,
cluster_scheduler_config_version;

DELETE examples

Deletes the cluster policy of the cluster.

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