testConnection method

Future<bool> testConnection()

Tests connectivity to SES by attempting to fetch send quota data.

Returns true when the quota request succeeds.

Example:

final ok = await client.testConnection();
print(ok);

Implementation

Future<bool> testConnection() async {
  try {
    final quota = await getSendQuota();
    return quota.isNotEmpty;
  } catch (e) {
    // todo -archeryLogger
    return false;
  }
}