Skip to content

Get Id

cognitoidentity_get_id R Documentation

Generates (or retrieves) a Cognito ID

Description

Generates (or retrieves) a Cognito ID. Supplying multiple logins will create an implicit linked account.

This is a public API. You do not need any credentials to call this API.

Usage

cognitoidentity_get_id(AccountId, IdentityPoolId, Logins)

Arguments

AccountId

A standard AWS account ID (9+ digits).

IdentityPoolId

[required] An identity pool ID in the format REGION:GUID.

Logins

A set of optional name-value pairs that map provider names to provider tokens. The available provider names for Logins are as follows:

  • Facebook: graph.facebook.com

  • Amazon Cognito user pool: ⁠cognito-idp.<region>.amazonaws.com/<YOUR_USER_POOL_ID>⁠, for example, ⁠cognito-idp.us-east-1.amazonaws.com/us-east-1_123456789⁠.

  • Google: accounts.google.com

  • Amazon: www.amazon.com

  • Twitter: api.twitter.com

  • Digits: www.digits.com

Value

A list with the following syntax:

list(
  IdentityId = "string"
)

Request syntax

svc$get_id(
  AccountId = "string",
  IdentityPoolId = "string",
  Logins = list(
    "string"
  )
)