This is the new AWS CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the AWS CloudFormation User Guide.
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:StringDatabaseName:StringPartitionInput:PartitionInputTableName: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
Refintrinsic function with theAWS::AccountIdpseudo parameter. For example:!Ref AWS::AccountIdRequired: Yes
Type: String
Pattern:
[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\t]*Minimum:
1Maximum:
255Update 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:
1Maximum:
255Update 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:
1Maximum:
255Update 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
-
CreatePartition Action in the AWS Glue Developer Guide
-
Partition Structure in the AWS Glue Developer Guide