Removes tags from a medical imaging resource.
Parameters:
-
resource_arn
(Arn)
–
The Amazon Resource Name (ARN) of the medical imaging resource that tags are being removed from.
-
tag_keys
(TagKeyList)
–
The keys for the tags to be removed from the medical imaging resource.
Raises:
Source code in docs_src/capo_medical_imaging/_services/medical_imaging.py
| def untag_resource(
self,
resource_arn: "capo_medical_imaging.types.arn.Arn",
tag_keys: "capo_medical_imaging.types.tag_key_list.TagKeyList",
*,
config_overrides: Optional[MedicalImagingClientConfig] = None,
) -> "capo_medical_imaging.types.untag_resource_response.UntagResourceResponse":
"""<p>Removes tags from a medical imaging resource.</p>
Args:
resource_arn: <p>The Amazon Resource Name (ARN) of the medical imaging resource that tags are being removed from.</p>
tag_keys: <p>The keys for the tags to be removed from the medical imaging resource.</p>
Raises:
capo_medical_imaging.errors.access_denied_exception.AccessDeniedException: <p>The user does not have sufficient access to perform this action.</p>
capo_medical_imaging.errors.internal_server_exception.InternalServerException: <p>An unexpected error occurred during processing of the request.</p>
capo_medical_imaging.errors.resource_not_found_exception.ResourceNotFoundException: <p>The request references a resource which does not exist.</p>
capo_medical_imaging.errors.throttling_exception.ThrottlingException: <p>The request was denied due to throttling.</p>
capo_medical_imaging.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints set by the service.</p>
capo_medical_imaging.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_medical_imaging.types.untag_resource_request.UntagResourceRequest]",
) -> OperationResponse[
"capo_medical_imaging.types.untag_resource_response.UntagResourceResponse"
]:
import capo_medical_imaging._operations.ahi_gateway_service.untag_resource
output, http_response = (
capo_medical_imaging._operations.ahi_gateway_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_medical_imaging.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
|