startSavingsPlansPurchaseRecommendationGeneration method

Future<StartSavingsPlansPurchaseRecommendationGenerationResponse> startSavingsPlansPurchaseRecommendationGeneration()

Requests a Savings Plans recommendation generation. This enables you to calculate a fresh set of Savings Plans recommendations that takes your latest usage data and current Savings Plans inventory into account. You can refresh Savings Plans recommendations up to three times daily for a consolidated billing family.

May throw DataUnavailableException. May throw GenerationExistsException. May throw LimitExceededException. May throw ServiceQuotaExceededException.

Implementation

Future<StartSavingsPlansPurchaseRecommendationGenerationResponse>
    startSavingsPlansPurchaseRecommendationGeneration() async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target':
        'AWSInsightsIndexService.StartSavingsPlansPurchaseRecommendationGeneration'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
  );

  return StartSavingsPlansPurchaseRecommendationGenerationResponse.fromJson(
      jsonResponse.body);
}