Skip to content

Commit 8aa4bf4

Browse files
author
AWS
committed
Amazon Personalize Events Update: This release provides support for creation and use of metric attributions in AWS Personalize
1 parent 8026fab commit 8aa4bf4

File tree

3 files changed

+43
-11
lines changed

3 files changed

+43
-11
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "Amazon Personalize Events",
4+
"contributor": "",
5+
"description": "This release provides support for creation and use of metric attributions in AWS Personalize"
6+
}

services/personalizeevents/src/main/resources/codegen-resources/endpoint-tests.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
},
1010
"params": {
1111
"UseDualStack": false,
12-
"Region": "us-east-1",
1312
"UseFIPS": false,
13+
"Region": "us-east-1",
1414
"Endpoint": "https://example.com"
1515
}
1616
},
@@ -21,8 +21,8 @@
2121
},
2222
"params": {
2323
"UseDualStack": false,
24-
"Region": "us-east-1",
2524
"UseFIPS": true,
25+
"Region": "us-east-1",
2626
"Endpoint": "https://example.com"
2727
}
2828
},
@@ -33,8 +33,8 @@
3333
},
3434
"params": {
3535
"UseDualStack": true,
36-
"Region": "us-east-1",
3736
"UseFIPS": false,
37+
"Region": "us-east-1",
3838
"Endpoint": "https://example.com"
3939
}
4040
}

services/personalizeevents/src/main/resources/codegen-resources/service-2.json

Lines changed: 34 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,24 @@
9595
},
9696
"recommendationId":{
9797
"shape":"RecommendationId",
98-
"documentation":"<p>The ID of the recommendation.</p>"
98+
"documentation":"<p>The ID of the list of recommendations that contains the item the user interacted with. Provide a <code>recommendationId</code> to have Amazon Personalize implicitly record the recommendations you show your user as impressions data. Or provide a <code>recommendationId</code> if you use a metric attribution to measure the impact of recommendations. </p> <p> For more information on recording impressions data, see <a href=\"https://docs.aws.amazon.com/personalize/latest/dg/recording-events.html#putevents-including-impressions-data\">Recording impressions data</a>. For more information on creating a metric attribution see <a href=\"https://docs.aws.amazon.com/personalize/latest/dg/measuring-recommendation-impact.html\">Measuring impact of recommendations</a>. </p>"
9999
},
100100
"impression":{
101101
"shape":"Impression",
102-
"documentation":"<p>A list of item IDs that represents the sequence of items you have shown the user. For example, <code>[\"itemId1\", \"itemId2\", \"itemId3\"]</code>.</p>"
102+
"documentation":"<p>A list of item IDs that represents the sequence of items you have shown the user. For example, <code>[\"itemId1\", \"itemId2\", \"itemId3\"]</code>. Provide a list of items to manually record impressions data for an event. For more information on recording impressions data, see <a href=\"https://docs.aws.amazon.com/personalize/latest/dg/recording-events.html#putevents-including-impressions-data\">Recording impressions data</a>. </p>"
103+
},
104+
"metricAttribution":{
105+
"shape":"MetricAttribution",
106+
"documentation":"<p>Contains information about the metric attribution associated with an event. For more information about metric attributions, see <a href=\"https://docs.aws.amazon.com/personalize/latest/dg/measuring-recommendation-impact.html\">Measuring impact of recommendations</a>.</p>"
103107
}
104108
},
105-
"documentation":"<p>Represents user interaction event information sent using the <code>PutEvents</code> API.</p>"
109+
"documentation":"<p>Represents user interaction event information sent using the <code>PutEvents</code> API.</p>",
110+
"sensitive":true
111+
},
112+
"EventAttributionSource":{
113+
"type":"string",
114+
"max":1024,
115+
"pattern":"^[\\x20-\\x7E]*[\\x21-\\x7E]+[\\x20-\\x7E]*$"
106116
},
107117
"EventList":{
108118
"type":"list",
@@ -113,7 +123,8 @@
113123
"EventPropertiesJSON":{
114124
"type":"string",
115125
"max":1024,
116-
"min":1
126+
"min":1,
127+
"sensitive":true
117128
},
118129
"FloatType":{"type":"float"},
119130
"Impression":{
@@ -150,7 +161,8 @@
150161
"ItemId":{
151162
"type":"string",
152163
"max":256,
153-
"min":1
164+
"min":1,
165+
"sensitive":true
154166
},
155167
"ItemList":{
156168
"type":"list",
@@ -161,7 +173,19 @@
161173
"ItemProperties":{
162174
"type":"string",
163175
"max":24262,
164-
"min":1
176+
"min":1,
177+
"sensitive":true
178+
},
179+
"MetricAttribution":{
180+
"type":"structure",
181+
"required":["eventAttributionSource"],
182+
"members":{
183+
"eventAttributionSource":{
184+
"shape":"EventAttributionSource",
185+
"documentation":"<p>The source of the event, such as a third party.</p>"
186+
}
187+
},
188+
"documentation":"<p>Contains information about a metric attribution associated with an event. For more information about metric attributions, see <a href=\"https://docs.aws.amazon.com/personalize/latest/dg/measuring-recommendation-impact.html\">Measuring impact of recommendations</a>.</p>"
165189
},
166190
"PutEventsRequest":{
167191
"type":"structure",
@@ -270,7 +294,8 @@
270294
"UserId":{
271295
"type":"string",
272296
"max":256,
273-
"min":1
297+
"min":1,
298+
"sensitive":true
274299
},
275300
"UserList":{
276301
"type":"list",
@@ -281,7 +306,8 @@
281306
"UserProperties":{
282307
"type":"string",
283308
"max":4096,
284-
"min":1
309+
"min":1,
310+
"sensitive":true
285311
}
286312
},
287313
"documentation":"<p>Amazon Personalize can consume real-time user event data, such as <i>stream</i> or <i>click</i> data, and use it for model training either alone or combined with historical data. For more information see <a href=\"https://docs.aws.amazon.com/personalize/latest/dg/recording-events.html\">Recording Events</a>.</p>"

0 commit comments

Comments
 (0)