libZSservicesZSamazonka-personalize-eventsZSamazonka-personalize-events
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.PersonalizeEvents.PutEvents

Description

Records user interaction event data. For more information see Recording Events.

Synopsis

Creating a Request

data PutEvents Source #

See: newPutEvents smart constructor.

Constructors

PutEvents' 

Fields

  • userId :: Maybe Text

    The user associated with the event.

  • trackingId :: Text

    The tracking ID for the event. The ID is generated by a call to the CreateEventTracker API.

  • sessionId :: Text

    The session ID associated with the user's visit. Your application generates the sessionId when a user first visits your website or uses your application. Amazon Personalize uses the sessionId to associate events with the user before they log in. For more information, see Recording Events.

  • eventList :: NonEmpty Event

    A list of event data from the session.

Instances

Instances details
Eq PutEvents Source # 
Instance details

Defined in Amazonka.PersonalizeEvents.PutEvents

Read PutEvents Source # 
Instance details

Defined in Amazonka.PersonalizeEvents.PutEvents

Show PutEvents Source # 
Instance details

Defined in Amazonka.PersonalizeEvents.PutEvents

Generic PutEvents Source # 
Instance details

Defined in Amazonka.PersonalizeEvents.PutEvents

Associated Types

type Rep PutEvents :: Type -> Type #

NFData PutEvents Source # 
Instance details

Defined in Amazonka.PersonalizeEvents.PutEvents

Methods

rnf :: PutEvents -> () #

Hashable PutEvents Source # 
Instance details

Defined in Amazonka.PersonalizeEvents.PutEvents

ToJSON PutEvents Source # 
Instance details

Defined in Amazonka.PersonalizeEvents.PutEvents

AWSRequest PutEvents Source # 
Instance details

Defined in Amazonka.PersonalizeEvents.PutEvents

Associated Types

type AWSResponse PutEvents #

ToHeaders PutEvents Source # 
Instance details

Defined in Amazonka.PersonalizeEvents.PutEvents

Methods

toHeaders :: PutEvents -> [Header] #

ToPath PutEvents Source # 
Instance details

Defined in Amazonka.PersonalizeEvents.PutEvents

ToQuery PutEvents Source # 
Instance details

Defined in Amazonka.PersonalizeEvents.PutEvents

type Rep PutEvents Source # 
Instance details

Defined in Amazonka.PersonalizeEvents.PutEvents

type Rep PutEvents = D1 ('MetaData "PutEvents" "Amazonka.PersonalizeEvents.PutEvents" "libZSservicesZSamazonka-personalize-eventsZSamazonka-personalize-events" 'False) (C1 ('MetaCons "PutEvents'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "userId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "trackingId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "sessionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "eventList") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NonEmpty Event)))))
type AWSResponse PutEvents Source # 
Instance details

Defined in Amazonka.PersonalizeEvents.PutEvents

newPutEvents Source #

Create a value of PutEvents with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:userId:PutEvents', putEvents_userId - The user associated with the event.

$sel:trackingId:PutEvents', putEvents_trackingId - The tracking ID for the event. The ID is generated by a call to the CreateEventTracker API.

$sel:sessionId:PutEvents', putEvents_sessionId - The session ID associated with the user's visit. Your application generates the sessionId when a user first visits your website or uses your application. Amazon Personalize uses the sessionId to associate events with the user before they log in. For more information, see Recording Events.

$sel:eventList:PutEvents', putEvents_eventList - A list of event data from the session.

Request Lenses

putEvents_userId :: Lens' PutEvents (Maybe Text) Source #

The user associated with the event.

putEvents_trackingId :: Lens' PutEvents Text Source #

The tracking ID for the event. The ID is generated by a call to the CreateEventTracker API.

putEvents_sessionId :: Lens' PutEvents Text Source #

The session ID associated with the user's visit. Your application generates the sessionId when a user first visits your website or uses your application. Amazon Personalize uses the sessionId to associate events with the user before they log in. For more information, see Recording Events.

putEvents_eventList :: Lens' PutEvents (NonEmpty Event) Source #

A list of event data from the session.

Destructuring the Response

data PutEventsResponse Source #

See: newPutEventsResponse smart constructor.

Constructors

PutEventsResponse' 

Instances

Instances details
Eq PutEventsResponse Source # 
Instance details

Defined in Amazonka.PersonalizeEvents.PutEvents

Read PutEventsResponse Source # 
Instance details

Defined in Amazonka.PersonalizeEvents.PutEvents

Show PutEventsResponse Source # 
Instance details

Defined in Amazonka.PersonalizeEvents.PutEvents

Generic PutEventsResponse Source # 
Instance details

Defined in Amazonka.PersonalizeEvents.PutEvents

Associated Types

type Rep PutEventsResponse :: Type -> Type #

NFData PutEventsResponse Source # 
Instance details

Defined in Amazonka.PersonalizeEvents.PutEvents

Methods

rnf :: PutEventsResponse -> () #

type Rep PutEventsResponse Source # 
Instance details

Defined in Amazonka.PersonalizeEvents.PutEvents

type Rep PutEventsResponse = D1 ('MetaData "PutEventsResponse" "Amazonka.PersonalizeEvents.PutEvents" "libZSservicesZSamazonka-personalize-eventsZSamazonka-personalize-events" 'False) (C1 ('MetaCons "PutEventsResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newPutEventsResponse :: PutEventsResponse Source #

Create a value of PutEventsResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.