private static void validateRegion()

in src/main/java/software/amazon/event/kafkaconnector/EventBridgeSinkConfigValidator.java [203:211]


  private static void validateRegion(ConfigValue configValue) {
    var awsRegion = (String) configValue.value();
    if (RegionMetadata.of(Region.of(awsRegion)) == null) {
      throw new ConfigException(
          awsRegion
              + " is not a supported region. "
              + "Please check the name and/or update to the latest AWS Java SDK.");
    }
  }