{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-ec2-auto-scaling/json-schema/amazon-ec2-auto-scaling-attach-traffic-sources-type-schema.json",
  "title": "AttachTrafficSourcesType",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-ec2-auto-scaling-traffic-source-api-openapi.yml#/components/schemas/AttachTrafficSourcesType",
  "type": "object",
  "properties": {
    "AutoScalingGroupName": {
      "type": "string",
      "description": "The name of the Auto Scaling group."
    },
    "TrafficSources": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/TrafficSourceIdentifier"
      },
      "description": "The unique identifiers of one or more traffic sources. You can specify up to 10 traffic sources."
    },
    "SkipZonalShiftValidation": {
      "type": "boolean",
      "description": "If you enable zonal shift with cross-zone disabled load balancers, capacity could become imbalanced across Availability Zones. To skip the validation, specify true. For more information, see Auto Scaling group zonal shift in the Amazon EC2 Auto Scaling User Guide."
    }
  },
  "required": [
    "AutoScalingGroupName",
    "TrafficSources"
  ],
  "$defs": {
    "TrafficSourceIdentifier": {
      "type": "object",
      "properties": {
        "Identifier": {
          "type": "string",
          "description": "Identifies the traffic source. For Application Load Balancers, Gateway Load Balancers, Network Load Balancers, and VPC Lattice, this will be the Amazon Resource Name (ARN) for a target group in this account and Region. For Classic Load Balancers, this will be the name of the Classic Load Balancer in this account and Region. For example: Application Load Balancer ARN: arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/1234567890123456 Classic Load Balancer name: my-classic-load-balancer VPC Lattice ARN: arn:aws:vpc-lattice:us-west-2:123456789012:targetgroup/tg-1234567890"
        },
        "Type": {
          "type": "string",
          "description": "Provides additional context for the value of Identifier. The following lists the valid values: elb if Identifier is the name of a Classic Load Balancer. elbv2 if Identifier is the ARN of an Application Load Balancer, Gateway Load Balancer, or Network Load Balancer target group. vpc-lattice if Identifier is the ARN of a VPC Lattice target group. Required if the identifier is the name of a Classic Load Balancer."
        }
      },
      "required": [
        "Identifier"
      ]
    }
  }
}