Is service/dynamodbstreams missing some constants? #1896
-
A bunch of types/constants from service/dynamodbstreams v1 aren't in the v2 godoc and the go tools don't recognize them anymore when you update. They are in a v2 generated file; are they supposed to be accessible to us? Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 3 replies
-
Hi @jamessouth , Are you running into an issue trying to import these constants? Can you give me your code example? perhaps there's a v2 way of doing things that you might not know about. Thanks, |
Beta Was this translation helpful? Give feedback.
-
Hello @RanVaknin, yes, since they don't exist in dynamodbstreams v2, I can't import them, so I still use v1. I linked to the constants sections above so you can see they aren't where they used to be. Where were they moved to? v1: import "github.com/aws/aws-sdk-go/service/dynamodbstreams"
...
dynamodbstreams.OperationTypeInsert
// const dynamodbstreams.OperationTypeInsert untyped string = "INSERT" OperationTypeInsert is a OperationType enum value change to v2, run import "github.com/aws/aws-sdk-go-v2/service/dynamodbstreams"
...
dynamodbstreams.OperationTypeInsert
// OperationTypeInsert not declared by package dynamodbstreams Thank you |
Beta Was this translation helpful? Give feedback.
-
Can you please include a complete v2 code example? I would like to know your use case in order to help you. function, imports, config creation, client creation, API call. Thank you very much 🙏 , |
Beta Was this translation helpful? Give feedback.
-
Hello @RanVaknin, My use case is a lambda consumer of DynamoDB stream records. I import the Thank you |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
Hello @RanVaknin, yes, since they don't exist in dynamodbstreams v2, I can't import them, so I still use v1. I linked to the constants sections above so you can see they aren't where they used to be. Where were they moved to?
v1:
change to v2, run
go mod tidy
, now they all error:Thank you