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.
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.