Skip to content

list_tags_for_resource async

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

A list of all tags for a resource.

Parameters:

Raises:

Source code in docs_src/capo_finspace/_services/async_finspace.py
async def list_tags_for_resource(
    self,
    resource_arn: "capo_finspace.types.fin_space_taggable_arn.FinSpaceTaggableArn",
    *,
    config_overrides: Optional[AsyncfinspaceClientConfig] = None,
) -> "capo_finspace.types.list_tags_for_resource_response.ListTagsForResourceResponse":
    """<p>A list of all tags for a resource.</p>

    Args:
        resource_arn: <p>The Amazon Resource Name of the resource.</p>

    Raises:
        capo_finspace.errors.internal_server_exception.InternalServerException: <p>The request processing has failed because of an unknown error, exception or failure.</p>
        capo_finspace.errors.invalid_request_exception.InvalidRequestException: <p>The request is invalid. Something is wrong with the input to the request.</p>
        capo_finspace.errors.resource_not_found_exception.ResourceNotFoundException: <p>One or more resources can't be found.</p>
        capo_finspace.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_finspace.types.list_tags_for_resource_request.ListTagsForResourceRequest]",
    ) -> AsyncOperationResponse[
        "capo_finspace.types.list_tags_for_resource_response.ListTagsForResourceResponse"
    ]:
        import capo_finspace._operations.aws_habanero_management_service.list_tags_for_resource

        (
            output,
            http_response,
        ) = await capo_finspace._operations.aws_habanero_management_service.list_tags_for_resource.async_list_tags_for_resource(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

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

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output