aws-cdk-lib.aws_glue.CfnPartitionProps

interface CfnPartitionProps

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

Properties for defining a CfnPartition.

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 cfnPartitionProps: glue.CfnPartitionProps = {
  catalogId: 'catalogId',
  databaseName: 'databaseName',
  partitionInput: {
    values: ['values'],

    // the properties below are optional
    parameters: parameters,
    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',

        // the properties below are optional
        sortOrder: 123,
      }],
      storedAsSubDirectories: false,
    },
  },
  tableName: 'tableName',
};

Properties

NameTypeDescription
catalogIdstringThe AWS account ID of the catalog in which the partion is to be created.
databaseNamestringThe name of the catalog database in which to create the partition.
partitionInputIResolvable | PartitionInputPropertyThe structure used to create and update a partition.
tableNamestringThe name of the metadata table in which the partition is to be created.

catalogId

Type: string

The AWS account ID of the catalog in which the partion is to be created.

To specify the account ID, you can use the Ref intrinsic function with the AWS::AccountId pseudo parameter. For example: !Ref AWS::AccountId


databaseName

Type: string

The name of the catalog database in which to create the partition.


partitionInput

Type: IResolvable | PartitionInputProperty

The structure used to create and update a partition.


tableName

Type: string

The name of the metadata table in which the partition is to be created.