Skip to content

describe_tags

describe_tags(
    load_balancer_names: LoadBalancerNamesMax20,
    *,
    config_overrides: Optional[ElasticLoadBalancingClientConfig] = None,
) -> DescribeTagsOutput

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.

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

        >>> client.describe_tags(load_balancer_names=['my-load-balancer'])
    """

    def _handler(
        req: "OperationRequest[capo_elastic_load_balancing.types.describe_tags_input.DescribeTagsInput]",
    ) -> OperationResponse[
        "capo_elastic_load_balancing.types.describe_tags_output.DescribeTagsOutput"
    ]:
        import capo_elastic_load_balancing._operations.elastic_load_balancing_v7.describe_tags

        output, http_response = (
            capo_elastic_load_balancing._operations.elastic_load_balancing_v7.describe_tags.describe_tags(
                req.options, req.input
            )
        )
        return OperationResponse(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 = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output