Class CfnScalingPolicyPropsMixin
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.Mixin
software.amazon.awscdk.cfnpropertymixins.services.applicationautoscaling.CfnScalingPolicyPropsMixin
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable,software.constructs.IMixin
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-03-19T12:55:16.623Z")
@Stability(Stable)
public class CfnScalingPolicyPropsMixin
extends Mixin
implements software.constructs.IMixin
The
AWS::ApplicationAutoScaling::ScalingPolicy resource defines a scaling policy that Application Auto Scaling uses to adjust the capacity of a scalable target.
For more information, see Target tracking scaling policies and Step scaling policies in the Application Auto Scaling User Guide .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.applicationautoscaling.*;
import software.amazon.awscdk.*;
IMergeStrategy mergeStrategy;
CfnScalingPolicyPropsMixin cfnScalingPolicyPropsMixin = CfnScalingPolicyPropsMixin.Builder.create(CfnScalingPolicyMixinProps.builder()
.policyName("policyName")
.policyType("policyType")
.predictiveScalingPolicyConfiguration(PredictiveScalingPolicyConfigurationProperty.builder()
.maxCapacityBreachBehavior("maxCapacityBreachBehavior")
.maxCapacityBuffer(123)
.metricSpecifications(List.of(PredictiveScalingMetricSpecificationProperty.builder()
.customizedCapacityMetricSpecification(PredictiveScalingCustomizedCapacityMetricProperty.builder()
.metricDataQueries(List.of(PredictiveScalingMetricDataQueryProperty.builder()
.expression("expression")
.id("id")
.label("label")
.metricStat(PredictiveScalingMetricStatProperty.builder()
.metric(PredictiveScalingMetricProperty.builder()
.dimensions(List.of(PredictiveScalingMetricDimensionProperty.builder()
.name("name")
.value("value")
.build()))
.metricName("metricName")
.namespace("namespace")
.build())
.stat("stat")
.unit("unit")
.build())
.returnData(false)
.build()))
.build())
.customizedLoadMetricSpecification(PredictiveScalingCustomizedLoadMetricProperty.builder()
.metricDataQueries(List.of(PredictiveScalingMetricDataQueryProperty.builder()
.expression("expression")
.id("id")
.label("label")
.metricStat(PredictiveScalingMetricStatProperty.builder()
.metric(PredictiveScalingMetricProperty.builder()
.dimensions(List.of(PredictiveScalingMetricDimensionProperty.builder()
.name("name")
.value("value")
.build()))
.metricName("metricName")
.namespace("namespace")
.build())
.stat("stat")
.unit("unit")
.build())
.returnData(false)
.build()))
.build())
.customizedScalingMetricSpecification(PredictiveScalingCustomizedScalingMetricProperty.builder()
.metricDataQueries(List.of(PredictiveScalingMetricDataQueryProperty.builder()
.expression("expression")
.id("id")
.label("label")
.metricStat(PredictiveScalingMetricStatProperty.builder()
.metric(PredictiveScalingMetricProperty.builder()
.dimensions(List.of(PredictiveScalingMetricDimensionProperty.builder()
.name("name")
.value("value")
.build()))
.metricName("metricName")
.namespace("namespace")
.build())
.stat("stat")
.unit("unit")
.build())
.returnData(false)
.build()))
.build())
.predefinedLoadMetricSpecification(PredictiveScalingPredefinedLoadMetricProperty.builder()
.predefinedMetricType("predefinedMetricType")
.resourceLabel("resourceLabel")
.build())
.predefinedMetricPairSpecification(PredictiveScalingPredefinedMetricPairProperty.builder()
.predefinedMetricType("predefinedMetricType")
.resourceLabel("resourceLabel")
.build())
.predefinedScalingMetricSpecification(PredictiveScalingPredefinedScalingMetricProperty.builder()
.predefinedMetricType("predefinedMetricType")
.resourceLabel("resourceLabel")
.build())
.targetValue(123)
.build()))
.mode("mode")
.schedulingBufferTime(123)
.build())
.resourceId("resourceId")
.scalableDimension("scalableDimension")
.scalingTargetId("scalingTargetId")
.serviceNamespace("serviceNamespace")
.stepScalingPolicyConfiguration(StepScalingPolicyConfigurationProperty.builder()
.adjustmentType("adjustmentType")
.cooldown(123)
.metricAggregationType("metricAggregationType")
.minAdjustmentMagnitude(123)
.stepAdjustments(List.of(StepAdjustmentProperty.builder()
.metricIntervalLowerBound(123)
.metricIntervalUpperBound(123)
.scalingAdjustment(123)
.build()))
.build())
.targetTrackingScalingPolicyConfiguration(TargetTrackingScalingPolicyConfigurationProperty.builder()
.customizedMetricSpecification(CustomizedMetricSpecificationProperty.builder()
.dimensions(List.of(MetricDimensionProperty.builder()
.name("name")
.value("value")
.build()))
.metricName("metricName")
.metrics(List.of(TargetTrackingMetricDataQueryProperty.builder()
.expression("expression")
.id("id")
.label("label")
.metricStat(TargetTrackingMetricStatProperty.builder()
.metric(TargetTrackingMetricProperty.builder()
.dimensions(List.of(TargetTrackingMetricDimensionProperty.builder()
.name("name")
.value("value")
.build()))
.metricName("metricName")
.namespace("namespace")
.build())
.stat("stat")
.unit("unit")
.build())
.returnData(false)
.build()))
.namespace("namespace")
.statistic("statistic")
.unit("unit")
.build())
.disableScaleIn(false)
.predefinedMetricSpecification(PredefinedMetricSpecificationProperty.builder()
.predefinedMetricType("predefinedMetricType")
.resourceLabel("resourceLabel")
.build())
.scaleInCooldown(123)
.scaleOutCooldown(123)
.targetValue(123)
.build())
.build())
.strategy(mergeStrategy)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnScalingPolicyPropsMixin.static interfaceContains customized metric specification information for a target tracking scaling policy for Application Auto Scaling.static interfaceMetricDimensionspecifies a name/value pair that is part of the identity of a CloudWatch metric for theDimensionsproperty of the AWS::ApplicationAutoScaling::ScalingPolicy CustomizedMetricSpecification property type.static interfaceContains predefined metric specification information for a target tracking scaling policy for Application Auto Scaling.static interfaceRepresents a CloudWatch metric of your choosing for a predictive scaling policy.static interfaceThe customized load metric specification.static interfaceOne or more metric data queries to provide data points for a metric specification.static interfaceThe metric data to return.static interfaceDescribes the dimension of a metric.static interfaceDescribes the scaling metric.static interfaceThis structure specifies the metrics and target utilization settings for a predictive scaling policy.static interfaceThis structure defines the CloudWatch metric to return, along with the statistic and unit.static interfaceRepresents a predictive scaling policy configuration.static interfaceDescribes a load metric for a predictive scaling policy.static interfaceRepresents a metric pair for a predictive scaling policy.static interfaceDescribes a scaling metric for a predictive scaling policy.static interfaceStepAdjustmentspecifies a step adjustment for theStepAdjustmentsproperty of the AWS::ApplicationAutoScaling::ScalingPolicy StepScalingPolicyConfiguration property type.static interfaceStepScalingPolicyConfigurationis a property of the AWS::ApplicationAutoScaling::ScalingPolicy resource that specifies a step scaling policy configuration for Application Auto Scaling.static interfaceThe metric data to return.static interfaceTargetTrackingMetricDimensionspecifies a name/value pair that is part of the identity of a CloudWatch metric for theDimensionsproperty of the AWS::ApplicationAutoScaling::ScalingPolicy TargetTrackingMetric property type.static interfaceRepresents a specific metric for a target tracking scaling policy for Application Auto Scaling.static interfaceThis structure defines the CloudWatch metric to return, along with the statistic and unit.static interfaceTargetTrackingScalingPolicyConfigurationis a property of the AWS::ApplicationAutoScaling::ScalingPolicy resource that specifies a target tracking scaling policy configuration for Application Auto Scaling.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IMixin
software.constructs.IMixin.Jsii$Default, software.constructs.IMixin.Jsii$Proxy -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreate a mixin to apply properties toAWS::ApplicationAutoScaling::ScalingPolicy.Create a mixin to apply properties toAWS::ApplicationAutoScaling::ScalingPolicy.protectedCfnScalingPolicyPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnScalingPolicyPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTo(software.constructs.IConstruct construct) Apply the mixin properties to the construct.protected CfnScalingPolicyMixinPropsgetProps()protected IMergeStrategysupports(software.constructs.IConstruct construct) Check if this mixin supports the given construct.Methods 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, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_PROPERTY_KEYS
-
-
Constructor Details
-
CfnScalingPolicyPropsMixin
protected CfnScalingPolicyPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
CfnScalingPolicyPropsMixin
protected CfnScalingPolicyPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnScalingPolicyPropsMixin
@Stability(Stable) public CfnScalingPolicyPropsMixin(@NotNull CfnScalingPolicyMixinProps props, @Nullable CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::ApplicationAutoScaling::ScalingPolicy.- Parameters:
props- L1 properties to apply. This parameter is required.options- Mixin options.
-
CfnScalingPolicyPropsMixin
Create a mixin to apply properties toAWS::ApplicationAutoScaling::ScalingPolicy.- Parameters:
props- L1 properties to apply. This parameter is required.
-
-
Method Details
-
applyTo
@Stability(Stable) public void applyTo(@NotNull software.constructs.IConstruct construct) Apply the mixin properties to the construct. -
supports
@Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct) Check if this mixin supports the given construct. -
getProps
-
getStrategy
-