-
Notifications
You must be signed in to change notification settings - Fork 17
/
Channel.go
67 lines (64 loc) · 2.53 KB
/
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
65
66
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),
// },
// }
//
type Channel struct {
// Name of the channel.
ChannelName *string `field:"required" json:"channelName" yaml:"channelName"`
// Location of the channel data.
DataSource *DataSource `field:"required" json:"dataSource" yaml:"dataSource"`
// Compression type if training data is compressed.
// Default: - None.
//
CompressionType CompressionType `field:"optional" json:"compressionType" yaml:"compressionType"`
// The MIME type of the data.
// Default: - None.
//
ContentType *string `field:"optional" json:"contentType" yaml:"contentType"`
// Input mode to use for the data channel in a training job.
// Default: - None.
//
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.
// Default: - None.
//
RecordWrapperType RecordWrapperType `field:"optional" json:"recordWrapperType" yaml:"recordWrapperType"`
// Shuffle config option for input data in a channel.
// Default: - None.
//
ShuffleConfig *ShuffleConfig `field:"optional" json:"shuffleConfig" yaml:"shuffleConfig"`
}