Closed nmesika-te closed 2 months ago
Hi @nmesika-te,
These enumerations are generated from service model shared by EC2 service team. This issue has been reported earlier in GO SDK (https://github.com/aws/aws-sdk/issues/586) and has been tracked in this Shared SDK repo.
EC2 service team is aware of this issue and has been investigating it. I will therefore go ahead and mark this as closing-soon
. You may track the above mentioned Shared SDK issue. Kindly let me know if you have further queries.
Regards, Chaitanya
Thanks! Although given that the go-sdk issue was created on Aug 23, I guess AWS considers its SDKs "good enough" and are reluctant to make changes.
Describe the bug
When calling
describeInternetGateways
and iterating over the attachments, the methodstateAsString
returnsavailable
while the correspondingstate()
method returnsUNKNOWN_TO_SDK
(should presumably return a specific enum value AVAILABLE).These values are defined in
AttachmentStatus
classExpected Behavior
return an enum value
AVAILABLE
.Current Behavior
returns enum
UNKNOWN_TO_SDK
Reproduction Steps
prints
Possible Solution
In
services/ec2/src/main/resources/codegen-resources/service-2.json:8940
add another valueavailable
.Additional Information/Context
The API XML
DescribeInternetGatewaysResponse
looks like the following (note the "available" value)AWS Java SDK version used
2.26.18
JDK version used
openjdk version "17.0.9" 2023-10-17
Operating System and version
Linux 5.10.219-208.866.amzn2.x86_64 #1 SMP Tue Jun 18 14:00:06 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux