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

NameResourceAccessible byRequired Params
create_resourceprocessing_jobsINSERTAppSpecification, ProcessingResources, RoleArn, region
delete_resourceprocessing_jobsDELETEIdentifier, region
list_resourcesprocessing_jobs_list_onlySELECTregion
get_resourceprocessing_jobsSELECTIdentifier, 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 = '{{ region }}' AND
Identifier = '{{ processing_job_arn }}';

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
'{{ app_specification }}',
'{{ processing_resources }}',
'{{ role_arn }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.sagemaker.processing_jobs
WHERE
Identifier = '{{ processing_job_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 processing_jobs resource, the following permissions are required:

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