Class: AWSCredentials

AWSCredentials

new AWSCredentials()

Source:

Methods

AWSCredentialsProvider(AWSCognitoIdentity)

AWSCredentialsProvider call to get temporary AccessKeyId, SecretKey, and SessionToken from AWSCognitoIdentity returns: {AWSCognitoCredentials >}
Parameters:
Name Type Description
AWSCognitoIdentity
Source:

AWSIdentityProvider(authoritativeProperty)

AWSIdentityProvider call to get temporary Cognito IdentityId and Token returns: {AWSCognitoIdentity }
Parameters:
Name Type Description
authoritativeProperty
Source:

GetAuthorization(authoritativeProperty)

Function returns a AWSCognitoIdentity and AWSCognitoCredentials object Both are needed to assume AWS.Credentials returns: {AWSCognitoIdentity, AWSCognitoCredentials}
Parameters:
Name Type Description
authoritativeProperty
Source:

healthRequest() → {HTTPResponse}

Does a health check on AWSCognito via GET /ping HTTP/1.1
Source:
Returns:
Type
HTTPResponse

listIdentities(results, token) → {array}

ListIdentities call to list Identities in Identity Pool
Parameters:
Name Type Default Description
results 10 amount of Identities to list
token null NextToken to continue listing identities
Source:
Returns:
Type
array

AWSCredentials

(non-null) new AWSCredentials(options)

options required for communication with AWS Cognito
Parameters:
Name Type Description
options
Properties:
Name Type Description
region string AWS Region of operation
IdentityPoolId string "{region}:{IdentityPoolId UUID}"
DeveloperName string "com.developer.name" for Developer provider name
TokenDuration number Amount of time the session token should last
Source:

Methods

AWSCredentialsProvider(AWSCognitoIdentity)

AWSCredentialsProvider call to get temporary AccessKeyId, SecretKey, and SessionToken from AWSCognitoIdentity returns: {AWSCognitoCredentials >}
Parameters:
Name Type Description
AWSCognitoIdentity
Source:

AWSIdentityProvider(authoritativeProperty)

AWSIdentityProvider call to get temporary Cognito IdentityId and Token returns: {AWSCognitoIdentity }
Parameters:
Name Type Description
authoritativeProperty
Source:

GetAuthorization(authoritativeProperty)

Function returns a AWSCognitoIdentity and AWSCognitoCredentials object Both are needed to assume AWS.Credentials returns: {AWSCognitoIdentity, AWSCognitoCredentials}
Parameters:
Name Type Description
authoritativeProperty
Source:

healthRequest() → {HTTPResponse}

Does a health check on AWSCognito via GET /ping HTTP/1.1
Source:
Returns:
Type
HTTPResponse

listIdentities(results, token) → {array}

ListIdentities call to list Identities in Identity Pool
Parameters:
Name Type Default Description
results 10 amount of Identities to list
token null NextToken to continue listing identities
Source:
Returns:
Type
array

Documentation generated by JSDoc 3.4.3 on Thu May 04 2017 09:19:44 GMT-0400 (EDT)