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/async_rum.py
| async def untag_resource(
self,
resource_arn: "capo_rum.types.arn.Arn",
tag_keys: "capo_rum.types.tag_key_list.TagKeyList",
*,
config_overrides: Optional[AsyncRUMClientConfig] = 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.
"""
async def _handler(
req: "AsyncOperationRequest[capo_rum.types.untag_resource_request.UntagResourceRequest]",
) -> AsyncOperationResponse[
"capo_rum.types.untag_resource_response.UntagResourceResponse"
]:
import capo_rum._operations.rum.untag_resource
(
output,
http_response,
) = await capo_rum._operations.rum.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_rum.types.untag_resource_request.UntagResourceRequest = {
"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
|