Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Deletion protection config #1260

Merged
merged 3 commits into from
Feb 20, 2024

Conversation

lucienlu-aws
Copy link
Contributor

Issue #, if available:

Description of changes:
The KCL lease table does not have an option to be created with deletion protection enabled. This commit adds the option to be configured via the LeaseManagementConfig

Sample usage

leaseManagementConfig = configsBuilder.leaseManagementConfig()
                    .initialPositionInStream(InitialPositionInStreamExtended.newInitialPosition(config.getKclInitialPosition()))
                    .initialLeaseTableReadCapacity(50).initialLeaseTableWriteCapacity(50).deletionProtectionEnabled(true)

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

@lucienlu-aws lucienlu-aws changed the title Deletion protection config Add Deletion protection config Feb 20, 2024
Copy link
Contributor

@brendan-p-lynch brendan-p-lynch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added in two comments on naming conventions, otherwise it looks good.

@lucienlu-aws lucienlu-aws merged commit b2eb38e into awslabs:master Feb 20, 2024
1 check passed
@lucienlu-aws lucienlu-aws deleted the deletion-protection-config branch February 20, 2024 22:47
akidambisrinivasan pushed a commit to akidambisrinivasan/amazon-kinesis-client that referenced this pull request Apr 29, 2024
* Add deletionProtectionEnabled config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants