-
Notifications
You must be signed in to change notification settings - Fork 17
/
awsstepfunctionstasks_Channel.go
65 lines (62 loc) · 2.55 KB
/
awsstepfunctionstasks_Channel.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
package awsstepfunctionstasks
// Describes the training, validation or test dataset and the Amazon S3 location where it is stored.
//
// Example:
// // 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"
//
// var s3Location s3Location
//
// channel := &channel{
// channelName: jsii.String("channelName"),
// dataSource: &dataSource{
// s3DataSource: &s3DataSource{
// s3Location: s3Location,
//
// // the properties below are optional
// attributeNames: []*string{
// jsii.String("attributeNames"),
// },
// s3DataDistributionType: awscdk.Aws_stepfunctions_tasks.s3DataDistributionType_FULLY_REPLICATED,
// s3DataType: awscdk.*Aws_stepfunctions_tasks.s3DataType_MANIFEST_FILE,
// },
// },
//
// // the properties below are optional
// compressionType: awscdk.*Aws_stepfunctions_tasks.compressionType_NONE,
// contentType: jsii.String("contentType"),
// inputMode: awscdk.*Aws_stepfunctions_tasks.inputMode_PIPE,
// recordWrapperType: awscdk.*Aws_stepfunctions_tasks.recordWrapperType_NONE,
// shuffleConfig: &shuffleConfig{
// seed: jsii.Number(123),
// },
// }
//
// Experimental.
type Channel struct {
// Name of the channel.
// Experimental.
ChannelName *string `field:"required" json:"channelName" yaml:"channelName"`
// Location of the channel data.
// Experimental.
DataSource *DataSource `field:"required" json:"dataSource" yaml:"dataSource"`
// Compression type if training data is compressed.
// Experimental.
CompressionType CompressionType `field:"optional" json:"compressionType" yaml:"compressionType"`
// The MIME type of the data.
// Experimental.
ContentType *string `field:"optional" json:"contentType" yaml:"contentType"`
// Input mode to use for the data channel in a training job.
// Experimental.
InputMode InputMode `field:"optional" json:"inputMode" yaml:"inputMode"`
// Specify RecordIO as the value when input data is in raw format but the training algorithm requires the RecordIO format.
//
// In this case, Amazon SageMaker wraps each individual S3 object in a RecordIO record.
// If the input data is already in RecordIO format, you don't need to set this attribute.
// Experimental.
RecordWrapperType RecordWrapperType `field:"optional" json:"recordWrapperType" yaml:"recordWrapperType"`
// Shuffle config option for input data in a channel.
// Experimental.
ShuffleConfig *ShuffleConfig `field:"optional" json:"shuffleConfig" yaml:"shuffleConfig"`
}