interface INetworkTargetGroup
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.ElasticLoadBalancingV2.INetworkTargetGroup |
Java | software.amazon.awscdk.services.elasticloadbalancingv2.INetworkTargetGroup |
Python | aws_cdk.aws_elasticloadbalancingv2.INetworkTargetGroup |
TypeScript (source) | @aws-cdk/aws-elasticloadbalancingv2 » INetworkTargetGroup |
Implemented by
Network
Obtainable from
Network.fromTargetGroupAttributes(), Network.import()
A network target group.
Properties
| Name | Type | Description |
|---|---|---|
| load | string | A token representing a list of ARNs of the load balancers that route traffic to this target group. |
| load | IDependable | Return an object to depend on the listeners added to this target group. |
| node | Construct | The construct tree node for this construct. |
| target | string | ARN of the target group. |
| target | string | The name of the target group. |
loadBalancerArns
Type:
string
A token representing a list of ARNs of the load balancers that route traffic to this target group.
loadBalancerAttached
Type:
IDependable
Return an object to depend on the listeners added to this target group.
node
Type:
Construct
The construct tree node for this construct.
targetGroupArn
Type:
string
ARN of the target group.
targetGroupName
Type:
string
The name of the target group.
Methods
| Name | Description |
|---|---|
| add | Add a load balancing target to this target group. |
| register | Register a listener that is load balancing to this target group. |
addTarget(...targets)
public addTarget(...targets: INetworkLoadBalancerTarget[]): void
Parameters
- targets
INetworkLoad Balancer Target
Add a load balancing target to this target group.
registerListener(listener)
public registerListener(listener: INetworkListener): void
Parameters
- listener
INetworkListener
Register a listener that is load balancing to this target group.
Don't call this directly. It will be called by listeners.

.NET
Java
Python
TypeScript (