Closed rajramo61 closed 2 weeks ago
Hello @rajramo61
Thanks for reaching out.
I have reproduced and confirmed that this is an issue. This was also reported in the past and not yet fixed by the EC2 service team https://github.com/aws/aws-sdk/issues/116 , and I am tracking internal ticket (#70319347). I will reach out to the service team once again to try and get them to fix it.
I'll be closing this issue in favor of tracking it in the original reported github issue
Thanks, Bhavya
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.
Thanks @bhavya2109sharma for the updates! Not sure if it would be a good idea to close this ticket but I would leave it up to you. With this ticket being closed, someone else might create a new ticket for the same issue as folks mostly check the open tickets. The original ticket is open with older version of sdk which most of the folks won't check.
Acknowledgements
go get -u github.com/aws/aws-sdk-go-v2/...
)Describe the bug
Issue: When we make call to
DescribeVpcEndpoints
it returns this State field with value in all characters lower case (available) contrary to what the client State constant defines first character in upper case(Available).Regression Issue
Expected Behavior
I expect
DescribeVpcEndpoints
returns theState
field with enum using the same casing as defined in the State. For example the string value for State should be likeFailed
and not likefailed
.Current Behavior
DescribeVpcEndpoints
returns theState
field string value in all lower case likefailed
.Reproduction Steps
Here is the sample code to reproduce the issue. Replace with real
vpcEndpointId
. if the result saysExpected Success
then there is no issue and if it returnsManipulated Success
then this bug exists.Possible Solution
Not sure if this issue is related to deserialization of issue at the server and client values for State.
Additional Information/Context
NA
AWS Go SDK V2 Module Versions Used
This list is too big. The ticket creation failed so I omitted the information, I can provide the details in the comment later.
Compiler and Version used
go version go1.23.0 darwin/amd64
Operating System and version
macOS Sonoma Version 14.6.1