Describes the attributes for the specified Application Load Balancer, Network Load Balancer, or Gateway Load Balancer.
For more information, see the following:
Parameters:
-
load_balancer_arn
(Optional[LoadBalancerArn], default:
None
)
–
The Amazon Resource Name (ARN) of the load balancer.
Raises:
Examples:
To describe load balancer attributes
This example describes the attributes of the specified load balancer.
>>> client.describe_load_balancer_attributes(load_balancer_arn='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
| def describe_load_balancer_attributes(
self,
*,
config_overrides: Optional[ElasticLoadBalancingv2ClientConfig] = None,
load_balancer_arn: Optional[
"capo_elastic_load_balancing_v2.types.load_balancer_arn.LoadBalancerArn"
] = None,
) -> "capo_elastic_load_balancing_v2.types.describe_load_balancer_attributes_output.DescribeLoadBalancerAttributesOutput":
"""<p>Describes the attributes for the specified Application Load Balancer, Network Load Balancer, or Gateway Load Balancer.</p> <p>For more information, see the following:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/elasticloadbalancing/latest/application/application-load-balancers.html#load-balancer-attributes">Load balancer attributes</a> in the <i>Application Load Balancers Guide</i> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/elasticloadbalancing/latest/network/network-load-balancers.html#load-balancer-attributes">Load balancer attributes</a> in the <i>Network Load Balancers Guide</i> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/elasticloadbalancing/latest/gateway/gateway-load-balancers.html#load-balancer-attributes">Load balancer attributes</a> in the <i>Gateway Load Balancers Guide</i> </p> </li> </ul>
Args:
load_balancer_arn: <p>The Amazon Resource Name (ARN) of the load balancer.</p>
Raises:
capo_elastic_load_balancing_v2.errors.load_balancer_not_found_exception.LoadBalancerNotFoundException: <p>The specified load balancer does not exist.</p>
capo_elastic_load_balancing_v2.errors.UnknownServiceError: The service returned an error code this client does not model.
Examples:
To describe load balancer attributes
This example describes the attributes of the specified load balancer.
>>> client.describe_load_balancer_attributes(load_balancer_arn='arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188')
"""
def _handler(
req: "OperationRequest[capo_elastic_load_balancing_v2.types.describe_load_balancer_attributes_input.DescribeLoadBalancerAttributesInput]",
) -> OperationResponse[
"capo_elastic_load_balancing_v2.types.describe_load_balancer_attributes_output.DescribeLoadBalancerAttributesOutput"
]:
import capo_elastic_load_balancing_v2._operations.elastic_load_balancing_v10.describe_load_balancer_attributes
output, http_response = (
capo_elastic_load_balancing_v2._operations.elastic_load_balancing_v10.describe_load_balancer_attributes.describe_load_balancer_attributes(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DescribeLoadBalancerAttributes")
)
input_: capo_elastic_load_balancing_v2.types.describe_load_balancer_attributes_input.DescribeLoadBalancerAttributesInput = {}
if load_balancer_arn is not None:
input_["load_balancer_arn"] = load_balancer_arn
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|