TargetGroupAttributes

class aws_cdk.aws_elasticloadbalancingv2.TargetGroupAttributes(*, target_group_arn, default_port=None, load_balancer_arns=None)

Bases: object

Properties to reference an existing target group.

Parameters:
  • target_group_arn (str) – ARN of the target group.

  • default_port (Optional[str]) – (deprecated) Port target group is listening on.

  • load_balancer_arns (Optional[str]) – A Token representing the list of ARNs for the load balancer routing to this target group.

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_elasticloadbalancingv2 as elbv2

target_group_attributes = elbv2.TargetGroupAttributes(
    target_group_arn="targetGroupArn",

    # the properties below are optional
    default_port="defaultPort",
    load_balancer_arns="loadBalancerArns"
)

Attributes

default_port

(deprecated) Port target group is listening on.

Deprecated:
  • This property is unused and the wrong type. No need to use it.

Stability:

deprecated

load_balancer_arns

A Token representing the list of ARNs for the load balancer routing to this target group.

target_group_arn

ARN of the target group.