aws-cdk-lib.aws_athena.CfnCapacityReservationProps

interface CfnCapacityReservationProps

LanguageType name
.NETAmazon.CDK.AWS.Athena.CfnCapacityReservationProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsathena#CfnCapacityReservationProps
Javasoftware.amazon.awscdk.services.athena.CfnCapacityReservationProps
Pythonaws_cdk.aws_athena.CfnCapacityReservationProps
TypeScript aws-cdk-lib » aws_athena » CfnCapacityReservationProps

Properties for defining a CfnCapacityReservation.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_athena as athena } from 'aws-cdk-lib';
const cfnCapacityReservationProps: athena.CfnCapacityReservationProps = {
  name: 'name',
  targetDpus: 123,

  // the properties below are optional
  capacityAssignmentConfiguration: {
    capacityAssignments: [{
      workgroupNames: ['workgroupNames'],
    }],
  },
  tags: [{
    key: 'key',
    value: 'value',
  }],
};

Properties

NameTypeDescription
namestringThe name of the capacity reservation.
targetDpusnumberThe number of data processing units requested.
capacityAssignmentConfiguration?IResolvable | CapacityAssignmentConfigurationPropertyAssigns Athena workgroups (and hence their queries) to capacity reservations.
tags?CfnTag[]An array of key-value pairs to apply to the capacity reservation.

name

Type: string

The name of the capacity reservation.


targetDpus

Type: number

The number of data processing units requested.


capacityAssignmentConfiguration?

Type: IResolvable | CapacityAssignmentConfigurationProperty (optional)

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.


tags?

Type: CfnTag[] (optional)

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

For more information, see Tag .