CfnPartitionProps Struct
Properties for defining a CfnPartition.
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
The AWS account ID of the catalog in which the partion is to be created.
To specify the account ID, you can use the
Refintrinsic function with theAWS::AccountIdpseudo parameter. For example:!Ref AWS::AccountId
The name of the catalog database in which to create the partition.
partitionInputIResolvable | CfnPartition.PartitionInputPropertypartition_inputtyping.Union[IResolvable, PartitionInputProperty]partitionInputIResolvablePartitionInputIResolvablePartitionInputinterface{}required#The structure used to create and update a partition.
The name of the metadata table in which the partition is to be created.