Interface CfnCapacityReservationProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnCapacityReservationProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:31.617Z")
@Stability(Stable)
public interface CfnCapacityReservationProps
extends software.amazon.jsii.JsiiSerializable
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 software.amazon.awscdk.services.athena.*;
CfnCapacityReservationProps cfnCapacityReservationProps = CfnCapacityReservationProps.builder()
.name("name")
.targetDpus(123)
// the properties below are optional
.capacityAssignmentConfiguration(CapacityAssignmentConfigurationProperty.builder()
.capacityAssignments(List.of(CapacityAssignmentProperty.builder()
.workgroupNames(List.of("workgroupNames"))
.build()))
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnCapacityReservationPropsstatic final classAn implementation forCfnCapacityReservationProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectAssigns Athena workgroups (and hence their queries) to capacity reservations.getName()The name of the capacity reservation.getTags()An array of key-value pairs to apply to the capacity reservation.The number of data processing units requested.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getName
The name of the capacity reservation.- See Also:
-
getTargetDpus
The number of data processing units requested.- See Also:
-
getCapacityAssignmentConfiguration
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.
Returns union: either
IResolvableorCfnCapacityReservation.CapacityAssignmentConfigurationProperty- See Also:
-
getTags
An array of key-value pairs to apply to the capacity reservation.For more information, see Tag .
- See Also:
-
builder
-