Table of Contents

Class ProfileAWSRegion

Namespace
Amazon.Runtime
Assembly
AWSSDK.Core.dll

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 ICredentialProfileSource

The 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 ICredentialProfileSource

The ICredentialProfileSource to read the profile from.

profileName string

The name of the profile.