interface INetworkTargetGroup
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.ElasticLoadBalancingV2.INetworkTargetGroup |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awselasticloadbalancingv2#INetworkTargetGroup |
Java | software.amazon.awscdk.services.elasticloadbalancingv2.INetworkTargetGroup |
Python | aws_cdk.aws_elasticloadbalancingv2.INetworkTargetGroup |
TypeScript (source) | aws-cdk-lib » aws_elasticloadbalancingv2 » INetworkTargetGroup |
Implements
IDependable, IConstruct, IEnvironment, ITarget, ITarget, INetwork
Implemented by
Network
Obtainable from
Network.fromTargetGroupAttributes()
A network target group.
Properties
| Name | Type | Description |
|---|---|---|
| env | Resource | The environment this resource belongs to. |
| is | boolean | Indicates that this is a Network Target Group. |
| 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. |
| metrics | INetwork | All metrics available for this target group. |
| node | Node | The tree node. |
| target | string | ARN of the target group. |
| target | string | The name of the target group. |
| target | Target | A reference to a TargetGroup resource. |
env
Type:
Resource
The environment this resource belongs to.
For resources that are created and managed in a Stack (those created by
creating new class instances like new Role(), new Bucket(), etc.), this
is always the same as the environment of the stack they belong to.
For referenced resources (those obtained from referencing methods like
Role.fromRoleArn(), Bucket.fromBucketName(), etc.), they might be
different than the stack they were imported into.
isNetworkTargetGroup
Type:
boolean
Indicates that this is a Network Target Group.
Will always return true, but is necessary to prevent accidental structural equality in TypeScript.
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.
metrics
Type:
INetwork
All metrics available for this target group.
node
Type:
Node
The tree node.
targetGroupArn
Type:
string
ARN of the target group.
targetGroupName
Type:
string
The name of the target group.
targetGroupRef
Type:
Target
A reference to a TargetGroup resource.
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: INetworkListenerRef): void
Parameters
- listener
INetworkListener Ref
Register a listener that is load balancing to this target group.
Don't call this directly. It will be called by listeners.

.NET
Go
Java
Python
TypeScript (