aws-dynamodb: TableV2 should be called GlobalTable #28976
Labels
@aws-cdk/aws-dynamodb
Related to Amazon DynamoDB
effort/medium
Medium work item – several days of effort
feature-request
A feature should be added or improved.
needs-review
p3
Describe the feature
The
TableV2
construct should be namedGlobalTable
to provide a clear mapping to the underlying CloudFormation construct and avoid customer confusion around why it behaves differently.Use Case
The construct is confusingly named, and breaks customer expectations. Based on the name, one would have reason to expect it to create a
AWS::DynamoDB::Table
resource, when it createsAWS::DynamoDB::GlobalTable
resources. This is especially confusing because it is not mentioned at all in the documentation for the construct.This has already caused customer confusion, as reported in #27378 and #27443. The answers to those issues did not help clarify the situation, as both answers simply reported that the CDK construct didn't support the desired behavior, but failed to fully explain why. The only mention of the difference is in a blog post.
Proposed Solution
TableV2
toGlobalTable
.TableV2
that forwards toGlobalTable
and is marked deprecated, to prompt customers to use the new name.Other Information
No response
Acknowledgements
CDK version used
2.87.0
Environment details (OS name and version, etc.)
macOS 14.3
The text was updated successfully, but these errors were encountered: