Namespace Amazon.Util.Internal
Classes
- EnvironmentVariableRetriever
Wrapper class which invokes the static method public static string GetEnvironmentVariable(string variable) underneath. This class is added as a property on the singleton class EnvironmentVariableSource. This change was done for testability.
- EnvironmentVariableSource
Singleton class that holds the property of type IEnvironmentVariableRetreiver. This property can hold an instance of type EnvironmentVariableRetreiver which has a wrapper method for public static string GetEnvironmentVariable(string variable) or can be mocked for testing purposes.
- NamedSettingsManager
Manager to access a settings store file. Objects are primarily accessed by DisplayName rather than unique key. Settings store files are located under the current user's AppData\Local\AWSToolkit folder. Select keys in these files are encrypted on a per user, per machine basis using the Windows Data Protection API; the encrypted values cannot be used by any other user or on any other machine.
This class is not threadsafe.
- RegionFinder
Finds region string in the endpoint string using predefined rules If predefined rules fail to match the region, regular expression strings provided in endpoints.json are used to find the region. If regular expressions also fail, then a default region is returned.
- RootConfig
Root AWS config
- SettingsManager
Manager to access a settings store file. Settings store files are located under the current user's AppData\Local\AWSToolkit folder. Select keys in these files are encrypted on a per user, per machine basis using the Windows Data Protection API; the encrypted values cannot be used by any other user or on any other machine.
This class is not threadsafe.
Interfaces
- IDirectory
Wrapper class over Directory operations. This change was done for testability.
- IEnvironmentVariableRetriever
Interface for EnvironmentVariableRetriever. This serves as a property for the singleton EnvironmentVariableSource