describe_load_balancers
¶
describe_load_balancers(
*,
config_overrides: Optional[ElasticLoadBalancingv2ClientConfig] = None,
load_balancer_arns: Optional[LoadBalancerArns] = None,
names: Optional[LoadBalancerNames] = None,
marker: Optional[Marker] = None,
page_size: Optional[PageSize] = None,
) -> DescribeLoadBalancersOutput
Describes the specified load balancers or all of your load balancers.
Parameters:
-
load_balancer_arns(Optional[LoadBalancerArns], default:None) –The Amazon Resource Names (ARN) of the load balancers. You can specify up to 20 load balancers in a single call.
-
names(Optional[LoadBalancerNames], default:None) –The names of the load balancers.
-
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:
-
LoadBalancerNotFoundException–The specified load balancer does not exist.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To describe a load balancer This example describes the specified load balancer.
>>> client.describe_load_balancers(load_balancer_arns=['arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188'])
Source code in docs_src/capo_elastic_load_balancing_v2/_services/elastic_load_balancingv2.py
1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 | |