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
Name | model_explainability_job_definitions |
Type | Resource |
Description | Resource Type definition for AWS::SageMaker::ModelExplainabilityJobDefinition |
Id | aws.sagemaker.model_explainability_job_definitions |
Fields
Name | Datatype | Description |
---|---|---|
job_definition_arn | string | The Amazon Resource Name (ARN) of job definition. |
job_definition_name | string | The name of the job definition. |
model_explainability_baseline_config | object | Baseline configuration used to validate that the data conforms to the specified constraints and statistics. |
model_explainability_app_specification | object | Container image configuration object for the monitoring job. |
model_explainability_job_input | object | The inputs for a monitoring job. |
model_explainability_job_output_config | object | The output configuration for monitoring jobs. |
job_resources | object | Identifies the resources to deploy for a monitoring job. |
network_config | object | Networking 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_name | string | The name of the endpoint used to run the monitoring job. |
role_arn | string | The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can assume to perform tasks on your behalf. |
stopping_condition | object | Specifies a time limit for how long the monitoring job is allowed to run. |
tags | array | An array of key-value pairs to apply to this resource. |
creation_time | string | The time at which the job definition was created. |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | ModelExplainabilityAppSpecification, ModelExplainabilityJobInput, ModelExplainabilityJobOutputConfig, JobResources, RoleArn, region |
delete_resource | DELETE | data__Identifier, region |
list_resources | SELECT | region |
get_resource | SELECT | data__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
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.sagemaker.model_explainability_job_definitions (
ModelExplainabilityAppSpecification,
ModelExplainabilityJobInput,
ModelExplainabilityJobOutputConfig,
JobResources,
RoleArn,
region
)
SELECT
'{{ ModelExplainabilityAppSpecification }}',
'{{ ModelExplainabilityJobInput }}',
'{{ ModelExplainabilityJobOutputConfig }}',
'{{ JobResources }}',
'{{ RoleArn }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.sagemaker.model_explainability_job_definitions (
JobDefinitionName,
ModelExplainabilityBaselineConfig,
ModelExplainabilityAppSpecification,
ModelExplainabilityJobInput,
ModelExplainabilityJobOutputConfig,
JobResources,
NetworkConfig,
EndpointName,
RoleArn,
StoppingCondition,
Tags,
region
)
SELECT
'{{ JobDefinitionName }}',
'{{ ModelExplainabilityBaselineConfig }}',
'{{ ModelExplainabilityAppSpecification }}',
'{{ ModelExplainabilityJobInput }}',
'{{ ModelExplainabilityJobOutputConfig }}',
'{{ JobResources }}',
'{{ NetworkConfig }}',
'{{ EndpointName }}',
'{{ RoleArn }}',
'{{ StoppingCondition }}',
'{{ Tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: model_explainability_job_definition
props:
- name: JobDefinitionName
value: '{{ JobDefinitionName }}'
- name: ModelExplainabilityBaselineConfig
value:
BaseliningJobName: '{{ BaseliningJobName }}'
ConstraintsResource:
S3Uri: '{{ S3Uri }}'
- name: ModelExplainabilityAppSpecification
value:
ImageUri: '{{ ImageUri }}'
ConfigUri: null
Environment: {}
- name: ModelExplainabilityJobInput
value:
EndpointInput:
EndpointName: '{{ EndpointName }}'
LocalPath: '{{ LocalPath }}'
S3DataDistributionType: '{{ S3DataDistributionType }}'
S3InputMode: '{{ S3InputMode }}'
ExcludeFeaturesAttribute: '{{ ExcludeFeaturesAttribute }}'
BatchTransformInput:
DataCapturedDestinationS3Uri: '{{ DataCapturedDestinationS3Uri }}'
DatasetFormat:
Csv:
Header: '{{ Header }}'
Json:
Line: '{{ Line }}'
Parquet: '{{ Parquet }}'
LocalPath: '{{ LocalPath }}'
S3DataDistributionType: '{{ S3DataDistributionType }}'
S3InputMode: '{{ S3InputMode }}'
ExcludeFeaturesAttribute: '{{ ExcludeFeaturesAttribute }}'
- name: ModelExplainabilityJobOutputConfig
value:
KmsKeyId: '{{ KmsKeyId }}'
MonitoringOutputs:
- S3Output:
LocalPath: '{{ LocalPath }}'
S3UploadMode: '{{ S3UploadMode }}'
S3Uri: '{{ S3Uri }}'
- name: JobResources
value:
ClusterConfig:
InstanceCount: '{{ InstanceCount }}'
InstanceType: '{{ InstanceType }}'
VolumeKmsKeyId: '{{ VolumeKmsKeyId }}'
VolumeSizeInGB: '{{ VolumeSizeInGB }}'
- name: NetworkConfig
value:
EnableInterContainerTrafficEncryption: '{{ EnableInterContainerTrafficEncryption }}'
EnableNetworkIsolation: '{{ EnableNetworkIsolation }}'
VpcConfig:
SecurityGroupIds:
- '{{ SecurityGroupIds[0] }}'
Subnets:
- '{{ Subnets[0] }}'
- name: EndpointName
value: null
- name: RoleArn
value: '{{ RoleArn }}'
- name: StoppingCondition
value:
MaxRuntimeInSeconds: '{{ MaxRuntimeInSeconds }}'
- name: Tags
value:
- Value: '{{ Value }}'
Key: '{{ Key }}'
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