AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::Athena::CapacityReservation

CfnCapacityReservation

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

Import

import { CfnCapacityReservation } from 'aws-cdk-lib/aws-athena';

Or use the module namespace:

import * as athena from 'aws-cdk-lib/aws-athena';
// athena.CfnCapacityReservation

Properties

Configuration passed to the constructor as CfnCapacityReservationProps.

nameRequired
string

The name of the capacity reservation.

targetDpusRequired
number

The number of data processing units requested.

capacityAssignmentConfigurationOptional
IResolvable | CapacityAssignmentConfigurationProperty

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.

tagsOptional
CfnTag[]

An array of key-value pairs to apply to the capacity reservation. For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .

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