AWS CloudFormation
User Guide (Version )

The AWS Documentation website is getting a new look!
Try it now and let us know what you think. Switch to the new look >>

You can return to the original look by selecting English in the language selector above.


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.


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


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


Type: AWS::Glue::Partition Properties: CatalogId: String DatabaseName: String PartitionInput: PartitionInput TableName: 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

Required: Yes

Type: String

Update requires: Replacement


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

Required: Yes

Type: String

Update requires: Replacement


The structure used to create and update a partition.

Required: Yes

Type: PartitionInput

Update requires: No interruption


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

Required: Yes

Type: String

Update requires: Replacement

Return Values


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.

See Also