Skip to content

describe_load_balancer_attributes

describe_load_balancer_attributes(
    load_balancer_name: AccessPointName,
    *,
    config_overrides: Optional[ElasticLoadBalancingClientConfig] = None,
) -> DescribeLoadBalancerAttributesOutput

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.

>>> client.describe_load_balancer_attributes(load_balancer_name='my-load-balancer')
Source code in docs_src/capo_elastic_load_balancing/_services/elastic_load_balancing.py
def describe_load_balancer_attributes(
    self,
    load_balancer_name: "capo_elastic_load_balancing.types.access_point_name.AccessPointName",
    *,
    config_overrides: Optional[ElasticLoadBalancingClientConfig] = 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.

        >>> client.describe_load_balancer_attributes(load_balancer_name='my-load-balancer')
    """

    def _handler(
        req: "OperationRequest[capo_elastic_load_balancing.types.describe_load_balancer_attributes_input.DescribeLoadBalancerAttributesInput]",
    ) -> OperationResponse[
        "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 = (
            capo_elastic_load_balancing._operations.elastic_load_balancing_v7.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.types.describe_load_balancer_attributes_input.DescribeLoadBalancerAttributesInput = {
        "load_balancer_name": load_balancer_name
    }

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output