getCommand method
Gets information about the specified command.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter commandId :
The unique identifier of the command for which you want to retrieve
information.
Implementation
Future<GetCommandResponse> getCommand({
required String commandId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/commands/${Uri.encodeComponent(commandId)}',
exceptionFnMap: _exceptionFns,
);
return GetCommandResponse.fromJson(response);
}