async def untag_resource(
self,
resource_arn: "capo_service_quotas.types.amazon_resource_name.AmazonResourceName",
tag_keys: "capo_service_quotas.types.input_tag_keys.InputTagKeys",
*,
config_overrides: Optional[AsyncServiceQuotasClientConfig] = None,
) -> "capo_service_quotas.types.untag_resource_response.UntagResourceResponse":
"""<p>Removes tags from the specified applied quota. You can specify one or more tags to remove.</p>
Args:
resource_arn: <p>The Amazon Resource Name (ARN) for the applied quota that you want to untag. You can get this information by using the Service Quotas console, or by listing the quotas using the <a href="https://docs.aws.amazon.com/cli/latest/reference/service-quotas/list-service-quotas.html">list-service-quotas</a> CLI command or the <a href="https://docs.aws.amazon.com/servicequotas/2019-06-24/apireference/API_ListServiceQuotas.html">ListServiceQuotas</a> Amazon Web Services API operation.</p>
tag_keys: <p>The keys of the tags that you want to remove from the resource.</p>
Raises:
capo_service_quotas.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient permission to perform this action.</p>
capo_service_quotas.errors.illegal_argument_exception.IllegalArgumentException: <p>Invalid input was provided.</p>
capo_service_quotas.errors.no_such_resource_exception.NoSuchResourceException: <p>The specified resource does not exist.</p>
capo_service_quotas.errors.service_exception.ServiceException: <p>Something went wrong.</p>
capo_service_quotas.errors.too_many_requests_exception.TooManyRequestsException: <p>Due to throttling, the request was denied. Slow down the rate of request calls, or request an increase for this quota.</p>
capo_service_quotas.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_service_quotas.types.untag_resource_request.UntagResourceRequest]",
) -> AsyncOperationResponse[
"capo_service_quotas.types.untag_resource_response.UntagResourceResponse"
]:
import capo_service_quotas._operations.service_quotas_v20190624.untag_resource
(
output,
http_response,
) = await capo_service_quotas._operations.service_quotas_v20190624.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_service_quotas.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