getMonitor method
Gets information about the specified monitor.
May throw AccessDeniedException.
May throw InternalServerErrorException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter monitorId :
The unique identifier for the monitor. This ID is returned by the
CreateMonitor operation.
Implementation
Future<GetMonitorResponse> getMonitor({
required String monitorId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/2023-10-12/monitors/${Uri.encodeComponent(monitorId)}',
exceptionFnMap: _exceptionFns,
);
return GetMonitorResponse.fromJson(response);
}