putServiceQuotaIncreaseRequestIntoTemplate method

Future<PutServiceQuotaIncreaseRequestIntoTemplateResponse> putServiceQuotaIncreaseRequestIntoTemplate({
  1. required String awsRegion,
  2. required double desiredValue,
  3. required String quotaCode,
  4. required String serviceCode,
})

Adds a quota increase request to your quota request template.

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

Parameter awsRegion : The AWS Region.

Parameter desiredValue : The new, increased value for the quota.

Parameter quotaCode : The quota identifier.

Parameter serviceCode : The service identifier.

Implementation

Future<PutServiceQuotaIncreaseRequestIntoTemplateResponse>
    putServiceQuotaIncreaseRequestIntoTemplate({
  required String awsRegion,
  required double desiredValue,
  required String quotaCode,
  required String serviceCode,
}) async {
  ArgumentError.checkNotNull(awsRegion, 'awsRegion');
  _s.validateStringLength(
    'awsRegion',
    awsRegion,
    1,
    64,
    isRequired: true,
  );
  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.PutServiceQuotaIncreaseRequestIntoTemplate'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'AwsRegion': awsRegion,
      'DesiredValue': desiredValue,
      'QuotaCode': quotaCode,
      'ServiceCode': serviceCode,
    },
  );

  return PutServiceQuotaIncreaseRequestIntoTemplateResponse.fromJson(
      jsonResponse.body);
}