aws-sdk-personalizeruntime 1.32.0 → 1.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0306afef0845388d9b7fa0bd70b89dcf35739cb28ea75ab0fa011d6868050448
4
- data.tar.gz: b24d006502f4660bf554e5d4642a5529b7bbed13927afbedd4e02504437ddf0f
3
+ metadata.gz: 5e4bb1cbe03b3cfb6f7f223f4fc588c8cd1f55fcf012c44c6264a870ede23ef2
4
+ data.tar.gz: 459b7560a0edd5f32276999de072f1417e45131206bb615c0a582ea2b482b8b9
5
5
  SHA512:
6
- metadata.gz: 4618e904d653cd82d7c267b8b5fd6bdd33f9918290fd0573670e4eac4d8db12ff54259e844f13d6b85bfee24152591271e12b7bcfbf883e088384e42ba29c00f
7
- data.tar.gz: 8bb5cb3a65216058018f7b8fe353e8b8a2ab10e85ef361e5d7ec65f4c465955714c79a51fd882d834bd09bd8eb4eeba61fa0842348823be16e2f92b58a5cc06f
6
+ metadata.gz: dd13d6860a764f1614619a10350d032176cb3a8ceab9ad617213520a950c2f529f47a721b03388782046c12191e9648fe3a2aa1543607350f208729e449a5f6d
7
+ data.tar.gz: be2fe5623922d14430c3863bdb518938f1aa2015bf090c6ccca320415a4f92273f2b97a042537cfa16221b0b3813f9202e2d22379a7024a1bf5dcd674c7e38e4
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.33.0 (2022-08-12)
5
+ ------------------
6
+
7
+ * Feature - This release provides support for promotions in AWS Personalize runtime.
8
+
4
9
  1.32.0 (2022-02-24)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.32.0
1
+ 1.33.0
@@ -432,6 +432,7 @@ module Aws::PersonalizeRuntime
432
432
  # resp.personalized_ranking #=> Array
433
433
  # resp.personalized_ranking[0].item_id #=> String
434
434
  # resp.personalized_ranking[0].score #=> Float
435
+ # resp.personalized_ranking[0].promotion_name #=> String
435
436
  # resp.recommendation_id #=> String
436
437
  #
437
438
  # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-runtime-2018-05-22/GetPersonalizedRanking AWS API Documentation
@@ -513,7 +514,8 @@ module Aws::PersonalizeRuntime
513
514
  # Amazon Personalize doesn't use that portion of the expression to
514
515
  # filter recommendations.
515
516
  #
516
- # For more information, see [Filtering Recommendations][1].
517
+ # For more information, see [Filtering recommendations and user
518
+ # segments][1].
517
519
  #
518
520
  #
519
521
  #
@@ -524,6 +526,11 @@ module Aws::PersonalizeRuntime
524
526
  # recommendations. Provide a recommender ARN if you created a Domain
525
527
  # dataset group with a recommender for a domain use case.
526
528
  #
529
+ # @option params [Array<Types::Promotion>] :promotions
530
+ # The promotions to apply to the recommendation request. A promotion
531
+ # defines additional business rules that apply to a configurable subset
532
+ # of recommended items.
533
+ #
527
534
  # @return [Types::GetRecommendationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
528
535
  #
529
536
  # * {Types::GetRecommendationsResponse#item_list #item_list} => Array&lt;Types::PredictedItem&gt;
@@ -544,6 +551,16 @@ module Aws::PersonalizeRuntime
544
551
  # "FilterAttributeName" => "FilterAttributeValue",
545
552
  # },
546
553
  # recommender_arn: "Arn",
554
+ # promotions: [
555
+ # {
556
+ # name: "Name",
557
+ # percent_promoted_items: 1,
558
+ # filter_arn: "Arn",
559
+ # filter_values: {
560
+ # "FilterAttributeName" => "FilterAttributeValue",
561
+ # },
562
+ # },
563
+ # ],
547
564
  # })
548
565
  #
549
566
  # @example Response structure
@@ -551,6 +568,7 @@ module Aws::PersonalizeRuntime
551
568
  # resp.item_list #=> Array
552
569
  # resp.item_list[0].item_id #=> String
553
570
  # resp.item_list[0].score #=> Float
571
+ # resp.item_list[0].promotion_name #=> String
554
572
  # resp.recommendation_id #=> String
555
573
  #
556
574
  # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-runtime-2018-05-22/GetRecommendations AWS API Documentation
@@ -575,7 +593,7 @@ module Aws::PersonalizeRuntime
575
593
  params: params,
576
594
  config: config)
577
595
  context[:gem_name] = 'aws-sdk-personalizeruntime'
578
- context[:gem_version] = '1.32.0'
596
+ context[:gem_version] = '1.33.0'
579
597
  Seahorse::Client::Request.new(handlers, context)
580
598
  end
581
599
 
@@ -29,8 +29,12 @@ module Aws::PersonalizeRuntime
29
29
  InvalidInputException = Shapes::StructureShape.new(name: 'InvalidInputException')
30
30
  ItemID = Shapes::StringShape.new(name: 'ItemID')
31
31
  ItemList = Shapes::ListShape.new(name: 'ItemList')
32
+ Name = Shapes::StringShape.new(name: 'Name')
32
33
  NumResults = Shapes::IntegerShape.new(name: 'NumResults')
34
+ PercentPromotedItems = Shapes::IntegerShape.new(name: 'PercentPromotedItems')
33
35
  PredictedItem = Shapes::StructureShape.new(name: 'PredictedItem')
36
+ Promotion = Shapes::StructureShape.new(name: 'Promotion')
37
+ PromotionList = Shapes::ListShape.new(name: 'PromotionList')
34
38
  RecommendationID = Shapes::StringShape.new(name: 'RecommendationID')
35
39
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
36
40
  Score = Shapes::FloatShape.new(name: 'Score')
@@ -62,6 +66,7 @@ module Aws::PersonalizeRuntime
62
66
  GetRecommendationsRequest.add_member(:filter_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "filterArn"))
63
67
  GetRecommendationsRequest.add_member(:filter_values, Shapes::ShapeRef.new(shape: FilterValues, location_name: "filterValues"))
64
68
  GetRecommendationsRequest.add_member(:recommender_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "recommenderArn"))
69
+ GetRecommendationsRequest.add_member(:promotions, Shapes::ShapeRef.new(shape: PromotionList, location_name: "promotions"))
65
70
  GetRecommendationsRequest.struct_class = Types::GetRecommendationsRequest
66
71
 
67
72
  GetRecommendationsResponse.add_member(:item_list, Shapes::ShapeRef.new(shape: ItemList, location_name: "itemList"))
@@ -77,8 +82,17 @@ module Aws::PersonalizeRuntime
77
82
 
78
83
  PredictedItem.add_member(:item_id, Shapes::ShapeRef.new(shape: ItemID, location_name: "itemId"))
79
84
  PredictedItem.add_member(:score, Shapes::ShapeRef.new(shape: Score, location_name: "score"))
85
+ PredictedItem.add_member(:promotion_name, Shapes::ShapeRef.new(shape: Name, location_name: "promotionName"))
80
86
  PredictedItem.struct_class = Types::PredictedItem
81
87
 
88
+ Promotion.add_member(:name, Shapes::ShapeRef.new(shape: Name, location_name: "name"))
89
+ Promotion.add_member(:percent_promoted_items, Shapes::ShapeRef.new(shape: PercentPromotedItems, location_name: "percentPromotedItems"))
90
+ Promotion.add_member(:filter_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "filterArn"))
91
+ Promotion.add_member(:filter_values, Shapes::ShapeRef.new(shape: FilterValues, location_name: "filterValues"))
92
+ Promotion.struct_class = Types::Promotion
93
+
94
+ PromotionList.member = Shapes::ShapeRef.new(shape: Promotion)
95
+
82
96
  ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
83
97
  ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
84
98
 
@@ -127,6 +127,16 @@ module Aws::PersonalizeRuntime
127
127
  # "FilterAttributeName" => "FilterAttributeValue",
128
128
  # },
129
129
  # recommender_arn: "Arn",
130
+ # promotions: [
131
+ # {
132
+ # name: "Name",
133
+ # percent_promoted_items: 1,
134
+ # filter_arn: "Arn",
135
+ # filter_values: {
136
+ # "FilterAttributeName" => "FilterAttributeValue",
137
+ # },
138
+ # },
139
+ # ],
130
140
  # }
131
141
  #
132
142
  # @!attribute [rw] campaign_arn
@@ -183,7 +193,8 @@ module Aws::PersonalizeRuntime
183
193
  # `filter-values`.In this case, Amazon Personalize doesn't use that
184
194
  # portion of the expression to filter recommendations.
185
195
  #
186
- # For more information, see [Filtering Recommendations][1].
196
+ # For more information, see [Filtering recommendations and user
197
+ # segments][1].
187
198
  #
188
199
  #
189
200
  #
@@ -196,6 +207,12 @@ module Aws::PersonalizeRuntime
196
207
  # dataset group with a recommender for a domain use case.
197
208
  # @return [String]
198
209
  #
210
+ # @!attribute [rw] promotions
211
+ # The promotions to apply to the recommendation request. A promotion
212
+ # defines additional business rules that apply to a configurable
213
+ # subset of recommended items.
214
+ # @return [Array<Types::Promotion>]
215
+ #
199
216
  # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-runtime-2018-05-22/GetRecommendationsRequest AWS API Documentation
200
217
  #
201
218
  class GetRecommendationsRequest < Struct.new(
@@ -206,7 +223,8 @@ module Aws::PersonalizeRuntime
206
223
  :context,
207
224
  :filter_arn,
208
225
  :filter_values,
209
- :recommender_arn)
226
+ :recommender_arn,
227
+ :promotions)
210
228
  SENSITIVE = []
211
229
  include Aws::Structure
212
230
  end
@@ -256,11 +274,83 @@ module Aws::PersonalizeRuntime
256
274
  # logic, see how-scores-work.
257
275
  # @return [Float]
258
276
  #
277
+ # @!attribute [rw] promotion_name
278
+ # The name of the promotion that included the predicted item.
279
+ # @return [String]
280
+ #
259
281
  # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-runtime-2018-05-22/PredictedItem AWS API Documentation
260
282
  #
261
283
  class PredictedItem < Struct.new(
262
284
  :item_id,
263
- :score)
285
+ :score,
286
+ :promotion_name)
287
+ SENSITIVE = []
288
+ include Aws::Structure
289
+ end
290
+
291
+ # Contains information on a promotion. A promotion defines additional
292
+ # business rules that apply to a configurable subset of recommended
293
+ # items.
294
+ #
295
+ # @note When making an API call, you may pass Promotion
296
+ # data as a hash:
297
+ #
298
+ # {
299
+ # name: "Name",
300
+ # percent_promoted_items: 1,
301
+ # filter_arn: "Arn",
302
+ # filter_values: {
303
+ # "FilterAttributeName" => "FilterAttributeValue",
304
+ # },
305
+ # }
306
+ #
307
+ # @!attribute [rw] name
308
+ # The name of the promotion.
309
+ # @return [String]
310
+ #
311
+ # @!attribute [rw] percent_promoted_items
312
+ # The percentage of recommended items to apply the promotion to.
313
+ # @return [Integer]
314
+ #
315
+ # @!attribute [rw] filter_arn
316
+ # The Amazon Resource Name (ARN) of the filter used by the promotion.
317
+ # This filter defines the criteria for promoted items. For more
318
+ # information, see [Promotion filters][1].
319
+ #
320
+ #
321
+ #
322
+ # [1]: https://docs.aws.amazon.com/personalize/latest/dg/promoting-items.html#promotion-filters
323
+ # @return [String]
324
+ #
325
+ # @!attribute [rw] filter_values
326
+ # The values to use when promoting items. For each placeholder
327
+ # parameter in your promotion's filter expression, provide the
328
+ # parameter name (in matching case) as a key and the filter value(s)
329
+ # as the corresponding value. Separate multiple values for one
330
+ # parameter with a comma.
331
+ #
332
+ # For filter expressions that use an `INCLUDE` element to include
333
+ # items, you must provide values for all parameters that are defined
334
+ # in the expression. For filters with expressions that use an
335
+ # `EXCLUDE` element to exclude items, you can omit the
336
+ # `filter-values`. In this case, Amazon Personalize doesn't use that
337
+ # portion of the expression to filter recommendations.
338
+ #
339
+ # For more information on creating filters, see [Filtering
340
+ # recommendations and user segments][1].
341
+ #
342
+ #
343
+ #
344
+ # [1]: https://docs.aws.amazon.com/personalize/latest/dg/filter.html
345
+ # @return [Hash<String,String>]
346
+ #
347
+ # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-runtime-2018-05-22/Promotion AWS API Documentation
348
+ #
349
+ class Promotion < Struct.new(
350
+ :name,
351
+ :percent_promoted_items,
352
+ :filter_arn,
353
+ :filter_values)
264
354
  SENSITIVE = []
265
355
  include Aws::Structure
266
356
  end
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-personalizeruntime/customizations'
48
48
  # @!group service
49
49
  module Aws::PersonalizeRuntime
50
50
 
51
- GEM_VERSION = '1.32.0'
51
+ GEM_VERSION = '1.33.0'
52
52
 
53
53
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-personalizeruntime
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.32.0
4
+ version: 1.33.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-24 00:00:00.000000000 Z
11
+ date: 2022-08-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core