describeObservation method
Describes an anomaly or error with the application.
May throw InternalServerException. May throw ValidationException. May throw ResourceNotFoundException.
Parameter observationId
:
The ID of the observation.
Implementation
Future<DescribeObservationResponse> describeObservation({
required String observationId,
}) async {
ArgumentError.checkNotNull(observationId, 'observationId');
_s.validateStringLength(
'observationId',
observationId,
38,
38,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'EC2WindowsBarleyService.DescribeObservation'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ObservationId': observationId,
},
);
return DescribeObservationResponse.fromJson(jsonResponse.body);
}