batchDeleteBillScenarioCommitmentModification method

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

Delete commitment that you have created in a Bill Scenario. You can only delete a commitment that you had added and cannot model deletion (or removal) of a existing commitment. If you want model deletion of an existing commitment, see the negate BillScenarioCommitmentModificationAction of BatchCreateBillScenarioCommitmentModification operation.

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

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

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

Implementation

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

  return BatchDeleteBillScenarioCommitmentModificationResponse.fromJson(
      jsonResponse.body);
}