| 12345678910111213141516171819202122232425262728293031323334353637 |
- /*
- * Copyright (c) Contributors to the Open 3D Engine Project.
- * For complete copyright and license terms please see the LICENSE at the root of this distribution.
- *
- * SPDX-License-Identifier: Apache-2.0 OR MIT
- *
- */
- // The AWS Native SDK AWSAllocator triggers a warning due to accessing members of std::allocator directly.
- // AWSAllocator.h(70): warning C4996: 'std::allocator<T>::pointer': warning STL4010: Various members of std::allocator are deprecated in C++17.
- // Use std::allocator_traits instead of accessing these members directly.
- // You can define _SILENCE_CXX17_OLD_ALLOCATOR_MEMBERS_DEPRECATION_WARNING or _SILENCE_ALL_CXX17_DEPRECATION_WARNINGS to acknowledge that you have received this warning.
- #include <AzCore/PlatformDef.h>
- AZ_PUSH_DISABLE_WARNING(4251 4996, "-Wunknown-warning-option")
- #include <aws/core/client/ClientConfiguration.h>
- #include <aws/core/http/HttpClientFactory.h>
- AZ_POP_DISABLE_WARNING
- #include <Framework/HttpRequestJobConfig.h>
- namespace AWSCore
- {
- void HttpRequestJobConfig::ApplySettings()
- {
- AwsApiJobConfig::ApplySettings();
- Aws::Client::ClientConfiguration config{ GetClientConfiguration() };
- m_readRateLimiter = config.readRateLimiter;
- m_writeRateLimiter = config.writeRateLimiter;
- m_userAgent = config.userAgent;
- m_httpClient = Aws::Http::CreateHttpClient(config);
- }
- } // namespace AWSCore
|