1 Answer
- Newest
- Most votes
- Most comments
0
Hello there Jess, It is possible to do this using the AWS Glue construct:
https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-glue-alpha.Table.html
A quick example would be:
declare const myDatabase: glue.Database; new glue.Table(this, 'MyTable', { database: myDatabase, tableName: 'my_table', columns: [{ name: 'col1', type: glue.Schema.STRING, }], partitionKeys: [{ name: 'year', type: glue.Schema.SMALL_INT, }, { name: 'month', type: glue.Schema.SMALL_INT, }], dataFormat: glue.DataFormat.JSON, enablePartitionFiltering: true, });
https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-glue-alpha.Table.html
Relevant content
- asked 3 years ago
- asked a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 3 years ago