awslabs / amazon-kinesis-connector-flink

This is a fork of the Apache Flink Kinesis connector adding Enhanced Fanout support for Flink 1.8/1.11 on KDA.
Apache License 2.0
20 stars 11 forks source link

Update AWS Regions validation to allow for future AWS regions #62

Closed hlteoh37 closed 2 years ago

hlteoh37 commented 2 years ago

Issue #, if available: https://issues.apache.org/jira/browse/FLINK-28978

Description of changes: Make the validation for AWS Region string passed into the Kinesis connector more permissive (checks that the shape of the string follows the general AWS Region shape, rather than validating that the Region exists in the Regions enum). This allows the Kinesis connector to cover future new AWS Regions as well.

This was cherry-picked from https://github.com/apache/flink/pull/20606

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.