Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有环境变量,例如。HTTPS_PROXY,设置。我可以简单地aws s3 ls s3://bucket/key..通过代理列出 S3。
aws s3 ls s3://bucket/key..
如何在 aws-sdk-cpp 中实现相同的目标?
我终于自己弄清楚了,这是一个例子
Aws::Client::ClientConfiguration cconfig; cconfig.proxyHost = "localhost"; cconfig.proxyPort = 1234; cconfig.proxyScheme = Aws::Http::Scheme::HTTPS; Aws::S3::S3Client(cconfig);