Closed pavlo-strokov-scylladb closed 5 months ago
Note not strictly a migration issue since the list of enum variants comes from the service model (i.e. it's the same wrong list in both v1 and v2).
The modeling here definitely seems incorrect based on the documentation mentioning the nonexistent "available" state.
You can work around this with a typecast for the time being.
types.AttachmentStatus("available")
Upstreamed to ec2 @ V1414968710
.
This issue is now closed. Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one.
Pre-Migration Checklist
Go Version Used
Go 1.22
Describe the Migration Issue
I have replaced the old call
DescribeInternetGatewaysWithContext
with the new oneDescribeInternetGateways
. The upgraded version returnDescribeInternetGatewaysOutput
, it hasInternetGateways []types.InternetGateway
field. The typeInternetGateway
has fieldAttachments []InternetGatewayAttachment
and typeInternetGatewayAttachment
has fieldState AttachmentStatus
. The AttachmentStatus is enum type that has predefined values.What I can see it doesn't have
available
value that we are using. Also,available
is the only value mentioned in the EC2 cli documentation.Code Comparison
No response
Observed Differences/Errors
SDK v2 provides wrong enum values.
Additional Context
No response