aws / aws/aws-sdk-java-v2

Support AttributeValue as property type on DDB Enhanced client

Open
#4,134 2 comments 0 reactions 0 assignees View on GitHub
dynamodb-enhanced feature-request p2
Dominant language
Java
Stars
2.6k
Forks
1k
Avg merge
2d 9h
Merged PRs (30d)
51

Description

### Describe the feature

The DynamoDB Enhanced client should support `AttributeValue` as a property type.

### Use Case

Currently, I have a property that requires custom serialization/deserialization (mostly because the Enhanced Client refuses to support `Map` even with a custom converter), so I'm trying to declare a property of type `AttributeConverter`; however, this results in an exception:

```
java.lang.IllegalStateException: Converter not found for EnhancedType(software.amazon.awssdk.services.dynamodb.model.AttributeValue)
```

### Proposed Solution

A trivial no-op converter could be added to `DefaultAttributeConverterProvider`.

### Other Information

_No response_

### Acknowledgements

- [X] I may be able to implement this feature request
- [ ] This feature might incur a breaking change

### AWS Java SDK version used

2.20.61

### JDK version used

OpenJDK 64-Bit Server VM Temurin-11.0.18+10 (build 11.0.18+10, mixed mode)

### Operating System and version

Gentoo Linux

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.