interface IEcsLoadBalancerTarget
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.ECS.IEcsLoadBalancerTarget |
Java | software.amazon.awscdk.services.ecs.IEcsLoadBalancerTarget |
Python | aws_cdk.aws_ecs.IEcsLoadBalancerTarget |
TypeScript (source) | @aws-cdk/aws-ecs » IEcsLoadBalancerTarget |
Obtainable from
Base
.loadBalancerTarget()
, External
.loadBalancerTarget()
Interface for ECS load balancer target.
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 TargetGroup. |
attach | Attach load-balanced target to a classic ELB. |
attach | Attach load-balanced target to a TargetGroup. |
attachToApplicationTargetGroup(targetGroup)
public attachToApplicationTargetGroup(targetGroup: IApplicationTargetGroup): LoadBalancerTargetProps
Parameters
- targetGroup
IApplication
Target Group
Returns
Attach load-balanced target to a TargetGroup.
May return JSON to directly add to the [Targets] list, or return undefined if the target will register itself with the load balancer.
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.
attachToNetworkTargetGroup(targetGroup)
public attachToNetworkTargetGroup(targetGroup: INetworkTargetGroup): LoadBalancerTargetProps
Parameters
- targetGroup
INetwork
Target Group
Returns
Attach load-balanced target to a TargetGroup.
May return JSON to directly add to the [Targets] list, or return undefined if the target will register itself with the load balancer.