Class CfnCapacityReservation.Builder
java.lang.Object
software.amazon.awscdk.services.athena.CfnCapacityReservation.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCapacityReservation>
- Enclosing class:
CfnCapacityReservation
@Stability(Stable)
public static final class CfnCapacityReservation.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCapacityReservation>
A fluent builder for
CfnCapacityReservation
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
capacityAssignmentConfiguration
(IResolvable capacityAssignmentConfiguration) Assigns Athena workgroups (and hence their queries) to capacity reservations.capacityAssignmentConfiguration
(CfnCapacityReservation.CapacityAssignmentConfigurationProperty capacityAssignmentConfiguration) Assigns Athena workgroups (and hence their queries) to capacity reservations.The name of the capacity reservation.An array of key-value pairs to apply to the capacity reservation.targetDpus
(Number targetDpus) The number of data processing units requested.
-
Method Details
-
create
@Stability(Stable) public static CfnCapacityReservation.Builder create(software.constructs.Construct scope, String id) - 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.- Returns:
- a new instance of
CfnCapacityReservation.Builder
.
-
name
The name of the capacity reservation.- Parameters:
name
- The name of the capacity reservation. This parameter is required.- Returns:
this
- See Also:
-
targetDpus
The number of data processing units requested.- Parameters:
targetDpus
- The number of data processing units requested. This parameter is required.- Returns:
this
- See Also:
-
capacityAssignmentConfiguration
@Stability(Stable) public CfnCapacityReservation.Builder capacityAssignmentConfiguration(IResolvable capacityAssignmentConfiguration) 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.
- Parameters:
capacityAssignmentConfiguration
- Assigns Athena workgroups (and hence their queries) to capacity reservations. This parameter is required.- Returns:
this
- See Also:
-
capacityAssignmentConfiguration
@Stability(Stable) public CfnCapacityReservation.Builder capacityAssignmentConfiguration(CfnCapacityReservation.CapacityAssignmentConfigurationProperty capacityAssignmentConfiguration) 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.
- Parameters:
capacityAssignmentConfiguration
- Assigns Athena workgroups (and hence their queries) to capacity reservations. This parameter is required.- Returns:
this
- See Also:
-
tags
An array of key-value pairs to apply to the capacity reservation.For more information, see Tag .
- Parameters:
tags
- An array of key-value pairs to apply to the capacity reservation. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCapacityReservation>
- Returns:
- a newly built instance of
CfnCapacityReservation
.
-