Removes one or more tags from the specified resource.
Parameters:
-
resource_arn
(Arn)
–
The ARN of the CloudWatch RUM resource that you're removing tags from.
-
tag_keys
(TagKeyList)
–
The list of tag keys to remove from the resource.
Raises:
Source code in docs_src/capo_rum/_services/rum.py
| def untag_resource(
self,
resource_arn: "capo_rum.types.arn.Arn",
tag_keys: "capo_rum.types.tag_key_list.TagKeyList",
*,
config_overrides: Optional[RUMClientConfig] = None,
) -> "capo_rum.types.untag_resource_response.UntagResourceResponse":
"""<p>Removes one or more tags from the specified resource.</p>
Args:
resource_arn: <p>The ARN of the CloudWatch RUM resource that you're removing tags from.</p>
tag_keys: <p>The list of tag keys to remove from the resource.</p>
Raises:
capo_rum.errors.internal_server_exception.InternalServerException: <p>Internal service exception.</p>
capo_rum.errors.resource_not_found_exception.ResourceNotFoundException: <p>Resource not found.</p>
capo_rum.errors.validation_exception.ValidationException: <p>One of the arguments for the request is not valid.</p>
capo_rum.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_rum.types.untag_resource_request.UntagResourceRequest]",
) -> OperationResponse[
"capo_rum.types.untag_resource_response.UntagResourceResponse"
]:
import capo_rum._operations.rum.untag_resource
output, http_response = (
capo_rum._operations.rum.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_rum.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
|