Allow setting `IgnoreConfiguredEndpoints` on `config.LoadOptions`
Describe the feature
The config.SharedConfig and config.EnvConfig structs both have a parameter IgnoreConfiguredEndpoints that sets a common endpoint URL for all services. config.LoadOptions does not have the corresponding parameter.
Also add the corresponding WithIgnoreConfiguredEndpoints functional option.
Use Case
There does not seem to be a way to override endpoints configured using environment variables or the shared config file. While the aws.Config returned by config.LoadDefaultConfig could be manually modified, this would not affect any service clients potentially used internally by LoadDefaultConfig, such as for STS.
Proposed Solution
No response
Other Information
No response
Acknowledgements
- [X] I may be able to implement this feature request
- [ ] This feature might incur a breaking change
AWS Go SDK V2 Module Versions Used
github.com/aws/aws-sdk-go-v2 v1.24.0 github.com/aws/aws-sdk-go-v2/config v1.26.1
Go version used
go version go1.21.0 darwin/arm64