Skip to content

get_service_quota_increase_request_from_template

get_service_quota_increase_request_from_template(
    service_code: ServiceCode,
    quota_code: QuotaCode,
    aws_region: AwsRegion,
    *,
    config_overrides: Optional[ServiceQuotasClientConfig] = None,
) -> GetServiceQuotaIncreaseRequestFromTemplateResponse

Retrieves information about the specified quota increase request in your quota request template.

Parameters:

  • service_code (ServiceCode) –

    Specifies the service identifier. To find the service code value for an Amazon Web Services service, use the ListServices operation.

  • quota_code (QuotaCode) –

    Specifies the quota identifier. To find the quota code for a specific quota, use the ListServiceQuotas operation, and look for the QuotaCode response in the output for the quota you want.

  • aws_region (AwsRegion) –

    Specifies the Amazon Web Services Region for which you made the request.

Raises:

Source code in docs_src/capo_service_quotas/_services/service_quotas.py
def get_service_quota_increase_request_from_template(
    self,
    service_code: "capo_service_quotas.types.service_code.ServiceCode",
    quota_code: "capo_service_quotas.types.quota_code.QuotaCode",
    aws_region: "capo_service_quotas.types.aws_region.AwsRegion",
    *,
    config_overrides: Optional[ServiceQuotasClientConfig] = None,
) -> "capo_service_quotas.types.get_service_quota_increase_request_from_template_response.GetServiceQuotaIncreaseRequestFromTemplateResponse":
    """<p>Retrieves information about the specified quota increase request in your quota request template.</p>

    Args:
        service_code: <p>Specifies the service identifier. To find the service code value for an Amazon Web Services service, use the <a>ListServices</a> operation.</p>
        quota_code: <p>Specifies the quota identifier. To find the quota code for a specific quota, use the <a>ListServiceQuotas</a> operation, and look for the <code>QuotaCode</code> response in the output for the quota you want.</p>
        aws_region: <p>Specifies the Amazon Web Services Region for which you made the request.</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.illegal_argument_exception.IllegalArgumentException: <p>Invalid input was provided.</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.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.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_service_quota_increase_request_from_template_request.GetServiceQuotaIncreaseRequestFromTemplateRequest]",
    ) -> OperationResponse[
        "capo_service_quotas.types.get_service_quota_increase_request_from_template_response.GetServiceQuotaIncreaseRequestFromTemplateResponse"
    ]:
        import capo_service_quotas._operations.service_quotas_v20190624.get_service_quota_increase_request_from_template

        output, http_response = (
            capo_service_quotas._operations.service_quotas_v20190624.get_service_quota_increase_request_from_template.get_service_quota_increase_request_from_template(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging("GetServiceQuotaIncreaseRequestFromTemplate"),
    )
    input_: capo_service_quotas.types.get_service_quota_increase_request_from_template_request.GetServiceQuotaIncreaseRequestFromTemplateRequest = {
        "service_code": service_code,
        "quota_code": quota_code,
        "aws_region": aws_region,
    }

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output