Port Kinesis Client Library 1.x consumers to KCL 2.x

Apache 2.0

Moves record processors, their factories, checkpointers and the Worker of Kinesis Client Library 1.x to KCL 2.x (software.amazon.kinesis:amazon-kinesis-client). A generated KclRecordProcessor keeps both of v1's processor interfaces and their shutdown callbacks over v2's lease-lost, shard-ended and shutdown-requested callbacks, and a generated KclWorker builds a Scheduler from v1's configuration, clients, metrics factory and executor with polling retrieval, as in v1. Projects that use KCL 1.x internals with no KCL 2.x counterpart (lease managers, Kinesis proxies, custom metrics scopes, the MultiLang daemon) or Kotlin are left for MarkKinesisClientLibraryV1 to mark.

org.openrewrite.aws.sdk.MigrateKinesisClientLibraryToV2

Optional

generateHelpersBoolean

Whether to generate the helper classes that the changes use. Compositions that limit where helpers are generated set it to false and generate them with org.openrewrite.aws.sdk.GenerateAwsSdkV2Helpers. Defaults to true.

mod run . --recipe=org.openrewrite.aws.sdk.MigrateKinesisClientLibraryToV2

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.