Class ProfileAWSRegion
Determines region based on a CredentialProfile stored in an ICredentialProfileSource. If the profile doesn't exist or there is no region information an InvalidOperationException is thrown.
public class ProfileAWSRegion : AWSRegion
- Inheritance
-
ProfileAWSRegion
- Inherited Members
Constructors
ProfileAWSRegion(ICredentialProfileSource)
Attempts to construct an instance of ProfileAWSRegion. 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 region information an InvalidOperationException is thrown.
public ProfileAWSRegion(ICredentialProfileSource source)
Parameters
source
ICredentialProfileSourceThe ICredentialProfileSource to read the profile from.
ProfileAWSRegion(ICredentialProfileSource, string)
Attempts to construct an instance of ProfileAWSRegion. If the profile doesn't exist or there is no region information an InvalidOperationException is thrown.
public ProfileAWSRegion(ICredentialProfileSource source, string profileName)
Parameters
source
ICredentialProfileSourceThe ICredentialProfileSource to read the profile from.
profileName
stringThe name of the profile.