Closed yusuke-koyoshi closed 3 months ago
AWS SDKs are generated from API models owned by the service team, this is not something we can change directly in the SDK. If you believe the value of this enum variant is incorrect you will need to engage EC2 support by using the AWS console to open a ticket.
Hi @yusuke-koyoshi
I created a ticket with the EC2 service team on your behalf (P124521734
) and notified your dedicated support person.
They should be able to drive this from there.
All the best, Ran~
Acknowledgements
go get -u github.com/aws/aws-sdk-go-v2/...
)Describe the bug
PlatformValuesWindows value is incorrect.
PlatformValuesWindows is
windows
, notWindows
.https://github.com/aws/aws-sdk-go-v2/blob/6a694c7d3df3177fe4c4bbfff7e2e7a7733619bb/service/ec2/types/enums.go#L6224-L6238
https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/describe-instances.html https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/describe-images.html
Expected Behavior
Values can be compared using
types.PlatformValuesWindows
Current Behavior
No match when comparing values using
types.PlatformValuesWindows
Reproduction Steps
Possible Solution
https://github.com/aws/aws-sdk-go-v2/blob/6a694c7d3df3177fe4c4bbfff7e2e7a7733619bb/service/ec2/types/enums.go#L6224-L6238
Change
PlatformValuesWindows
towindows
Additional Information/Context
No response
AWS Go SDK V2 Module Versions Used
Compiler and Version used
go version go1.22.1 darwin/arm64
Operating System and version
macOS 13.6.5