AWS SDK Version 2 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.

.NET Framework 3.5
 
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.dll
Version: (assembly version)

Syntax

C#
public CognitoAWSCredentials(
         String accountId,
         String identityPoolId,
         String unAuthRoleArn,
         String authRoleArn,
         IAmazonCognitoIdentity cibClient,
         IAmazonSecurityTokenService stsClient
)

Parameters

accountId
Type: System.String

The AWS accountId for the account with Amazon Cognito

identityPoolId
Type: System.String

The Amazon Cogntio identity pool to use

unAuthRoleArn
Type: System.String

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

authRoleArn
Type: System.String

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

cibClient
Type: Amazon.CognitoIdentity.IAmazonCognitoIdentity

Preconfigured Cognito Identity client to make requests with

stsClient
Type: Amazon.SecurityToken.IAmazonSecurityTokenService

>Preconfigured STS client to make requests with

Version Information

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

.NET for Windows Store apps:
Supported in: Windows 8.1, Windows 8

.NET for Windows Phone:
Supported in: Windows Phone 8.1, Windows Phone 8