Amazon S3 code examples using the AWS SDK for C++
Amazon S3
Note
Only the code that is necessary to demonstrate certain techniques is supplied in this Guide, but the
complete example code is available on GitHub
-
S3ClientclassThe
S3Clientlibrary is a fully-featured Amazon S3 interface.The
list_buckets_disabling_dns_cache.cppexample in this set is catered specifically to work with CURL on Linux/Mac (though can be modified to work on Windows). If you are on Windows, delete the filelist_buckets_disabling_dns_cache.cppbefore building the project because it relies on the curl HttpClient of Linux.The example code utilizing the
S3Clientis in thes3folderon Github. See the Readme on Github for a full list of functions demonstrated by this example set. Portions of the
s3example set are covered in additional detail in this guide: -
S3CrtClientclassThe
S3CrtClientwas added in version 1.9 of the SDK.S3CrtClientprovides high throughput for Amazon S3 GET (download) and PUT (upload) operations. TheS3CrtClientis implemented on the top of the AWS Common Runtime (CRT) libraries.The example code utilizing the
S3CrtClientis in thes3-crtfolderon Github. See the Readme on Github for a full list of functions demonstrated by this example set. -
TransferManagerclassTransferManageris a fully managed service that enables the transfer of files over the File Transfer Protocol (FTP), File Transfer Protocol over SSL (FTPS), or Secure Shell (SSH) File Transfer Protocol (SFTP) directly into and out of Amazon S3.The example code utilizing the
TransferManageris in thetransfer-managerfolderon Github. See the Readme on Github for a full list of functions demonstrated by this example set.