1 Answer
- Newest
- Most votes
- Most comments
0
【以下的回答经过翻译处理】 LoadDefaultConfig
函数可以接受任意数量的LoadOptions
作为参数。你可以像这样使用它:
cfg, err := config.LoadDefaultConfig(context.TODO(), config.WithSharedConfigProfile("saml"), config.WithRegion("us-east-1"))
在这里有一个示例:https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/config#example-package-Custom_config。
Relevant content
- asked a year ago
- Accepted Answerasked 2 months ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 6 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago