requestServiceQuotaIncrease method
Submits a quota increase request for the specified quota.
May throw DependencyAccessDeniedException. May throw QuotaExceededException. May throw ResourceAlreadyExistsException. May throw AccessDeniedException. May throw NoSuchResourceException. May throw IllegalArgumentException. May throw InvalidResourceStateException. May throw ServiceException. May throw TooManyRequestsException.
Parameter desiredValue
:
The new, increased value for the quota.
Parameter quotaCode
:
The quota identifier.
Parameter serviceCode
:
The service identifier.
Implementation
Future<RequestServiceQuotaIncreaseResponse> requestServiceQuotaIncrease({
required double desiredValue,
required String quotaCode,
required String serviceCode,
}) async {
ArgumentError.checkNotNull(desiredValue, 'desiredValue');
_s.validateNumRange(
'desiredValue',
desiredValue,
0,
10000000000,
isRequired: true,
);
ArgumentError.checkNotNull(quotaCode, 'quotaCode');
_s.validateStringLength(
'quotaCode',
quotaCode,
1,
128,
isRequired: true,
);
ArgumentError.checkNotNull(serviceCode, 'serviceCode');
_s.validateStringLength(
'serviceCode',
serviceCode,
1,
63,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'ServiceQuotasV20190624.RequestServiceQuotaIncrease'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'DesiredValue': desiredValue,
'QuotaCode': quotaCode,
'ServiceCode': serviceCode,
},
);
return RequestServiceQuotaIncreaseResponse.fromJson(jsonResponse.body);
}