batchDeleteWorkloadEstimateUsage method

Future<BatchDeleteWorkloadEstimateUsageResponse> batchDeleteWorkloadEstimateUsage({
  1. required List<String> ids,
  2. required String workloadEstimateId,
})

Delete usage that you have created in a Workload estimate. You can only delete usage that you had added and cannot model deletion (or removal) of a existing usage. If you want model removal of an existing usage, see BatchUpdateWorkloadEstimateUsage.

May throw DataUnavailableException. May throw ResourceNotFoundException. May throw ServiceQuotaExceededException.

Parameter ids : List of usage that you want to delete from the Workload estimate.

Parameter workloadEstimateId : The ID of the Workload estimate for which you want to delete the modeled usage.

Implementation

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

  return BatchDeleteWorkloadEstimateUsageResponse.fromJson(jsonResponse.body);
}