interface CfnTableProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Glue.CfnTableProps |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsglue#CfnTableProps |
![]() | software.amazon.awscdk.services.glue.CfnTableProps |
![]() | aws_cdk.aws_glue.CfnTableProps |
![]() | aws-cdk-lib » aws_glue » CfnTableProps |
Properties for defining a CfnTable
.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-table.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_glue as glue } from 'aws-cdk-lib';
declare const parameters: any;
declare const skewedColumnValueLocationMaps: any;
const cfnTableProps: glue.CfnTableProps = {
catalogId: 'catalogId',
databaseName: 'databaseName',
tableInput: {
description: 'description',
name: 'name',
owner: 'owner',
parameters: parameters,
partitionKeys: [{
name: 'name',
// the properties below are optional
comment: 'comment',
type: 'type',
}],
retention: 123,
storageDescriptor: {
bucketColumns: ['bucketColumns'],
columns: [{
name: 'name',
// the properties below are optional
comment: 'comment',
type: 'type',
}],
compressed: false,
inputFormat: 'inputFormat',
location: 'location',
numberOfBuckets: 123,
outputFormat: 'outputFormat',
parameters: parameters,
schemaReference: {
schemaId: {
registryName: 'registryName',
schemaArn: 'schemaArn',
schemaName: 'schemaName',
},
schemaVersionId: 'schemaVersionId',
schemaVersionNumber: 123,
},
serdeInfo: {
name: 'name',
parameters: parameters,
serializationLibrary: 'serializationLibrary',
},
skewedInfo: {
skewedColumnNames: ['skewedColumnNames'],
skewedColumnValueLocationMaps: skewedColumnValueLocationMaps,
skewedColumnValues: ['skewedColumnValues'],
},
sortColumns: [{
column: 'column',
sortOrder: 123,
}],
storedAsSubDirectories: false,
},
tableType: 'tableType',
targetTable: {
catalogId: 'catalogId',
databaseName: 'databaseName',
name: 'name',
region: 'region',
},
viewExpandedText: 'viewExpandedText',
viewOriginalText: 'viewOriginalText',
},
// the properties below are optional
openTableFormatInput: {
icebergInput: {
metadataOperation: 'metadataOperation',
version: 'version',
},
},
};
Properties
Name | Type | Description |
---|---|---|
catalog | string | The ID of the Data Catalog in which to create the Table . |
database | string | The name of the database where the table metadata resides. |
table | IResolvable | Table | A structure used to define a table. |
open | IResolvable | Open | Specifies an OpenTableFormatInput structure when creating an open format table. |
catalogId
Type:
string
The ID of the Data Catalog in which to create the Table
.
databaseName
Type:
string
The name of the database where the table metadata resides.
For Hive compatibility, this must be all lowercase.
tableInput
Type:
IResolvable
|
Table
A structure used to define a table.
openTableFormatInput?
Type:
IResolvable
|
Open
(optional)
Specifies an OpenTableFormatInput
structure when creating an open format table.