updateBillEstimate method
Updates an existing bill estimate.
May throw ConflictException.
May throw DataUnavailableException.
May throw ResourceNotFoundException.
Parameter identifier :
The unique identifier of the bill estimate to update.
Parameter expiresAt :
The new expiration date for the bill estimate.
Parameter name :
The new name for the bill estimate.
Implementation
Future<UpdateBillEstimateResponse> updateBillEstimate({
required String identifier,
DateTime? expiresAt,
String? name,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'AWSBCMPricingCalculator.UpdateBillEstimate'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'identifier': identifier,
if (expiresAt != null) 'expiresAt': unixTimestampToJson(expiresAt),
if (name != null) 'name': name,
},
);
return UpdateBillEstimateResponse.fromJson(jsonResponse.body);
}