Class CfnCapacityReservationPropsMixin.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.athena.CfnCapacityReservationPropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCapacityReservationPropsMixin>
- Enclosing class:
CfnCapacityReservationPropsMixin
@Stability(Stable)
public static final class CfnCapacityReservationPropsMixin.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCapacityReservationPropsMixin>
A fluent builder for
CfnCapacityReservationPropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionbuild()capacityAssignmentConfiguration(CfnCapacityReservationPropsMixin.CapacityAssignmentConfigurationProperty capacityAssignmentConfiguration) Assigns Athena workgroups (and hence their queries) to capacity reservations.capacityAssignmentConfiguration(IResolvable capacityAssignmentConfiguration) Assigns Athena workgroups (and hence their queries) to capacity reservations.create()create(CfnPropertyMixinOptions options) 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 CfnCapacityReservationPropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnCapacityReservationPropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnCapacityReservationPropsMixin.Builder.
-
capacityAssignmentConfiguration
@Stability(Stable) public CfnCapacityReservationPropsMixin.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 CfnCapacityReservationPropsMixin.Builder capacityAssignmentConfiguration(CfnCapacityReservationPropsMixin.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:
-
name
The name of the capacity reservation.- Parameters:
name- The name of the capacity reservation. This parameter is required.- Returns:
this- See Also:
-
tags
@Stability(Stable) public CfnCapacityReservationPropsMixin.Builder tags(List<? extends CfnTag> 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:
-
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:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCapacityReservationPropsMixin>- Returns:
- a newly built instance of
CfnCapacityReservationPropsMixin.
-