Enum values for `VpcEndpoint.State` doesn't match the values that `DescribeVpcEndpoints` returns
Confirm by changing [ ] to [x] below to ensure that it's a bug:
- [x] I've gone though Developer Guide and API reference
- [x] I've checked AWS Forums and StackOverflow for answers
- [x] I've searched for previous similar issues and didn't find any solution
Describe the bug
The enum values for the State field in ec2.VpcEndpoint (StatePendingAcceptance, StatePending, StateAvailable, StateDeleting, StateRejected, StateFailed & StateExpired) don't match the actual values returned when performing DescribeVpcEndpoints. The returned value has the first character is always lower case but the enum values in this SDK has them as uppercase.
Version of AWS SDK for Go? v1.27.1, although the problem still exists in master
Version of Go (go version)?
N/A
To Reproduce (observed behavior)
Perform ec2:DescribeVpcEndpoints and observe the values of the State attribute returned in the response. See if those values match the enum values in State...
Expected behavior
The State... enum values should match what is returned by DescribeVpcEndpoints, just like the InstanceLifecycleType enum matches the value returned for the InstanceLifecycle attribute in the ec2:DescribeInstances
Additional context
Hi, Sorry for the lack of response here, you are right I can reproduce this inconsistency.
This is an issue with the service not correctly modeling and using the enum values they have modeled. This is evident in a captured wire dump of the response. Transferring to aws-sdk repository for further follow-up.
This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.
This has still not yet been addressed
P70319347
Contacted service team requesting for an update. Awaiting response.
Pinged service team again for update. Awaiting response.
Contacted service team requesting for an update. Awaiting response.
Contacted service team requesting for an update. Awaiting response.
Any updates?