ApplicationLoadBalancerLookupOptions

class aws_cdk.aws_elasticloadbalancingv2.ApplicationLoadBalancerLookupOptions(*, load_balancer_arn=None, load_balancer_tags=None)

Bases: aws_cdk.aws_elasticloadbalancingv2.BaseLoadBalancerLookupOptions

Options for looking up an ApplicationLoadBalancer.

Parameters
  • load_balancer_arn (Optional[str]) – Find by load balancer’s ARN. Default: - does not search by load balancer arn

  • load_balancer_tags (Optional[Mapping[str, str]]) – Match load balancer tags. Default: - does not match load balancers by tags

Example:

load_balancer = elbv2.ApplicationLoadBalancer.from_lookup(self, "ALB",
    load_balancer_arn="arn:aws:elasticloadbalancing:us-east-2:123456789012:loadbalancer/app/my-load-balancer/1234567890123456"
)

Attributes

load_balancer_arn

Find by load balancer’s ARN.

Default
  • does not search by load balancer arn

Return type

Optional[str]

load_balancer_tags

Match load balancer tags.

Default
  • does not match load balancers by tags

Return type

Optional[Mapping[str, str]]