Amazon Cognito Sync

2015/04/16 - Amazon Cognito Sync - 2 new api methods

SetCognitoEvents (new) Link ¶

Sets the AWS Lambda function for a given event type for an identity pool. This request only updates the key/value pair specified. Other key/values pairs are not updated. To remove a key value pair, pass a empty value for the particular key.

Request Syntax

client.set_cognito_events(
    IdentityPoolId='string',
    Events={
        'string': 'string'
    }
)
type IdentityPoolId

string

param IdentityPoolId

[REQUIRED]

The Cognito Identity Pool to use when configuring Cognito Events

type Events

dict

param Events

[REQUIRED]

The events to configure

  • (string) --

    • (string) --

returns

None

GetCognitoEvents (new) Link ¶

Gets the events and the corresponding Lambda functions associated with an identity pool

Request Syntax

client.get_cognito_events(
    IdentityPoolId='string'
)
type IdentityPoolId

string

param IdentityPoolId

[REQUIRED]

The Cognito Identity Pool ID for the request

rtype

dict

returns

Response Syntax

{
    'Events': {
        'string': 'string'
    }
}

Response Structure

  • (dict) --

    The response from the GetCognitoEvents request

    • Events (dict) --

      The Cognito Events returned from the GetCognitoEvents request

      • (string) --

        • (string) --