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.

Constructs a new CognitoAWSCredentials instance, which will use the specified Amazon Cognito identity pool to make a requests to the AWS Security Token Service (STS) to request short lived session credentials.

Namespace: Amazon.CognitoIdentity
Assembly: AWSSDK.CognitoIdentity.dll
Version: 3.x.y.z


public CognitoAWSCredentials(
         String accountId,
         String identityPoolId,
         String unAuthRoleArn,
         String authRoleArn,
         RegionEndpoint region
Type: System.String

The AWS accountId for the account with Amazon Cognito

Type: System.String

The Amazon Cogntio identity pool to use

Type: System.String

The ARN of the IAM Role that will be assumed when unauthenticated

Type: System.String

The ARN of the IAM Role that will be assumed when authenticated

Type: Amazon.RegionEndpoint

Region to use when accessing Amazon Cognito and AWS Security Token Service.

Version Information

.NET Standard:
Supported in: 1.3

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

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms

Supported Versions: 4.6 and above
Supported Platforms: Android, iOS, Standalone