{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-ec2-auto-scaling/json-schema/amazon-ec2-auto-scaling-detach-traffic-sources-type-schema.json",
  "title": "DetachTrafficSourcesType",
  "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/DetachTrafficSourcesType",
  "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."
    }
  },
  "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"
      ]
    }
  }
}