Skip to content

list_requested_service_quota_change_history

list_requested_service_quota_change_history(
    *,
    config_overrides: Optional[ServiceQuotasClientConfig] = None,
    service_code: Optional[ServiceCode] = None,
    status: Optional[RequestStatus] = None,
    next_token: Optional[NextToken] = None,
    max_results: Optional[MaxResults] = None,
    quota_requested_at_level: Optional[AppliedLevelEnum] = None,
) -> ListRequestedServiceQuotaChangeHistoryResponse

Retrieves the quota increase requests for the specified Amazon Web Services service. Filter responses to return quota requests at either the account level, resource level, or all levels. Responses include any open or closed requests within 90 days.

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.

  • status (Optional[RequestStatus], default: None ) –

    Specifies that you want to filter the results to only the requests with the matching status.

  • 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.

  • quota_requested_at_level (Optional[AppliedLevelEnum], default: None ) –

    Filters the response to return quota requests for the ACCOUNT, RESOURCE, or ALL levels. ACCOUNT is the default.

Raises:

Source code in docs_src/capo_service_quotas/_services/service_quotas.py
def list_requested_service_quota_change_history(
    self,
    *,
    config_overrides: Optional[ServiceQuotasClientConfig] = None,
    service_code: Optional[
        "capo_service_quotas.types.service_code.ServiceCode"
    ] = None,
    status: Optional[
        "capo_service_quotas.types.request_status.RequestStatus"
    ] = None,
    next_token: Optional["capo_service_quotas.types.next_token.NextToken"] = None,
    max_results: Optional[
        "capo_service_quotas.types.max_results.MaxResults"
    ] = None,
    quota_requested_at_level: Optional[
        "capo_service_quotas.types.applied_level_enum.AppliedLevelEnum"
    ] = None,
) -> "capo_service_quotas.types.list_requested_service_quota_change_history_response.ListRequestedServiceQuotaChangeHistoryResponse":
    """<p>Retrieves the quota increase requests for the specified Amazon Web Services service. Filter responses to return quota requests at either the account level, resource level, or all levels. Responses include any open or closed requests within 90 days.</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>
        status: <p>Specifies that you want to filter the results to only the requests with the matching status.</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>
        quota_requested_at_level: <p>Filters the response to return quota requests for the <code>ACCOUNT</code>, <code>RESOURCE</code>, or <code>ALL</code> levels. <code>ACCOUNT</code> is the default.</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.illegal_argument_exception.IllegalArgumentException: <p>Invalid input was provided.</p>
        capo_service_quotas.errors.invalid_pagination_token_exception.InvalidPaginationTokenException: <p>Invalid input was provided.</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.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_requested_service_quota_change_history_request.ListRequestedServiceQuotaChangeHistoryRequest]",
    ) -> OperationResponse[
        "capo_service_quotas.types.list_requested_service_quota_change_history_response.ListRequestedServiceQuotaChangeHistoryResponse"
    ]:
        import capo_service_quotas._operations.service_quotas_v20190624.list_requested_service_quota_change_history

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListRequestedServiceQuotaChangeHistory")
    )
    input_: capo_service_quotas.types.list_requested_service_quota_change_history_request.ListRequestedServiceQuotaChangeHistoryRequest = {}
    if service_code is not None:
        input_["service_code"] = service_code
    if status is not None:
        input_["status"] = status
    if next_token is not None:
        input_["next_token"] = next_token
    if max_results is not None:
        input_["max_results"] = max_results
    if quota_requested_at_level is not None:
        input_["quota_requested_at_level"] = quota_requested_at_level

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