|
aws-crt-cpp
C++ wrapper around the aws-c-* libraries. Provides Cross-Platform Transport Protocols and SSL/TLS implementations for C++.
|
#include <S3.h>
Public Member Functions | |
| S3Client (const S3Client &)=delete | |
| S3Client (S3Client &&)=delete | |
| S3Client & | operator= (const S3Client &)=delete |
| S3Client & | operator= (S3Client &&)=delete |
| S3Client (const S3ClientConfig &config) noexcept | |
| ~S3Client () noexcept=default | |
| std::shared_ptr< S3MetaRequest > | MakeMetaRequest (S3MetaRequestOptions &options) noexcept |
| operator bool () const noexcept | |
| int | LastError () const noexcept |
Static Public Member Functions | |
| static bool | MakeDefaultSigningConfig (Auth::AwsSigningConfig &config, const String ®ion, const std::shared_ptr< Auth::ICredentialsProvider > &provider) noexcept |
High-throughput client for issuing S3 meta requests. Holds the underlying aws_s3_client, including its thread pool, connection pool, and signing config; the C handle is released when the wrapper is destroyed. A single client may serve many concurrent meta requests; create one per region per process unless you have a specific reason to do otherwise.
|
delete |
|
explicitnoexcept |
|
defaultnoexcept |
|
noexcept |
|
staticnoexcept |
Populate an existing signing config with defaults appropriate for S3, sourced from the given region and credentials provider. Fills the caller's config in place rather than returning one - AwsSigningConfig (via ISigningConfig) deletes its copy and move constructors, so it cannot be returned by value, and this avoids a heap allocation for the common case where the caller already owns the config (ex. as a member or on the stack).
| config | the signing config to populate. |
| region | the AWS region to sign requests for. |
| provider | the credentials provider used during signing. |
|
noexcept |
Submit a meta request. The callbacks installed on the options object are copied into a CRT-owned callback bundle that backs the running request, so the caller may discard the options object after this call returns.
| options | the configured options for this meta request, produced by one of the subclass factories. Borrowed for the duration of the call only; the caller retains ownership. |
|
inlineexplicitnoexcept |