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.

AWS Credentials that resolve using AWS SSO.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AWSCredentials
    Amazon.Runtime.RefreshingAWSCredentials
      Amazon.Runtime.SSOAWSCredentials

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

Syntax

C#
public class SSOAWSCredentials : RefreshingAWSCredentials
         IDisposable

The SSOAWSCredentials type exposes the following members

Constructors

NameDescription
Public Method SSOAWSCredentials(string, string, string, string)

Constructs an SSOAWSCredentials object.

Public Method SSOAWSCredentials(string, string, string, string, SSOAWSCredentialsOptions)

Constructs an SSOAWSCredentials object.

Properties

NameTypeDescription
Public Property AccountId System.String

The AWS account ID that temporary AWS credentials will be resolved for.

Public Property Options Amazon.Runtime.SSOAWSCredentialsOptions

Options to be used in the SSO flow to resolve credentials. Developers wishing to support AWS SSO would want to provide the following: - Amazon.Runtime.SSOAWSCredentialsOptions.ClientName - Amazon.Runtime.SSOAWSCredentialsOptions.SsoVerificationCallback

Public Property PreemptExpiryTime System.TimeSpan Inherited from Amazon.Runtime.RefreshingAWSCredentials.
Public Property Region System.String

The AWS region where the SSO directory for Amazon.Runtime.SSOAWSCredentials.StartUrl is hosted.

Public Property RoleName System.String

The corresponding IAM role in the AWS account that temporary AWS credentials will be resolved for.

Public Property StartUrl System.String

The main URL for users to login to their SSO directory. Provided by the SSO service via the web console.

Methods

Note:

Asynchronous operations (methods ending with Async) in the table below are for .NET 4.5 or higher. For .NET 3.5 the SDK follows the standard naming convention of BeginMethodName and EndMethodName to indicate asynchronous operations - these method pairs are not shown in the table below.

NameDescription
Public Method ClearCredentials() Inherited from Amazon.Runtime.RefreshingAWSCredentials.
Public Method Dispose() Inherited from Amazon.Runtime.RefreshingAWSCredentials.
Public Method GetCredentials() Inherited from Amazon.Runtime.RefreshingAWSCredentials.
Public Method GetCredentialsAsync() Inherited from Amazon.Runtime.RefreshingAWSCredentials.
Public Method Static Method HasCachedAccessTokenAvailable(string)

Returns true if there is already a non-expired cached login access token in the token cache.

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5