interface CfnPartitionProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Glue.CfnPartitionProps |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsglue#CfnPartitionProps |
![]() | software.amazon.awscdk.services.glue.CfnPartitionProps |
![]() | aws_cdk.aws_glue.CfnPartitionProps |
![]() | aws-cdk-lib » aws_glue » CfnPartitionProps |
Properties for defining a CfnPartition
.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-partition.html
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
Name | Type | Description |
---|---|---|
catalog | string | The AWS account ID of the catalog in which the partion is to be created. |
database | string | The name of the catalog database in which to create the partition. |
partition | IResolvable | Partition | The structure used to create and update a partition. |
table | string | The 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 theAWS::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
|
Partition
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.