Skip to main content

processing_jobs

Creates, updates, deletes or gets a processing_job resource or lists processing_jobs in a region

Overview

Nameprocessing_jobs
TypeResource
DescriptionResource Type definition for AWS::SageMaker::ProcessingJob
Idawscc.sagemaker.processing_jobs

Fields

NameDatatypeDescription
app_specificationobjectConfigures the processing job to run a specified Docker container image.
environmentobjectSets the environment variables in the Docker container
experiment_configobjectAssociates a SageMaker job as a trial component with an experiment and trial.
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.
processing_inputsarrayAn array of inputs configuring the data to download into the processing container.
processing_job_namestringThe name of the processing job. The name must be unique within an AWS Region in the AWS account.
processing_output_configobjectConfiguration for uploading output from the processing container.
processing_resourcesobjectIdentifies the resources, ML compute instances, and ML storage volumes to deploy for a processing job. In distributed training, you specify more than one instance.
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.
tagsarray(Optional) An array of key-value pairs. For more information, see Using Cost Allocation Tags(https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-whatURL) in the AWS Billing and Cost Management User Guide.
processing_job_arnstringThe Amazon Resource Name (ARN) of the processing job.
auto_ml_job_arnstringThe ARN of an AutoML job associated with this processing job.
exit_messagestringAn optional string, up to one KB in size, that contains metadata from the processing container when the processing job exits.
failure_reasonstringA string, up to one KB in size, that contains the reason a processing job failed, if it failed.
monitoring_schedule_arnstringThe ARN of a monitoring schedule for an endpoint associated with this processing job.
training_job_arnstringThe ARN of a training job associated with this processing job
processing_job_statusstringProvides the status of a processing job.
creation_timestringThe time at which the processing job was created.
last_modified_timestringThe time at which the processing job was last modified.
processing_start_timestringThe time at which the processing job started.
processing_end_timestringThe time at which the processing job completed.
regionstringAWS region.

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

Methods

NameAccessible byRequired Params
create_resourceINSERTAppSpecification, ProcessingResources, RoleArn, region
delete_resourceDELETEdata__Identifier, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all properties from an individual processing_job.

SELECT
region,
app_specification,
environment,
experiment_config,
network_config,
processing_inputs,
processing_job_name,
processing_output_config,
processing_resources,
role_arn,
stopping_condition,
tags,
processing_job_arn,
auto_ml_job_arn,
exit_message,
failure_reason,
monitoring_schedule_arn,
training_job_arn,
processing_job_status,
creation_time,
last_modified_time,
processing_start_time,
processing_end_time
FROM awscc.sagemaker.processing_jobs
WHERE region = 'us-east-1' AND data__Identifier = '<ProcessingJobArn>';

INSERT example

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

/*+ create */
INSERT INTO awscc.sagemaker.processing_jobs (
AppSpecification,
ProcessingResources,
RoleArn,
region
)
SELECT
'{{ AppSpecification }}',
'{{ ProcessingResources }}',
'{{ RoleArn }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM awscc.sagemaker.processing_jobs
WHERE data__Identifier = '<ProcessingJobArn>'
AND region = 'us-east-1';

Permissions

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

Create

ec2:CreateNetworkInterface,
ec2:CreateNetworkInterfacePermission,
ec2:DeleteNetworkInterface,
ec2:DeleteNetworkInterfacePermission,
ec2:DescribeNetworkInterfaces,
ec2:DescribeVpcs,
ec2:DescribeDhcpOptions,
ec2:DescribeSubnets,
ec2:DescribeSecurityGroups,
kms:CreateGrant,
kms:Decrypt,
kms:DescribeKey,
sagemaker:CreateProcessingJob,
sagemaker:DescribeProcessingJob,
sagemaker:AddTags,
sagemaker:ListTags,
iam:PassRole

Read

sagemaker:DescribeProcessingJob,
sagemaker:ListTags

Delete

ec2:DeleteNetworkInterface,
ec2:DeleteNetworkInterfacePermission,
ec2:DescribeNetworkInterfaces,
ec2:DescribeVpcs,
ec2:DescribeSubnets,
ec2:DescribeSecurityGroups,
sagemaker:StopProcessingJob,
sagemaker:DescribeProcessingJob,
sagemaker:ListTags,
sagemaker:DeleteTags

List

sagemaker:ListProcessingJobs,
sagemaker:DescribeProcessingJob,
sagemaker:ListTags