Table of Contents

Class AssumeRoleImmutableCredentials

Namespace
Amazon.Runtime
Assembly
AWSSDK.Core.dll

Immutable representation of AWS credentials obtained as a result of authenticating with the AssumeRole method of the Security Token Service.

public class AssumeRoleImmutableCredentials : ImmutableCredentials
Inheritance
AssumeRoleImmutableCredentials
Inherited Members

Constructors

AssumeRoleImmutableCredentials(string, string, string, DateTime)

Constructs an instance with supplied keys, token, and expiration.

public AssumeRoleImmutableCredentials(string awsAccessKeyId, string awsSecretAccessKey, string token, DateTime expiration)

Parameters

awsAccessKeyId string

The AccessKey for the credentials.

awsSecretAccessKey string

The SecretKey for the credentials.

token string

The security token for the credentials.

expiration DateTime

The expiration time for the credentials.

Properties

Expiration

The expiry time of the credentials, obtained from the AssumeRoleResponse.

public DateTime Expiration { get; }

Property Value

DateTime

Methods

Copy()

Get a copy of this AssumeRoleImmutableCredentials object.

public AssumeRoleImmutableCredentials Copy()

Returns

AssumeRoleImmutableCredentials

A copy of this object.

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int