3
0

AWSCoreInternalBus.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #pragma once
  9. #include <AzCore/EBus/EBus.h>
  10. #include <AzCore/std/string/string.h>
  11. namespace AWSCore
  12. {
  13. //! AWSCoreInternal request interface
  14. class AWSCoreInternalRequests
  15. : public AZ::EBusTraits
  16. {
  17. public:
  18. //////////////////////////////////////////////////////////////////////////
  19. // EBusTraits overrides
  20. static const AZ::EBusHandlerPolicy HandlerPolicy = AZ::EBusHandlerPolicy::Single;
  21. static const AZ::EBusAddressPolicy AddressPolicy = AZ::EBusAddressPolicy::Single;
  22. //////////////////////////////////////////////////////////////////////////
  23. //! GetProfileName
  24. //! Get the AWS profile name for AWS credential
  25. //! @return The name of AWS profile
  26. virtual AZStd::string GetProfileName() const = 0;
  27. //! GetResourceMappingConfigFilePath
  28. //! Get the path of AWS resource mapping config file
  29. //! @return The path of AWS resource mapping config file
  30. virtual AZStd::string GetResourceMappingConfigFilePath() const = 0;
  31. //! IsAllowedAWSMetadataCredentials
  32. //! Whether retrieving credentials from AWS environmental endpoints,
  33. //! such as the Amazon EC2 instance metadata service (IMDS), is permitted
  34. //! @return The AllowAWSMetadataCredentials setting value
  35. virtual bool IsAllowedAWSMetadataCredentials() const = 0;
  36. //! ReloadConfiguration
  37. //! Reload AWSCore configuration without restarting application
  38. virtual void ReloadConfiguration() = 0;
  39. };
  40. using AWSCoreInternalRequestBus = AZ::EBus<AWSCoreInternalRequests>;
  41. } // namespace AWSCore