Amazon EC2 Auto Scaling · JSON Structure

Ec2 Auto Scaling Target Tracking Configuration Structure

Represents a target tracking scaling policy configuration to use with Amazon EC2 Auto Scaling.

Type: object Properties: 4 Required: 1
Amazon Web ServicesAuto ScalingComputeEC2High AvailabilityScaling

TargetTrackingConfiguration is a JSON Structure definition published by Amazon EC2 Auto Scaling, describing 4 properties, of which 1 is required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

PredefinedMetricSpecification CustomizedMetricSpecification TargetValue DisableScaleIn

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-ec2-auto-scaling/refs/heads/main/json-structure/ec2-auto-scaling-target-tracking-configuration-structure.json",
  "name": "TargetTrackingConfiguration",
  "description": "Represents a target tracking scaling policy configuration to use with Amazon EC2 Auto Scaling.",
  "type": "object",
  "properties": {
    "PredefinedMetricSpecification": {
      "allOf": [
        {
          "$ref": "#/components/schemas/PredefinedMetricSpecification"
        },
        {
          "description": "A predefined metric. You must specify either a predefined metric or a customized metric."
        }
      ]
    },
    "CustomizedMetricSpecification": {
      "allOf": [
        {
          "$ref": "#/components/schemas/CustomizedMetricSpecification"
        },
        {
          "description": "A customized metric. You must specify either a predefined metric or a customized metric."
        }
      ]
    },
    "TargetValue": {
      "allOf": [
        {
          "$ref": "#/components/schemas/MetricScale"
        },
        {
          "description": "<p>The target value for the metric.</p> <note> <p>Some metrics are based on a count instead of a percentage, such as the request count for an Application Load Balancer or the number of messages in an SQS queue. If the scaling policy specifies one of these metrics, specify the target utilization as the optimal average request or message count per instance during any one-minute interval. </p> </note>"
        }
      ]
    },
    "DisableScaleIn": {
      "allOf": [
        {
          "$ref": "#/components/schemas/DisableScaleIn"
        },
        {
          "description": "Indicates whether scaling in by the target tracking scaling policy is disabled. If scaling in is disabled, the target tracking scaling policy doesn't remove instances from the Auto Scaling group. Otherwise, the target tracking scaling policy can remove instances from the Auto Scaling group. The default is <code>false</code>."
        }
      ]
    }
  },
  "required": [
    "TargetValue"
  ]
}