AWS SDK Version 3 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.

Represents a profile in the configuration file. For example in ~/.aws/config [profile foo] name = value Profile profile = new Profile("foo"); When this is set on the ClientConfig and that config is passed to the service client constructor the sdk will try to find the credentials associated with the Profile.Name property If set, this will override AWS_PROFILE and AWSConfigs.ProfileName.

Inheritance Hierarchy

System.Object
  Amazon.Profile

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

Syntax

C#
public class Profile

The Profile type exposes the following members

Constructors

NameDescription
Public Method Profile(string)

This represents a profile in the configuration file with the given name

Public Method Profile(string, string)

This represents a profile in the configuration file with the given name in the given location

Properties

NameTypeDescription
Public Property Location System.String

Specifies the location of the profile you want to use. This is optional. If none is set then it will look in the default location

Public Property Name System.String

The name of the profile you want to use

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