Accessing Possible Values of an enum Without an Instance #2388
Labels
feature-request
A feature should be added or improved.
needs-triage
This issue or PR still needs to be triaged.
Describe the feature
It would be nice if enum values can be accessed without an instance of it.
For example, to get all possible values of BucketLocationConstraint, I have to do:
This is not very intuitive because the
Values
are all available values, not just for a single one. I think a standalone function can be better:Use Case
Any case where enum needs to be validated
Proposed Solution
No response
Other Information
No response
Acknowledgements
AWS Go SDK V2 Module Versions Used
github.com/aws/aws-sdk-go-v2 v1.23.1
Go version used
go version go1.21.4 darwin/arm64
The text was updated successfully, but these errors were encountered: