Skip to content

list_tags_for_resource

list_tags_for_resource(
    resource_arn: Arn, *, config_overrides: Optional[DataBrewClientConfig] = None
) -> ListTagsForResourceResponse

Lists all the tags for a DataBrew resource.

Parameters:

  • resource_arn (Arn) –

    The Amazon Resource Name (ARN) string that uniquely identifies the DataBrew resource.

Raises:

Source code in docs_src/capo_databrew/_services/data_brew.py
def list_tags_for_resource(
    self,
    resource_arn: "capo_databrew.types.arn.Arn",
    *,
    config_overrides: Optional[DataBrewClientConfig] = None,
) -> "capo_databrew.types.list_tags_for_resource_response.ListTagsForResourceResponse":
    """<p>Lists all the tags for a DataBrew resource. </p>

    Args:
        resource_arn: <p>The Amazon Resource Name (ARN) string that uniquely identifies the DataBrew resource. </p>

    Raises:
        capo_databrew.errors.internal_server_exception.InternalServerException: <p>An internal service failure occurred.</p>
        capo_databrew.errors.resource_not_found_exception.ResourceNotFoundException: <p>One or more resources can't be found.</p>
        capo_databrew.errors.validation_exception.ValidationException: <p>The input parameters for this request failed validation.</p>
        capo_databrew.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_databrew.types.list_tags_for_resource_request.ListTagsForResourceRequest]",
    ) -> OperationResponse[
        "capo_databrew.types.list_tags_for_resource_response.ListTagsForResourceResponse"
    ]:
        import capo_databrew._operations.aws_glue_data_brew.list_tags_for_resource

        output, http_response = (
            capo_databrew._operations.aws_glue_data_brew.list_tags_for_resource.list_tags_for_resource(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListTagsForResource")
    )
    input_: capo_databrew.types.list_tags_for_resource_request.ListTagsForResourceRequest = {
        "resource_arn": resource_arn
    }

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