Amazon EC2 Auto Scaling Ec2 Auto Scaling Traffic Source API

The Ec2 Auto Scaling Traffic Source API from Amazon EC2 Auto Scaling — 3 operation(s) for ec2 auto scaling traffic source.

GitHub OpenAPI

Operations 3

POST /?Action=AttachTrafficSources Attach Traffic Sources #
POST /?Action=DescribeTrafficSources Describe Traffic Sources #
POST /?Action=DetachTrafficSources Detach Traffic Sources #

Documentation

Specifications

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/amazon-ec2-auto-scaling:amazon-ec2-auto-scaling-traffic-source-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

amazon-ec2-auto-scaling-traffic-source-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Auto Scaling Traffic Source API
  version: '2011-01-01'
  description: Generated from AWS's published Smithy model for Auto Scaling. 3 operation(s).
  contact:
    name: Amazon Web Services
    url: https://aws.amazon.com/contact-us/
  license:
    name: Apache 2.0
    identifier: Apache-2.0
    url: https://github.com/aws/api-models-aws/blob/main/LICENSE
servers:
- url: https://autoscaling.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /?Action=AttachTrafficSources:
    post:
      operationId: AttachTrafficSources
      summary: Attach Traffic Sources
      description: 'Attaches one or more traffic sources to the specified Auto Scaling group. You can use any of the following
        as traffic sources for an Auto Scaling group: Application Load Balancer Classic Load Balancer Gateway Load Balancer
        Network Load Balancer VPC Lattice This operation is additive and does not detach existing traffic sources from the
        Auto Scaling group. After the operation completes, use the DescribeTrafficSources API to return details about the
        state of the attachments between traffic sources and your Auto Scaling group. To detach a traffic source from the
        Auto Scaling group, call the DetachTrafficSources API.'
      responses:
        '200':
          description: Success
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/AttachTrafficSourcesResultType'
              example: {}
        '400':
          description: InstanceRefreshInProgressFault
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/InstanceRefreshInProgressFault'
        '500':
          description: ResourceContentionFault; ServiceLinkedRoleFailure
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/ResourceContentionFault'
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              allOf:
              - type: object
                required:
                - Action
                - Version
                properties:
                  Action:
                    type: string
                    const: AttachTrafficSources
                  Version:
                    type: string
                    const: '2011-01-01'
              - $ref: '#/components/schemas/AttachTrafficSourcesType'
            example:
              AutoScalingGroupName: my-auto-scaling-group
              TrafficSources:
              - Identifier: arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067
      tags:
      - Traffic Source
  /?Action=DescribeTrafficSources:
    post:
      operationId: DescribeTrafficSources
      summary: Describe Traffic Sources
      description: Gets information about the traffic sources for the specified Auto Scaling group. You can optionally provide
        a traffic source type. If you provide a traffic source type, then the results only include that traffic source type.
        If you do not provide a traffic source type, then the results include all the traffic sources for the specified Auto
        Scaling group.
      responses:
        '200':
          description: Success
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/DescribeTrafficSourcesResponse'
              example:
                TrafficSources:
                - Identifier: arn:aws:vpc-lattice:us-west-2:123456789012:targetgroup/tg-0e2f2665eEXAMPLE
                  State: InService
                  Type: vpc-lattice
                NextToken: ''
        '400':
          description: InvalidNextToken
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/InvalidNextToken'
        '500':
          description: ResourceContentionFault
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/ResourceContentionFault'
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              allOf:
              - type: object
                required:
                - Action
                - Version
                properties:
                  Action:
                    type: string
                    const: DescribeTrafficSources
                  Version:
                    type: string
                    const: '2011-01-01'
              - $ref: '#/components/schemas/DescribeTrafficSourcesRequest'
            example:
              AutoScalingGroupName: my-auto-scaling-group
      tags:
      - Traffic Source
  /?Action=DetachTrafficSources:
    post:
      operationId: DetachTrafficSources
      summary: Detach Traffic Sources
      description: Detaches one or more traffic sources from the specified Auto Scaling group. When you detach a traffic source,
        it enters the Removing state while deregistering the instances in the group. When all instances are deregistered,
        then you can no longer describe the traffic source using the DescribeTrafficSources API call. The instances continue
        to run.
      responses:
        '200':
          description: Success
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/DetachTrafficSourcesResultType'
              example: {}
        '500':
          description: ResourceContentionFault
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/ResourceContentionFault'
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              allOf:
              - type: object
                required:
                - Action
                - Version
                properties:
                  Action:
                    type: string
                    const: DetachTrafficSources
                  Version:
                    type: string
                    const: '2011-01-01'
              - $ref: '#/components/schemas/DetachTrafficSourcesType'
            example:
              AutoScalingGroupName: my-auto-scaling-group
              TrafficSources:
              - Identifier: arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067
      tags:
      - Traffic Source
components:
  securitySchemes:
    sigv4:
      type: apiKey
      in: header
      name: Authorization
      description: AWS Signature Version 4. The Authorization header carries an AWS4-HMAC-SHA256 signature over the canonical
        request, with X-Amz-Date (and X-Amz-Security-Token for temporary credentials). Not a bearer token.
      x-aws-sigv4:
        signingName: autoscaling
  schemas:
    AttachTrafficSourcesResultType:
      type: object
      properties: {}
    AttachTrafficSourcesType:
      type: object
      properties:
        AutoScalingGroupName:
          type: string
          description: The name of the Auto Scaling group.
        TrafficSources:
          type: array
          items:
            $ref: '#/components/schemas/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
    DescribeTrafficSourcesRequest:
      type: object
      properties:
        AutoScalingGroupName:
          type: string
          description: The name of the Auto Scaling group.
        TrafficSourceType:
          type: string
          description: 'The traffic source type that you want to describe. The following lists the valid values: elb if the
            traffic source is a Classic Load Balancer. elbv2 if the traffic source is a Application Load Balancer, Gateway
            Load Balancer, or Network Load Balancer. vpc-lattice if the traffic source is VPC Lattice.'
        NextToken:
          type: string
          description: The token for the next set of items to return. (You received this token from a previous call.)
        MaxRecords:
          type: integer
          description: The maximum number of items to return with this call. The maximum value is 50.
      required:
      - AutoScalingGroupName
    DescribeTrafficSourcesResponse:
      type: object
      properties:
        TrafficSources:
          type: array
          items:
            $ref: '#/components/schemas/TrafficSourceState'
          description: Information about the traffic sources.
        NextToken:
          type: string
          description: This string indicates that the response contains more items than can be returned in a single response.
            To receive additional items, specify this string for the NextToken value when requesting the next set of items.
            This value is null when there are no more items to return.
    DetachTrafficSourcesResultType:
      type: object
      properties: {}
    DetachTrafficSourcesType:
      type: object
      properties:
        AutoScalingGroupName:
          type: string
          description: The name of the Auto Scaling group.
        TrafficSources:
          type: array
          items:
            $ref: '#/components/schemas/TrafficSourceIdentifier'
          description: The unique identifiers of one or more traffic sources. You can specify up to 10 traffic sources.
      required:
      - AutoScalingGroupName
      - TrafficSources
    InstanceRefreshInProgressFault:
      type: object
      properties:
        message:
          type: string
    InvalidNextToken:
      type: object
      properties:
        message:
          type: string
    ResourceContentionFault:
      type: object
      properties:
        message:
          type: string
    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
    TrafficSourceState:
      type: object
      properties:
        TrafficSource:
          type: string
          description: This is replaced by Identifier.
        State:
          type: string
          description: 'Describes the current state of a traffic source. The state values are as follows: Adding - The Auto
            Scaling instances are being registered with the load balancer or target group. Added - All Auto Scaling instances
            are registered with the load balancer or target group. InService - For an Elastic Load Balancing load balancer
            or target group, at least one Auto Scaling instance passed an ELB health check. For VPC Lattice, at least one
            Auto Scaling instance passed an VPC_LATTICE health check. Removing - The Auto Scaling instances are being deregistered
            from the load balancer or target group. If con'
        Identifier:
          type: string
          description: The unique identifier of the traffic source.
        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.'
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/auto-scaling/service/2011-01-01/auto-scaling-2011-01-01.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)