TargetGroupAttributes

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

Bases: object

Properties to reference an existing target group.

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

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

ExampleMetadata:

infused

Example:

# stack: Stack


target_group = elbv2.ApplicationTargetGroup.from_target_group_attributes(self, "MyTargetGroup",
    target_group_arn=Fn.import_value("TargetGroupArn"),
    load_balancer_arns=Fn.import_value("LoadBalancerArn")
)

target_group_metrics = target_group.metrics

Attributes

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.