AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::Glue::Partition

CfnPartition

The `AWS::Glue::Partition` resource creates an AWS Glue partition, which represents a slice of table data. For more information, see [CreatePartition Action](https://docs.aws.amazon.com/glue/latest/dg/aws-glue-api-catalog-partitions.html#aws-glue-api-catalog-partitions-CreatePartition) and [Partition Structure](https://docs.aws.amazon.com/glue/latest/dg/aws-glue-api-catalog-partitions.html#aws-glue-api-catalog-partitions-Partition) in the *AWS Glue Developer Guide* .

Import

import { CfnPartition } from 'aws-cdk-lib/aws-glue';

Or use the module namespace:

import * as glue from 'aws-cdk-lib/aws-glue';
// glue.CfnPartition

Properties

Configuration passed to the constructor as CfnPartitionProps.

catalogIdRequired
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 the `AWS::AccountId` pseudo parameter. For example: `!Ref AWS::AccountId`

databaseNameRequired
string

The name of the catalog database in which to create the partition.

partitionInputRequired
IResolvable | PartitionInputProperty

The structure used to create and update a partition.

tableNameRequired
string

The name of the metadata table in which the partition is to be created.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter