@_utilities.lift_output_func(get_listener)
def get_listener_output(arn: Optional[pulumi.Input[Optional[str]]]=None, load_balancer_arn: Optional[pulumi.Input[Optional[str]]]=None, port: Optional[pulumi.Input[Optional[int]]]=None, tags: Optional[pulumi.Input[Optional[Mapping[(str, str)]]]]=None, opts: Optional[pulumi.InvokeOptions]=None) -> pulumi.Output[GetListenerResult]:
    '\n    > **Note:** `alb.Listener` is known as `lb.Listener`. The functionality is identical.\n\n    Provides information about a Load Balancer Listener.\n\n    This data source can prove useful when a module accepts an LB Listener as an input variable and needs to know the LB it is attached to, or other information specific to the listener in question.\n\n    ## Example Usage\n\n    ```python\n    import pulumi\n    import pulumi_aws as aws\n\n    config = pulumi.Config()\n    listener_arn = config.require("listenerArn")\n    listener = aws.lb.get_listener(arn=listener_arn)\n    selected = aws.lb.get_load_balancer(name="default-public")\n    selected443 = aws.lb.get_listener(load_balancer_arn=selected.arn,\n        port=443)\n    ```\n\n\n    :param str arn: ARN of the listener. Required if `load_balancer_arn` and `port` is not set.\n    :param str load_balancer_arn: ARN of the load balancer. Required if `arn` is not set.\n    :param int port: Port of the listener. Required if `arn` is not set.\n    '
    pulumi.log.warn('get_listener is deprecated: aws.elasticloadbalancingv2.getListener has been deprecated in favor of aws.lb.getListener')
    ...
> **Note:** `alb.Listener` is known as `lb.Listener`. The functionality is identical.

Provides information about a Load Balancer Listener.

This data source can prove useful when a module accepts an LB Listener as an input variable and needs to know the LB it is attached to, or other information specific to the listener in question.

## Example Usage

```python
import pulumi
import pulumi_aws as aws

config = pulumi.Config()
listener_arn = config.require("listenerArn")
listener = aws.lb.get_listener(arn=listener_arn)
selected = aws.lb.get_load_balancer(name="default-public")
selected443 = aws.lb.get_listener(load_balancer_arn=selected.arn,
    port=443)
```


:param str arn: ARN of the listener. Required if `load_balancer_arn` and `port` is not set.
:param str load_balancer_arn: ARN of the load balancer. Required if `arn` is not set.
:param int port: Port of the listener. Required if `arn` is not set.
@_utilities.lift_output_func(get_listener)
def get_listener_output(arn: Optional[pulumi.Input[Optional[str]]]=None, load_balancer_arn: Optional[pulumi.Input[Optional[str]]]=None, port: Optional[pulumi.Input[Optional[int]]]=None, tags: Optional[pulumi.Input[Optional[Mapping[(str, str)]]]]=None, opts: Optional[pulumi.InvokeOptions]=None) -> pulumi.Output[GetListenerResult]:
    '\n    > **Note:** `alb.Listener` is known as `lb.Listener`. The functionality is identical.\n\n    Provides information about a Load Balancer Listener.\n\n    This data source can prove useful when a module accepts an LB Listener as an input variable and needs to know the LB it is attached to, or other information specific to the listener in question.\n\n    ## Example Usage\n\n    ```python\n    import pulumi\n    import pulumi_aws as aws\n\n    config = pulumi.Config()\n    listener_arn = config.require("listenerArn")\n    listener = aws.lb.get_listener(arn=listener_arn)\n    selected = aws.lb.get_load_balancer(name="default-public")\n    selected443 = aws.lb.get_listener(load_balancer_arn=selected.arn,\n        port=443)\n    ```\n\n\n    :param str arn: ARN of the listener. Required if `load_balancer_arn` and `port` is not set.\n    :param str load_balancer_arn: ARN of the load balancer. Required if `arn` is not set.\n    :param int port: Port of the listener. Required if `arn` is not set.\n    '
    pulumi.log.warn('get_listener is deprecated: aws.elasticloadbalancingv2.getListener has been deprecated in favor of aws.lb.getListener')
    ...