Describes the attributes for the specified load balancer.
Parameters:
Raises:
Examples:
To describe the attributes of a load balancer
This example describes the attributes of the specified load balancer.
>>> await client.describe_load_balancer_attributes(load_balancer_name='my-load-balancer')
Source code in docs_src/capo_elastic_load_balancing/_services/async_elastic_load_balancing.py
| async def describe_load_balancer_attributes(
self,
load_balancer_name: "capo_elastic_load_balancing.types.access_point_name.AccessPointName",
*,
config_overrides: Optional[AsyncElasticLoadBalancingClientConfig] = None,
) -> "capo_elastic_load_balancing.types.describe_load_balancer_attributes_output.DescribeLoadBalancerAttributesOutput":
"""<p>Describes the attributes for the specified load balancer.</p>
Args:
load_balancer_name: <p>The name of the load balancer.</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.load_balancer_attribute_not_found_exception.LoadBalancerAttributeNotFoundException: <p>The specified load balancer attribute 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 attributes of a load balancer
This example describes the attributes of the specified load balancer.
>>> await client.describe_load_balancer_attributes(load_balancer_name='my-load-balancer')
"""
async def _handler(
req: "AsyncOperationRequest[capo_elastic_load_balancing.types.describe_load_balancer_attributes_input.DescribeLoadBalancerAttributesInput]",
) -> AsyncOperationResponse[
"capo_elastic_load_balancing.types.describe_load_balancer_attributes_output.DescribeLoadBalancerAttributesOutput"
]:
import capo_elastic_load_balancing._operations.elastic_load_balancing_v7.describe_load_balancer_attributes
(
output,
http_response,
) = await capo_elastic_load_balancing._operations.elastic_load_balancing_v7.describe_load_balancer_attributes.async_describe_load_balancer_attributes(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DescribeLoadBalancerAttributes")
)
input_: capo_elastic_load_balancing.types.describe_load_balancer_attributes_input.DescribeLoadBalancerAttributesInput = {
"load_balancer_name": load_balancer_name
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|