AWS::Athena::CapacityReservation - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).


Specifies a capacity reservation with the provided name and number of requested data processing units.


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


{ "Type" : "AWS::Athena::CapacityReservation", "Properties" : { "CapacityAssignmentConfiguration" : CapacityAssignmentConfiguration, "Name" : String, "Tags" : [ Tag, ... ], "TargetDpus" : Integer } }


Type: AWS::Athena::CapacityReservation Properties: CapacityAssignmentConfiguration: CapacityAssignmentConfiguration Name: String Tags: - Tag TargetDpus: Integer



Assigns Athena workgroups (and hence their queries) to capacity reservations. A capacity reservation can have only one capacity assignment configuration, but the capacity assignment configuration can be made up of multiple individual assignments. Each assignment specifies how Athena queries can consume capacity from the capacity reservation that their workgroup is mapped to.

Required: No

Type: CapacityAssignmentConfiguration

Update requires: No interruption


The name of the capacity reservation.

Required: Yes

Type: String

Pattern: [a-zA-Z0-9._-]{1,128}

Update requires: Replacement


An array of key-value pairs to apply to the capacity reservation.

For more information, see Tag.

Required: No

Type: Array of Tag

Update requires: No interruption


The number of data processing units requested.

Required: Yes

Type: Integer

Minimum: 1

Update requires: No interruption

Return values


When you pass the logical ID of this resource to the intrinsic Ref function, Ref returns the ARN of the capacity reservation.

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


The Fn::GetAtt intrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values.

For more information about using the Fn::GetAtt intrinsic function, see Fn::GetAtt.


The number of data processing units currently allocated.


The ARN of the capacity reservation.


The time in UTC epoch millis when the capacity reservation was created.


The time of the most recent capacity allocation that succeeded.


The status of the capacity reservation.