listServiceQuotaIncreaseRequestsInTemplate method

Future<ListServiceQuotaIncreaseRequestsInTemplateResponse> listServiceQuotaIncreaseRequestsInTemplate({
  1. String? awsRegion,
  2. int? maxResults,
  3. String? nextToken,
  4. String? serviceCode,
})

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

May throw AccessDeniedException. May throw DependencyAccessDeniedException. May throw ServiceException. May throw TooManyRequestsException. May throw IllegalArgumentException. May throw AWSServiceAccessNotEnabledException. May throw TemplatesNotAvailableInRegionException. May throw NoAvailableOrganizationException.

Parameter awsRegion : The AWS Region.

Parameter maxResults : The maximum number of results to return with a single call. To retrieve the remaining results, if any, make another call with the token returned from this call.

Parameter nextToken : The token for the next page of results.

Parameter serviceCode : The service identifier.

Implementation

Future<ListServiceQuotaIncreaseRequestsInTemplateResponse>
    listServiceQuotaIncreaseRequestsInTemplate({
  String? awsRegion,
  int? maxResults,
  String? nextToken,
  String? serviceCode,
}) async {
  _s.validateStringLength(
    'awsRegion',
    awsRegion,
    1,
    64,
  );
  _s.validateNumRange(
    'maxResults',
    maxResults,
    1,
    100,
  );
  _s.validateStringLength(
    'nextToken',
    nextToken,
    0,
    2048,
  );
  _s.validateStringLength(
    'serviceCode',
    serviceCode,
    1,
    63,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target':
        'ServiceQuotasV20190624.ListServiceQuotaIncreaseRequestsInTemplate'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      if (awsRegion != null) 'AwsRegion': awsRegion,
      if (maxResults != null) 'MaxResults': maxResults,
      if (nextToken != null) 'NextToken': nextToken,
      if (serviceCode != null) 'ServiceCode': serviceCode,
    },
  );

  return ListServiceQuotaIncreaseRequestsInTemplateResponse.fromJson(
      jsonResponse.body);
}