Skip to content

/AWS1/CL_CGS=>SETCOGNITOEVENTS()

About SetCognitoEvents

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.

Method Signature

IMPORTING

Required arguments:

iv_identitypoolid TYPE /AWS1/CGSIDENTITYPOOLID /AWS1/CGSIDENTITYPOOLID

The Cognito Identity Pool to use when configuring Cognito Events

it_events TYPE /AWS1/CL_CGSEVENTS_W=>TT_EVENTS TT_EVENTS

The events to configure

Examples

Syntax Example

This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.

lo_client->/aws1/if_cgs~setcognitoevents(
  it_events = VALUE /aws1/cl_cgsevents_w=>tt_events(
    (
      VALUE /aws1/cl_cgsevents_w=>ts_events_maprow(
        key = |string|
        value = new /aws1/cl_cgsevents_w( |string| )
      )
    )
  )
  iv_identitypoolid = |string|
).