Class CfnProcessingJob.S3InputProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnProcessingJob.S3InputProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnProcessingJob.S3InputProperty>
- Enclosing interface:
CfnProcessingJob.S3InputProperty
@Stability(Stable)
public static final class CfnProcessingJob.S3InputProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnProcessingJob.S3InputProperty>
A builder for
CfnProcessingJob.S3InputProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnProcessingJob.S3InputProperty.getLocalPath()
s3CompressionType
(String s3CompressionType) Sets the value ofCfnProcessingJob.S3InputProperty.getS3CompressionType()
s3DataDistributionType
(String s3DataDistributionType) Sets the value ofCfnProcessingJob.S3InputProperty.getS3DataDistributionType()
s3DataType
(String s3DataType) Sets the value ofCfnProcessingJob.S3InputProperty.getS3DataType()
s3InputMode
(String s3InputMode) Sets the value ofCfnProcessingJob.S3InputProperty.getS3InputMode()
Sets the value ofCfnProcessingJob.S3InputProperty.getS3Uri()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
s3DataType
Sets the value ofCfnProcessingJob.S3InputProperty.getS3DataType()
- Parameters:
s3DataType
- Whether you use anS3Prefix
or aManifestFile
for the data type. This parameter is required. If you chooseS3Prefix
,S3Uri
identifies a key name prefix. Amazon SageMaker uses all objects with the specified key name prefix for the processing job. If you chooseManifestFile
,S3Uri
identifies an object that is a manifest file containing a list of object keys that you want Amazon SageMaker to use for the processing job.- Returns:
this
-
s3Uri
Sets the value ofCfnProcessingJob.S3InputProperty.getS3Uri()
- Parameters:
s3Uri
- The URI of the Amazon S3 prefix Amazon SageMaker downloads data required to run a processing job. This parameter is required.- Returns:
this
-
localPath
Sets the value ofCfnProcessingJob.S3InputProperty.getLocalPath()
- Parameters:
localPath
- The local path in your container where you want Amazon SageMaker to write input data to.LocalPath
is an absolute path to the input data and must begin with/opt/ml/processing/
.LocalPath
is a required parameter whenAppManaged
isFalse
(default).- Returns:
this
-
s3CompressionType
@Stability(Stable) public CfnProcessingJob.S3InputProperty.Builder s3CompressionType(String s3CompressionType) Sets the value ofCfnProcessingJob.S3InputProperty.getS3CompressionType()
- Parameters:
s3CompressionType
- Whether to GZIP-decompress the data in Amazon S3 as it is streamed into the processing container.Gzip
can only be used whenPipe
mode is specified as theS3InputMode
. InPipe
mode, Amazon SageMaker streams input data from the source directly to your container without using the EBS volume.- Returns:
this
-
s3DataDistributionType
@Stability(Stable) public CfnProcessingJob.S3InputProperty.Builder s3DataDistributionType(String s3DataDistributionType) Sets the value ofCfnProcessingJob.S3InputProperty.getS3DataDistributionType()
- Parameters:
s3DataDistributionType
- Whether to distribute the data from Amazon S3 to all processing instances withFullyReplicated
, or whether the data from Amazon S3 is shared by Amazon S3 key, downloading one shard of data to each processing instance.- Returns:
this
-
s3InputMode
Sets the value ofCfnProcessingJob.S3InputProperty.getS3InputMode()
- Parameters:
s3InputMode
- Whether to useFile
orPipe
input mode. In File mode, Amazon SageMaker copies the data from the input source onto the local ML storage volume before starting your processing container. This is the most commonly used input mode. InPipe
mode, Amazon SageMaker streams input data from the source directly to your processing container into named pipes without using the ML storage volume.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnProcessingJob.S3InputProperty>
- Returns:
- a new instance of
CfnProcessingJob.S3InputProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-