AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
S3ClientConfiguration.h
1
6#pragma once
7
8#include <aws/s3/S3_EXPORTS.h>
9#include <aws/s3/S3ExpressIdentityProvider.h>
10#include <aws/core/client/GenericClientConfiguration.h>
11#include <aws/core/auth/signer/AWSAuthV4Signer.h>
12
13
14namespace Aws
15{
16 namespace S3
17 {
19 {
20 NOT_SET,
21 LEGACY, //stands for using global endpoint for us-east-1,
22 REGIONAL //stands for using regional endpoint for us-east-1
23 };
24
26 {
28
30
37 S3ClientConfiguration(const char* profileName, bool shouldDisableIMDS = false);
38
45 S3ClientConfiguration(bool useSmartDefaults, const char* defaultMode = "legacy", bool shouldDisableIMDS = false);
46
51 Client::AWSAuthV4Signer::PayloadSigningPolicy iPayloadSigningPolicy = Client::AWSAuthV4Signer::PayloadSigningPolicy::Never,
52 bool iUseVirtualAddressing = true,
53 US_EAST_1_REGIONAL_ENDPOINT_OPTION iUseUSEast1RegionalEndPointOption = US_EAST_1_REGIONAL_ENDPOINT_OPTION::NOT_SET);
54
55 bool useVirtualAddressing = true;
56 US_EAST_1_REGIONAL_ENDPOINT_OPTION useUSEast1RegionalEndPointOption = US_EAST_1_REGIONAL_ENDPOINT_OPTION::NOT_SET;
57 bool disableMultiRegionAccessPoints = false;
58 bool useArnRegion = false;
59 Client::AWSAuthV4Signer::PayloadSigningPolicy payloadSigningPolicy = Client::AWSAuthV4Signer::PayloadSigningPolicy::RequestDependent;
60 bool disableS3ExpressAuth = false;
61 using IdentityProviderSupplier = std::function<std::shared_ptr<S3ExpressIdentityProvider> (const S3Client &)>;
62 IdentityProviderSupplier identityProviderSupplier = [](const S3Client &client) -> std::shared_ptr<S3ExpressIdentityProvider> {
63 return Aws::MakeShared<DefaultS3ExpressIdentityProvider>("S3ClientConfiguration", client);
64 };
65 private:
66 void LoadS3SpecificConfig(const Aws::String& profileName);
67 };
68 }
69}
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