AWS SDK for C++

AWS SDK for C++ Version 1.11.680

Loading...
Searching...
No Matches
S3ClientConfiguration.h
1
6#pragma once
7
8#include <aws/core/auth/signer/AWSAuthV4Signer.h>
9#include <aws/core/client/GenericClientConfiguration.h>
10#include <aws/s3/S3ExpressIdentityProvider.h>
11#include <aws/s3/S3_EXPORTS.h>
12
13namespace Aws {
14namespace S3 {
16 NOT_SET,
17 LEGACY, // stands for using global endpoint for us-east-1,
18 REGIONAL // stands for using regional endpoint for us-east-1
19};
20
23
25
32 S3ClientConfiguration(const char* profileName, bool shouldDisableIMDS = false);
33
40 S3ClientConfiguration(bool useSmartDefaults, const char* defaultMode = "legacy", bool shouldDisableIMDS = false);
41
46 const Client::ClientConfiguration& config,
47 Client::AWSAuthV4Signer::PayloadSigningPolicy iPayloadSigningPolicy = Client::AWSAuthV4Signer::PayloadSigningPolicy::Never,
48 bool iUseVirtualAddressing = true,
49 US_EAST_1_REGIONAL_ENDPOINT_OPTION iUseUSEast1RegionalEndPointOption = US_EAST_1_REGIONAL_ENDPOINT_OPTION::NOT_SET);
50
51 bool useVirtualAddressing = true;
52 US_EAST_1_REGIONAL_ENDPOINT_OPTION useUSEast1RegionalEndPointOption = US_EAST_1_REGIONAL_ENDPOINT_OPTION::NOT_SET;
53 bool disableMultiRegionAccessPoints = false;
54 bool useArnRegion = false;
55 Client::AWSAuthV4Signer::PayloadSigningPolicy payloadSigningPolicy = Client::AWSAuthV4Signer::PayloadSigningPolicy::RequestDependent;
56 bool disableS3ExpressAuth = false;
57 using IdentityProviderSupplier = std::function<std::shared_ptr<S3ExpressIdentityProvider>(const S3Client&)>;
58 IdentityProviderSupplier identityProviderSupplier = [](const S3Client& client) -> std::shared_ptr<S3ExpressIdentityProvider> {
59 return Aws::MakeShared<DefaultS3ExpressIdentityProvider>("S3ClientConfiguration", client);
60 };
61
62 private:
63 void LoadS3SpecificConfig(const Aws::String& profileName);
64};
65} // namespace S3
66} // namespace Aws
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
S3ClientConfiguration(const Client::ClientConfiguration &config, Client::AWSAuthV4Signer::PayloadSigningPolicy iPayloadSigningPolicy=Client::AWSAuthV4Signer::PayloadSigningPolicy::Never, bool iUseVirtualAddressing=true, US_EAST_1_REGIONAL_ENDPOINT_OPTION iUseUSEast1RegionalEndPointOption=US_EAST_1_REGIONAL_ENDPOINT_OPTION::NOT_SET)
S3ClientConfiguration(const char *profileName, bool shouldDisableIMDS=false)
S3ClientConfiguration(const Client::ClientConfigurationInitValues &configuration={})
S3ClientConfiguration(bool useSmartDefaults, const char *defaultMode="legacy", bool shouldDisableIMDS=false)
std::function< std::shared_ptr< S3ExpressIdentityProvider >(const S3Client &)> IdentityProviderSupplier