Associates your quota request template with your organization. When a new Amazon Web Services account is created in your organization, the quota increase requests in the template are automatically applied to the account. You can add a quota increase request for any adjustable quota to your template.
Raises:
Source code in docs_src/capo_service_quotas/_services/async_service_quotas.py
| async def associate_service_quota_template(
self, *, config_overrides: Optional[AsyncServiceQuotasClientConfig] = None
) -> "capo_service_quotas.types.associate_service_quota_template_response.AssociateServiceQuotaTemplateResponse":
"""<p>Associates your quota request template with your organization. When a new Amazon Web Services account is created in your organization, the quota increase requests in the template are automatically applied to the account. You can add a quota increase request for any adjustable quota to your template.</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.organization_not_in_all_features_mode_exception.OrganizationNotInAllFeaturesModeException: <p>The organization that your Amazon Web Services account belongs to is not in All Features mode.</p>
capo_service_quotas.errors.service_exception.ServiceException: <p>Something went wrong.</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.associate_service_quota_template_request.AssociateServiceQuotaTemplateRequest]",
) -> AsyncOperationResponse[
"capo_service_quotas.types.associate_service_quota_template_response.AssociateServiceQuotaTemplateResponse"
]:
import capo_service_quotas._operations.service_quotas_v20190624.associate_service_quota_template
(
output,
http_response,
) = await capo_service_quotas._operations.service_quotas_v20190624.associate_service_quota_template.async_associate_service_quota_template(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("AssociateServiceQuotaTemplate")
)
input_: capo_service_quotas.types.associate_service_quota_template_request.AssociateServiceQuotaTemplateRequest = {}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|