batchUpdateWorkloadEstimateUsage method
Update a newly added or existing usage lines. You can update the usage amounts and usage group based on a usage ID and a Workload estimate ID.
May throw DataUnavailableException.
May throw ResourceNotFoundException.
May throw ServiceQuotaExceededException.
Parameter usage :
List of usage line amounts and usage group that you want to update in a
Workload estimate identified by the usage ID.
Parameter workloadEstimateId :
The ID of the Workload estimate for which you want to modify the usage
lines.
Implementation
Future<BatchUpdateWorkloadEstimateUsageResponse>
batchUpdateWorkloadEstimateUsage({
required List<BatchUpdateWorkloadEstimateUsageEntry> usage,
required String workloadEstimateId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'AWSBCMPricingCalculator.BatchUpdateWorkloadEstimateUsage'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'usage': usage,
'workloadEstimateId': workloadEstimateId,
},
);
return BatchUpdateWorkloadEstimateUsageResponse.fromJson(jsonResponse.body);
}