-
Notifications
You must be signed in to change notification settings - Fork 17
/
CfnTable_TableInputProperty.go
157 lines (154 loc) · 7.02 KB
/
CfnTable_TableInputProperty.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
package awsglue
// A structure used to define a table.
//
// 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 parameters interface{}
// var skewedColumnValueLocationMaps interface{}
//
// tableInputProperty := &TableInputProperty{
// Description: jsii.String("description"),
// Name: jsii.String("name"),
// Owner: jsii.String("owner"),
// Parameters: parameters,
// PartitionKeys: []interface{}{
// &ColumnProperty{
// Name: jsii.String("name"),
//
// // the properties below are optional
// Comment: jsii.String("comment"),
// Type: jsii.String("type"),
// },
// },
// Retention: jsii.Number(123),
// StorageDescriptor: &StorageDescriptorProperty{
// BucketColumns: []*string{
// jsii.String("bucketColumns"),
// },
// Columns: []interface{}{
// &ColumnProperty{
// Name: jsii.String("name"),
//
// // the properties below are optional
// Comment: jsii.String("comment"),
// Type: jsii.String("type"),
// },
// },
// Compressed: jsii.Boolean(false),
// InputFormat: jsii.String("inputFormat"),
// Location: jsii.String("location"),
// NumberOfBuckets: jsii.Number(123),
// OutputFormat: jsii.String("outputFormat"),
// Parameters: parameters,
// SchemaReference: &SchemaReferenceProperty{
// SchemaId: &SchemaIdProperty{
// RegistryName: jsii.String("registryName"),
// SchemaArn: jsii.String("schemaArn"),
// SchemaName: jsii.String("schemaName"),
// },
// SchemaVersionId: jsii.String("schemaVersionId"),
// SchemaVersionNumber: jsii.Number(123),
// },
// SerdeInfo: &SerdeInfoProperty{
// Name: jsii.String("name"),
// Parameters: parameters,
// SerializationLibrary: jsii.String("serializationLibrary"),
// },
// SkewedInfo: &SkewedInfoProperty{
// SkewedColumnNames: []*string{
// jsii.String("skewedColumnNames"),
// },
// SkewedColumnValueLocationMaps: skewedColumnValueLocationMaps,
// SkewedColumnValues: []*string{
// jsii.String("skewedColumnValues"),
// },
// },
// SortColumns: []interface{}{
// &OrderProperty{
// Column: jsii.String("column"),
// SortOrder: jsii.Number(123),
// },
// },
// StoredAsSubDirectories: jsii.Boolean(false),
// },
// TableType: jsii.String("tableType"),
// TargetTable: &TableIdentifierProperty{
// CatalogId: jsii.String("catalogId"),
// DatabaseName: jsii.String("databaseName"),
// Name: jsii.String("name"),
// Region: jsii.String("region"),
// },
// ViewExpandedText: jsii.String("viewExpandedText"),
// ViewOriginalText: jsii.String("viewOriginalText"),
// }
//
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-tableinput.html
//
type CfnTable_TableInputProperty struct {
// A description of the table.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-tableinput.html#cfn-glue-table-tableinput-description
//
Description *string `field:"optional" json:"description" yaml:"description"`
// The table name.
//
// For Hive compatibility, this is folded to lowercase when it is stored.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-tableinput.html#cfn-glue-table-tableinput-name
//
Name *string `field:"optional" json:"name" yaml:"name"`
// The table owner.
//
// Included for Apache Hive compatibility. Not used in the normal course of AWS Glue operations.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-tableinput.html#cfn-glue-table-tableinput-owner
//
Owner *string `field:"optional" json:"owner" yaml:"owner"`
// These key-value pairs define properties associated with the table.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-tableinput.html#cfn-glue-table-tableinput-parameters
//
Parameters interface{} `field:"optional" json:"parameters" yaml:"parameters"`
// A list of columns by which the table is partitioned. Only primitive types are supported as partition keys.
//
// When you create a table used by Amazon Athena, and you do not specify any `partitionKeys` , you must at least set the value of `partitionKeys` to an empty list. For example:
//
// `"PartitionKeys": []`.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-tableinput.html#cfn-glue-table-tableinput-partitionkeys
//
PartitionKeys interface{} `field:"optional" json:"partitionKeys" yaml:"partitionKeys"`
// The retention time for this table.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-tableinput.html#cfn-glue-table-tableinput-retention
//
Retention *float64 `field:"optional" json:"retention" yaml:"retention"`
// A storage descriptor containing information about the physical storage of this table.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-tableinput.html#cfn-glue-table-tableinput-storagedescriptor
//
StorageDescriptor interface{} `field:"optional" json:"storageDescriptor" yaml:"storageDescriptor"`
// The type of this table.
//
// AWS Glue will create tables with the `EXTERNAL_TABLE` type. Other services, such as Athena, may create tables with additional table types.
//
// AWS Glue related table types:
//
// - **EXTERNAL_TABLE** - Hive compatible attribute - indicates a non-Hive managed table.
// - **GOVERNED** - Used by AWS Lake Formation . The AWS Glue Data Catalog understands `GOVERNED` .
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-tableinput.html#cfn-glue-table-tableinput-tabletype
//
TableType *string `field:"optional" json:"tableType" yaml:"tableType"`
// A `TableIdentifier` structure that describes a target table for resource linking.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-tableinput.html#cfn-glue-table-tableinput-targettable
//
TargetTable interface{} `field:"optional" json:"targetTable" yaml:"targetTable"`
// Included for Apache Hive compatibility.
//
// Not used in the normal course of AWS Glue operations.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-tableinput.html#cfn-glue-table-tableinput-viewexpandedtext
//
ViewExpandedText *string `field:"optional" json:"viewExpandedText" yaml:"viewExpandedText"`
// Included for Apache Hive compatibility.
//
// Not used in the normal course of AWS Glue operations. If the table is a `VIRTUAL_VIEW` , certain Athena configuration encoded in base64.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-table-tableinput.html#cfn-glue-table-tableinput-vieworiginaltext
//
ViewOriginalText *string `field:"optional" json:"viewOriginalText" yaml:"viewOriginalText"`
}