Interface S3DataSource
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
S3DataSource.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:48.174Z")
@Stability(Stable)
public interface S3DataSource
extends software.amazon.jsii.JsiiSerializable
S3 location of the channel data.
Example:
SageMakerCreateTrainingJob.Builder.create(this, "TrainSagemaker") .trainingJobName(JsonPath.stringAt("$.JobName")) .algorithmSpecification(AlgorithmSpecification.builder() .algorithmName("BlazingText") .trainingInputMode(InputMode.FILE) .build()) .inputDataConfig(List.of(Channel.builder() .channelName("train") .dataSource(DataSource.builder() .s3DataSource(S3DataSource.builder() .s3DataType(S3DataType.S3_PREFIX) .s3Location(S3Location.fromJsonExpression("$.S3Bucket")) .build()) .build()) .build())) .outputDataConfig(OutputDataConfig.builder() .s3OutputLocation(S3Location.fromBucket(Bucket.fromBucketName(this, "Bucket", "mybucket"), "myoutputpath")) .build()) .resourceConfig(ResourceConfig.builder() .instanceCount(1) .instanceType(new InstanceType(JsonPath.stringAt("$.InstanceType"))) .volumeSize(Size.gibibytes(50)) .build()) // optional: default is 1 instance of EC2 `M4.XLarge` with `10GB` volume .stoppingCondition(StoppingCondition.builder() .maxRuntime(Duration.hours(2)) .build()) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forS3DataSource
static final class
An implementation forS3DataSource
-
Method Summary
Modifier and TypeMethodDescriptionstatic S3DataSource.Builder
builder()
List of one or more attribute names to use that are found in a specified augmented manifest file.default S3DataDistributionType
S3 Data Distribution Type.default S3DataType
S3 Data Type.S3 Uri.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getS3Location
S3 Uri. -
getAttributeNames
List of one or more attribute names to use that are found in a specified augmented manifest file.Default: - No attribute names
-
getS3DataDistributionType
S3 Data Distribution Type.Default: - None
-
getS3DataType
S3 Data Type.Default: S3_PREFIX
-
builder
- Returns:
- a
S3DataSource.Builder
ofS3DataSource
-