Closed
Description
The blog post sample does not set a configuration or authentication provider for the S3 client. The headers do not document how to construct one. The test harness offers clues but not an example that I can copy.
According to the headers, I can use this:
S3Client(const Auth::AWSCredentials& credentials, const Client::ClientConfiguration& clientConfiguration = Client::ClientConfiguration());
But that requires me to successfully create those objects. I poked around the core headers and found this:
AWSCredentials(const Aws::String& accessKeyId, const Aws::String& secretKey, const Aws::String& sessionToken = ""
But the code below will not compile -- "incomplete type not permitted"
const char* secret_id = "foo";
const char* secret_key = "bar";
Aws::Auth::AWSCredentials creds(secret_id, secret_key);
I'm guessing I need to do something with < > and AWS::foo but guessing that without documentation or samples is going to be difficult.
Metadata
Metadata
Assignees
Labels
No labels