Skip to content

Set Cognito Events

cognitosync_set_cognito_events R Documentation

Sets the AWS Lambda function for a given event type for an identity pool

Description

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.

Usage

cognitosync_set_cognito_events(IdentityPoolId, Events)

Arguments

IdentityPoolId

[required] The Cognito Identity Pool to use when configuring Cognito Events

Events

[required] The events to configure

Value

An empty list.

Request syntax

svc$set_cognito_events(
  IdentityPoolId = "string",
  Events = list(
    "string"
  )
)