Skip to content

untag_resource

untag_resource(
    resource_arn: VeniceGlobalArn,
    tag_keys: TagKeyList,
    *,
    config_overrides: Optional[EntityResolutionClientConfig] = None,
) -> UntagResourceOutput

Removes one or more tags from the specified Entity Resolution resource. In Entity Resolution, SchemaMapping, and MatchingWorkflow can be tagged.

Parameters:

  • resource_arn (VeniceGlobalArn) –

    The ARN of the resource for which you want to untag.

  • tag_keys (TagKeyList) –

    The list of tag keys to remove from the resource.

Raises:

Source code in docs_src/capo_entityresolution/_services/entity_resolution.py
def untag_resource(
    self,
    resource_arn: "capo_entityresolution.types.venice_global_arn.VeniceGlobalArn",
    tag_keys: "capo_entityresolution.types.tag_key_list.TagKeyList",
    *,
    config_overrides: Optional[EntityResolutionClientConfig] = None,
) -> "capo_entityresolution.types.untag_resource_output.UntagResourceOutput":
    """<p>Removes one or more tags from the specified Entity Resolution resource. In Entity Resolution, <code>SchemaMapping</code>, and <code>MatchingWorkflow</code> can be tagged.</p>

    Args:
        resource_arn: <p>The ARN of the resource for which you want to untag.</p>
        tag_keys: <p>The list of tag keys to remove from the resource.</p>

    Raises:
        capo_entityresolution.errors.internal_server_exception.InternalServerException: <p>This exception occurs when there is an internal failure in the Entity Resolution service. </p>
        capo_entityresolution.errors.resource_not_found_exception.ResourceNotFoundException: <p>The resource couldn't be found. </p>
        capo_entityresolution.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_entityresolution.types.untag_resource_input.UntagResourceInput]",
    ) -> OperationResponse[
        "capo_entityresolution.types.untag_resource_output.UntagResourceOutput"
    ]:
        import capo_entityresolution._operations.aws_venice_service.untag_resource

        output, http_response = (
            capo_entityresolution._operations.aws_venice_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_entityresolution.types.untag_resource_input.UntagResourceInput = {
        "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