Class CfnProcessingJob
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.sagemaker.CfnProcessingJob
- All Implemented Interfaces:
IInspectable
,ITaggableV2
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.113.0 (build fc68b25)",
date="2025-08-20T12:34:51.275Z")
@Stability(Stable)
public class CfnProcessingJob
extends CfnResource
implements IInspectable, ITaggableV2
An Amazon SageMaker processing job that is used to analyze data and evaluate models.
For more information, see Process Data and Evaluate Models .
Also, note the following details specific to processing jobs created using CloudFormation stacks:
- When you delete a CloudFormation stack with a processing job resource, the processing job is stopped using the StopProcessingJob API but not deleted. Any tags associated with the processing job are deleted using the DeleteTags API.
- If any part of your CloudFormation stack deployment fails and a rollback initiates, processing jobs with a specified
ProcessingJobName
value might cause the stack to become stuck in a failed state. This occurs because during a rollback, CloudFormation attempts to recreate the stack resources. Processing job names must be unique, so when CloudFormation attempts to recreate a processing job using the already defined name, this results in anAlreadyExists
error. To prevent this, we recommend that you don't specify the optionalProcessingJobName
property, thereby allowing SageMaker to auto-generate a unique name for your processing job. This ensures successful stack rollbacks when necessary. If you must use custom job names, you have to manually modify theProcessingJobName
and redeploy the stack to recover from a failed rollback.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.sagemaker.*; CfnProcessingJob cfnProcessingJob = CfnProcessingJob.Builder.create(this, "MyCfnProcessingJob") .appSpecification(AppSpecificationProperty.builder() .imageUri("imageUri") // the properties below are optional .containerArguments(List.of("containerArguments")) .containerEntrypoint(List.of("containerEntrypoint")) .build()) .processingResources(ProcessingResourcesProperty.builder() .clusterConfig(ClusterConfigProperty.builder() .instanceCount(123) .instanceType("instanceType") .volumeSizeInGb(123) // the properties below are optional .volumeKmsKeyId("volumeKmsKeyId") .build()) .build()) .roleArn("roleArn") // the properties below are optional .environment(Map.of( "environmentKey", "environment")) .experimentConfig(ExperimentConfigProperty.builder() .experimentName("experimentName") .runName("runName") .trialComponentDisplayName("trialComponentDisplayName") .trialName("trialName") .build()) .networkConfig(NetworkConfigProperty.builder() .enableInterContainerTrafficEncryption(false) .enableNetworkIsolation(false) .vpcConfig(VpcConfigProperty.builder() .securityGroupIds(List.of("securityGroupIds")) .subnets(List.of("subnets")) .build()) .build()) .processingInputs(List.of(ProcessingInputsObjectProperty.builder() .inputName("inputName") // the properties below are optional .appManaged(false) .datasetDefinition(DatasetDefinitionProperty.builder() .athenaDatasetDefinition(AthenaDatasetDefinitionProperty.builder() .catalog("catalog") .database("database") .outputFormat("outputFormat") .outputS3Uri("outputS3Uri") .queryString("queryString") // the properties below are optional .kmsKeyId("kmsKeyId") .outputCompression("outputCompression") .workGroup("workGroup") .build()) .dataDistributionType("dataDistributionType") .inputMode("inputMode") .localPath("localPath") .redshiftDatasetDefinition(RedshiftDatasetDefinitionProperty.builder() .clusterId("clusterId") .clusterRoleArn("clusterRoleArn") .database("database") .dbUser("dbUser") .outputFormat("outputFormat") .outputS3Uri("outputS3Uri") .queryString("queryString") // the properties below are optional .kmsKeyId("kmsKeyId") .outputCompression("outputCompression") .build()) .build()) .s3Input(S3InputProperty.builder() .s3DataType("s3DataType") .s3Uri("s3Uri") // the properties below are optional .localPath("localPath") .s3CompressionType("s3CompressionType") .s3DataDistributionType("s3DataDistributionType") .s3InputMode("s3InputMode") .build()) .build())) .processingJobName("processingJobName") .processingOutputConfig(ProcessingOutputConfigProperty.builder() .outputs(List.of(ProcessingOutputsObjectProperty.builder() .outputName("outputName") // the properties below are optional .appManaged(false) .featureStoreOutput(FeatureStoreOutputProperty.builder() .featureGroupName("featureGroupName") .build()) .s3Output(S3OutputProperty.builder() .s3UploadMode("s3UploadMode") .s3Uri("s3Uri") // the properties below are optional .localPath("localPath") .build()) .build())) // the properties below are optional .kmsKeyId("kmsKeyId") .build()) .stoppingCondition(StoppingConditionProperty.builder() .maxRuntimeInSeconds(123) .build()) .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
Configuration to run a processing job in a specified container image.static interface
Configuration for Athena Dataset Definition input.static final class
A fluent builder forCfnProcessingJob
.static interface
Configuration for the cluster used to run a processing job.static interface
Configuration for Dataset Definition inputs.static interface
Associates a SageMaker job as a trial component with an experiment and trial.static interface
Configuration for processing job outputs in Amazon SageMaker Feature Store.static interface
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.static interface
The inputs for a processing job.static interface
Configuration for uploading output from the processing container.static interface
Describes the results of a processing job.static interface
Identifies the resources, ML compute instances, and ML storage volumes to deploy for a processing job.static interface
Configuration for Redshift Dataset Definition input.static interface
Configuration for downloading input data from Amazon S3 into the processing container.static interface
Configuration for uploading output data to Amazon S3 from the processing container.static interface
Configures conditions under which the processing job should be stopped, such as how long the processing job has been running.static interface
Specifies an Amazon Virtual Private Cloud (VPC) that your SageMaker jobs, hosted models, and compute resources have access to.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
CfnProcessingJob
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnProcessingJob
(software.amazon.jsii.JsiiObjectRef objRef) CfnProcessingJob
(software.constructs.Construct scope, String id, CfnProcessingJobProps props) -
Method Summary
Modifier and TypeMethodDescriptionConfiguration to run a processing job in a specified container image.The Amazon Resource Name (ARN) of the AutoML job associated with this processing job.The time the processing job was created.A string, up to one KB in size, that contains metadata from the processing container when the processing job exits.A string, up to one KB in size, that contains the reason a processing job failed, if it failed.The time the processing job was last modified.The ARN of a monitoring schedule for an endpoint associated with this processing job.The time that the processing job ended.The ARN of the processing job.The status of the processing job.The time that the processing job started.The ARN of the training job associated with this processing job.Tag Manager which manages the tags for this resource.Sets the environment variables in the Docker container.Associates a SageMaker job as a trial component with an experiment and trial.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.List of input configurations for the processing job.The name of the processing job.Contains information about the output location for the compiled model and the target device that the model runs on.Identifies the resources, ML compute instances, and ML storage volumes to deploy for a processing job.The ARN of the role used to create the processing job.Configures conditions under which the processing job should be stopped, such as how long the processing job has been running.getTags()
An array of key-value pairs.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setAppSpecification
(IResolvable value) Configuration to run a processing job in a specified container image.void
Configuration to run a processing job in a specified container image.void
setEnvironment
(Map<String, String> value) Sets the environment variables in the Docker container.void
setEnvironment
(IResolvable value) Sets the environment variables in the Docker container.void
setExperimentConfig
(IResolvable value) Associates a SageMaker job as a trial component with an experiment and trial.void
Associates a SageMaker job as a trial component with an experiment and trial.void
setNetworkConfig
(IResolvable value) 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.void
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.void
setProcessingInputs
(List<Object> value) List of input configurations for the processing job.void
setProcessingInputs
(IResolvable value) List of input configurations for the processing job.void
setProcessingJobName
(String value) The name of the processing job.void
Contains information about the output location for the compiled model and the target device that the model runs on.void
Contains information about the output location for the compiled model and the target device that the model runs on.void
Identifies the resources, ML compute instances, and ML storage volumes to deploy for a processing job.void
Identifies the resources, ML compute instances, and ML storage volumes to deploy for a processing job.void
setRoleArn
(String value) The ARN of the role used to create the processing job.void
setStoppingCondition
(IResolvable value) Configures conditions under which the processing job should be stopped, such as how long the processing job has been running.void
Configures conditions under which the processing job should be stopped, such as how long the processing job has been running.void
An array of key-value pairs.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnProcessingJob
protected CfnProcessingJob(software.amazon.jsii.JsiiObjectRef objRef) -
CfnProcessingJob
protected CfnProcessingJob(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnProcessingJob
@Stability(Stable) public CfnProcessingJob(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnProcessingJobProps props) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.props
- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrAutoMlJobArn
The Amazon Resource Name (ARN) of the AutoML job associated with this processing job. -
getAttrCreationTime
The time the processing job was created. -
getAttrExitMessage
A string, up to one KB in size, that contains metadata from the processing container when the processing job exits. -
getAttrFailureReason
A string, up to one KB in size, that contains the reason a processing job failed, if it failed. -
getAttrLastModifiedTime
The time the processing job was last modified. -
getAttrMonitoringScheduleArn
The ARN of a monitoring schedule for an endpoint associated with this processing job. -
getAttrProcessingEndTime
The time that the processing job ended. -
getAttrProcessingJobArn
The ARN of the processing job. -
getAttrProcessingJobStatus
The status of the processing job. -
getAttrProcessingStartTime
The time that the processing job started. -
getAttrTrainingJobArn
The ARN of the training job associated with this processing job. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManager
in interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getAppSpecification
Configuration to run a processing job in a specified container image. -
setAppSpecification
Configuration to run a processing job in a specified container image. -
setAppSpecification
@Stability(Stable) public void setAppSpecification(@NotNull CfnProcessingJob.AppSpecificationProperty value) Configuration to run a processing job in a specified container image. -
getProcessingResources
Identifies the resources, ML compute instances, and ML storage volumes to deploy for a processing job. -
setProcessingResources
Identifies the resources, ML compute instances, and ML storage volumes to deploy for a processing job. -
setProcessingResources
@Stability(Stable) public void setProcessingResources(@NotNull CfnProcessingJob.ProcessingResourcesProperty value) Identifies the resources, ML compute instances, and ML storage volumes to deploy for a processing job. -
getRoleArn
The ARN of the role used to create the processing job. -
setRoleArn
The ARN of the role used to create the processing job. -
getEnvironment
Sets the environment variables in the Docker container. -
setEnvironment
Sets the environment variables in the Docker container. -
setEnvironment
Sets the environment variables in the Docker container. -
getExperimentConfig
Associates a SageMaker job as a trial component with an experiment and trial. -
setExperimentConfig
Associates a SageMaker job as a trial component with an experiment and trial. -
setExperimentConfig
@Stability(Stable) public void setExperimentConfig(@Nullable CfnProcessingJob.ExperimentConfigProperty value) Associates a SageMaker job as a trial component with an experiment and trial. -
getNetworkConfig
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. -
setNetworkConfig
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. -
setNetworkConfig
@Stability(Stable) public void setNetworkConfig(@Nullable CfnProcessingJob.NetworkConfigProperty value) 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. -
getProcessingInputs
List of input configurations for the processing job. -
setProcessingInputs
List of input configurations for the processing job. -
setProcessingInputs
List of input configurations for the processing job. -
getProcessingJobName
The name of the processing job. -
setProcessingJobName
The name of the processing job. -
getProcessingOutputConfig
Contains information about the output location for the compiled model and the target device that the model runs on. -
setProcessingOutputConfig
Contains information about the output location for the compiled model and the target device that the model runs on. -
setProcessingOutputConfig
@Stability(Stable) public void setProcessingOutputConfig(@Nullable CfnProcessingJob.ProcessingOutputConfigProperty value) Contains information about the output location for the compiled model and the target device that the model runs on. -
getStoppingCondition
Configures conditions under which the processing job should be stopped, such as how long the processing job has been running. -
setStoppingCondition
Configures conditions under which the processing job should be stopped, such as how long the processing job has been running. -
setStoppingCondition
@Stability(Stable) public void setStoppingCondition(@Nullable CfnProcessingJob.StoppingConditionProperty value) Configures conditions under which the processing job should be stopped, such as how long the processing job has been running. -
getTags
An array of key-value pairs. -
setTags
An array of key-value pairs.
-