AWS SDK Version 2 for .NET
API Reference

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.

.NET Framework 3.5
 
This class allows AWS credentials to be registered with the SDK so that they can later be reference by a profile name. The AWS credentials will be available for AWS Toolkit for Visual Studio and AWS Tools for Windows PowerShell.

The credentials are stored under the current users AppData folder encrypted using Windows Data Protection API.

To reference the profile from an application's App.config or Web.config use the AWSProfileName setting.

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <appSettings>
        <add key="AWSProfileName" value="development"/>
    </appSettings>
</configuration>
            

Inheritance Hierarchy

System.Object
  Amazon.Util.ProfileManager

Namespace: Amazon.Util
Assembly: AWSSDK.dll
Version: (assembly version)

Syntax

C#
public static class ProfileManager : Object

The ProfileManager type exposes the following members

Methods

NameDescription
Public Method Static Method GetAWSCredentials(string) Gets the AWS credentials from the SDK account store.
Public Method Static Method ListProfileNames() List the profile names registered with the SDK account store.
Public Method Static Method RegisterProfile(string, string, string) Register a profile that can later be referenced by the profileName. This profile will only be visible for the current user.
Public Method Static Method TryGetAWSCredentials(string, out AWSCredentials) Tries to get the AWS credentials from the SDK account store.
Public Method Static Method UnregisterProfile(string) Unregistered a profile from the SDK account store.

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5