| 245 | } |
| 246 | |
| 247 | void S3Options::ConfigureAccessKey(const std::string& access_key, |
| 248 | const std::string& secret_key, |
| 249 | const std::string& session_token) { |
| 250 | credentials_provider = std::make_shared<Aws::Auth::SimpleAWSCredentialsProvider>( |
| 251 | ToAwsString(access_key), ToAwsString(secret_key), ToAwsString(session_token)); |
| 252 | credentials_kind = S3CredentialsKind::Explicit; |
| 253 | } |
| 254 | |
| 255 | void S3Options::ConfigureAssumeRoleCredentials( |
| 256 | const std::string& role_arn, const std::string& session_name, |