Every API here is available over the APIs.io API and to AI agents over MCP.
openapi: 3.1.0
info:
title: Elastic Load Balancing Target Groups API
version: '2015-12-01'
description: Generated from AWS's published Smithy model for Elastic Load Balancing. 4 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://elasticloadbalancing.{region}.amazonaws.com
variables:
region:
default: us-east-1
security:
- sigv4: []
paths:
/?Action=CreateTargetGroup:
post:
operationId: CreateTargetGroup
summary: Create Target Group
description: 'Creates a target group. For more information, see the following: Target groups for your Application Load
Balancers Target groups for your Network Load Balancers Target groups for your Gateway Load Balancers This operation
is idempotent, which means that it completes at most one time. If you attempt to create multiple target groups with
the same settings, each call succeeds.'
responses:
'200':
description: Success
content:
text/xml:
schema:
$ref: '#/components/schemas/CreateTargetGroupOutput'
example:
TargetGroups:
- HealthCheckPath: /
HealthCheckIntervalSeconds: 30
VpcId: vpc-3ac0fb5f
Protocol: HTTP
HealthCheckTimeoutSeconds: 5
HealthCheckProtocol: HTTP
UnhealthyThresholdCount: 2
HealthyThresholdCount: 5
TargetGroupArn: arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067
Matcher:
HttpCode: '200'
HealthCheckPort: traffic-port
Port: 80
TargetGroupName: my-targets
'400':
description: DuplicateTargetGroupNameException; InvalidConfigurationRequestException; TooManyTagsException; TooManyTargetGroupsException
content:
text/xml:
schema:
$ref: '#/components/schemas/DuplicateTargetGroupNameException'
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
allOf:
- type: object
required:
- Action
- Version
properties:
Action:
type: string
const: CreateTargetGroup
Version:
type: string
const: '2015-12-01'
- $ref: '#/components/schemas/CreateTargetGroupInput'
example:
Name: my-targets
Protocol: HTTP
Port: 80
VpcId: vpc-3ac0fb5f
tags:
- Target Groups
/?Action=DeleteTargetGroup:
post:
operationId: DeleteTargetGroup
summary: Delete Target Group
description: Deletes the specified target group. You can delete a target group if it is not referenced by any actions.
Deleting a target group also deletes any associated health checks. Deleting a target group does not affect its registered
targets. For example, any EC2 instances continue to run until you stop or terminate them.
responses:
'200':
description: Success
content:
text/xml:
schema:
$ref: '#/components/schemas/DeleteTargetGroupOutput'
'400':
description: ResourceInUseException
content:
text/xml:
schema:
$ref: '#/components/schemas/ResourceInUseException'
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
allOf:
- type: object
required:
- Action
- Version
properties:
Action:
type: string
const: DeleteTargetGroup
Version:
type: string
const: '2015-12-01'
- $ref: '#/components/schemas/DeleteTargetGroupInput'
example:
TargetGroupArn: arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067
tags:
- Target Groups
/?Action=DescribeTargetGroups:
post:
operationId: DescribeTargetGroups
summary: Describe Target Groups
description: 'Describes the specified target groups or all of your target groups. By default, all target groups are
described. Alternatively, you can specify one of the following to filter the results: the ARN of the load balancer,
the names of one or more target groups, or the ARNs of one or more target groups.'
responses:
'200':
description: Success
content:
text/xml:
schema:
$ref: '#/components/schemas/DescribeTargetGroupsOutput'
example:
TargetGroups:
- HealthCheckPath: /
HealthCheckIntervalSeconds: 30
VpcId: vpc-3ac0fb5f
Protocol: HTTP
HealthCheckTimeoutSeconds: 5
HealthCheckProtocol: HTTP
LoadBalancerArns:
- arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188
UnhealthyThresholdCount: 2
HealthyThresholdCount: 5
TargetGroupArn: arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067
Matcher:
HttpCode: '200'
HealthCheckPort: traffic-port
Port: 80
TargetGroupName: my-targets
'400':
description: LoadBalancerNotFoundException; TargetGroupNotFoundException
content:
text/xml:
schema:
$ref: '#/components/schemas/LoadBalancerNotFoundException'
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
allOf:
- type: object
required:
- Action
- Version
properties:
Action:
type: string
const: DescribeTargetGroups
Version:
type: string
const: '2015-12-01'
- $ref: '#/components/schemas/DescribeTargetGroupsInput'
example:
TargetGroupArns:
- arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067
tags:
- Target Groups
/?Action=ModifyTargetGroup:
post:
operationId: ModifyTargetGroup
summary: Modify Target Group
description: Modifies the health checks used when evaluating the health state of the targets in the specified target
group.
responses:
'200':
description: Success
content:
text/xml:
schema:
$ref: '#/components/schemas/ModifyTargetGroupOutput'
example:
TargetGroups:
- HealthCheckIntervalSeconds: 30
VpcId: vpc-3ac0fb5f
Protocol: HTTPS
HealthCheckTimeoutSeconds: 5
HealthCheckProtocol: HTTPS
LoadBalancerArns:
- arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188
UnhealthyThresholdCount: 2
HealthyThresholdCount: 5
TargetGroupArn: arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-https-targets/2453ed029918f21f
Matcher:
HttpCode: '200'
HealthCheckPort: '443'
Port: 443
TargetGroupName: my-https-targets
'400':
description: InvalidConfigurationRequestException; TargetGroupNotFoundException
content:
text/xml:
schema:
$ref: '#/components/schemas/InvalidConfigurationRequestException'
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
allOf:
- type: object
required:
- Action
- Version
properties:
Action:
type: string
const: ModifyTargetGroup
Version:
type: string
const: '2015-12-01'
- $ref: '#/components/schemas/ModifyTargetGroupInput'
example:
TargetGroupArn: arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-https-targets/2453ed029918f21f
HealthCheckProtocol: HTTPS
HealthCheckPort: '443'
tags:
- Target Groups
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: elasticloadbalancing
schemas:
CreateTargetGroupInput:
type: object
properties:
Name:
type: string
description: The name of the target group. This name must be unique per region per account, can have a maximum of
32 characters, must contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen.
Protocol:
type: string
enum:
- HTTP
- HTTPS
- TCP
- TLS
- UDP
- TCP_UDP
- GENEVE
- QUIC
- TCP_QUIC
description: The protocol to use for routing traffic to the targets. For Application Load Balancers, the supported
protocols are HTTP and HTTPS. For Network Load Balancers, the supported protocols are TCP, TLS, UDP, TCP_UDP,
QUIC, or TCP_QUIC. For Gateway Load Balancers, the supported protocol is GENEVE. A TCP_UDP listener must be associated
with a TCP_UDP target group. A TCP_QUIC listener must be associated with a TCP_QUIC target group. If the target
is a Lambda function, this parameter does not apply.
ProtocolVersion:
type: string
description: '[HTTP/HTTPS protocol] The protocol version. Specify GRPC to send requests to targets using gRPC. Specify
HTTP2 to send requests to targets using HTTP/2. The default is HTTP1, which sends requests to targets using HTTP/1.1.'
Port:
type: integer
description: The port on which the targets receive traffic. This port is used unless you specify a port override
when registering the target. If the target is a Lambda function, this parameter does not apply. If the protocol
is GENEVE, the supported port is 6081.
VpcId:
type: string
description: The identifier of the virtual private cloud (VPC). If the target is a Lambda function, this parameter
does not apply. Otherwise, this parameter is required.
HealthCheckProtocol:
type: string
enum:
- HTTP
- HTTPS
- TCP
- TLS
- UDP
- TCP_UDP
- GENEVE
- QUIC
- TCP_QUIC
description: The protocol the load balancer uses when performing health checks on targets. For Application Load
Balancers, the default is HTTP. For Network Load Balancers and Gateway Load Balancers, the default is TCP. The
TCP protocol is not supported for health checks if the protocol of the target group is HTTP or HTTPS. The GENEVE,
TLS, UDP, TCP_UDP, QUIC, and TCP_QUIC protocols are not supported for health checks.
HealthCheckPort:
type: string
description: The port the load balancer uses when performing health checks on targets. If the protocol is HTTP,
HTTPS, TCP, TLS, UDP, TCP_UDP, QUIC, or TCP_QUIC the default is traffic-port, which is the port on which each
target receives traffic from the load balancer. If the protocol is GENEVE, the default is port 80.
HealthCheckEnabled:
type: boolean
description: Indicates whether health checks are enabled. If the target type is lambda, health checks are disabled
by default but can be enabled. If the target type is instance, ip, or alb, health checks are always enabled and
can't be disabled.
HealthCheckPath:
type: string
description: '[HTTP/HTTPS health checks] The destination for health checks on the targets. [HTTP1 or HTTP2 protocol
version] The ping path. The default is /. [GRPC protocol version] The path of a custom health check method with
the format /package.service/method. The default is /Amazon Web Services.ALB/healthcheck.'
HealthCheckIntervalSeconds:
type: integer
description: The approximate amount of time, in seconds, between health checks of an individual target. The range
is 5-300. If the target group protocol is TCP, TLS, UDP, TCP_UDP, QUIC, TCP_QUIC, HTTP or HTTPS, the default is
30 seconds. If the target group protocol is GENEVE, the default is 10 seconds. If the target type is lambda, the
default is 35 seconds.
HealthCheckTimeoutSeconds:
type: integer
description: The amount of time, in seconds, during which no response from a target means a failed health check.
The range is 2–120 seconds. For target groups with a protocol of HTTP, the default is 6 seconds. For target groups
with a protocol of TCP, TLS or HTTPS, the default is 10 seconds. For target groups with a protocol of GENEVE,
the default is 5 seconds. If the target type is lambda, the default is 30 seconds.
HealthyThresholdCount:
type: integer
description: The number of consecutive health check successes required before considering a target healthy. The
range is 2-10. If the target group protocol is TCP, TCP_UDP, UDP, TLS, HTTP or HTTPS, the default is 5. For target
groups with a protocol of GENEVE, the default is 5. If the target type is lambda, the default is 5.
UnhealthyThresholdCount:
type: integer
description: The number of consecutive health check failures required before considering a target unhealthy. The
range is 2-10. If the target group protocol is TCP, TCP_UDP, UDP, TLS, QUIC, TCP_QUIC, HTTP or HTTPS, the default
is 2. For target groups with a protocol of GENEVE, the default is 2. If the target type is lambda, the default
is 5.
Matcher:
$ref: '#/components/schemas/Matcher'
TargetType:
type: string
enum:
- instance
- ip
- lambda
- alb
description: The type of target that you must specify when registering targets with this target group. You can't
specify targets for a target group using more than one target type. instance - Register targets by instance ID.
This is the default value. ip - Register targets by IP address. You can specify IP addresses from the subnets
of the virtual private cloud (VPC) for the target group, the RFC 1918 range (10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16),
and the RFC 6598 range (100.64.0.0/10). You can't specify publicly routable IP addresses. lambda - Register a
single Lambda function as a target. alb - R
Tags:
type: array
items:
$ref: '#/components/schemas/Tag'
description: The tags to assign to the target group.
IpAddressType:
type: string
enum:
- ipv4
- ipv6
description: The IP address type. The default value is ipv4.
TargetControlPort:
type: integer
description: The port on which the target control agent and application load balancer exchange management traffic
for the target optimizer feature.
required:
- Name
CreateTargetGroupOutput:
type: object
properties:
TargetGroups:
type: array
items:
$ref: '#/components/schemas/TargetGroup'
description: Information about the target group.
DeleteTargetGroupInput:
type: object
properties:
TargetGroupArn:
type: string
description: The Amazon Resource Name (ARN) of the target group.
required:
- TargetGroupArn
DeleteTargetGroupOutput:
type: object
properties: {}
DescribeTargetGroupsInput:
type: object
properties:
LoadBalancerArn:
type: string
description: The Amazon Resource Name (ARN) of the load balancer.
TargetGroupArns:
type: array
items:
type: string
description: The Amazon Resource Names (ARN) of the target groups.
Names:
type: array
items:
type: string
description: The names of the target groups.
Marker:
type: string
description: The marker for the next set of results. (You received this marker from a previous call.)
PageSize:
type: integer
description: The maximum number of results to return with this call.
DescribeTargetGroupsOutput:
type: object
properties:
TargetGroups:
type: array
items:
$ref: '#/components/schemas/TargetGroup'
description: Information about the target groups.
NextMarker:
type: string
description: If there are additional results, this is the marker for the next set of results. Otherwise, this is
null.
DuplicateTargetGroupNameException:
type: object
properties:
Message:
type: string
InvalidConfigurationRequestException:
type: object
properties:
Message:
type: string
LoadBalancerNotFoundException:
type: object
properties:
Message:
type: string
Matcher:
type: object
properties:
HttpCode:
type: string
description: For Application Load Balancers, you can specify values between 200 and 499, with the default value
being 200. You can specify multiple values (for example, "200,202") or a range of values (for example, "200-299").
For Network Load Balancers, you can specify values between 200 and 599, with the default value being 200-399.
You can specify multiple values (for example, "200,202") or a range of values (for example, "200-299"). For Gateway
Load Balancers, this must be "200–399". Note that when using shorthand syntax, some values such as commas need
to be escaped.
GrpcCode:
type: string
description: You can specify values between 0 and 99. You can specify multiple values (for example, "0,1") or a
range of values (for example, "0-5"). The default value is 12.
ModifyTargetGroupInput:
type: object
properties:
TargetGroupArn:
type: string
description: The Amazon Resource Name (ARN) of the target group.
HealthCheckProtocol:
type: string
enum:
- HTTP
- HTTPS
- TCP
- TLS
- UDP
- TCP_UDP
- GENEVE
- QUIC
- TCP_QUIC
description: The protocol the load balancer uses when performing health checks on targets. For Application Load
Balancers, the default is HTTP. For Network Load Balancers and Gateway Load Balancers, the default is TCP. The
TCP protocol is not supported for health checks if the protocol of the target group is HTTP or HTTPS. It is supported
for health checks only if the protocol of the target group is TCP, TLS, UDP, or TCP_UDP. The GENEVE, TLS, UDP,
TCP_UDP, QUIC, and TCP_QUIC protocols are not supported for health checks.
HealthCheckPort:
type: string
description: The port the load balancer uses when performing health checks on targets.
HealthCheckPath:
type: string
description: '[HTTP/HTTPS health checks] The destination for health checks on the targets. [HTTP1 or HTTP2 protocol
version] The ping path. The default is /. [GRPC protocol version] The path of a custom health check method with
the format /package.service/method. The default is /Amazon Web Services.ALB/healthcheck.'
HealthCheckEnabled:
type: boolean
description: Indicates whether health checks are enabled. If the target type is lambda, health checks are disabled
by default but can be enabled. If the target type is instance, ip, or alb, health checks are always enabled and
can't be disabled.
HealthCheckIntervalSeconds:
type: integer
description: The approximate amount of time, in seconds, between health checks of an individual target.
HealthCheckTimeoutSeconds:
type: integer
description: '[HTTP/HTTPS health checks] The amount of time, in seconds, during which no response means a failed
health check.'
HealthyThresholdCount:
type: integer
description: The number of consecutive health checks successes required before considering an unhealthy target healthy.
UnhealthyThresholdCount:
type: integer
description: The number of consecutive health check failures required before considering the target unhealthy.
Matcher:
$ref: '#/components/schemas/Matcher'
required:
- TargetGroupArn
ModifyTargetGroupOutput:
type: object
properties:
TargetGroups:
type: array
items:
$ref: '#/components/schemas/TargetGroup'
description: Information about the modified target group.
ResourceInUseException:
type: object
properties:
Message:
type: string
Tag:
type: object
properties:
Key:
type: string
description: The key of the tag.
Value:
type: string
description: The value of the tag.
required:
- Key
TargetGroup:
type: object
properties:
TargetGroupArn:
type: string
description: The Amazon Resource Name (ARN) of the target group.
TargetGroupName:
type: string
description: The name of the target group.
Protocol:
type: string
enum:
- HTTP
- HTTPS
- TCP
- TLS
- UDP
- TCP_UDP
- GENEVE
- QUIC
- TCP_QUIC
description: The protocol to use for routing traffic to the targets.
Port:
type: integer
description: The port on which the targets are listening. This parameter is not used if the target is a Lambda function.
VpcId:
type: string
description: The ID of the VPC for the targets.
HealthCheckProtocol:
type: string
enum:
- HTTP
- HTTPS
- TCP
- TLS
- UDP
- TCP_UDP
- GENEVE
- QUIC
- TCP_QUIC
description: The protocol to use to connect with the target. The GENEVE, TLS, UDP, and TCP_UDP protocols are not
supported for health checks.
HealthCheckPort:
type: string
description: The port to use to connect with the target.
HealthCheckEnabled:
type: boolean
description: Indicates whether health checks are enabled.
HealthCheckIntervalSeconds:
type: integer
description: The approximate amount of time, in seconds, between health checks of an individual target.
HealthCheckTimeoutSeconds:
type: integer
description: The amount of time, in seconds, during which no response means a failed health check.
HealthyThresholdCount:
type: integer
description: The number of consecutive health checks successes required before considering an unhealthy target healthy.
UnhealthyThresholdCount:
type: integer
description: The number of consecutive health check failures required before considering the target unhealthy.
HealthCheckPath:
type: string
description: The destination for health checks on the targets.
Matcher:
$ref: '#/components/schemas/Matcher'
LoadBalancerArns:
type: array
items:
type: string
description: The Amazon Resource Name (ARN) of the load balancer that routes traffic to this target group. You can
use each target group with only one load balancer.
TargetType:
type: string
enum:
- instance
- ip
- lambda
- alb
description: The type of target that you must specify when registering targets with this target group. The possible
values are instance (register targets by instance ID), ip (register targets by IP address), lambda (register a
single Lambda function as a target), or alb (register a single Application Load Balancer as a target).
ProtocolVersion:
type: string
description: '[HTTP/HTTPS protocol] The protocol version. The possible values are GRPC, HTTP1, and HTTP2.'
IpAddressType:
type: string
enum:
- ipv4
- ipv6
description: The IP address type. The default value is ipv4.
TargetControlPort:
type: integer
description: The port on which the target control agent and application load balancer exchange management traffic
for the target optimizer feature.
x-provenance:
method: harvested
publisher: Amazon Web Services
source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/elastic-load-balancing-v2/service/2015-12-01/elastic-load-balancing-v2-2015-12-01.json
note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)