aws-cdk-lib.aws_glue.CfnPartition.PartitionInputProperty

interface PartitionInputProperty

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

The structure used to create and update a partition.

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 partitionInputProperty: glue.CfnPartition.PartitionInputProperty = {
  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,
  },
};

Properties

NameTypeDescription
valuesstring[]The values of the partition.
parameters?anyThese key-value pairs define partition parameters.
storageDescriptor?IResolvable | StorageDescriptorPropertyProvides information about the physical location where the partition is stored.

values

Type: string[]

The values of the partition.

Although this parameter is not required by the SDK, you must specify this parameter for a valid input.

The values for the keys for the new partition must be passed as an array of String objects that must be ordered in the same order as the partition keys appearing in the Amazon S3 prefix. Otherwise AWS Glue will add the values to the wrong keys.


parameters?

Type: any (optional)

These key-value pairs define partition parameters.


storageDescriptor?

Type: IResolvable | StorageDescriptorProperty (optional)

Provides information about the physical location where the partition is stored.