aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/aws-sdk-cpp/aws-cpp-sdk-s3/include/aws/s3/S3ClientConfiguration.h
diff options
context:
space:
mode:
authordakovalkov <dakovalkov@yandex-team.com>2023-12-03 13:33:55 +0300
committerdakovalkov <dakovalkov@yandex-team.com>2023-12-03 14:04:39 +0300
commit2a718325637e5302334b6d0a6430f63168f8dbb3 (patch)
tree64be81080b7df9ec1d86d053a0c394ae53fcf1fe /contrib/libs/aws-sdk-cpp/aws-cpp-sdk-s3/include/aws/s3/S3ClientConfiguration.h
parente0d94a470142d95c3007e9c5d80380994940664a (diff)
downloadydb-2a718325637e5302334b6d0a6430f63168f8dbb3.tar.gz
Update contrib/libs/aws-sdk-cpp to 1.11.37
Diffstat (limited to 'contrib/libs/aws-sdk-cpp/aws-cpp-sdk-s3/include/aws/s3/S3ClientConfiguration.h')
-rw-r--r--contrib/libs/aws-sdk-cpp/aws-cpp-sdk-s3/include/aws/s3/S3ClientConfiguration.h63
1 files changed, 63 insertions, 0 deletions
diff --git a/contrib/libs/aws-sdk-cpp/aws-cpp-sdk-s3/include/aws/s3/S3ClientConfiguration.h b/contrib/libs/aws-sdk-cpp/aws-cpp-sdk-s3/include/aws/s3/S3ClientConfiguration.h
new file mode 100644
index 0000000000..771bd85a39
--- /dev/null
+++ b/contrib/libs/aws-sdk-cpp/aws-cpp-sdk-s3/include/aws/s3/S3ClientConfiguration.h
@@ -0,0 +1,63 @@
+/**
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0.
+ */
+
+#pragma once
+
+#include <aws/s3/S3_EXPORTS.h>
+#include <aws/core/client/GenericClientConfiguration.h>
+#include <aws/core/auth/signer/AWSAuthV4Signer.h>
+
+
+namespace Aws
+{
+ namespace S3
+ {
+ enum class US_EAST_1_REGIONAL_ENDPOINT_OPTION
+ {
+ NOT_SET,
+ LEGACY, //stands for using global endpoint for us-east-1,
+ REGIONAL //stands for using regional endpoint for us-east-1
+ };
+
+ struct AWS_S3_API S3ClientConfiguration : public Aws::Client::GenericClientConfiguration</*EndpointDiscoverySupported*/true>
+ {
+ using BaseClientConfigClass = Aws::Client::GenericClientConfiguration</*EndpointDiscoverySupported*/true>;
+
+ S3ClientConfiguration();
+
+ /**
+ * Create a configuration based on settings in the aws configuration file for the given profile name.
+ * The configuration file location can be set via the environment variable AWS_CONFIG_FILE
+ * @param profileName the aws profile name.
+ * @param shouldDisableIMDS whether or not to disable IMDS calls.
+ */
+ S3ClientConfiguration(const char* profileName, bool shouldDisableIMDS = false);
+
+ /**
+ * Create a configuration with a predefined smart defaults
+ * @param useSmartDefaults, required to differentiate c-tors
+ * @param defaultMode, default mode to use
+ * @param shouldDisableIMDS whether or not to disable IMDS calls.
+ */
+ S3ClientConfiguration(bool useSmartDefaults, const char* defaultMode = "legacy", bool shouldDisableIMDS = false);
+
+ /**
+ * Converting constructors for compatibility with a legacy code
+ */
+ 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);
+
+ bool useVirtualAddressing = true;
+ US_EAST_1_REGIONAL_ENDPOINT_OPTION useUSEast1RegionalEndPointOption = US_EAST_1_REGIONAL_ENDPOINT_OPTION::NOT_SET;
+ bool disableMultiRegionAccessPoints = false;
+ bool useArnRegion = false;
+ Client::AWSAuthV4Signer::PayloadSigningPolicy payloadSigningPolicy = Client::AWSAuthV4Signer::PayloadSigningPolicy::RequestDependent;
+ private:
+ void LoadS3SpecificConfig(const Aws::String& profileName);
+ };
+ }
+}