# CfnPartitionProps

Properties for defining a `CfnPartition`.

Extends: CfnPartitionProps
Used as props by: CfnPartition

- Source: Generated code

## Example

```ts
// 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

- `catalogId`: string (required) — 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`: string (required) — The name of the catalog database in which to create the partition.

- `partitionInput`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnPartition.PartitionInputProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_glue.CfnPartition.PartitionInputProperty.html) (required) — The structure used to create and update a partition.

- `tableName`: string (required) — The name of the metadata table in which the partition is to be created.
