Interface CfnScalingPlanProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnScalingPlanProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:29:55.807Z")
@Stability(Stable)
public interface CfnScalingPlanProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnScalingPlan.
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.autoscalingplans.*;
CfnScalingPlanProps cfnScalingPlanProps = CfnScalingPlanProps.builder()
.applicationSource(ApplicationSourceProperty.builder()
.cloudFormationStackArn("cloudFormationStackArn")
.tagFilters(List.of(TagFilterProperty.builder()
.key("key")
// the properties below are optional
.values(List.of("values"))
.build()))
.build())
.scalingInstructions(List.of(ScalingInstructionProperty.builder()
.maxCapacity(123)
.minCapacity(123)
.resourceId("resourceId")
.scalableDimension("scalableDimension")
.serviceNamespace("serviceNamespace")
.targetTrackingConfigurations(List.of(TargetTrackingConfigurationProperty.builder()
.targetValue(123)
// the properties below are optional
.customizedScalingMetricSpecification(CustomizedScalingMetricSpecificationProperty.builder()
.metricName("metricName")
.namespace("namespace")
.statistic("statistic")
// the properties below are optional
.dimensions(List.of(MetricDimensionProperty.builder()
.name("name")
.value("value")
.build()))
.unit("unit")
.build())
.disableScaleIn(false)
.estimatedInstanceWarmup(123)
.predefinedScalingMetricSpecification(PredefinedScalingMetricSpecificationProperty.builder()
.predefinedScalingMetricType("predefinedScalingMetricType")
// the properties below are optional
.resourceLabel("resourceLabel")
.build())
.scaleInCooldown(123)
.scaleOutCooldown(123)
.build()))
// the properties below are optional
.customizedLoadMetricSpecification(CustomizedLoadMetricSpecificationProperty.builder()
.metricName("metricName")
.namespace("namespace")
.statistic("statistic")
// the properties below are optional
.dimensions(List.of(MetricDimensionProperty.builder()
.name("name")
.value("value")
.build()))
.unit("unit")
.build())
.disableDynamicScaling(false)
.predefinedLoadMetricSpecification(PredefinedLoadMetricSpecificationProperty.builder()
.predefinedLoadMetricType("predefinedLoadMetricType")
// the properties below are optional
.resourceLabel("resourceLabel")
.build())
.predictiveScalingMaxCapacityBehavior("predictiveScalingMaxCapacityBehavior")
.predictiveScalingMaxCapacityBuffer(123)
.predictiveScalingMode("predictiveScalingMode")
.scalingPolicyUpdateBehavior("scalingPolicyUpdateBehavior")
.scheduledActionBufferTime(123)
.build()))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnScalingPlanPropsstatic final classAn implementation forCfnScalingPlanProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnScalingPlanProps.Builderbuilder()A CloudFormation stack or a set of tags.The scaling instructions.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getApplicationSource
A CloudFormation stack or a set of tags.You can create one scaling plan per application source. The
ApplicationSourceproperty must be present to ensure interoperability with the AWS Auto Scaling console. -
getScalingInstructions
The scaling instructions. -
builder
- Returns:
- a
CfnScalingPlanProps.BuilderofCfnScalingPlanProps
-