ApplicationListenerLookupOptions

class aws_cdk.aws_elasticloadbalancingv2.ApplicationListenerLookupOptions(*, listener_port=None, load_balancer_arn=None, load_balancer_tags=None, listener_arn=None, listener_protocol=None)

Bases: BaseListenerLookupOptions

Options for ApplicationListener lookup.

Parameters:
  • listener_port (Union[int, float, None]) – Filter listeners by listener port. Default: - does not filter by listener port

  • load_balancer_arn (Optional[str]) – Filter listeners by associated load balancer arn. Default: - does not filter by load balancer arn

  • load_balancer_tags (Optional[Mapping[str, str]]) – Filter listeners by associated load balancer tags. Default: - does not filter by load balancer tags

  • listener_arn (Optional[str]) – ARN of the listener to look up. Default: - does not filter by listener arn

  • listener_protocol (Optional[ApplicationProtocol]) – Filter listeners by listener protocol. Default: - does not filter by listener protocol

ExampleMetadata:

infused

Example:

listener = elbv2.ApplicationListener.from_lookup(self, "ALBListener",
    load_balancer_arn="arn:aws:elasticloadbalancing:us-east-2:123456789012:loadbalancer/app/my-load-balancer/1234567890123456",
    listener_protocol=elbv2.ApplicationProtocol.HTTPS,
    listener_port=443
)

Attributes

listener_arn

ARN of the listener to look up.

Default:
  • does not filter by listener arn

listener_port

Filter listeners by listener port.

Default:
  • does not filter by listener port

listener_protocol

Filter listeners by listener protocol.

Default:
  • does not filter by listener protocol

load_balancer_arn

Filter listeners by associated load balancer arn.

Default:
  • does not filter by load balancer arn

load_balancer_tags

Filter listeners by associated load balancer tags.

Default:
  • does not filter by load balancer tags