INetworkTargetGroup

class aws_cdk.aws_elasticloadbalancingv2.INetworkTargetGroup(*args, **kwargs)

Bases: ITargetGroup, INetworkTargetGroupRef, Protocol

A network target group.

Methods

add_target(*targets)

Add a load balancing target to this target group.

Parameters:

targets (INetworkLoadBalancerTarget)

Return type:

None

register_listener(listener)

Register a listener that is load balancing to this target group.

Don’t call this directly. It will be called by listeners.

Parameters:

listener (INetworkListenerRef)

Return type:

None

Attributes

env

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.

is_network_target_group

Indicates that this is a Network Target Group.

Will always return true, but is necessary to prevent accidental structural equality in TypeScript.

load_balancer_arns

A token representing a list of ARNs of the load balancers that route traffic to this target group.

load_balancer_attached

Return an object to depend on the listeners added to this target group.

metrics

All metrics available for this target group.

node

The tree node.

target_group_arn

ARN of the target group.

target_group_name

The name of the target group.

target_group_ref

(experimental) A reference to a TargetGroup resource.

Stability:

experimental