Class CredentialProfile
- Namespace
- Amazon.Runtime.CredentialManagement
- Assembly
- AWSSDK.Core.dll
A named group of options that are persisted and used to obtain AWSCredentials.
public class CredentialProfile
- Inheritance
-
CredentialProfile
- Inherited Members
Constructors
CredentialProfile(string, CredentialProfileOptions)
Construct a new CredentialProfile.
public CredentialProfile(string name, CredentialProfileOptions profileOptions)
Parameters
name
stringprofileOptions
CredentialProfileOptions
Properties
CanCreateAWSCredentials
True if the properties of the Options object can be converted into AWSCredentials, false otherwise. See CredentialProfileOptions for more details about which options are available.
public bool CanCreateAWSCredentials { get; }
Property Value
CredentialDescription
If CanCreateAWSCredentials is true, returns a short description of the type of credentials that would be created. If CanCreateAWSCredentials is false, return null.
public string CredentialDescription { get; }
Property Value
CredentialProfileStore
The ICredentialProfileStore that this CredentialProfile is associated with. Null if this CredentialProfile is not associated with a ICredentialProfileStore.
public ICredentialProfileStore CredentialProfileStore { get; }
Property Value
EndpointDiscoveryEnabled
The endpoint discovery enabled value for this CredentialProfile
public bool? EndpointDiscoveryEnabled { get; set; }
Property Value
- bool?
MaxAttempts
Specified how many HTTP requests an SDK should make for a single SDK operation invocation before giving up.
public int? MaxAttempts { get; set; }
Property Value
- int?
Name
The name of the CredentialProfile
public string Name { get; }
Property Value
Options
The options to be used to create AWSCredentials.
public CredentialProfileOptions Options { get; }
Property Value
Region
The region to be used with this CredentialProfile
public RegionEndpoint Region { get; set; }
Property Value
RetryMode
The request retry mode as legacy, standard, or adaptive
public RequestRetryMode? RetryMode { get; set; }
Property Value
S3RegionalEndpoint
The S3 Regional Endpoint Value as either legacy or regional
public S3UsEast1RegionalEndpointValue? S3RegionalEndpoint { get; set; }
Property Value
S3UseArnRegion
If true the region identified in the S3 access point arn will be used when making requests.
public bool? S3UseArnRegion { get; set; }
Property Value
- bool?
StsRegionalEndpoints
The Sts Regional Endpoints Value as either legacy or regional
public StsRegionalEndpointsValue? StsRegionalEndpoints { get; set; }
Property Value
Methods
Equals(object)
public override bool Equals(object obj)
Parameters
obj
object
Returns
GetAWSCredentials(ICredentialProfileSource)
Gets the AWSCredentials for this profile if CanCreateAWSCredentials is true and AWSCredentials can be created. Throws an exception otherwise.
See CredentialProfileOptions for a list of AWSCredentials returned by this method.
public AWSCredentials GetAWSCredentials(ICredentialProfileSource profileSource)
Parameters
profileSource
ICredentialProfileSourceThe profile source, for profiles that reference other profiles.
Returns
- AWSCredentials
AWSCredentials for this profile.
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()