The UntagResource operation removes the association of the tag with the Amazon Managed Grafana resource.
Parameters:
-
resource_arn
(str)
–
The ARN of the resource the tag association is removed from.
-
tag_keys
(TagKeys)
–
The key values of the tag to be removed from the resource.
Raises:
Source code in docs_src/capo_grafana/_services/async_grafana.py
| async def untag_resource(
self,
resource_arn: str,
tag_keys: "capo_grafana.types.tag_keys.TagKeys",
*,
config_overrides: Optional[AsyncgrafanaClientConfig] = None,
) -> "capo_grafana.types.untag_resource_response.UntagResourceResponse":
"""<p>The <code>UntagResource</code> operation removes the association of the tag with the Amazon Managed Grafana resource. </p>
Args:
resource_arn: <p>The ARN of the resource the tag association is removed from. </p>
tag_keys: <p>The key values of the tag to be removed from the resource.</p>
Raises:
capo_grafana.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient permissions to perform this action. </p>
capo_grafana.errors.internal_server_exception.InternalServerException: <p>Unexpected error while processing the request. Retry the request.</p>
capo_grafana.errors.resource_not_found_exception.ResourceNotFoundException: <p>The request references a resource that does not exist.</p>
capo_grafana.errors.throttling_exception.ThrottlingException: <p>The request was denied because of request throttling. Retry the request.</p>
capo_grafana.errors.validation_exception.ValidationException: <p>The value of a parameter in the request caused an error.</p>
capo_grafana.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_grafana.types.untag_resource_request.UntagResourceRequest]",
) -> AsyncOperationResponse[
"capo_grafana.types.untag_resource_response.UntagResourceResponse"
]:
import capo_grafana._operations.aws_grafana_control_plane.untag_resource
(
output,
http_response,
) = await capo_grafana._operations.aws_grafana_control_plane.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_grafana.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
|