Table of Contents

Class ImmutableCredentials

Namespace
Amazon.Runtime
Assembly
AWSSDK.Core.dll

Immutable representation of AWS credentials.

public class ImmutableCredentials
Inheritance
ImmutableCredentials
Derived
Inherited Members

Constructors

ImmutableCredentials(string, string, string)

Constructs an ImmutableCredentials object with supplied accessKey, secretKey.

public ImmutableCredentials(string awsAccessKeyId, string awsSecretAccessKey, string token)

Parameters

awsAccessKeyId string
awsSecretAccessKey string
token string

Optional. Can be set to null or empty for non-session credentials.

Properties

AccessKey

Gets the AccessKey property for the current credentials.

public string AccessKey { get; }

Property Value

string

SecretKey

Gets the SecretKey property for the current credentials.

public string SecretKey { get; }

Property Value

string

Token

Gets the Token property for the current credentials.

public string Token { get; }

Property Value

string

UseToken

Gets the UseToken property for the current credentials. Specifies if Token property is non-empty.

public bool UseToken { get; }

Property Value

bool

Methods

Copy()

Returns a copy of the current credentials.

public virtual ImmutableCredentials Copy()

Returns

ImmutableCredentials

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int