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/async_entity_resolution.py
| async 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[AsyncEntityResolutionClientConfig] = 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.
"""
async def _handler(
req: "AsyncOperationRequest[capo_entityresolution.types.untag_resource_input.UntagResourceInput]",
) -> AsyncOperationResponse[
"capo_entityresolution.types.untag_resource_output.UntagResourceOutput"
]:
import capo_entityresolution._operations.aws_venice_service.untag_resource
(
output,
http_response,
) = await capo_entityresolution._operations.aws_venice_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_entityresolution.types.untag_resource_input.UntagResourceInput = {
"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
|