getAWSDefaultServiceQuota method

Future<GetAWSDefaultServiceQuotaResponse> getAWSDefaultServiceQuota({
  1. required String quotaCode,
  2. required String serviceCode,
})

Retrieves the default value for the specified quota. The default value does not reflect any quota increases.

May throw AccessDeniedException. May throw IllegalArgumentException. 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.

Implementation

Future<GetAWSDefaultServiceQuotaResponse> getAWSDefaultServiceQuota({
  required String quotaCode,
  required String serviceCode,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'ServiceQuotasV20190624.GetAWSDefaultServiceQuota'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'QuotaCode': quotaCode,
      'ServiceCode': serviceCode,
    },
  );

  return GetAWSDefaultServiceQuotaResponse.fromJson(jsonResponse.body);
}