Removes tags from an Amazon Web Services X-Ray group or sampling rule. You cannot edit or delete system tags (those with an aws: prefix).
Parameters:
-
resource_arn
(AmazonResourceName)
–
The Amazon Resource Number (ARN) of an X-Ray group or sampling rule.
-
tag_keys
(TagKeyList)
–
Keys for one or more tags that you want to remove from an X-Ray group or sampling rule.
Raises:
Source code in docs_src/capo_xray/_services/async_x_ray.py
| async def untag_resource(
self,
resource_arn: "capo_xray.types.amazon_resource_name.AmazonResourceName",
tag_keys: "capo_xray.types.tag_key_list.TagKeyList",
*,
config_overrides: Optional[AsyncXRayClientConfig] = None,
) -> "capo_xray.types.untag_resource_response.UntagResourceResponse":
"""<p>Removes tags from an Amazon Web Services X-Ray group or sampling rule. You cannot edit or delete system tags (those with an <code>aws:</code> prefix).</p>
Args:
resource_arn: <p>The Amazon Resource Number (ARN) of an X-Ray group or sampling rule.</p>
tag_keys: <p>Keys for one or more tags that you want to remove from an X-Ray group or sampling rule.</p>
Raises:
capo_xray.errors.invalid_request_exception.InvalidRequestException: <p>The request is missing required parameters or has invalid parameters.</p>
capo_xray.errors.resource_not_found_exception.ResourceNotFoundException: <p>The resource was not found. Verify that the name or Amazon Resource Name (ARN) of the resource is correct.</p>
capo_xray.errors.throttled_exception.ThrottledException: <p>The request exceeds the maximum number of requests per second.</p>
capo_xray.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_xray.types.untag_resource_request.UntagResourceRequest]",
) -> AsyncOperationResponse[
"capo_xray.types.untag_resource_response.UntagResourceResponse"
]:
import capo_xray._operations.awsx_ray.untag_resource
(
output,
http_response,
) = await capo_xray._operations.awsx_ray.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_xray.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
|