Remove a user-specifed key and value tag from a data store.
Parameters:
-
resource_arn
(AmazonResourceName)
–
The Amazon Resource Name (ARN) of the data store from which tags are being removed.
-
tag_keys
(TagKeyList)
–
The keys for the tags to be removed from the data store.
Raises:
Source code in docs_src/capo_healthlake/_services/health_lake.py
| def untag_resource(
self,
resource_arn: "capo_healthlake.types.amazon_resource_name.AmazonResourceName",
tag_keys: "capo_healthlake.types.tag_key_list.TagKeyList",
*,
config_overrides: Optional[HealthLakeClientConfig] = None,
) -> "capo_healthlake.types.untag_resource_response.UntagResourceResponse":
"""<p>Remove a user-specifed key and value tag from a data store.</p>
Args:
resource_arn: <p>The Amazon Resource Name (ARN) of the data store from which tags are being removed.</p>
tag_keys: <p>The keys for the tags to be removed from the data store.</p>
Raises:
capo_healthlake.errors.resource_not_found_exception.ResourceNotFoundException: <p>The requested data store was not found.</p>
capo_healthlake.errors.validation_exception.ValidationException: <p>The user input parameter was invalid.</p>
capo_healthlake.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_healthlake.types.untag_resource_request.UntagResourceRequest]",
) -> OperationResponse[
"capo_healthlake.types.untag_resource_response.UntagResourceResponse"
]:
import capo_healthlake._operations.health_lake.untag_resource
output, http_response = (
capo_healthlake._operations.health_lake.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_healthlake.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
|