interface PartitionInputProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Glue.CfnPartition.PartitionInputProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsglue#CfnPartition_PartitionInputProperty |
Java | software.amazon.awscdk.services.glue.CfnPartition.PartitionInputProperty |
Python | aws_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
Name | Type | Description |
---|---|---|
values | string[] | The values of the partition. |
parameters? | any | These key-value pairs define partition parameters. |
storage | IResolvable | Storage | Provides 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
|
Storage
(optional)
Provides information about the physical location where the partition is stored.