-
Notifications
You must be signed in to change notification settings - Fork 17
/
awsstepfunctionstasks_InputMode.go
49 lines (45 loc) · 1.59 KB
/
awsstepfunctionstasks_InputMode.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
44
45
46
47
48
package awsstepfunctionstasks
// Input mode that the algorithm supports.
//
// 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 InputMode string
const (
// Pipe mode.
// Experimental.
InputMode_PIPE InputMode = "PIPE"
// File mode.
// Experimental.
InputMode_FILE InputMode = "FILE"
)