```dart
Future<void> fetchAllDevices() async {
  try {
    final devices = await Amplify.Auth.fetchDevices();
    for (final device in devices) {
        print('Device: $device');
    }
  } on Exception catch (e) {
    print('Fetch devices failed with error: $e');
  }
}
```
