aws-cdk-lib.aws_glue.CfnTableProps

interface CfnTableProps

LanguageType name
.NETAmazon.CDK.AWS.Glue.CfnTableProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsglue#CfnTableProps
Javasoftware.amazon.awscdk.services.glue.CfnTableProps
Pythonaws_cdk.aws_glue.CfnTableProps
TypeScript aws-cdk-lib » aws_glue » CfnTableProps

Properties for defining a CfnTable.

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',
    },
    viewExpandedText: 'viewExpandedText',
    viewOriginalText: 'viewOriginalText',
  },
};

Properties

NameTypeDescription
catalogIdstringThe ID of the Data Catalog in which to create the Table .
databaseNamestringThe name of the database where the table metadata resides.
tableInputIResolvable | TableInputPropertyA structure used to define a 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 | TableInputProperty

A structure used to define a table.