Class CfnCapacityReservation
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.athena.CfnCapacityReservation
- All Implemented Interfaces:
IInspectable,ITaggableV2,ICapacityReservationRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:31.616Z")
@Stability(Stable)
public class CfnCapacityReservation
extends CfnResource
implements IInspectable, ICapacityReservationRef, ITaggableV2
Specifies a capacity reservation with the provided name and number of requested data processing units.
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.*;
CfnCapacityReservation cfnCapacityReservation = CfnCapacityReservation.Builder.create(this, "MyCfnCapacityReservation")
.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 TypeClassDescriptionstatic final classA fluent builder forCfnCapacityReservation.static interfaceAssigns Athena workgroups (and hence their queries) to capacity reservations.static interfaceA mapping between one or more workgroups and a capacity reservation.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.athena.ICapacityReservationRef
ICapacityReservationRef.Jsii$Default, ICapacityReservationRef.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnCapacityReservation(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnCapacityReservation(software.amazon.jsii.JsiiObjectRef objRef) CfnCapacityReservation(software.constructs.Construct scope, String id, CfnCapacityReservationProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe 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.Assigns Athena workgroups (and hence their queries) to capacity reservations.A reference to a CapacityReservation resource.Tag Manager which manages the tags for this resource.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.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidAssigns Athena workgroups (and hence their queries) to capacity reservations.voidsetCapacityAssignmentConfiguration(CfnCapacityReservation.CapacityAssignmentConfigurationProperty value) Assigns Athena workgroups (and hence their queries) to capacity reservations.voidThe name of the capacity reservation.voidAn array of key-value pairs to apply to the capacity reservation.voidsetTargetDpus(Number value) The number of data processing units requested.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnCapacityReservation
protected CfnCapacityReservation(software.amazon.jsii.JsiiObjectRef objRef) -
CfnCapacityReservation
protected CfnCapacityReservation(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnCapacityReservation
@Stability(Stable) public CfnCapacityReservation(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnCapacityReservationProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrAllocatedDpus
The number of data processing units currently allocated. -
getAttrArn
The ARN of the capacity reservation. -
getAttrCreationTime
The time in UTC epoch millis when the capacity reservation was created. -
getAttrLastSuccessfulAllocationTime
The time of the most recent capacity allocation that succeeded. -
getAttrStatus
The status of the capacity reservation. -
getCapacityReservationRef
A reference to a CapacityReservation resource.- Specified by:
getCapacityReservationRefin interfaceICapacityReservationRef
-
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getName
The name of the capacity reservation. -
setName
The name of the capacity reservation. -
getTargetDpus
The number of data processing units requested. -
setTargetDpus
The number of data processing units requested. -
getCapacityAssignmentConfiguration
Assigns Athena workgroups (and hence their queries) to capacity reservations.Returns union: either
IResolvableorCfnCapacityReservation.CapacityAssignmentConfigurationProperty -
setCapacityAssignmentConfiguration
Assigns Athena workgroups (and hence their queries) to capacity reservations. -
setCapacityAssignmentConfiguration
@Stability(Stable) public void setCapacityAssignmentConfiguration(@Nullable CfnCapacityReservation.CapacityAssignmentConfigurationProperty value) Assigns Athena workgroups (and hence their queries) to capacity reservations. -
getTags
An array of key-value pairs to apply to the capacity reservation. -
setTags
An array of key-value pairs to apply to the capacity reservation.
-