AWS SDK Version 3 for .NET
API Reference

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.

Return the credentials for the profile if valid credentials can created.

Namespace: Amazon.Runtime.CredentialManagement
Assembly: AWSSDK.Core.dll
Version: 3.x.y.z

Syntax

C#
public Boolean TryGetAWSCredentials(
         CredentialProfileOptions options,
         ICredentialProfileSource profileSource,
         AWSCredentials credentials
)
Parameters
options
Type: Amazon.Runtime.CredentialManagement.CredentialProfileOptions

The options to get AWSCredentials for.

profileSource
Type: Amazon.Runtime.CredentialManagement.ICredentialProfileSource

The profile source, for profiles that reference other profiles.

credentials
Type: Amazon.Runtime.AWSCredentials

The credentials for the profile.

Return Value
Type: Boolean
True if credentials can be created from the profile, false otherwise.

Version Information

.NET Standard:
Supported in: 1.3

.NET Framework:
Supported in: 4.5, 4.0, 3.5