describe_listeners
async
¶
describe_listeners(
*,
config_overrides: Optional[AsyncElasticLoadBalancingv2ClientConfig] = None,
load_balancer_arn: Optional[LoadBalancerArn] = None,
listener_arns: Optional[ListenerArns] = None,
marker: Optional[Marker] = None,
page_size: Optional[PageSize] = None,
) -> DescribeListenersOutput
Describes the specified listeners or the listeners for the specified Application Load Balancer, Network Load Balancer, or Gateway Load Balancer. You must specify either a load balancer or one or more listeners.
Parameters:
-
load_balancer_arn(Optional[LoadBalancerArn], default:None) –The Amazon Resource Name (ARN) of the load balancer.
-
listener_arns(Optional[ListenerArns], default:None) –The Amazon Resource Names (ARN) of the listeners.
-
marker(Optional[Marker], default:None) –The marker for the next set of results. (You received this marker from a previous call.)
-
page_size(Optional[PageSize], default:None) –The maximum number of results to return with this call.
Raises:
-
ListenerNotFoundException–The specified listener does not exist.
-
LoadBalancerNotFoundException–The specified load balancer does not exist.
-
UnsupportedProtocolException–The specified protocol is not supported.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To describe a listener This example describes the specified listener.
>>> await client.describe_listeners(listener_arns=['arn:aws:elasticloadbalancing:us-west-2:123456789012:listener/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2'])
Source code in docs_src/capo_elastic_load_balancing_v2/_services/async_elastic_load_balancingv2.py
1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 | |