-
Notifications
You must be signed in to change notification settings - Fork 267
Description
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue, please leave a comment
Tell us about your request
As more services are supported by the SDK, please don't duplicate types common to multiple services. The type that brought this to my attention is the DynamoDB AttributeValue type.
Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?
As a current user of Rusoto for DynamoDB and DynamoDB Streams, I have been frustrated that they have separate (but identical) implementations for the AttributeValue types used to represent data in both of those services.
Rusoto has the DynamoDB type here, while the DynamoDB Streams type is here.
Are you currently working around this issue?
I have a function that converts from a rusoto_dynamodbstreams::AttributeValue to a rusoto_dynamodb::AttributeValue so that I can use existing tooling for rusoto_dynamodb::AttributeValue (like serde_dynamo). So wherever I need to deal with a rusoto_dynamodbstreams::AttributeValue, I convert it first, then deal with it like the rusoto_dynamodb::AttributeValue it should be.
Additional context
I know this isn't yet a problem in this repo. I just want to make sure that it doesn't become one. Seeing the AttributeValue type defined in dynamodb::model made me concerned that dynamodbstreams::model::AttributeValue might exist in the future.