Skip to content

untag_resource

untag_resource(
    resource_arn: FinSpaceTaggableArn,
    tag_keys: TagKeyList,
    *,
    config_overrides: Optional[finspaceClientConfig] = 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/finspace.py
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[finspaceClientConfig] = 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.
    """

    def _handler(
        req: "OperationRequest[capo_finspace.types.untag_resource_request.UntagResourceRequest]",
    ) -> OperationResponse[
        "capo_finspace.types.untag_resource_response.UntagResourceResponse"
    ]:
        import capo_finspace._operations.aws_habanero_management_service.untag_resource

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