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 item metadata added to an Items dataset using the PutItems
API. For more information see
Importing Items Incrementally.
See: newItem
smart constructor.
Item' | |
|
Instances
Eq Item Source # | |
Read Item Source # | |
Show Item Source # | |
Generic Item Source # | |
NFData Item Source # | |
Defined in Amazonka.PersonalizeEvents.Types.Item | |
Hashable Item Source # | |
Defined in Amazonka.PersonalizeEvents.Types.Item | |
ToJSON 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" "libZSservicesZSamazonka-personalize-eventsZSamazonka-personalize-events" 'False) (C1 ('MetaCons "Item'" 'PrefixI 'True) (S1 ('MetaSel ('Just "properties") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe 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\"
.