awslabs / amazon-kinesis-client

Client library for Amazon Kinesis
Apache License 2.0
632 stars 461 forks source link

Internally construct and use stream ARNs for all streams in multi-stream mode #1318

Closed furq-aws closed 2 months ago

furq-aws commented 2 months ago

Issue #, if available: N/A.

Description of changes: Construct stream ARNs (using the Kinesis client's configured region) for all stream configs upon writing to the currentStreamConfigMap in multi-stream mode. This should ensure that all Kinesis API requests from KinesisDataFetcher and KinesisShardDetector are provided with the stream ARN in multi-stream applications.

Note: An implication of stream ARNs being used for Kinesis API calls is that the accountId provided through the StreamTracker must be correct, whereas previously applications may have consumed the streams as long as the provided streamName existed in the account that the Kinesis client was configured for.

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