listRequestedServiceQuotaChangeHistory method

Future<ListRequestedServiceQuotaChangeHistoryResponse> listRequestedServiceQuotaChangeHistory({
  1. int? maxResults,
  2. String? nextToken,
  3. AppliedLevelEnum? quotaRequestedAtLevel,
  4. String? serviceCode,
  5. RequestStatus? status,
})

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.

May throw AccessDeniedException. May throw IllegalArgumentException. May throw InvalidPaginationTokenException. May throw NoSuchResourceException. May throw ServiceException. May throw TooManyRequestsException.

Parameter maxResults : 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.

Parameter nextToken : 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.

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

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

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

Implementation

Future<ListRequestedServiceQuotaChangeHistoryResponse>
    listRequestedServiceQuotaChangeHistory({
  int? maxResults,
  String? nextToken,
  AppliedLevelEnum? quotaRequestedAtLevel,
  String? serviceCode,
  RequestStatus? status,
}) async {
  _s.validateNumRange(
    'maxResults',
    maxResults,
    1,
    100,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target':
        'ServiceQuotasV20190624.ListRequestedServiceQuotaChangeHistory'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      if (maxResults != null) 'MaxResults': maxResults,
      if (nextToken != null) 'NextToken': nextToken,
      if (quotaRequestedAtLevel != null)
        'QuotaRequestedAtLevel': quotaRequestedAtLevel.value,
      if (serviceCode != null) 'ServiceCode': serviceCode,
      if (status != null) 'Status': status.value,
    },
  );

  return ListRequestedServiceQuotaChangeHistoryResponse.fromJson(
      jsonResponse.body);
}