listBillEstimateInputCommitmentModifications method

Future<ListBillEstimateInputCommitmentModificationsResponse> listBillEstimateInputCommitmentModifications({
  1. required String billEstimateId,
  2. int? maxResults,
  3. String? nextToken,
})

Lists the input commitment modifications associated with a bill estimate.

May throw DataUnavailableException. May throw ResourceNotFoundException.

Parameter billEstimateId : The unique identifier of the bill estimate to list input commitment modifications for.

Parameter maxResults : The maximum number of results to return per page.

Parameter nextToken : A token to retrieve the next page of results.

Implementation

Future<ListBillEstimateInputCommitmentModificationsResponse>
    listBillEstimateInputCommitmentModifications({
  required String billEstimateId,
  int? maxResults,
  String? nextToken,
}) async {
  _s.validateNumRange(
    'maxResults',
    maxResults,
    1,
    25,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.0',
    'X-Amz-Target':
        'AWSBCMPricingCalculator.ListBillEstimateInputCommitmentModifications'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'billEstimateId': billEstimateId,
      if (maxResults != null) 'maxResults': maxResults,
      if (nextToken != null) 'nextToken': nextToken,
    },
  );

  return ListBillEstimateInputCommitmentModificationsResponse.fromJson(
      jsonResponse.body);
}