Table of Contents

Interface IDefaultConfigurationProvider

Namespace
Amazon.Runtime.Internal
Assembly
AWSSDK.Core.dll
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:
  1. Mode matching requestedConfigurationMode. This should be set via DefaultConfigurationMode
  2. The Environment Variable Amazon.Runtime.Internal.DefaultConfigurationProvider.AWS_DEFAULTS_MODE_ENVIRONMENT_VARIABLE
  3. Shared config/credential file via DefaultConfigurationModeName
  4. Legacy
IDefaultConfiguration GetDefaultConfiguration(RegionEndpoint clientRegion, DefaultConfigurationMode? requestedConfigurationMode = null)

Parameters

clientRegion RegionEndpoint
requestedConfigurationMode DefaultConfigurationMode?

Returns

IDefaultConfiguration

Remarks

IDefaultConfiguration is not cached. It will be re-resolved on every call.