Skip to content

fix(dynamodb): TableV2 triggers deprecated TableGrantsProps warnings during synth#37310

Closed
syukawa-gh wants to merge 2 commits intoaws:mainfrom
syukawa-gh:fix/dynamodb-tablev2-deprecated-warnings-clean
Closed

fix(dynamodb): TableV2 triggers deprecated TableGrantsProps warnings during synth#37310
syukawa-gh wants to merge 2 commits intoaws:mainfrom
syukawa-gh:fix/dynamodb-tablev2-deprecated-warnings-clean

Conversation

@syukawa-gh
Copy link
Copy Markdown
Contributor

TableV2 was explicitly passing the deprecated encryptedResource and policyResource fields to the TableGrants constructor, causing deprecation warnings during cdk synth. These fields are unnecessary because TableGrants already auto-discovers them via EncryptedResources.of() and ResourceWithPolicies.of() when not provided.

Closes #37221

…during synth

TableV2 was explicitly passing the deprecated 'encryptedResource' and
'policyResource' fields to TableGrants constructor, causing deprecation
warnings during cdk synth. These fields are unnecessary because
TableGrants already auto-discovers them via EncryptedResources.of() and
ResourceWithPolicies.of() when not provided.

Closes aws#37221
@github-actions github-actions bot added bug This issue is a bug. effort/small Small work item – less than a day of effort p2 beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK labels Mar 23, 2026
@aws-cdk-automation aws-cdk-automation requested a review from a team March 23, 2026 03:20
Copy link
Copy Markdown
Collaborator

@aws-cdk-automation aws-cdk-automation left a comment

Choose a reason for hiding this comment

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

(This review is outdated)

@syukawa-gh syukawa-gh changed the title fix(dynamodb): TableV2 triggers deprecated TableGrantsProps warnings during synth fix(dynamodb): TableV2 triggers deprecated TableGrantsProps warnings during synth Mar 23, 2026
@aws-cdk-automation aws-cdk-automation dismissed their stale review March 23, 2026 08:01

✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.

@syukawa-gh
Copy link
Copy Markdown
Contributor Author

Closing in favor of #37467 (same change, updated version)

@syukawa-gh syukawa-gh closed this Apr 2, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 2, 2026

Comments on closed issues and PRs are hard for our team to see.
If you need help, please open a new issue that references this one.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 2, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK bug This issue is a bug. effort/small Small work item – less than a day of effort p2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

aws-dynamodb: TableV2 with DynamoEventSource triggers deprecated TableGrantsProps#policyResource and #encryptedResource warnings during synth

3 participants