getCommitmentPurchaseAnalysis method
Future<GetCommitmentPurchaseAnalysisResponse>
getCommitmentPurchaseAnalysis({
- required String analysisId,
Retrieves a commitment purchase analysis result based on the
AnalysisId.
May throw AnalysisNotFoundException.
May throw DataUnavailableException.
May throw LimitExceededException.
Parameter analysisId :
The analysis ID that's associated with the commitment purchase analysis.
Implementation
Future<GetCommitmentPurchaseAnalysisResponse> getCommitmentPurchaseAnalysis({
required String analysisId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSInsightsIndexService.GetCommitmentPurchaseAnalysis'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'AnalysisId': analysisId,
},
);
return GetCommitmentPurchaseAnalysisResponse.fromJson(jsonResponse.body);
}