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.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AssumeRoleAWSCredentialsOptions

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

Syntax

C#
public class AssumeRoleAWSCredentialsOptions

The AssumeRoleAWSCredentialsOptions type exposes the following members

Constructors

Properties

NameTypeDescription
Public Property DurationSeconds System.Nullable<System.Int32>

The length of time in seconds before the credentials will expire.

Public Property ExternalId System.String

A unique identifier that is used by third parties when assuming roles in their customers' accounts.

Public Property MfaSerialNumber System.String

The identification number of the MFA device that is associated with the user who is making the assume-role call.

Public Property MfaTokenCode System.String

The value provided by the MFA device, if the trust policy of the role being assumed requires MFA.

Public Property MfaTokenCodeCallback System.Func<System.String>

A callback that's used to obtain the MFA token code when the AssumeRoleAWSCredentials are refreshed.

Public Property Policy System.String

An IAM policy in JSON format.

Public Property ProxySettings System.Net.WebProxy

The proxy settings to use when calling AssumeRole.

Version Information

.NET Standard:
Supported in: 1.3

.NET Framework:
Supported in: 4.5, 4.0, 3.5

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms