getBillScenario method
Retrieves details of a specific bill scenario.
May throw DataUnavailableException.
May throw ResourceNotFoundException.
Parameter identifier :
The unique identifier of the bill scenario to retrieve.
Implementation
Future<GetBillScenarioResponse> getBillScenario({
required String identifier,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'AWSBCMPricingCalculator.GetBillScenario'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'identifier': identifier,
},
);
return GetBillScenarioResponse.fromJson(jsonResponse.body);
}