interface ILoadBalancerTarget
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.ElasticLoadBalancing.ILoadBalancerTarget |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awselasticloadbalancing#ILoadBalancerTarget |
Java | software.amazon.awscdk.services.elasticloadbalancing.ILoadBalancerTarget |
Python | aws_cdk.aws_elasticloadbalancing.ILoadBalancerTarget |
TypeScript (source) | aws-cdk-lib » aws_elasticloadbalancing » ILoadBalancerTarget |
Implemented by
Auto, Ec2, External, Fargate, Instance
Interface that is going to be implemented by constructs that you can load balance to.
Properties
| Name | Type | Description |
|---|---|---|
| connections | Connections | The network connections associated with this resource. |
connections
Type:
Connections
The network connections associated with this resource.
Methods
| Name | Description |
|---|---|
| attach | Attach load-balanced target to a classic ELB. |
attachToClassicLB(loadBalancer)
public attachToClassicLB(loadBalancer: LoadBalancer): void
Parameters
- loadBalancer
Load— [disable-awslint:ref-via-interface] The load balancer to attach the target to.Balancer
Attach load-balanced target to a classic ELB.

.NET
Go
Java
Python
TypeScript (