| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.PersonalizeEvents.Types.Item
Description
Documentation
Represents item metadata added to an Items dataset using the PutItems
API. For more information see
Importing Items Incrementally.
See: newItem smart constructor.
Constructors
| Item' | |
Fields
| |
Instances
| ToJSON Item Source # | |
Defined in Amazonka.PersonalizeEvents.Types.Item | |
| Generic Item Source # | |
| Show Item Source # | |
| NFData Item Source # | |
Defined in Amazonka.PersonalizeEvents.Types.Item | |
| Eq Item Source # | |
| Hashable Item Source # | |
Defined in Amazonka.PersonalizeEvents.Types.Item | |
| type Rep Item Source # | |
Defined in Amazonka.PersonalizeEvents.Types.Item type Rep Item = D1 ('MetaData "Item" "Amazonka.PersonalizeEvents.Types.Item" "amazonka-personalize-events-2.0-Fi47jZEjr1NizLD1LiiPl" 'False) (C1 ('MetaCons "Item'" 'PrefixI 'True) (S1 ('MetaSel ('Just "properties") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive Text))) :*: S1 ('MetaSel ('Just "itemId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))) | |
Create a value of Item 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:Item', item_properties - A string map of item-specific metadata. Each element in the map consists
of a key-value pair. For example, {"numberOfRatings": "12"}.
The keys use camel case names that match the fields in the schema for
the Items dataset. In the previous example, the numberOfRatings
matches the 'NUMBER_OF_RATINGS' field defined in the Items schema. For
categorical string data, to include multiple categories for a single
item, separate each category with a pipe separator (|). For example,
\"Horror|Action\".
$sel:itemId:Item', item_itemId - The ID associated with the item.
item_properties :: Lens' Item (Maybe Text) Source #
A string map of item-specific metadata. Each element in the map consists
of a key-value pair. For example, {"numberOfRatings": "12"}.
The keys use camel case names that match the fields in the schema for
the Items dataset. In the previous example, the numberOfRatings
matches the 'NUMBER_OF_RATINGS' field defined in the Items schema. For
categorical string data, to include multiple categories for a single
item, separate each category with a pipe separator (|). For example,
\"Horror|Action\".