describeProblemObservations method
Describes the anomalies or errors associated with the problem.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ValidationException.
Parameter problemId :
The ID of the problem.
Parameter accountId :
The Amazon Web Services account ID for the resource group owner.
Implementation
Future<DescribeProblemObservationsResponse> describeProblemObservations({
required String problemId,
String? accountId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'EC2WindowsBarleyService.DescribeProblemObservations'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ProblemId': problemId,
if (accountId != null) 'AccountId': accountId,
},
);
return DescribeProblemObservationsResponse.fromJson(jsonResponse.body);
}