-
Notifications
You must be signed in to change notification settings - Fork 15
Missing AttachmentStatus Available For Internet Gateways #586
Comments
Hi @tlm , Im not sure where you see that The EC2 docs only specify the 4 types (that are currently correctly modeled). If you are able to make requests with sending If you didn't know, all the SDKs are code generated from the model of each AWS service. If the upstream model doesn't contain that information, then the SDK wont have that information either. I suggest you use the AWS console to open a support ticket and ask to raise this as a feature request to the service team. I'm going to leave this issue open in case you need to clarify something or have additional question, but as it stands, this ticket is not actionable from the SDK team's perspective. Otherwise feel free to close this. Thanks, |
Thanks @RanVaknin, The docs you linked to actually state the problem perfectly.
and then:
Both the statements in the docs are in contradiction to one another. What we see being returned from the API is |
Hi @tlm Thanks for the clarification. I totally agree with you, but as I mentioned this needs to be modeled correctly to be reflected in the SDKs. Usually with bigger modeling issues we cut a ticket to service team but this is an involved and strenuous process. Since the workaround is straightforward (specifying the string "available") I don't think it's something that we can prioritize at the moment. Im going to move this to the cross SDK repo, if it gains engagement (+1 upvotes / comments) we can prioritize this effort. Thanks again for your help. |
P124948296 |
@tlm I have opened an internal ticket with the service team. Would post any updates here as I get them, and would close this issue once it is in the service team's backlog. |
Service team is investigating the issue. |
Service team is still evaluating if adding |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Hey all, so unfortunately due to how these structures were originally created and used, we do not have a good way to introduce this change without creating backwards-incompatible changes for someone. In short, the We could add the We could also switch just the Internet Gateway's type to a dedicated enum other than The other alternative is obviously updating the actual value returned by the Internet Gateway APIs to use So, all in all, our guidance in this situation has to be to disregard the |
Thank you for the update. We will keep maintaining our own enum. |
Describe the bug
The InternetGatewayAttachment struct here https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/service/ec2/types#InternetGatewayAttachment has an State field for the status that reports "available".
However in the provided enums here https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/service/ec2/types#AttachmentStatus there is no enum for "available".
It would be nice to get a strongly typed enum from the API to rely on for checking the value.
Expected Behavior
A typed enum for the value returned from the AWS api.
Current Behavior
No enum currently provided.
Reproduction Steps
N/A
Possible Solution
No response
Additional Information/Context
No response
AWS Go SDK V2 Module Versions Used
v1.111.0 of github.com/aws/aws-sdk-go-v2/service/ec2/types
Compiler and Version used
1.20.0
Operating System and version
darwin
The text was updated successfully, but these errors were encountered: