Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Documentation
Represents user metadata added to a Users dataset using the PutUsers
API. For more information see
Importing Users Incrementally.
See: newUser
smart constructor.
User' | |
|
Instances
Eq User Source # | |
Read User Source # | |
Show User Source # | |
Generic User Source # | |
NFData User Source # | |
Defined in Amazonka.PersonalizeEvents.Types.User | |
Hashable User Source # | |
Defined in Amazonka.PersonalizeEvents.Types.User | |
ToJSON User Source # | |
Defined in Amazonka.PersonalizeEvents.Types.User | |
type Rep User Source # | |
Defined in Amazonka.PersonalizeEvents.Types.User type Rep User = D1 ('MetaData "User" "Amazonka.PersonalizeEvents.Types.User" "libZSservicesZSamazonka-personalize-eventsZSamazonka-personalize-events" 'False) (C1 ('MetaCons "User'" 'PrefixI 'True) (S1 ('MetaSel ('Just "properties") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "userId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))) |
Create a value of User
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:properties:User'
, user_properties
- A string map of user-specific metadata. Each element in the map consists
of a key-value pair. For example, {"numberOfVideosWatched": "45"}
.
The keys use camel case names that match the fields in the schema for
the Users dataset. In the previous example, the numberOfVideosWatched
matches the 'NUMBER_OF_VIDEOS_WATCHED' field defined in the Users
schema. For categorical string data, to include multiple categories for
a single user, separate each category with a pipe separator (|
). For
example, \"Member|Frequent shopper\"
.
$sel:userId:User'
, user_userId
- The ID associated with the user.
user_properties :: Lens' User (Maybe Text) Source #
A string map of user-specific metadata. Each element in the map consists
of a key-value pair. For example, {"numberOfVideosWatched": "45"}
.
The keys use camel case names that match the fields in the schema for
the Users dataset. In the previous example, the numberOfVideosWatched
matches the 'NUMBER_OF_VIDEOS_WATCHED' field defined in the Users
schema. For categorical string data, to include multiple categories for
a single user, separate each category with a pipe separator (|
). For
example, \"Member|Frequent shopper\"
.