describe_load_balancers
async
¶
describe_load_balancers(
*,
config_overrides: Optional[AsyncElasticLoadBalancingv2ClientConfig] = 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.
>>> await 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/async_elastic_load_balancingv2.py
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 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 | |