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.
Credentials that are retrieved from the Instance Profile service on an EC2 instance
Namespace: Amazon.Runtime
Assembly: AWSSDK.Core.dll
Version: 3.x.y.z
public class InstanceProfileAWSCredentials : URIBasedRefreshingCredentialHelper IDisposable
The InstanceProfileAWSCredentials type exposes the following members
Name | Description | |
---|---|---|
![]() |
InstanceProfileAWSCredentials(string) |
Constructs Amazon.Runtime.InstanceProfileAWSCredentials for the specified role. |
![]() |
InstanceProfileAWSCredentials(string, IWebProxy) |
Constructs Amazon.Runtime.InstanceProfileAWSCredentials for the specified role. |
![]() |
InstanceProfileAWSCredentials() |
Constructs Amazon.Runtime.InstanceProfileAWSCredentials for the first found role. |
![]() |
InstanceProfileAWSCredentials(IWebProxy) |
Constructs Amazon.Runtime.InstanceProfileAWSCredentials for the first found role. |
Name | Type | Description | |
---|---|---|---|
![]() |
Expiration | System.Nullable<System.DateTime> | Inherited from Amazon.Runtime.RefreshingAWSCredentials. |
![]() |
PreemptExpiryTime | System.TimeSpan | Inherited from Amazon.Runtime.RefreshingAWSCredentials. |
![]() |
Role | System.String |
Role for which the credentials are retrieved |
Name | Description | |
---|---|---|
![]() |
ClearCredentials() | Inherited from Amazon.Runtime.RefreshingAWSCredentials. |
![]() |
Dispose() | Inherited from Amazon.Runtime.RefreshingAWSCredentials. |
![]() ![]() |
GetAvailableRoles() |
Retrieves a list of all roles available through current InstanceProfile service |
![]() ![]() |
GetAvailableRoles(IWebProxy) |
Retrieves a list of all roles available through current InstanceProfile service |
![]() ![]() |
GetAvailableRolesAsync(IWebProxy) |
Retrieves a list of all roles available through current InstanceProfile service |
![]() |
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