-
Notifications
You must be signed in to change notification settings - Fork 17
/
CfnMLTransformProps.go
162 lines (159 loc) · 9.29 KB
/
CfnMLTransformProps.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
package awsglue
// Properties for defining a `CfnMLTransform`.
//
// 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 tags interface{}
//
// cfnMLTransformProps := &CfnMLTransformProps{
// InputRecordTables: &InputRecordTablesProperty{
// GlueTables: []interface{}{
// &GlueTablesProperty{
// DatabaseName: jsii.String("databaseName"),
// TableName: jsii.String("tableName"),
//
// // the properties below are optional
// CatalogId: jsii.String("catalogId"),
// ConnectionName: jsii.String("connectionName"),
// },
// },
// },
// Role: jsii.String("role"),
// TransformParameters: &TransformParametersProperty{
// TransformType: jsii.String("transformType"),
//
// // the properties below are optional
// FindMatchesParameters: &FindMatchesParametersProperty{
// PrimaryKeyColumnName: jsii.String("primaryKeyColumnName"),
//
// // the properties below are optional
// AccuracyCostTradeoff: jsii.Number(123),
// EnforceProvidedLabels: jsii.Boolean(false),
// PrecisionRecallTradeoff: jsii.Number(123),
// },
// },
//
// // the properties below are optional
// Description: jsii.String("description"),
// GlueVersion: jsii.String("glueVersion"),
// MaxCapacity: jsii.Number(123),
// MaxRetries: jsii.Number(123),
// Name: jsii.String("name"),
// NumberOfWorkers: jsii.Number(123),
// Tags: tags,
// Timeout: jsii.Number(123),
// TransformEncryption: &TransformEncryptionProperty{
// MlUserDataEncryption: &MLUserDataEncryptionProperty{
// MlUserDataEncryptionMode: jsii.String("mlUserDataEncryptionMode"),
//
// // the properties below are optional
// KmsKeyId: jsii.String("kmsKeyId"),
// },
// TaskRunSecurityConfigurationName: jsii.String("taskRunSecurityConfigurationName"),
// },
// WorkerType: jsii.String("workerType"),
// }
//
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-mltransform.html
//
type CfnMLTransformProps struct {
// A list of AWS Glue table definitions used by the transform.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-mltransform.html#cfn-glue-mltransform-inputrecordtables
//
InputRecordTables interface{} `field:"required" json:"inputRecordTables" yaml:"inputRecordTables"`
// The name or Amazon Resource Name (ARN) of the IAM role with the required permissions.
//
// The required permissions include both AWS Glue service role permissions to AWS Glue resources, and Amazon S3 permissions required by the transform.
//
// - This role needs AWS Glue service role permissions to allow access to resources in AWS Glue . See [Attach a Policy to IAM Users That Access AWS Glue](https://docs.aws.amazon.com/glue/latest/dg/attach-policy-iam-user.html) .
// - This role needs permission to your Amazon Simple Storage Service (Amazon S3) sources, targets, temporary directory, scripts, and any libraries used by the task run for this transform.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-mltransform.html#cfn-glue-mltransform-role
//
Role *string `field:"required" json:"role" yaml:"role"`
// The algorithm-specific parameters that are associated with the machine learning transform.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-mltransform.html#cfn-glue-mltransform-transformparameters
//
TransformParameters interface{} `field:"required" json:"transformParameters" yaml:"transformParameters"`
// A user-defined, long-form description text for the machine learning transform.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-mltransform.html#cfn-glue-mltransform-description
//
Description *string `field:"optional" json:"description" yaml:"description"`
// This value determines which version of AWS Glue this machine learning transform is compatible with.
//
// Glue 1.0 is recommended for most customers. If the value is not set, the Glue compatibility defaults to Glue 0.9. For more information, see [AWS Glue Versions](https://docs.aws.amazon.com/glue/latest/dg/release-notes.html#release-notes-versions) in the developer guide.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-mltransform.html#cfn-glue-mltransform-glueversion
//
GlueVersion *string `field:"optional" json:"glueVersion" yaml:"glueVersion"`
// The number of AWS Glue data processing units (DPUs) that are allocated to task runs for this transform.
//
// You can allocate from 2 to 100 DPUs; the default is 10. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more information, see the [AWS Glue pricing page](https://docs.aws.amazon.com/glue/pricing/) .
//
// `MaxCapacity` is a mutually exclusive option with `NumberOfWorkers` and `WorkerType` .
//
// - If either `NumberOfWorkers` or `WorkerType` is set, then `MaxCapacity` cannot be set.
// - If `MaxCapacity` is set then neither `NumberOfWorkers` or `WorkerType` can be set.
// - If `WorkerType` is set, then `NumberOfWorkers` is required (and vice versa).
// - `MaxCapacity` and `NumberOfWorkers` must both be at least 1.
//
// When the `WorkerType` field is set to a value other than `Standard` , the `MaxCapacity` field is set automatically and becomes read-only.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-mltransform.html#cfn-glue-mltransform-maxcapacity
//
MaxCapacity *float64 `field:"optional" json:"maxCapacity" yaml:"maxCapacity"`
// The maximum number of times to retry after an `MLTaskRun` of the machine learning transform fails.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-mltransform.html#cfn-glue-mltransform-maxretries
//
MaxRetries *float64 `field:"optional" json:"maxRetries" yaml:"maxRetries"`
// A user-defined name for the machine learning transform. Names are required to be unique. `Name` is optional:.
//
// - If you supply `Name` , the stack cannot be repeatedly created.
// - If `Name` is not provided, a randomly generated name will be used instead.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-mltransform.html#cfn-glue-mltransform-name
//
Name *string `field:"optional" json:"name" yaml:"name"`
// The number of workers of a defined `workerType` that are allocated when a task of the transform runs.
//
// If `WorkerType` is set, then `NumberOfWorkers` is required (and vice versa).
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-mltransform.html#cfn-glue-mltransform-numberofworkers
//
NumberOfWorkers *float64 `field:"optional" json:"numberOfWorkers" yaml:"numberOfWorkers"`
// The tags to use with this machine learning transform.
//
// You may use tags to limit access to the machine learning transform. For more information about tags in AWS Glue , see [AWS Tags in AWS Glue](https://docs.aws.amazon.com/glue/latest/dg/monitor-tags.html) in the developer guide.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-mltransform.html#cfn-glue-mltransform-tags
//
Tags interface{} `field:"optional" json:"tags" yaml:"tags"`
// The timeout in minutes of the machine learning transform.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-mltransform.html#cfn-glue-mltransform-timeout
//
Timeout *float64 `field:"optional" json:"timeout" yaml:"timeout"`
// The encryption-at-rest settings of the transform that apply to accessing user data.
//
// Machine learning
// transforms can access user data encrypted in Amazon S3 using KMS.
//
// Additionally, imported labels and trained transforms can now be encrypted using a customer provided
// KMS key.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-mltransform.html#cfn-glue-mltransform-transformencryption
//
TransformEncryption interface{} `field:"optional" json:"transformEncryption" yaml:"transformEncryption"`
// The type of predefined worker that is allocated when a task of this transform runs.
//
// Accepts a value of Standard, G.1X, or G.2X.
//
// - For the `Standard` worker type, each worker provides 4 vCPU, 16 GB of memory and a 50GB disk, and 2 executors per worker.
// - For the `G.1X` worker type, each worker provides 4 vCPU, 16 GB of memory and a 64GB disk, and 1 executor per worker.
// - For the `G.2X` worker type, each worker provides 8 vCPU, 32 GB of memory and a 128GB disk, and 1 executor per worker.
//
// `MaxCapacity` is a mutually exclusive option with `NumberOfWorkers` and `WorkerType` .
//
// - If either `NumberOfWorkers` or `WorkerType` is set, then `MaxCapacity` cannot be set.
// - If `MaxCapacity` is set then neither `NumberOfWorkers` or `WorkerType` can be set.
// - If `WorkerType` is set, then `NumberOfWorkers` is required (and vice versa).
// - `MaxCapacity` and `NumberOfWorkers` must both be at least 1.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-mltransform.html#cfn-glue-mltransform-workertype
//
WorkerType *string `field:"optional" json:"workerType" yaml:"workerType"`
}