Skip to content

DynamoDbEnhancedClient: Delete table operation #1966

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

Closed
1 task done
alexfuksenko-toast opened this issue Jul 31, 2020 · 7 comments
Closed
1 task done

DynamoDbEnhancedClient: Delete table operation #1966

alexfuksenko-toast opened this issue Jul 31, 2020 · 7 comments
Labels
dynamodb-enhanced feature-request A feature should be added or improved.

Comments

@alexfuksenko-toast
Copy link

alexfuksenko-toast commented Jul 31, 2020

The DynamoDbEnhancedClient returns a DynamoDbTable that allows you to do various dynamodb operations, including createTable(), but there is no way to delete the table.

This means for repeated cases, especially for integration tests, I need to maintain a DynamoDbClient and a DynamoDbEnhancedClient reference.

Even the enhanced client unit tests need to use a the normal client for only delete table operations like:
https://github.com/aws/aws-sdk-java-v2/blob/master/services-custom/dynamodb-enhanced/src/test/java/software/amazon/awssdk/enhanced/dynamodb/functionaltests/AsyncBasicQueryTest.java#L139

Describe the Feature

I think it would be nice if the DynamoDbEnhancedClient was able to delete tables itself, either through the table reference or through the enhanced client

Is your Feature Request related to a problem?

Awkward to create two different DynamoDbClients (enhanced and regular for usage)

Proposed Solution

Describe alternatives you've considered

Additional Context

  • I may be able to implement this feature request

Your Environment

  • AWS Java SDK version used:
  • JDK version used:
  • Operating System and version:
@alexfuksenko-toast alexfuksenko-toast added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Jul 31, 2020
@debora-ito
Copy link
Member

Thank you for reaching out @alexfuksenko-toast, marking as a feature request.

@debora-ito debora-ito added dynamodb-enhanced and removed needs-triage This issue or PR still needs to be triaged. labels Aug 3, 2020
@amrittuladhar
Copy link

Similarly, other table-level operations also seem to be missing from the v2 API, e.g. "describe table".

@hiramf
Copy link

hiramf commented Jan 22, 2021

+1

@bigunyak
Copy link

Are there any plans on implementing support for deleteTable operation yet?

@debora-ito
Copy link
Member

No timeline for it yet, will comment here when we have an update.

@debora-ito
Copy link
Member

DeleteTable is now available in DynamoDbTable, released in SDK version 2.16.60.

@github-actions
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

aws-sdk-java-automation added a commit that referenced this issue Mar 18, 2022
…fd4269dc1

Pull request: release <- staging/ad21a762-06dd-4792-af67-eeffd4269dc1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dynamodb-enhanced feature-request A feature should be added or improved.
Projects
None yet
Development

No branches or pull requests

5 participants