batchDeleteBillScenarioUsageModification method

Future<BatchDeleteBillScenarioUsageModificationResponse> batchDeleteBillScenarioUsageModification({
  1. required String billScenarioId,
  2. required List<String> ids,
})

Delete usage that you have created in a Bill Scenario. 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 BatchUpdateBillScenarioUsageModification.

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

Parameter billScenarioId : The ID of the Bill Scenario for which you want to delete the modeled usage.

Parameter ids : List of usage that you want to delete from the Bill Scenario.

Implementation

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

  return BatchDeleteBillScenarioUsageModificationResponse.fromJson(
      jsonResponse.body);
}