-
Notifications
You must be signed in to change notification settings - Fork 17
/
awsstepfunctionstasks_DataSource.go
44 lines (41 loc) · 1.61 KB
/
awsstepfunctionstasks_DataSource.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package awsstepfunctionstasks
// Location of the channel data.
//
// Example:
// tasks.NewSageMakerCreateTrainingJob(this, jsii.String("TrainSagemaker"), &sageMakerCreateTrainingJobProps{
// trainingJobName: sfn.jsonPath.stringAt(jsii.String("$.JobName")),
// algorithmSpecification: &algorithmSpecification{
// algorithmName: jsii.String("BlazingText"),
// trainingInputMode: tasks.inputMode_FILE,
// },
// inputDataConfig: []channel{
// &channel{
// channelName: jsii.String("train"),
// dataSource: &dataSource{
// s3DataSource: &s3DataSource{
// s3DataType: tasks.s3DataType_S3_PREFIX,
// s3Location: tasks.s3Location.fromJsonExpression(jsii.String("$.S3Bucket")),
// },
// },
// },
// },
// outputDataConfig: &outputDataConfig{
// s3OutputLocation: tasks.*s3Location.fromBucket(s3.bucket.fromBucketName(this, jsii.String("Bucket"), jsii.String("mybucket")), jsii.String("myoutputpath")),
// },
// resourceConfig: &resourceConfig{
// instanceCount: jsii.Number(1),
// instanceType: ec2.NewInstanceType(sfn.*jsonPath.stringAt(jsii.String("$.InstanceType"))),
// volumeSize: awscdk.Size.gibibytes(jsii.Number(50)),
// },
// // optional: default is 1 instance of EC2 `M4.XLarge` with `10GB` volume
// stoppingCondition: &stoppingCondition{
// maxRuntime: awscdk.Duration.hours(jsii.Number(2)),
// },
// })
//
// Experimental.
type DataSource struct {
// S3 location of the data source that is associated with a channel.
// Experimental.
S3DataSource *S3DataSource `field:"required" json:"s3DataSource" yaml:"s3DataSource"`
}