Skip to content
v2.275.0

CfnScalingPlanProps Struct ​

Properties for defining a CfnScalingPlan.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_autoscalingplans as autoscalingplans } from 'aws-cdk-lib';
const cfnScalingPlanProps: autoscalingplans.CfnScalingPlanProps = {
  applicationSource: {
    cloudFormationStackArn: 'cloudFormationStackArn',
    tagFilters: [{
      key: 'key',

      // the properties below are optional
      values: ['values'],
    }],
  },
  scalingInstructions: [{
    maxCapacity: 123,
    minCapacity: 123,
    resourceId: 'resourceId',
    scalableDimension: 'scalableDimension',
    serviceNamespace: 'serviceNamespace',
    targetTrackingConfigurations: [{
      targetValue: 123,

      // the properties below are optional
      customizedScalingMetricSpecification: {
        metricName: 'metricName',
        namespace: 'namespace',
        statistic: 'statistic',

        // the properties below are optional
        dimensions: [{
          name: 'name',
          value: 'value',
        }],
        unit: 'unit',
      },
      disableScaleIn: false,
      estimatedInstanceWarmup: 123,
      predefinedScalingMetricSpecification: {
        predefinedScalingMetricType: 'predefinedScalingMetricType',

        // the properties below are optional
        resourceLabel: 'resourceLabel',
      },
      scaleInCooldown: 123,
      scaleOutCooldown: 123,
    }],

    // the properties below are optional
    customizedLoadMetricSpecification: {
      metricName: 'metricName',
      namespace: 'namespace',
      statistic: 'statistic',

      // the properties below are optional
      dimensions: [{
        name: 'name',
        value: 'value',
      }],
      unit: 'unit',
    },
    disableDynamicScaling: false,
    predefinedLoadMetricSpecification: {
      predefinedLoadMetricType: 'predefinedLoadMetricType',

      // the properties below are optional
      resourceLabel: 'resourceLabel',
    },
    predictiveScalingMaxCapacityBehavior: 'predictiveScalingMaxCapacityBehavior',
    predictiveScalingMaxCapacityBuffer: 123,
    predictiveScalingMode: 'predictiveScalingMode',
    scalingPolicyUpdateBehavior: 'scalingPolicyUpdateBehavior',
    scheduledActionBufferTime: 123,
  }],
};

Properties ​

applicationSourceIResolvable | CfnScalingPlan.ApplicationSourcePropertyapplication_sourcetyping.Union[IResolvable, ApplicationSourceProperty]applicationSourceIResolvableApplicationSourceIResolvableApplicationSourceinterface{}required#
A CloudFormation stack or a set of tags.

You can create one scaling plan per application source. The ApplicationSource property must be present to ensure interoperability with the AWS Auto Scaling console.

scalingInstructionsIResolvable | IResolvable | CfnScalingPlan.ScalingInstructionProperty[]scaling_instructionstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ScalingInstructionProperty]]]scalingInstructionsIResolvableScalingInstructionsIResolvableScalingInstructionsinterface{}required#
The scaling instructions.