Skip to content

list_service_quota_increase_requests_in_template

list_service_quota_increase_requests_in_template(
    *,
    config_overrides: Optional[ServiceQuotasClientConfig] = None,
    service_code: Optional[ServiceCode] = None,
    aws_region: Optional[AwsRegion] = None,
    next_token: Optional[NextToken] = None,
    max_results: Optional[MaxResults] = None,
) -> ListServiceQuotaIncreaseRequestsInTemplateResponse

Lists the quota increase requests in the specified quota request template.

Parameters:

  • service_code (Optional[ServiceCode], default: None ) –

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

  • aws_region (Optional[AwsRegion], default: None ) –

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

  • next_token (Optional[NextToken], default: None ) –

    Specifies a value for receiving additional results after you receive a NextToken response in a previous request. A NextToken response indicates that more output is available. Set this parameter to the value of the previous call's NextToken response to indicate where the output should continue from.

  • max_results (Optional[MaxResults], default: None ) –

    Specifies the maximum number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value appropriate to the operation. If additional items exist beyond those included in the current response, the NextToken response element is present and has a value (is not null). Include that value as the NextToken request parameter in the next call to the operation to get the next part of the results.

    An API operation can return fewer results than the maximum even when there are more results available. You should check NextToken after every operation to ensure that you receive all of the results.

Raises:

Source code in docs_src/capo_service_quotas/_services/service_quotas.py
def list_service_quota_increase_requests_in_template(
    self,
    *,
    config_overrides: Optional[ServiceQuotasClientConfig] = None,
    service_code: Optional[
        "capo_service_quotas.types.service_code.ServiceCode"
    ] = None,
    aws_region: Optional["capo_service_quotas.types.aws_region.AwsRegion"] = None,
    next_token: Optional["capo_service_quotas.types.next_token.NextToken"] = None,
    max_results: Optional[
        "capo_service_quotas.types.max_results.MaxResults"
    ] = None,
) -> "capo_service_quotas.types.list_service_quota_increase_requests_in_template_response.ListServiceQuotaIncreaseRequestsInTemplateResponse":
    """<p>Lists the quota increase requests in the specified 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>
        aws_region: <p>Specifies the Amazon Web Services Region for which you made the request.</p>
        next_token: <p>Specifies a value for receiving additional results after you receive a <code>NextToken</code> response in a previous request. A <code>NextToken</code> response indicates that more output is available. Set this parameter to the value of the previous call's <code>NextToken</code> response to indicate where the output should continue from.</p>
        max_results: <p>Specifies the maximum number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value appropriate to the operation. If additional items exist beyond those included in the current response, the <code>NextToken</code> response element is present and has a value (is not null). Include that value as the <code>NextToken</code> request parameter in the next call to the operation to get the next part of the results.</p> <note> <p>An API operation can return fewer results than the maximum even when there are more results available. You should check <code>NextToken</code> after every operation to ensure that you receive all of the results.</p> </note>

    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.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.list_service_quota_increase_requests_in_template_request.ListServiceQuotaIncreaseRequestsInTemplateRequest]",
    ) -> OperationResponse[
        "capo_service_quotas.types.list_service_quota_increase_requests_in_template_response.ListServiceQuotaIncreaseRequestsInTemplateResponse"
    ]:
        import capo_service_quotas._operations.service_quotas_v20190624.list_service_quota_increase_requests_in_template

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

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging("ListServiceQuotaIncreaseRequestsInTemplate"),
    )
    input_: capo_service_quotas.types.list_service_quota_increase_requests_in_template_request.ListServiceQuotaIncreaseRequestsInTemplateRequest = {}
    if service_code is not None:
        input_["service_code"] = service_code
    if aws_region is not None:
        input_["aws_region"] = aws_region
    if next_token is not None:
        input_["next_token"] = next_token
    if max_results is not None:
        input_["max_results"] = max_results

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