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 are resolved using AWS Signin. The initial Amazon.Runtime.Credentials.Internal.LoginToken is generated by tooling like AWS CLI or AWS Tools for PowerShell. The Login Token is refreshed using RefreshToken if it's AccessToken is nearing expiry or has already expired.
To use LoginAWSCredentials, AWSSDK.Signin package for Signin service must be added as a dependency in the application.
Namespace: Amazon.Runtime
Assembly: AWSSDK.Core.dll
Version: 3.x.y.z
public class LoginAWSCredentials : RefreshingAWSCredentials IDisposable
The LoginAWSCredentials type exposes the following members
| Name | Description | |
|---|---|---|
|
LoginAWSCredentials(LoginAWSCredentialsOptions) |
Constructs an LoginAWSCredentials object. |
| Name | Type | Description | |
|---|---|---|---|
|
Expiration | System.Nullable<System.DateTime> | Inherited from Amazon.Runtime.RefreshingAWSCredentials. |
|
ExpirationBuffer | System.TimeSpan | Inherited from Amazon.Runtime.RefreshingAWSCredentials. |
|
Options | Amazon.Runtime.LoginAWSCredentialsOptions |
Options to be used in the Login flow to resolve credentials. |
|
PreemptExpiryTime | System.TimeSpan | Inherited from Amazon.Runtime.RefreshingAWSCredentials. |
| Name | Description | |
|---|---|---|
|
ClearCredentials() | Inherited from Amazon.Runtime.RefreshingAWSCredentials. |
|
Dispose() | Inherited from Amazon.Runtime.RefreshingAWSCredentials. |
|
GetCredentials() | Inherited from Amazon.Runtime.RefreshingAWSCredentials. |
|
GetCredentialsAsync() | Inherited from Amazon.Runtime.RefreshingAWSCredentials. |
.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