Open jmklix opened 2 years ago
https://github.com/awslabs/aws-sdk-rust/issues/619#issuecomment-1251549592
It looks like this same issue is happening for the Go V2 SDK, and a similar problem is happening to SSM in the Rust SDK. There seems to be a pattern among these enums.
Internal tracking ID: P66381300
Transfered from awslabs/aws-sdk-rust: https://github.com/awslabs/aws-sdk-rust/issues/619
Describe the bug
VPC endpoint state values when parsed from their text representation are incorrect. The reason is that code expect them to be in
PascalCase
, while in fact they arecamelCase
. As a result all the values are getting classified asState::Unknown("xxx")
.For example
pendingAcceptance
is expected to bePendingAcceptance
available
is expected to beAvailable
etcExpected Behavior
When running reproduction code below I expect the next output
Current Behavior
Instead every possible VPC endpoint state in
describe_vpc_endpoints()
is showed asState::Unknown("text")
Reproduction Steps
If you have at least one VPC endpoint
Possible Solution
Additional Information/Context
No response
Version