awscc_applicationautoscaling_scaling_policy (Resource)

Resource Type definition for AWS::ApplicationAutoScaling::ScalingPolicy

Schema

Required

Updates to the name of a target tracking scaling policy are not supported, unless you also update the metric used for scaling. To change only a target tracking scaling policy's name, first delete the policy by removing the existing AWS::ApplicationAutoScaling::ScalingPolicy resource from the template and updating the stack. Then, recreate the resource with the same settings and a different name.

The following policy types are supported:

TargetTrackingScaling Not supported for Amazon EMR

StepScaling Not supported for DynamoDB, Amazon Comprehend, Lambda, Amazon Keyspaces, Amazon MSK, Amazon ElastiCache, or Neptune.

Optional

Read-Only

Nested Schema for step_scaling_policy_configuration

Optional:

Nested Schema for step_scaling_policy_configuration.step_adjustments

Required:

Optional:

Nested Schema for target_tracking_scaling_policy_configuration

Required:

Optional:

Nested Schema for target_tracking_scaling_policy_configuration.customized_metric_specification

Optional:

Nested Schema for target_tracking_scaling_policy_configuration.customized_metric_specification.dimensions

Required:

Nested Schema for target_tracking_scaling_policy_configuration.customized_metric_specification.metrics

Optional:

Nested Schema for target_tracking_scaling_policy_configuration.customized_metric_specification.metrics.metric_stat

Optional:

Nested Schema for target_tracking_scaling_policy_configuration.customized_metric_specification.metrics.return_data.metric

Optional:

Nested Schema for target_tracking_scaling_policy_configuration.customized_metric_specification.metrics.return_data.metric.dimensions

Optional:

Nested Schema for target_tracking_scaling_policy_configuration.predefined_metric_specification

Required:

Optional:

Import

Import is supported using the following syntax:

$ terraform import awscc_applicationautoscaling_scaling_policy.example <resource ID>