Comments (3)
I'd recommend against manually constructing credentials. The default constructor will use the default credentials provider chain. This will first check your environment, then your profile config file (~/.aws/credentials), and then check the ec2 metadata service (if you are on ec2 and have an instance profile attached.
Anyways, for explicitly what you are trying to do, you need to
#include <aws/core/auth/AWSCredentialsProvider.h> and then it should work.
We cover this in the video listed in the readme.md
from aws-sdk-cpp.
Thanks, and d'oh! I should have thought of the include file but I assumed it was pulled in automatically from the other includes.
We cover this in the video listed in the readme.md
D'oh! again, I don't normally watch videos to learn an API, I assumed it would be too high-level of an introduction to include details like this. My bad, I'll Watch The Friendly Manual :)
from aws-sdk-cpp.
No problem. For more context, we try to always forward declare everything to help with build times. Most of the time, you'll have to hunt down a header file if we are only using the type as a reference, return value, or pointer. If a concrete type is being used and instantiated in a header file then you can safely assume you get the include for free (since it wouldn't compile the library otherwise).
from aws-sdk-cpp.
Related Issues (20)
- HttpClient MakeRequest deprecated - any similar function ? HOT 3
- macOS Sonoma 14.2: Failed to connect to Cognito & Lambda endpoints (Curl error code 35 - SSL error) Reopening #2795 HOT 11
- The aws sdk and libtorch build failed HOT 3
- Custom OpenSSL location no longer respected in aws 1.11.x HOT 4
- Compiling a static library with cmake reports an error, indicating missing aws-c-common and other related DLLs HOT 10
- buffer_pool->mem_limit error with CRT HOT 5
- Add SDKOption for default Credentials Provider Chain HOT 1
- SetContentMD5 not being set for PUT requests HOT 8
- CopyObjectRequest wrong host URL HOT 1
- IMDSv2 token not being handled properly HOT 8
- Enabling non-blocking S3Client calls HOT 2
- test case failed while using external project in cmake HOT 2
- linker error when building with static libs and using s3-crt HOT 9
- Does not build using VS 2022 HOT 4
- IAMClient::GetServiceName invalid during Cmake HOT 3
- Can not compile transcribe with CURL support with Visual Studio 2022 HOT 1
- Huge RAM usage on big file uploads HOT 7
- callback set in SetDataSentEventHandler is not called on S3Crt PutRequest HOT 2
- Cannot build sdk on a Amazon Linux 2023 based Container after 1.11.211 Version Tag HOT 9
- The S3 protocol does not support retrieving multiple attributes through GetObjectAttributes. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-sdk-cpp.