getWorkloadEstimate method

Future<GetWorkloadEstimateResponse> getWorkloadEstimate({
  1. required String identifier,
})

Retrieves details of a specific workload estimate.

May throw DataUnavailableException. May throw ResourceNotFoundException.

Parameter identifier : The unique identifier of the workload estimate to retrieve.

Implementation

Future<GetWorkloadEstimateResponse> getWorkloadEstimate({
  required String identifier,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.0',
    'X-Amz-Target': 'AWSBCMPricingCalculator.GetWorkloadEstimate'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'identifier': identifier,
    },
  );

  return GetWorkloadEstimateResponse.fromJson(jsonResponse.body);
}