listBillScenarioCommitmentModifications method
Lists the commitment modifications associated with a bill scenario.
May throw DataUnavailableException.
May throw ResourceNotFoundException.
Parameter billScenarioId :
The unique identifier of the bill scenario to list 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<ListBillScenarioCommitmentModificationsResponse>
listBillScenarioCommitmentModifications({
required String billScenarioId,
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.ListBillScenarioCommitmentModifications'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'billScenarioId': billScenarioId,
if (maxResults != null) 'maxResults': maxResults,
if (nextToken != null) 'nextToken': nextToken,
},
);
return ListBillScenarioCommitmentModificationsResponse.fromJson(
jsonResponse.body);
}