describeAnomaly method
Returns details about an anomaly that you specify using its ID.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter id :
The ID of the anomaly.
Parameter accountId :
The ID of the member account.
Implementation
Future<DescribeAnomalyResponse> describeAnomaly({
required String id,
String? accountId,
}) async {
final $query = <String, List<String>>{
if (accountId != null) 'AccountId': [accountId],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/anomalies/${Uri.encodeComponent(id)}',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return DescribeAnomalyResponse.fromJson(response);
}