CfnProcessingJobProps Struct
Properties for defining a CfnProcessingJob.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sagemaker as sagemaker } from 'aws-cdk-lib';
const cfnProcessingJobProps: sagemaker.CfnProcessingJobProps = {
appSpecification: {
imageUri: 'imageUri',
// the properties below are optional
containerArguments: ['containerArguments'],
containerEntrypoint: ['containerEntrypoint'],
},
processingResources: {
clusterConfig: {
instanceCount: 123,
instanceType: 'instanceType',
volumeSizeInGb: 123,
// the properties below are optional
volumeKmsKeyId: 'volumeKmsKeyId',
},
},
roleArn: 'roleArn',
// the properties below are optional
environment: {
environmentKey: 'environment',
},
experimentConfig: {
experimentName: 'experimentName',
runName: 'runName',
trialComponentDisplayName: 'trialComponentDisplayName',
trialName: 'trialName',
},
networkConfig: {
enableInterContainerTrafficEncryption: false,
enableNetworkIsolation: false,
vpcConfig: {
securityGroupIds: ['securityGroupIds'],
subnets: ['subnets'],
},
},
processingInputs: [{
inputName: 'inputName',
// the properties below are optional
appManaged: false,
datasetDefinition: {
athenaDatasetDefinition: {
catalog: 'catalog',
database: 'database',
outputFormat: 'outputFormat',
outputS3Uri: 'outputS3Uri',
queryString: 'queryString',
// the properties below are optional
kmsKeyId: 'kmsKeyId',
outputCompression: 'outputCompression',
workGroup: 'workGroup',
},
dataDistributionType: 'dataDistributionType',
inputMode: 'inputMode',
localPath: 'localPath',
redshiftDatasetDefinition: {
clusterId: 'clusterId',
clusterRoleArn: 'clusterRoleArn',
database: 'database',
dbUser: 'dbUser',
outputFormat: 'outputFormat',
outputS3Uri: 'outputS3Uri',
queryString: 'queryString',
// the properties below are optional
kmsKeyId: 'kmsKeyId',
outputCompression: 'outputCompression',
},
},
s3Input: {
s3DataType: 's3DataType',
s3Uri: 's3Uri',
// the properties below are optional
localPath: 'localPath',
s3CompressionType: 's3CompressionType',
s3DataDistributionType: 's3DataDistributionType',
s3InputMode: 's3InputMode',
},
}],
processingJobName: 'processingJobName',
processingOutputConfig: {
outputs: [{
outputName: 'outputName',
// the properties below are optional
appManaged: false,
featureStoreOutput: {
featureGroupName: 'featureGroupName',
},
s3Output: {
s3UploadMode: 's3UploadMode',
s3Uri: 's3Uri',
// the properties below are optional
localPath: 'localPath',
},
}],
// the properties below are optional
kmsKeyId: 'kmsKeyId',
},
stoppingCondition: {
maxRuntimeInSeconds: 123,
},
tags: [{
key: 'key',
value: 'value',
}],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_sagemaker as sagemaker
cfn_processing_job_props = sagemaker.CfnProcessingJobProps(
app_specification=sagemaker.CfnProcessingJob.AppSpecificationProperty(
image_uri="imageUri",
# the properties below are optional
container_arguments=["containerArguments"],
container_entrypoint=["containerEntrypoint"]
),
processing_resources=sagemaker.CfnProcessingJob.ProcessingResourcesProperty(
cluster_config=sagemaker.CfnProcessingJob.ClusterConfigProperty(
instance_count=123,
instance_type="instanceType",
volume_size_in_gb=123,
# the properties below are optional
volume_kms_key_id="volumeKmsKeyId"
)
),
role_arn="roleArn",
# the properties below are optional
environment={
"environment_key": "environment"
},
experiment_config=sagemaker.CfnProcessingJob.ExperimentConfigProperty(
experiment_name="experimentName",
run_name="runName",
trial_component_display_name="trialComponentDisplayName",
trial_name="trialName"
),
network_config=sagemaker.CfnProcessingJob.NetworkConfigProperty(
enable_inter_container_traffic_encryption=False,
enable_network_isolation=False,
vpc_config=sagemaker.CfnProcessingJob.VpcConfigProperty(
security_group_ids=["securityGroupIds"],
subnets=["subnets"]
)
),
processing_inputs=[sagemaker.CfnProcessingJob.ProcessingInputsObjectProperty(
input_name="inputName",
# the properties below are optional
app_managed=False,
dataset_definition=sagemaker.CfnProcessingJob.DatasetDefinitionProperty(
athena_dataset_definition=sagemaker.CfnProcessingJob.AthenaDatasetDefinitionProperty(
catalog="catalog",
database="database",
output_format="outputFormat",
output_s3_uri="outputS3Uri",
query_string="queryString",
# the properties below are optional
kms_key_id="kmsKeyId",
output_compression="outputCompression",
work_group="workGroup"
),
data_distribution_type="dataDistributionType",
input_mode="inputMode",
local_path="localPath",
redshift_dataset_definition=sagemaker.CfnProcessingJob.RedshiftDatasetDefinitionProperty(
cluster_id="clusterId",
cluster_role_arn="clusterRoleArn",
database="database",
db_user="dbUser",
output_format="outputFormat",
output_s3_uri="outputS3Uri",
query_string="queryString",
# the properties below are optional
kms_key_id="kmsKeyId",
output_compression="outputCompression"
)
),
s3_input=sagemaker.CfnProcessingJob.S3InputProperty(
s3_data_type="s3DataType",
s3_uri="s3Uri",
# the properties below are optional
local_path="localPath",
s3_compression_type="s3CompressionType",
s3_data_distribution_type="s3DataDistributionType",
s3_input_mode="s3InputMode"
)
)],
processing_job_name="processingJobName",
processing_output_config=sagemaker.CfnProcessingJob.ProcessingOutputConfigProperty(
outputs=[sagemaker.CfnProcessingJob.ProcessingOutputsObjectProperty(
output_name="outputName",
# the properties below are optional
app_managed=False,
feature_store_output=sagemaker.CfnProcessingJob.FeatureStoreOutputProperty(
feature_group_name="featureGroupName"
),
s3_output=sagemaker.CfnProcessingJob.S3OutputProperty(
s3_upload_mode="s3UploadMode",
s3_uri="s3Uri",
# the properties below are optional
local_path="localPath"
)
)],
# the properties below are optional
kms_key_id="kmsKeyId"
),
stopping_condition=sagemaker.CfnProcessingJob.StoppingConditionProperty(
max_runtime_in_seconds=123
),
tags=[CfnTag(
key="key",
value="value"
)]
)
java
// 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.*;
CfnProcessingJobProps cfnProcessingJobProps = CfnProcessingJobProps.builder()
.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();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Sagemaker;
var cfnProcessingJobProps = new CfnProcessingJobProps {
AppSpecification = new AppSpecificationProperty {
ImageUri = "imageUri",
// the properties below are optional
ContainerArguments = new [] { "containerArguments" },
ContainerEntrypoint = new [] { "containerEntrypoint" }
},
ProcessingResources = new ProcessingResourcesProperty {
ClusterConfig = new ClusterConfigProperty {
InstanceCount = 123,
InstanceType = "instanceType",
VolumeSizeInGb = 123,
// the properties below are optional
VolumeKmsKeyId = "volumeKmsKeyId"
}
},
RoleArn = "roleArn",
// the properties below are optional
Environment = new Dictionary<string, string> {
{ "environmentKey", "environment" }
},
ExperimentConfig = new ExperimentConfigProperty {
ExperimentName = "experimentName",
RunName = "runName",
TrialComponentDisplayName = "trialComponentDisplayName",
TrialName = "trialName"
},
NetworkConfig = new NetworkConfigProperty {
EnableInterContainerTrafficEncryption = false,
EnableNetworkIsolation = false,
VpcConfig = new VpcConfigProperty {
SecurityGroupIds = new [] { "securityGroupIds" },
Subnets = new [] { "subnets" }
}
},
ProcessingInputs = new [] { new ProcessingInputsObjectProperty {
InputName = "inputName",
// the properties below are optional
AppManaged = false,
DatasetDefinition = new DatasetDefinitionProperty {
AthenaDatasetDefinition = new AthenaDatasetDefinitionProperty {
Catalog = "catalog",
Database = "database",
OutputFormat = "outputFormat",
OutputS3Uri = "outputS3Uri",
QueryString = "queryString",
// the properties below are optional
KmsKeyId = "kmsKeyId",
OutputCompression = "outputCompression",
WorkGroup = "workGroup"
},
DataDistributionType = "dataDistributionType",
InputMode = "inputMode",
LocalPath = "localPath",
RedshiftDatasetDefinition = new RedshiftDatasetDefinitionProperty {
ClusterId = "clusterId",
ClusterRoleArn = "clusterRoleArn",
Database = "database",
DbUser = "dbUser",
OutputFormat = "outputFormat",
OutputS3Uri = "outputS3Uri",
QueryString = "queryString",
// the properties below are optional
KmsKeyId = "kmsKeyId",
OutputCompression = "outputCompression"
}
},
S3Input = new S3InputProperty {
S3DataType = "s3DataType",
S3Uri = "s3Uri",
// the properties below are optional
LocalPath = "localPath",
S3CompressionType = "s3CompressionType",
S3DataDistributionType = "s3DataDistributionType",
S3InputMode = "s3InputMode"
}
} },
ProcessingJobName = "processingJobName",
ProcessingOutputConfig = new ProcessingOutputConfigProperty {
Outputs = new [] { new ProcessingOutputsObjectProperty {
OutputName = "outputName",
// the properties below are optional
AppManaged = false,
FeatureStoreOutput = new FeatureStoreOutputProperty {
FeatureGroupName = "featureGroupName"
},
S3Output = new S3OutputProperty {
S3UploadMode = "s3UploadMode",
S3Uri = "s3Uri",
// the properties below are optional
LocalPath = "localPath"
}
} },
// the properties below are optional
KmsKeyId = "kmsKeyId"
},
StoppingCondition = new StoppingConditionProperty {
MaxRuntimeInSeconds = 123
},
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnProcessingJobProps := &CfnProcessingJobProps{
AppSpecification: &AppSpecificationProperty{
ImageUri: jsii.String("imageUri"),
// the properties below are optional
ContainerArguments: []*string{
jsii.String("containerArguments"),
},
ContainerEntrypoint: []*string{
jsii.String("containerEntrypoint"),
},
},
ProcessingResources: &ProcessingResourcesProperty{
ClusterConfig: &ClusterConfigProperty{
InstanceCount: jsii.Number(123),
InstanceType: jsii.String("instanceType"),
VolumeSizeInGb: jsii.Number(123),
// the properties below are optional
VolumeKmsKeyId: jsii.String("volumeKmsKeyId"),
},
},
RoleArn: jsii.String("roleArn"),
// the properties below are optional
Environment: map[string]*string{
"environmentKey": jsii.String("environment"),
},
ExperimentConfig: &ExperimentConfigProperty{
ExperimentName: jsii.String("experimentName"),
RunName: jsii.String("runName"),
TrialComponentDisplayName: jsii.String("trialComponentDisplayName"),
TrialName: jsii.String("trialName"),
},
NetworkConfig: &NetworkConfigProperty{
EnableInterContainerTrafficEncryption: jsii.Boolean(false),
EnableNetworkIsolation: jsii.Boolean(false),
VpcConfig: &VpcConfigProperty{
SecurityGroupIds: []*string{
jsii.String("securityGroupIds"),
},
Subnets: []*string{
jsii.String("subnets"),
},
},
},
ProcessingInputs: []interface{}{
&ProcessingInputsObjectProperty{
InputName: jsii.String("inputName"),
// the properties below are optional
AppManaged: jsii.Boolean(false),
DatasetDefinition: &DatasetDefinitionProperty{
AthenaDatasetDefinition: &AthenaDatasetDefinitionProperty{
Catalog: jsii.String("catalog"),
Database: jsii.String("database"),
OutputFormat: jsii.String("outputFormat"),
OutputS3Uri: jsii.String("outputS3Uri"),
QueryString: jsii.String("queryString"),
// the properties below are optional
KmsKeyId: jsii.String("kmsKeyId"),
OutputCompression: jsii.String("outputCompression"),
WorkGroup: jsii.String("workGroup"),
},
DataDistributionType: jsii.String("dataDistributionType"),
InputMode: jsii.String("inputMode"),
LocalPath: jsii.String("localPath"),
RedshiftDatasetDefinition: &RedshiftDatasetDefinitionProperty{
ClusterId: jsii.String("clusterId"),
ClusterRoleArn: jsii.String("clusterRoleArn"),
Database: jsii.String("database"),
DbUser: jsii.String("dbUser"),
OutputFormat: jsii.String("outputFormat"),
OutputS3Uri: jsii.String("outputS3Uri"),
QueryString: jsii.String("queryString"),
// the properties below are optional
KmsKeyId: jsii.String("kmsKeyId"),
OutputCompression: jsii.String("outputCompression"),
},
},
S3Input: &S3InputProperty{
S3DataType: jsii.String("s3DataType"),
S3Uri: jsii.String("s3Uri"),
// the properties below are optional
LocalPath: jsii.String("localPath"),
S3CompressionType: jsii.String("s3CompressionType"),
S3DataDistributionType: jsii.String("s3DataDistributionType"),
S3InputMode: jsii.String("s3InputMode"),
},
},
},
ProcessingJobName: jsii.String("processingJobName"),
ProcessingOutputConfig: &ProcessingOutputConfigProperty{
Outputs: []interface{}{
&ProcessingOutputsObjectProperty{
OutputName: jsii.String("outputName"),
// the properties below are optional
AppManaged: jsii.Boolean(false),
FeatureStoreOutput: &FeatureStoreOutputProperty{
FeatureGroupName: jsii.String("featureGroupName"),
},
S3Output: &S3OutputProperty{
S3UploadMode: jsii.String("s3UploadMode"),
S3Uri: jsii.String("s3Uri"),
// the properties below are optional
LocalPath: jsii.String("localPath"),
},
},
},
// the properties below are optional
KmsKeyId: jsii.String("kmsKeyId"),
},
StoppingCondition: &StoppingConditionProperty{
MaxRuntimeInSeconds: jsii.Number(123),
},
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
appSpecificationIResolvable | CfnProcessingJob.app_specificationtyping.Union[IResolvable, AppSpecificationProperty]appSpecificationIResolvableAppSpecificationIResolvableAppSpecificationinterface{} required #Configuration to run a processing job in a specified container image.
environmentoptionalIResolvable | { [key: string]: string }environmentoptionaltyping.Union[IResolvable, typing.Mapping[str, str]]environmentoptionalIResolvableEnvironmentoptionalIResolvableEnvironmentoptionalinterface{} #Sets the environment variables in the Docker container.
experimentConfigoptionalIResolvable | CfnProcessingJob.experiment_configoptionaltyping.Union[IResolvable, ExperimentConfigProperty]experimentConfigoptionalIResolvableExperimentConfigoptionalIResolvableExperimentConfigoptionalinterface{} #Associates a SageMaker job as a trial component with an experiment and trial.
Specified when you call the CreateProcessingJob API.
networkConfigoptionalIResolvable | CfnProcessingJob.network_configoptionaltyping.Union[IResolvable, NetworkConfigProperty]networkConfigoptionalIResolvableNetworkConfigoptionalIResolvableNetworkConfigoptionalinterface{} #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.
processingInputsoptionalIResolvable | IResolvable | CfnProcessingJob.processing_inputsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ProcessingInputsObjectProperty]]]processingInputsoptionalIResolvableProcessingInputsoptionalIResolvableProcessingInputsoptionalinterface{} #List of input configurations for the processing job.
processingJobNameoptionalstringprocessing_job_nameoptionalstrprocessingJobNameoptionalStringProcessingJobNameoptionalstringProcessingJobNameoptional*string #The name of the processing job.
If you don't provide a job name, then a unique name is automatically created for the job.
processingOutputConfigoptionalIResolvable | CfnProcessingJob.processing_output_configoptionaltyping.Union[IResolvable, ProcessingOutputConfigProperty]processingOutputConfigoptionalIResolvableProcessingOutputConfigoptionalIResolvableProcessingOutputConfigoptionalinterface{} #Contains information about the output location for the compiled model and the target device that the model runs on.
notes
TargetDevice and TargetPlatform are mutually exclusive, so you need to choose one between the two to specify your target device or platform. If you cannot find your device you want to use from the TargetDevice list, use TargetPlatform to describe the platform of your edge device and CompilerOptions if there are specific settings that are required or recommended to use for particular TargetPlatform.
processingResourcesIResolvable | CfnProcessingJob.processing_resourcestyping.Union[IResolvable, ProcessingResourcesProperty]processingResourcesIResolvableProcessingResourcesIResolvableProcessingResourcesinterface{} required #Identifies the resources, ML compute instances, and ML storage volumes to deploy for a processing job.
In distributed training, you specify more than one instance.
The ARN of the role used to create the processing job.
stoppingConditionoptionalIResolvable | CfnProcessingJob.stopping_conditionoptionaltyping.Union[IResolvable, StoppingConditionProperty]stoppingConditionoptionalIResolvableStoppingConditionoptionalIResolvableStoppingConditionoptionalinterface{} #Configures 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.