describeProblemObservations method

Future<DescribeProblemObservationsResponse> describeProblemObservations({
  1. required String problemId,
})

Describes the anomalies or errors associated with the problem.

May throw InternalServerException. May throw ValidationException. May throw ResourceNotFoundException.

Parameter problemId : The ID of the problem.

Implementation

Future<DescribeProblemObservationsResponse> describeProblemObservations({
  required String problemId,
}) async {
  ArgumentError.checkNotNull(problemId, 'problemId');
  _s.validateStringLength(
    'problemId',
    problemId,
    38,
    38,
    isRequired: true,
  );
  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,
    },
  );

  return DescribeProblemObservationsResponse.fromJson(jsonResponse.body);
}