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.
Namespace: Amazon.Runtime
Assembly: AWSSDK.Core.dll
Version: 3.x.y.z
public class AssumeRoleAWSCredentialsOptions
The AssumeRoleAWSCredentialsOptions type exposes the following members
| Name | Description | |
|---|---|---|
|
AssumeRoleAWSCredentialsOptions() |
| Name | Type | Description | |
|---|---|---|---|
|
DurationSeconds | System.Nullable<System.Int32> |
The length of time in seconds before the credentials will expire. |
|
ExternalId | System.String |
A unique identifier that is used by third parties when assuming roles in their customers' accounts. |
|
MfaSerialNumber | System.String |
The identification number of the MFA device that is associated with the user who is making the assume-role call. |
|
MfaTokenCode | System.String |
The value provided by the MFA device, if the trust policy of the role being assumed requires MFA. |
|
MfaTokenCodeCallback | System.Func<System.String> |
A callback that's used to obtain the MFA token code when the AssumeRoleAWSCredentials are refreshed. |
|
Policy | System.String |
An IAM policy in JSON format. |
|
ProxySettings | System.Net.WebProxy |
The proxy settings to use when calling AssumeRole. |
|
SourceIdentity | System.String |
The source identity specified by the principal that is calling the |
|
Tags | System.Collections.Generic.List<System.Collections.Generic.KeyValuePair<System.String, System.String>> |
A list of session tags that you want to pass. Each session tag consists of a key name and an associated value. For more information about session tags, see Tagging Amazon Web Services STS Sessions in the IAM User Guide. |
|
TransitiveTagKeys | System.Collections.Generic.List<System.String> |
A list of keys for session tags that you want to set as transitive. If you set a tag key as transitive, the corresponding key and value passes to subsequent sessions in a role chain. For more information, see Chaining Roles with Session Tags in the IAM User Guide. |
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.7.2 and newer