CfnScalingPlanMixinProps

class aws_cdk.mixins_preview.aws_autoscalingplans.mixins.CfnScalingPlanMixinProps(*, application_source=None, scaling_instructions=None)

Bases: object

Properties for CfnScalingPlanPropsMixin.

Parameters:
  • application_source (Union[IResolvable, ApplicationSourceProperty, Dict[str, Any], None]) – 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.

  • scaling_instructions (Union[IResolvable, Sequence[Union[IResolvable, ScalingInstructionProperty, Dict[str, Any]]], None]) – The scaling instructions.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscalingplans-scalingplan.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.mixins_preview.aws_autoscalingplans import mixins as autoscalingplans_mixins

cfn_scaling_plan_mixin_props = autoscalingplans_mixins.CfnScalingPlanMixinProps(
    application_source=autoscalingplans_mixins.CfnScalingPlanPropsMixin.ApplicationSourceProperty(
        cloud_formation_stack_arn="cloudFormationStackArn",
        tag_filters=[autoscalingplans_mixins.CfnScalingPlanPropsMixin.TagFilterProperty(
            key="key",
            values=["values"]
        )]
    ),
    scaling_instructions=[autoscalingplans_mixins.CfnScalingPlanPropsMixin.ScalingInstructionProperty(
        customized_load_metric_specification=autoscalingplans_mixins.CfnScalingPlanPropsMixin.CustomizedLoadMetricSpecificationProperty(
            dimensions=[autoscalingplans_mixins.CfnScalingPlanPropsMixin.MetricDimensionProperty(
                name="name",
                value="value"
            )],
            metric_name="metricName",
            namespace="namespace",
            statistic="statistic",
            unit="unit"
        ),
        disable_dynamic_scaling=False,
        max_capacity=123,
        min_capacity=123,
        predefined_load_metric_specification=autoscalingplans_mixins.CfnScalingPlanPropsMixin.PredefinedLoadMetricSpecificationProperty(
            predefined_load_metric_type="predefinedLoadMetricType",
            resource_label="resourceLabel"
        ),
        predictive_scaling_max_capacity_behavior="predictiveScalingMaxCapacityBehavior",
        predictive_scaling_max_capacity_buffer=123,
        predictive_scaling_mode="predictiveScalingMode",
        resource_id="resourceId",
        scalable_dimension="scalableDimension",
        scaling_policy_update_behavior="scalingPolicyUpdateBehavior",
        scheduled_action_buffer_time=123,
        service_namespace="serviceNamespace",
        target_tracking_configurations=[autoscalingplans_mixins.CfnScalingPlanPropsMixin.TargetTrackingConfigurationProperty(
            customized_scaling_metric_specification=autoscalingplans_mixins.CfnScalingPlanPropsMixin.CustomizedScalingMetricSpecificationProperty(
                dimensions=[autoscalingplans_mixins.CfnScalingPlanPropsMixin.MetricDimensionProperty(
                    name="name",
                    value="value"
                )],
                metric_name="metricName",
                namespace="namespace",
                statistic="statistic",
                unit="unit"
            ),
            disable_scale_in=False,
            estimated_instance_warmup=123,
            predefined_scaling_metric_specification=autoscalingplans_mixins.CfnScalingPlanPropsMixin.PredefinedScalingMetricSpecificationProperty(
                predefined_scaling_metric_type="predefinedScalingMetricType",
                resource_label="resourceLabel"
            ),
            scale_in_cooldown=123,
            scale_out_cooldown=123,
            target_value=123
        )]
    )]
)

Attributes

application_source

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscalingplans-scalingplan.html#cfn-autoscalingplans-scalingplan-applicationsource

scaling_instructions

The scaling instructions.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscalingplans-scalingplan.html#cfn-autoscalingplans-scalingplan-scalinginstructions