Disables your quota request template. After a template is disabled, the quota increase requests in the template are not applied to new Amazon Web Services accounts in your organization. Disabling a quota request template does not apply its quota increase requests.
Raises:
Source code in docs_src/capo_service_quotas/_services/async_service_quotas.py
| async def disassociate_service_quota_template(
self, *, config_overrides: Optional[AsyncServiceQuotasClientConfig] = None
) -> "capo_service_quotas.types.disassociate_service_quota_template_response.DisassociateServiceQuotaTemplateResponse":
"""<p>Disables your quota request template. After a template is disabled, the quota increase requests in the template are not applied to new Amazon Web Services accounts in your organization. Disabling a quota request template does not apply its quota increase requests.</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.aws_service_access_not_enabled_exception.AWSServiceAccessNotEnabledException: <p>The action you attempted is not allowed unless Service Access with Service Quotas is enabled in your organization.</p>
capo_service_quotas.errors.dependency_access_denied_exception.DependencyAccessDeniedException: <p>You can't perform this action because a dependency does not have access.</p>
capo_service_quotas.errors.no_available_organization_exception.NoAvailableOrganizationException: <p>The Amazon Web Services account making this call is not a member of an organization.</p>
capo_service_quotas.errors.service_exception.ServiceException: <p>Something went wrong.</p>
capo_service_quotas.errors.service_quota_template_not_in_use_exception.ServiceQuotaTemplateNotInUseException: <p>The quota request template is not associated with your organization.</p>
capo_service_quotas.errors.templates_not_available_in_region_exception.TemplatesNotAvailableInRegionException: <p>The Service Quotas template is not available in this Amazon Web Services Region.</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.disassociate_service_quota_template_request.DisassociateServiceQuotaTemplateRequest]",
) -> AsyncOperationResponse[
"capo_service_quotas.types.disassociate_service_quota_template_response.DisassociateServiceQuotaTemplateResponse"
]:
import capo_service_quotas._operations.service_quotas_v20190624.disassociate_service_quota_template
(
output,
http_response,
) = await capo_service_quotas._operations.service_quotas_v20190624.disassociate_service_quota_template.async_disassociate_service_quota_template(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DisassociateServiceQuotaTemplate")
)
input_: capo_service_quotas.types.disassociate_service_quota_template_request.DisassociateServiceQuotaTemplateRequest = {}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|