Class ImmutableCredentials
Immutable representation of AWS credentials.
public class ImmutableCredentials
- Inheritance
-
ImmutableCredentials
- Derived
- Inherited Members
Constructors
ImmutableCredentials(string, string, string)
Constructs an ImmutableCredentials object with supplied accessKey, secretKey.
public ImmutableCredentials(string awsAccessKeyId, string awsSecretAccessKey, string token)
Parameters
awsAccessKeyIdstringawsSecretAccessKeystringtokenstringOptional. Can be set to null or empty for non-session credentials.
Properties
AccessKey
Gets the AccessKey property for the current credentials.
public string AccessKey { get; }
Property Value
SecretKey
Gets the SecretKey property for the current credentials.
public string SecretKey { get; }
Property Value
Token
Gets the Token property for the current credentials.
public string Token { get; }
Property Value
UseToken
Gets the UseToken property for the current credentials. Specifies if Token property is non-empty.
public bool UseToken { get; }
Property Value
Methods
Copy()
Returns a copy of the current credentials.
public virtual ImmutableCredentials Copy()
Returns
Equals(object)
public override bool Equals(object obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()