cognitoidentity_get_credentials_for_identity: Returns credentials for the provided identity ID

Description Usage Arguments Details Request syntax

View source: R/cognitoidentity_operations.R

Description

Returns credentials for the provided identity ID. Any provided logins will be validated against supported login providers. If the token is for cognito-identity.amazonaws.com, it will be passed through to AWS Security Token Service with the appropriate role for the token.

Usage

1
2
cognitoidentity_get_credentials_for_identity(IdentityId, Logins,
  CustomRoleArn)

Arguments

IdentityId

[required] A unique identifier in the format REGION:GUID.

Logins

A set of optional name-value pairs that map provider names to provider tokens. The name-value pair will follow the syntax "provider\_name": "provider\_user\_identifier".

Logins should not be specified when trying to get credentials for an unauthenticated identity.

The Logins parameter is required when using identities associated with external identity providers such as FaceBook. For examples of Logins maps, see the code examples in the External Identity Providers section of the Amazon Cognito Developer Guide.

CustomRoleArn

The Amazon Resource Name (ARN) of the role to be assumed when multiple roles were received in the token from the identity provider. For example, a SAML-based identity provider. This parameter is optional for identity providers that do not support role customization.

Details

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

Request syntax

1
2
3
4
5
6
7
svc$get_credentials_for_identity(
  IdentityId = "string",
  Logins = list(
    "string"
  ),
  CustomRoleArn = "string"
)

paws.security.identity documentation built on Oct. 30, 2019, 11:26 a.m.