aws / aws/aws-sdk-java-v2

dynamodb: Ability to override the table name

Aperta
#2,935 7 commenti 8 reazioni 0 assegnatari Vedi su GitHub
dynamodb-enhanced feature-request p2
Lingua principale
Java
Stelle
2.6k
Fork
1k
Merge medio
2g 9h
PR unite (30g)
51

Descrizione

### Describe the feature

Currently, it seems there are no features to override the DynamoDB table name, like an equivalent to the V1 SDK's
[DynamoDBMapperConfig.Builder#withTableNameOverride()](https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/dynamodbv2/datamodeling/DynamoDBMapperConfig.Builder.html#withTableNameOverride-com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBMapperConfig.TableNameOverride-) and [DynamoDBMapperConfig.TableNameOverride.withTableNamePrefix()](https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/dynamodbv2/datamodeling/DynamoDBMapperConfig.TableNameOverride.html#withTableNamePrefix-java.lang.String-) .

This feature is useful to configure the DynamoDBs' table names dynamically. I'd like to use the equivalent function on V2 SDK as well.

### Is your Feature Request related to a problem?

This is one of the blockers to upgrade the SDK to v2 from v1 for us.

### Proposed Solution

_No response_

### Describe alternatives you've considered

_No response_

### Acknowledge

- [ ] I may be able to implement this feature request

### AWS Java SDK version used

2.17.102

### JDK version used

openjdk version "11.0.11" 2021-04-20 LTS
OpenJDK Runtime Environment Corretto-11.0.11.9.1 (build 11.0.11+9-LTS)
OpenJDK 64-Bit Server VM Corretto-11.0.11.9.1 (build 11.0.11+9-LTS, mixed mode)

### Operating System and version

Ubuntu 20.04

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Start by reviewing the V1 DynamoDBMapperConfig.Builder#withTableNameOverride() and TableNameOverride.withTableNamePrefix() references in the issue, then locate the corresponding DynamoDB table-name handling in the V2 SDK. Define the V2 API and its expected behavior for dynamic names and prefixes before implementing tests and the feature.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
aws, java
Ambito
database
Tipo di issue
Funzionalità
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.