Interface IDefaultConfigurationProvider
public interface IDefaultConfigurationProvider
Methods
GetDefaultConfiguration(RegionEndpoint, DefaultConfigurationMode?)
Determines the correct DefaultConfiguration to use.
Implementations of IDefaultConfigurationProvider are responsible for storing a reference to all valid DefaultConfigurations for a given context. Because the default values in a DefaultConfiguration can differ between Services, it's important to not use IDefaultConfigurationProviders in a different Service Client. The DefaultConfiguration is selected as follows:- Mode matching
requestedConfigurationMode
. This should be set via DefaultConfigurationMode - The Environment Variable Amazon.Runtime.Internal.DefaultConfigurationProvider.AWS_DEFAULTS_MODE_ENVIRONMENT_VARIABLE
- Shared config/credential file via DefaultConfigurationModeName
- Legacy
IDefaultConfiguration GetDefaultConfiguration(RegionEndpoint clientRegion, DefaultConfigurationMode? requestedConfigurationMode = null)
Parameters
clientRegion
RegionEndpointrequestedConfigurationMode
DefaultConfigurationMode?
Returns
Remarks
IDefaultConfiguration is not cached. It will be re-resolved on every call.