aws-cdk-lib.aws_elasticloadbalancingv2.INetworkTargetGroup

interface INetworkTargetGroup

LanguageType name
.NETAmazon.CDK.AWS.ElasticLoadBalancingV2.INetworkTargetGroup
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awselasticloadbalancingv2#INetworkTargetGroup
Javasoftware.amazon.awscdk.services.elasticloadbalancingv2.INetworkTargetGroup
Pythonaws_cdk.aws_elasticloadbalancingv2.INetworkTargetGroup
TypeScript (source)aws-cdk-lib » aws_elasticloadbalancingv2 » INetworkTargetGroup

Implemented by NetworkTargetGroup

Obtainable from NetworkTargetGroup.fromTargetGroupAttributes()

A network target group.

Properties

NameTypeDescription
loadBalancerArnsstringA token representing a list of ARNs of the load balancers that route traffic to this target group.
loadBalancerAttachedIDependableReturn an object to depend on the listeners added to this target group.
metricsINetworkTargetGroupMetricsAll metrics available for this target group.
nodeNodeThe tree node.
targetGroupArnstringARN of the target group.
targetGroupNamestringThe 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.


metrics

Type: INetworkTargetGroupMetrics

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.

Methods

NameDescription
addTarget(...targets)Add a load balancing target to this target group.
registerListener(listener)Register a listener that is load balancing to this target group.

addTarget(...targets)

public addTarget(...targets: INetworkLoadBalancerTarget[]): void

Parameters

  • targets INetworkLoadBalancerTarget

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.