Interface CfnCapacityProvider.CapacityProviderScalingConfigProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnCapacityProvider.CapacityProviderScalingConfigProperty.Jsii$Proxy
- Enclosing class:
CfnCapacityProvider
@Stability(Stable)
public static interface CfnCapacityProvider.CapacityProviderScalingConfigProperty
extends software.amazon.jsii.JsiiSerializable
Configuration that defines how the capacity provider scales compute instances based on demand and policies.
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.lambda.*;
CapacityProviderScalingConfigProperty capacityProviderScalingConfigProperty = CapacityProviderScalingConfigProperty.builder()
.maxVCpuCount(123)
.scalingMode("scalingMode")
.scalingPolicies(List.of(TargetTrackingScalingPolicyProperty.builder()
.predefinedMetricType("predefinedMetricType")
.targetValue(123)
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic final classAn implementation forCfnCapacityProvider.CapacityProviderScalingConfigProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default NumberThe maximum number of vCPUs that the capacity provider can provision across all compute instances.default StringThe scaling mode that determines how the capacity provider responds to changes in demand.default ObjectA list of target tracking scaling policies for the capacity provider.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getMaxVCpuCount
The maximum number of vCPUs that the capacity provider can provision across all compute instances.- See Also:
-
getScalingMode
The scaling mode that determines how the capacity provider responds to changes in demand.- See Also:
-
getScalingPolicies
A list of target tracking scaling policies for the capacity provider.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnCapacityProvider.TargetTrackingScalingPolicyProperty>- See Also:
-
builder
@Stability(Stable) static CfnCapacityProvider.CapacityProviderScalingConfigProperty.Builder builder()
-