aws / aws-iot-device-sdk-js

SDK for connecting to AWS IoT from a device using JavaScript/Node.js
Apache License 2.0
965 stars 385 forks source link

Extend aws region validation #430

Closed xiazhvera closed 3 months ago

xiazhvera commented 3 months ago

Issue #, if available:

Description of changes: Now the SDK would extract any pattern between "iot." and ".amazonaws" as region. For example: "XXXX.iot.test-region-value.amazonaws.com". If the region is not specified, the device would use 'test-region-value' as the region option.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.