C# Class Amazon.Runtime.InstanceProfileAWSCredentials

Credentials that are retrieved from the Instance Profile service on an EC2 instance
Inheritance: RefreshingAWSCredentials
Show file Open project: scopely/aws-sdk-net Class Usage Examples

Private Properties

Property Type Description
GetContents string
GetEarlyRefreshState CredentialsRefreshState
GetFirstRole string
GetRefreshState CredentialsRefreshState
GetRoleCredentials SecurityCredentials
GetServiceInfo SecurityInfo
ValidateResponse void

Public Methods

Method Description
GetAvailableRoles ( ) : IEnumerable

Retrieves a list of all roles available through current InstanceProfile service

InstanceProfileAWSCredentials ( ) : System

Constructs a InstanceProfileAWSCredentials object for the first found role

InstanceProfileAWSCredentials ( string role ) : System

Constructs a InstanceProfileAWSCredentials object for specific role

Protected Methods

Method Description
GenerateNewCredentials ( ) : CredentialsRefreshState

Private Methods

Method Description
GetContents ( Uri uri ) : string
GetEarlyRefreshState ( CredentialsRefreshState state ) : CredentialsRefreshState
GetFirstRole ( ) : string
GetRefreshState ( ) : CredentialsRefreshState
GetRoleCredentials ( ) : SecurityCredentials
GetServiceInfo ( ) : SecurityInfo
ValidateResponse ( SecurityBase response ) : void

Method Details

GenerateNewCredentials() protected method

protected GenerateNewCredentials ( ) : CredentialsRefreshState
return CredentialsRefreshState

GetAvailableRoles() public static method

Retrieves a list of all roles available through current InstanceProfile service
public static GetAvailableRoles ( ) : IEnumerable
return IEnumerable

InstanceProfileAWSCredentials() public method

Constructs a InstanceProfileAWSCredentials object for the first found role
public InstanceProfileAWSCredentials ( ) : System
return System

InstanceProfileAWSCredentials() public method

Constructs a InstanceProfileAWSCredentials object for specific role
public InstanceProfileAWSCredentials ( string role ) : System
role string Role to use
return System