Describes the tags associated with the specified load balancers.
Parameters:
Raises:
Examples:
To describe the tags for a load balancer
This example describes the tags for the specified load balancer.
>>> await client.describe_tags(load_balancer_names=['my-load-balancer'])
Source code in docs_src/capo_elastic_load_balancing/_services/async_elastic_load_balancing.py
| async def describe_tags(
self,
load_balancer_names: "capo_elastic_load_balancing.types.load_balancer_names_max20.LoadBalancerNamesMax20",
*,
config_overrides: Optional[AsyncElasticLoadBalancingClientConfig] = None,
) -> "capo_elastic_load_balancing.types.describe_tags_output.DescribeTagsOutput":
"""<p>Describes the tags associated with the specified load balancers.</p>
Args:
load_balancer_names: <p>The names of the load balancers.</p>
Raises:
capo_elastic_load_balancing.errors.access_point_not_found_exception.AccessPointNotFoundException: <p>The specified load balancer does not exist.</p>
capo_elastic_load_balancing.errors.UnknownServiceError: The service returned an error code this client does not model.
Examples:
To describe the tags for a load balancer
This example describes the tags for the specified load balancer.
>>> await client.describe_tags(load_balancer_names=['my-load-balancer'])
"""
async def _handler(
req: "AsyncOperationRequest[capo_elastic_load_balancing.types.describe_tags_input.DescribeTagsInput]",
) -> AsyncOperationResponse[
"capo_elastic_load_balancing.types.describe_tags_output.DescribeTagsOutput"
]:
import capo_elastic_load_balancing._operations.elastic_load_balancing_v7.describe_tags
(
output,
http_response,
) = await capo_elastic_load_balancing._operations.elastic_load_balancing_v7.describe_tags.async_describe_tags(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DescribeTags")
)
input_: capo_elastic_load_balancing.types.describe_tags_input.DescribeTagsInput = {
"load_balancer_names": load_balancer_names
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|