Skip to main content

job_schema_versions

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

Overview

Namejob_schema_versions
TypeResource
Idaws.sagemaker.job_schema_versions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
job_config_schema_versionstringThe version of the job configuration schema. (pattern: <code>\d+.\d+.\d+</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_job_schema_versionsselectregionLists available configuration schema versions for a specified job category. Use the schema versions with DescribeJobSchemaVersion to retrieve the full schema document. The following operations are related to ListJobSchemaVersions: DescribeJobSchemaVersion CreateJob
describe_job_schema_versionexecregion, JobCategoryReturns the JSON schema for a specified job category and schema version. Use this schema to validate your JobConfigDocument before calling CreateJob. If you don't specify a schema version, the latest version is returned. The schema defines required fields, allowed values, and constraints for the job configuration. The following operations are related to DescribeJobSchemaVersion: ListJobSchemaVersions CreateJob

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

Lists available configuration schema versions for a specified job category. Use the schema versions with DescribeJobSchemaVersion to retrieve the full schema document. The following operations are related to ListJobSchemaVersions: DescribeJobSchemaVersion CreateJob

SELECT
job_config_schema_version
FROM aws.sagemaker.job_schema_versions
WHERE region = '{{ region }}' -- required
;

Lifecycle Methods

Returns the JSON schema for a specified job category and schema version. Use this schema to validate your JobConfigDocument before calling CreateJob. If you don't specify a schema version, the latest version is returned. The schema defines required fields, allowed values, and constraints for the job configuration. The following operations are related to DescribeJobSchemaVersion: ListJobSchemaVersions CreateJob

EXEC aws.sagemaker.job_schema_versions.describe_job_schema_version
@region='{{ region }}' --required
@@json=
'{
"JobCategory": "{{ JobCategory }}",
"JobConfigSchemaVersion": "{{ JobConfigSchemaVersion }}"
}'
;