SharedCredentialsFile Class | AWS SDK for .NET V3 (original) (raw)

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Provides access to read and write to the shared credentials INI file. The file is read, parsed, and validated at construction time. Changes can be made using the RegisterProfile() and UnregisterProfile() methods. This class is not threadsafe.

Inheritance Hierarchy

System.Object
Amazon.Runtime.CredentialManagement.SharedCredentialsFile

Namespace: Amazon.Runtime.CredentialManagement
Assembly: AWSSDK.Core.dll
Version: 3.x.y.z

Syntax

public class SharedCredentialsFile ICredentialProfileSource, ICredentialProfileStore

The SharedCredentialsFile type exposes the following members

Constructors

Properties

Name Type Description
Public Property ConfigFilePath System.String The path to the config file
Public Property Static Property DefaultConfigFilePath System.String The default file path for the config file. By default it searches in ~/.aws/config
Public Property Static Property DefaultFilePath System.String The default file path for the credentials file. By default it searches for ~/.aws/credentials. This behavior can be overriden.
Public Property FilePath System.String The path to the credentials file

Methods

Fields

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5 and newer, 3.5