Retrieves the status of the association for the quota request template.
Raises:
Source code in docs_src/capo_service_quotas/_services/service_quotas.py
| def get_association_for_service_quota_template(
self, *, config_overrides: Optional[ServiceQuotasClientConfig] = None
) -> "capo_service_quotas.types.get_association_for_service_quota_template_response.GetAssociationForServiceQuotaTemplateResponse":
"""<p>Retrieves the status of the association for the quota request 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.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.
"""
def _handler(
req: "OperationRequest[capo_service_quotas.types.get_association_for_service_quota_template_request.GetAssociationForServiceQuotaTemplateRequest]",
) -> OperationResponse[
"capo_service_quotas.types.get_association_for_service_quota_template_response.GetAssociationForServiceQuotaTemplateResponse"
]:
import capo_service_quotas._operations.service_quotas_v20190624.get_association_for_service_quota_template
output, http_response = (
capo_service_quotas._operations.service_quotas_v20190624.get_association_for_service_quota_template.get_association_for_service_quota_template(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetAssociationForServiceQuotaTemplate")
)
input_: capo_service_quotas.types.get_association_for_service_quota_template_request.GetAssociationForServiceQuotaTemplateRequest = {}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|