Skip to content

untag_resource async

untag_resource(
    resource_arn: FinSpaceTaggableArn,
    tag_keys: TagKeyList,
    *,
    config_overrides: Optional[AsyncfinspaceClientConfig] = None,
) -> UntagResourceResponse

Removes metadata tags from a FinSpace resource.

Parameters:

  • resource_arn (FinSpaceTaggableArn) –

    A FinSpace resource from which you want to remove a tag or tags. The value for this parameter is an Amazon Resource Name (ARN).

  • tag_keys (TagKeyList) –

    The tag keys (names) of one or more tags to be removed.

Raises:

Source code in docs_src/capo_finspace/_services/async_finspace.py
async def untag_resource(
    self,
    resource_arn: "capo_finspace.types.fin_space_taggable_arn.FinSpaceTaggableArn",
    tag_keys: "capo_finspace.types.tag_key_list.TagKeyList",
    *,
    config_overrides: Optional[AsyncfinspaceClientConfig] = None,
) -> "capo_finspace.types.untag_resource_response.UntagResourceResponse":
    """<p>Removes metadata tags from a FinSpace resource.</p>

    Args:
        resource_arn: <p>A FinSpace resource from which you want to remove a tag or tags. The value for this parameter is an Amazon Resource Name (ARN).</p>
        tag_keys: <p>The tag keys (names) of one or more tags to be removed.</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.untag_resource_request.UntagResourceRequest]",
    ) -> AsyncOperationResponse[
        "capo_finspace.types.untag_resource_response.UntagResourceResponse"
    ]:
        import capo_finspace._operations.aws_habanero_management_service.untag_resource

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("UntagResource")
    )
    input_: capo_finspace.types.untag_resource_request.UntagResourceRequest = {
        "resource_arn": resource_arn,
        "tag_keys": tag_keys,
    }

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