Class ProfileAWSEndpointDiscoveryEnabled
Determines endpoint discovery enabled based on a CredentialProfile stored in an ICredentialProfileSource. If the profile doesn't exist or there is no endpoint discovery enabled information an InvalidOperationException is thrown.
[Obsolete("This class has been deprecated in favor of ProfileAWSConfiguration.")]
public class ProfileAWSEndpointDiscoveryEnabled
- Inheritance
-
ProfileAWSEndpointDiscoveryEnabled
- Inherited Members
Constructors
ProfileAWSEndpointDiscoveryEnabled(ICredentialProfileSource)
Attempts to construct an instance of ProfileAWSEndpointDiscoveryEnabled. If the AWS_PROFILE environment variable is set the instance will be constructed using that profile, otherwise it will use the default profile.
If the profile doesn't exist or there is no endpoint discovery enabled information an InvalidOperationException is thrown.
public ProfileAWSEndpointDiscoveryEnabled(ICredentialProfileSource source)
Parameters
source
ICredentialProfileSourceThe ICredentialProfileSource to read the profile from.
ProfileAWSEndpointDiscoveryEnabled(ICredentialProfileSource, string)
Attempts to construct an instance of ProfileAWSEndpointDiscoveryEnabled. If the profile doesn't exist or there is no endpoint discovery enabled information an InvalidOperationException is thrown.
public ProfileAWSEndpointDiscoveryEnabled(ICredentialProfileSource source, string profileName)
Parameters
source
ICredentialProfileSourceThe ICredentialProfileSource to read the profile from.
profileName
stringThe name of the profile.
Properties
Enabled
public bool Enabled { get; }