ApplicationLoadBalancerLookupOptions
- class aws_cdk.aws_elasticloadbalancingv2.ApplicationLoadBalancerLookupOptions(*, load_balancer_arn=None, load_balancer_tags=None)
Bases:
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 arnload_balancer_tags (
Optional
[Mapping
[str
,str
]]) – Match load balancer tags. Default: - does not match load balancers by tags
- ExampleMetadata:
infused
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
- load_balancer_tags
Match load balancer tags.
- Default:
does not match load balancers by tags