aws-cdk-lib.aws_elasticloadbalancing.ILoadBalancerTarget

interface ILoadBalancerTarget

LanguageType name
.NETAmazon.CDK.AWS.ElasticLoadBalancing.ILoadBalancerTarget
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awselasticloadbalancing#ILoadBalancerTarget
Javasoftware.amazon.awscdk.services.elasticloadbalancing.ILoadBalancerTarget
Pythonaws_cdk.aws_elasticloadbalancing.ILoadBalancerTarget
TypeScript (source)aws-cdk-lib » aws_elasticloadbalancing » ILoadBalancerTarget

Implemented by AutoScalingGroup, Ec2Service, ExternalService, FargateService, InstanceTarget

Interface that is going to be implemented by constructs that you can load balance to.

Properties

NameTypeDescription
connectionsConnectionsThe network connections associated with this resource.

connections

Type: Connections

The network connections associated with this resource.

Methods

NameDescription
attachToClassicLB(loadBalancer)Attach load-balanced target to a classic ELB.

attachToClassicLB(loadBalancer)

public attachToClassicLB(loadBalancer: LoadBalancer): void

Parameters

  • loadBalancer LoadBalancer — [disable-awslint:ref-via-interface] The load balancer to attach the target to.

Attach load-balanced target to a classic ELB.