Skip to content

Commit 11e8294

Browse files
author
AWS
committed
Amazon Personalize Runtime Update: This release provides support for promotions in AWS Personalize runtime.
1 parent 530b5c6 commit 11e8294

File tree

2 files changed

+53
-1
lines changed

2 files changed

+53
-1
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 Runtime",
4+
"contributor": "",
5+
"description": "This release provides support for promotions in AWS Personalize runtime."
6+
}

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

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,11 +158,15 @@
158158
},
159159
"filterValues":{
160160
"shape":"FilterValues",
161-
"documentation":"<p>The values to use when filtering recommendations. For each placeholder parameter in your filter expression, provide the parameter name (in matching case) as a key and the filter value(s) as the corresponding value. Separate multiple values for one parameter with a comma. </p> <p>For filter expressions that use an <code>INCLUDE</code> element to include items, you must provide values for all parameters that are defined in the expression. For filters with expressions that use an <code>EXCLUDE</code> element to exclude items, you can omit the <code>filter-values</code>.In this case, Amazon Personalize doesn't use that portion of the expression to filter recommendations.</p> <p>For more information, see <a href=\"https://docs.aws.amazon.com/personalize/latest/dg/filter.html\">Filtering Recommendations</a>.</p>"
161+
"documentation":"<p>The values to use when filtering recommendations. For each placeholder parameter in your filter expression, provide the parameter name (in matching case) as a key and the filter value(s) as the corresponding value. Separate multiple values for one parameter with a comma. </p> <p>For filter expressions that use an <code>INCLUDE</code> element to include items, you must provide values for all parameters that are defined in the expression. For filters with expressions that use an <code>EXCLUDE</code> element to exclude items, you can omit the <code>filter-values</code>.In this case, Amazon Personalize doesn't use that portion of the expression to filter recommendations.</p> <p>For more information, see <a href=\"https://docs.aws.amazon.com/personalize/latest/dg/filter.html\">Filtering recommendations and user segments</a>.</p>"
162162
},
163163
"recommenderArn":{
164164
"shape":"Arn",
165165
"documentation":"<p>The Amazon Resource Name (ARN) of the recommender to use to get recommendations. Provide a recommender ARN if you created a Domain dataset group with a recommender for a domain use case.</p>"
166+
},
167+
"promotions":{
168+
"shape":"PromotionList",
169+
"documentation":"<p>The promotions to apply to the recommendation request. A promotion defines additional business rules that apply to a configurable subset of recommended items.</p>"
166170
}
167171
}
168172
},
@@ -200,10 +204,21 @@
200204
"type":"list",
201205
"member":{"shape":"PredictedItem"}
202206
},
207+
"Name":{
208+
"type":"string",
209+
"max":63,
210+
"min":1,
211+
"pattern":"^[a-zA-Z0-9][a-zA-Z0-9\\-_]*"
212+
},
203213
"NumResults":{
204214
"type":"integer",
205215
"min":0
206216
},
217+
"PercentPromotedItems":{
218+
"type":"integer",
219+
"max":100,
220+
"min":1
221+
},
207222
"PredictedItem":{
208223
"type":"structure",
209224
"members":{
@@ -214,10 +229,41 @@
214229
"score":{
215230
"shape":"Score",
216231
"documentation":"<p>A numeric representation of the model's certainty that the item will be the next user selection. For more information on scoring logic, see <a>how-scores-work</a>.</p>"
232+
},
233+
"promotionName":{
234+
"shape":"Name",
235+
"documentation":"<p>The name of the promotion that included the predicted item.</p>"
217236
}
218237
},
219238
"documentation":"<p>An object that identifies an item.</p> <p>The and APIs return a list of <code>PredictedItem</code>s.</p>"
220239
},
240+
"Promotion":{
241+
"type":"structure",
242+
"members":{
243+
"name":{
244+
"shape":"Name",
245+
"documentation":"<p>The name of the promotion.</p>"
246+
},
247+
"percentPromotedItems":{
248+
"shape":"PercentPromotedItems",
249+
"documentation":"<p>The percentage of recommended items to apply the promotion to.</p>"
250+
},
251+
"filterArn":{
252+
"shape":"Arn",
253+
"documentation":"<p>The Amazon Resource Name (ARN) of the filter used by the promotion. This filter defines the criteria for promoted items. For more information, see <a href=\"https://docs.aws.amazon.com/personalize/latest/dg/promoting-items.html#promotion-filters\">Promotion filters</a>.</p>"
254+
},
255+
"filterValues":{
256+
"shape":"FilterValues",
257+
"documentation":"<p>The values to use when promoting items. For each placeholder parameter in your promotion's filter expression, provide the parameter name (in matching case) as a key and the filter value(s) as the corresponding value. Separate multiple values for one parameter with a comma. </p> <p>For filter expressions that use an <code>INCLUDE</code> element to include items, you must provide values for all parameters that are defined in the expression. For filters with expressions that use an <code>EXCLUDE</code> element to exclude items, you can omit the <code>filter-values</code>. In this case, Amazon Personalize doesn't use that portion of the expression to filter recommendations.</p> <p>For more information on creating filters, see <a href=\"https://docs.aws.amazon.com/personalize/latest/dg/filter.html\">Filtering recommendations and user segments</a>.</p>"
258+
}
259+
},
260+
"documentation":"<p>Contains information on a promotion. A promotion defines additional business rules that apply to a configurable subset of recommended items.</p>"
261+
},
262+
"PromotionList":{
263+
"type":"list",
264+
"member":{"shape":"Promotion"},
265+
"max":1
266+
},
221267
"RecommendationID":{"type":"string"},
222268
"ResourceNotFoundException":{
223269
"type":"structure",

0 commit comments

Comments
 (0)