listRequestedServiceQuotaChangeHistoryByQuota method

Future<ListRequestedServiceQuotaChangeHistoryByQuotaResponse> listRequestedServiceQuotaChangeHistoryByQuota({
  1. required String quotaCode,
  2. required String serviceCode,
  3. int? maxResults,
  4. String? nextToken,
  5. AppliedLevelEnum? quotaRequestedAtLevel,
  6. RequestStatus? status,
})

Retrieves the quota increase requests for the specified quota. Filter responses to return quota requests at either the account level, resource level, or all levels.

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

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

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

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 status : Specifies that you want to filter the results to only the requests with the matching status.

Implementation

Future<ListRequestedServiceQuotaChangeHistoryByQuotaResponse>
    listRequestedServiceQuotaChangeHistoryByQuota({
  required String quotaCode,
  required String serviceCode,
  int? maxResults,
  String? nextToken,
  AppliedLevelEnum? quotaRequestedAtLevel,
  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.ListRequestedServiceQuotaChangeHistoryByQuota'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'QuotaCode': quotaCode,
      'ServiceCode': serviceCode,
      if (maxResults != null) 'MaxResults': maxResults,
      if (nextToken != null) 'NextToken': nextToken,
      if (quotaRequestedAtLevel != null)
        'QuotaRequestedAtLevel': quotaRequestedAtLevel.value,
      if (status != null) 'Status': status.value,
    },
  );

  return ListRequestedServiceQuotaChangeHistoryByQuotaResponse.fromJson(
      jsonResponse.body);
}