Class AssumeRoleAWSCredentials
AWS Credentials that automatically refresh by calling AssumeRole on the Amazon Security Token Service.
public class AssumeRoleAWSCredentials : RefreshingAWSCredentials, IDisposable
- Inheritance
-
AssumeRoleAWSCredentials
- Implements
- Inherited Members
Constructors
AssumeRoleAWSCredentials(AWSCredentials, string, string)
Constructs an AssumeRoleAWSCredentials object.
public AssumeRoleAWSCredentials(AWSCredentials sourceCredentials, string roleArn, string roleSessionName)
Parameters
sourceCredentials
AWSCredentialsThe credentials of the user that will be used to call AssumeRole.
roleArn
stringThe Amazon Resource Name (ARN) of the role to assume.
roleSessionName
stringAn identifier for the assumed role session.
AssumeRoleAWSCredentials(AWSCredentials, string, string, AssumeRoleAWSCredentialsOptions)
Constructs an AssumeRoleAWSCredentials object.
public AssumeRoleAWSCredentials(AWSCredentials sourceCredentials, string roleArn, string roleSessionName, AssumeRoleAWSCredentialsOptions options)
Parameters
sourceCredentials
AWSCredentialsThe credentials of the user that will be used to call AssumeRole.
roleArn
stringThe Amazon Resource Name (ARN) of the role to assume.
roleSessionName
stringAn identifier for the assumed role session.
options
AssumeRoleAWSCredentialsOptionsOptions to be used in the call to AssumeRole.
Properties
Options
Options to be used in the call to AssumeRole.
public AssumeRoleAWSCredentialsOptions Options { get; }
Property Value
RoleArn
The Amazon Resource Name (ARN) of the role to assume.
public string RoleArn { get; }
Property Value
RoleSessionName
An identifier for the assumed role session.
public string RoleSessionName { get; }
Property Value
SourceCredentials
The credentials of the user that will be used to call AssumeRole.
public AWSCredentials SourceCredentials { get; }
Property Value
Methods
GenerateNewCredentials()
protected override RefreshingAWSCredentials.CredentialsRefreshState GenerateNewCredentials()