Skip to main content

model_explainability_job_definitions

Creates, updates, deletes or gets a model_explainability_job_definition resource or lists model_explainability_job_definitions in a region

Overview

Namemodel_explainability_job_definitions
TypeResource
DescriptionResource Type definition for AWS::SageMaker::ModelExplainabilityJobDefinition
Idaws.sagemaker.model_explainability_job_definitions

Fields

NameDatatypeDescription
job_definition_arnstringThe Amazon Resource Name (ARN) of job definition.
job_definition_namestringThe name of the job definition.
model_explainability_baseline_configobjectBaseline configuration used to validate that the data conforms to the specified constraints and statistics.
model_explainability_app_specificationobjectContainer image configuration object for the monitoring job.
model_explainability_job_inputobjectThe inputs for a monitoring job.
model_explainability_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_conditionobjectSpecifies a time limit for how long the monitoring job is allowed to run.
tagsarrayAn array of key-value pairs to apply to this resource.
creation_timestringThe time at which the job definition was created.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTModelExplainabilityAppSpecification, ModelExplainabilityJobInput, ModelExplainabilityJobOutputConfig, JobResources, RoleArn, region
delete_resourceDELETEdata__Identifier, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all model_explainability_job_definitions in a region.

SELECT
region,
job_definition_arn,
job_definition_name,
model_explainability_baseline_config,
model_explainability_app_specification,
model_explainability_job_input,
model_explainability_job_output_config,
job_resources,
network_config,
endpoint_name,
role_arn,
stopping_condition,
tags,
creation_time
FROM aws.sagemaker.model_explainability_job_definitions
WHERE region = 'us-east-1';

Gets all properties from an individual model_explainability_job_definition.

SELECT
region,
job_definition_arn,
job_definition_name,
model_explainability_baseline_config,
model_explainability_app_specification,
model_explainability_job_input,
model_explainability_job_output_config,
job_resources,
network_config,
endpoint_name,
role_arn,
stopping_condition,
tags,
creation_time
FROM aws.sagemaker.model_explainability_job_definitions
WHERE region = 'us-east-1' AND data__Identifier = '<JobDefinitionArn>';

INSERT example

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

/*+ create */
INSERT INTO aws.sagemaker.model_explainability_job_definitions (
ModelExplainabilityAppSpecification,
ModelExplainabilityJobInput,
ModelExplainabilityJobOutputConfig,
JobResources,
RoleArn,
region
)
SELECT
'{{ ModelExplainabilityAppSpecification }}',
'{{ ModelExplainabilityJobInput }}',
'{{ ModelExplainabilityJobOutputConfig }}',
'{{ JobResources }}',
'{{ RoleArn }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.sagemaker.model_explainability_job_definitions
WHERE data__Identifier = '<JobDefinitionArn>'
AND region = 'us-east-1';

Permissions

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

Create

sagemaker:CreateModelExplainabilityJobDefinition,
sagemaker:DescribeModelExplainabilityJobDefinition,
iam:PassRole,
sagemaker:AddTags

Delete

sagemaker:DeleteModelExplainabilityJobDefinition

Read

sagemaker:DescribeModelExplainabilityJobDefinition

List

sagemaker:ListModelExplainabilityJobDefinitions,
sagemaker:ListTags