Skip to content

Is service/dynamodbstreams missing some constants? #1896

Answered by jamessouth
jamessouth asked this question in Q&A
Discussion options

You must be logged in to vote

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 go mod tidy, now they all error:

import "github.com/aws/aws-sdk-go-v2/service/dynamodbstreams"
...
dynamodbstreams.OperationTypeInsert 
// OperationTypeInsert not declared by package dynamodbstreams

Thank you

Replies: 5 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@RanVaknin
Comment options

@jamessouth
Comment options

@RanVaknin
Comment options

Answer selected by jamessouth
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
2 participants