AWS::Glue::Partition - AWS CloudFormation

AWS::Glue::Partition

The AWS::Glue::Partition resource creates an AWS Glue partition, which represents a slice of table data. For more information, see CreatePartition Action and Partition Structure in the AWS Glue Developer Guide.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

{ "Type" : "AWS::Glue::Partition", "Properties" : { "CatalogId" : String, "DatabaseName" : String, "PartitionInput" : PartitionInput, "TableName" : String } }

YAML

Type: AWS::Glue::Partition Properties: CatalogId: String DatabaseName: String PartitionInput: PartitionInput TableName: String

Properties

CatalogId

The AWS account ID of the catalog in which the partion is to be created.

Note

To specify the account ID, you can use the Ref intrinsic function with the AWS::AccountId pseudo parameter. For example: !Ref AWS::AccountId

Required: Yes

Type: String

Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\t]*

Minimum: 1

Maximum: 255

Update requires: Replacement

DatabaseName

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

Required: Yes

Type: String

Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\t]*

Minimum: 1

Maximum: 255

Update requires: Replacement

PartitionInput

The structure used to create and update a partition.

Required: Yes

Type: PartitionInput

Update requires: No interruption

TableName

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

Required: Yes

Type: String

Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\t]*

Minimum: 1

Maximum: 255

Update requires: Replacement

Return values

Ref

When you pass the logical ID of this resource to the intrinsic Ref function, Ref returns the partition name.

For more information about using the Ref function, see Ref.

Fn::GetAtt

See also