Skip to main content

model_quality_job_definitions

Creates, updates, deletes or gets a model_quality_job_definition resource or lists model_quality_job_definitions in a region

Overview

Namemodel_quality_job_definitions
TypeResource
DescriptionResource Type definition for AWS::SageMaker::ModelQualityJobDefinition
Idawscc.sagemaker.model_quality_job_definitions

Fields

NameDatatypeDescription
job_definition_arnstringThe Amazon Resource Name (ARN) of job definition.
job_definition_namestringThe name of the job definition.
model_quality_baseline_configobjectBaseline configuration used to validate that the data conforms to the specified constraints and statistics.
model_quality_app_specificationobjectContainer image configuration object for the monitoring job.
model_quality_job_inputobjectThe inputs for a monitoring job.
model_quality_job_output_configobjectThe output configuration for monitoring jobs.
job_resourcesobjectIdentifies the resources to deploy for a monitoring job.
network_configobjectNetworking options for a job, such as network traffic encryption between containers, whether to allow inbound and outbound network calls to and from containers, and the VPC subnets and security groups to use for VPC-enabled jobs.
endpoint_namestringThe name of the endpoint used to run the monitoring job.
role_arnstringThe Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can assume to perform tasks on your behalf.
stopping_conditionobjectConfigures conditions under which the processing job should be stopped, such as how long the processing job has been running. After the condition is met, the processing job is stopped.
tagsarrayAn array of key-value pairs to apply to this resource.
creation_timestringThe time at which the job definition was created.
regionstringAWS region.

For more information, see AWS::SageMaker::ModelQualityJobDefinition.

Methods

NameResourceAccessible byRequired Params
create_resourcemodel_quality_job_definitionsINSERTModelQualityAppSpecification, ModelQualityJobInput, ModelQualityJobOutputConfig, JobResources, RoleArn, region
delete_resourcemodel_quality_job_definitionsDELETEIdentifier, region
list_resourcesmodel_quality_job_definitions_list_onlySELECTregion
get_resourcemodel_quality_job_definitionsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual model_quality_job_definition.

SELECT
region,
job_definition_arn,
job_definition_name,
model_quality_baseline_config,
model_quality_app_specification,
model_quality_job_input,
model_quality_job_output_config,
job_resources,
network_config,
endpoint_name,
role_arn,
stopping_condition,
tags,
creation_time
FROM awscc.sagemaker.model_quality_job_definitions
WHERE
region = '{{ region }}' AND
Identifier = '{{ job_definition_arn }}';

INSERT example

Use the following StackQL query and manifest file to create a new model_quality_job_definition resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.sagemaker.model_quality_job_definitions (
ModelQualityAppSpecification,
ModelQualityJobInput,
ModelQualityJobOutputConfig,
JobResources,
RoleArn,
region
)
SELECT
'{{ model_quality_app_specification }}',
'{{ model_quality_job_input }}',
'{{ model_quality_job_output_config }}',
'{{ job_resources }}',
'{{ role_arn }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.sagemaker.model_quality_job_definitions
WHERE
Identifier = '{{ job_definition_arn }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

To operate on the model_quality_job_definitions resource, the following permissions are required:

sagemaker:CreateModelQualityJobDefinition,
sagemaker:DescribeModelQualityJobDefinition,
sagemaker:AddTags,
sagemaker:ListTags,
iam:PassRole