CognitoSync / Client / set_cognito_events

set_cognito_events#

CognitoSync.Client.set_cognito_events(**kwargs)#

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.

This API can only be called with developer credentials. You cannot call this API with the temporary user credentials provided by Cognito Identity.

See also: AWS API Documentation

Request Syntax

response = client.set_cognito_events(
    IdentityPoolId='string',
    Events={
        'string': 'string'
    }
)
Parameters:
  • IdentityPoolId (string) –

    [REQUIRED]

    The Cognito Identity Pool to use when configuring Cognito Events

  • Events (dict) –

    [REQUIRED]

    The events to configure

    • (string) –

      • (string) –

Returns:

None

Exceptions

  • CognitoSync.Client.exceptions.InvalidParameterException

  • CognitoSync.Client.exceptions.ResourceNotFoundException

  • CognitoSync.Client.exceptions.NotAuthorizedException

  • CognitoSync.Client.exceptions.InternalErrorException

  • CognitoSync.Client.exceptions.TooManyRequestsException