• Record one analytic event and send it to Personalize. Events will be buffered and periodically sent to Amazon Personalize.

    For more examples, you can refer to the API usage guidance.

    Parameters

    Returns void

    void

    Throws

    validation: AnalyticsValidationErrorCode - Thrown when the provided parameters or library configuration is incorrect.

    Example

    // Record an `Identify` event to Personalize.
    record({
    eventType: "Identify",
    properties: {
    userId: "<USER_ID>"
    }
    });