aws-sdk-personalizeruntime 1.48.0 → 1.49.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e56333e5b95d2a8f8a99ff3f35e77b9668d916213f1374106a658fac189f93ca
4
- data.tar.gz: 893c84da47cb7a8c9b731087e033129603a1a550ec0453035e35f7d25191c6a0
3
+ metadata.gz: 6e6097c3f5dfdcf1c95736e8e3482ed92302a9525d24a266e246568136473f0d
4
+ data.tar.gz: e313368d8f7b48c5368462d008987d42a4658f06e683725ee5857efd3ce4aee2
5
5
  SHA512:
6
- metadata.gz: bb8188eefa3ea3668184e85f4b2e45e37d441d85fc9cbcc45e5220fb00c7f275b1fc640941ec4ba5a43723076446b78bf1760db2b437a269f72108e210e7de75
7
- data.tar.gz: b6da283b46a4ae2eb80beef61d298aeea43f066a0ffaa042aa41a8e27a014c22f759c59124891e2763d4adcaec555c43751b856b57330dd890797478aa22ce3b
6
+ metadata.gz: e49ec4ac3ee5f3d4b6d4aa08bf4d97c229b526524053a7d8de30906ef0e56ecc3fdbd001de7d393932590cd369bc2f051127944b42f55cad1673d8f7a73bb895
7
+ data.tar.gz: 36257dbd7c9112f49e6c59de004cadfee86e56ce5aad44a388f0746333e513325127c1fd65e1ca80445ad0ef5b844e2c195015d67771a67d8986cc6cfae08ef2
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.49.0 (2024-05-01)
5
+ ------------------
6
+
7
+ * Feature - This release adds support for a Reason attribute for predicted items generated by User-Personalization-v2.
8
+
4
9
  1.48.0 (2024-04-25)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.48.0
1
+ 1.49.0
@@ -602,6 +602,8 @@ module Aws::PersonalizeRuntime
602
602
  # resp.personalized_ranking[0].promotion_name #=> String
603
603
  # resp.personalized_ranking[0].metadata #=> Hash
604
604
  # resp.personalized_ranking[0].metadata["ColumnName"] #=> String
605
+ # resp.personalized_ranking[0].reason #=> Array
606
+ # resp.personalized_ranking[0].reason[0] #=> String
605
607
  # resp.recommendation_id #=> String
606
608
  #
607
609
  # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-runtime-2018-05-22/GetPersonalizedRanking AWS API Documentation
@@ -761,6 +763,8 @@ module Aws::PersonalizeRuntime
761
763
  # resp.item_list[0].promotion_name #=> String
762
764
  # resp.item_list[0].metadata #=> Hash
763
765
  # resp.item_list[0].metadata["ColumnName"] #=> String
766
+ # resp.item_list[0].reason #=> Array
767
+ # resp.item_list[0].reason[0] #=> String
764
768
  # resp.recommendation_id #=> String
765
769
  #
766
770
  # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-runtime-2018-05-22/GetRecommendations AWS API Documentation
@@ -785,7 +789,7 @@ module Aws::PersonalizeRuntime
785
789
  params: params,
786
790
  config: config)
787
791
  context[:gem_name] = 'aws-sdk-personalizeruntime'
788
- context[:gem_version] = '1.48.0'
792
+ context[:gem_version] = '1.49.0'
789
793
  Seahorse::Client::Request.new(handlers, context)
790
794
  end
791
795
 
@@ -46,6 +46,8 @@ module Aws::PersonalizeRuntime
46
46
  PredictedItem = Shapes::StructureShape.new(name: 'PredictedItem')
47
47
  Promotion = Shapes::StructureShape.new(name: 'Promotion')
48
48
  PromotionList = Shapes::ListShape.new(name: 'PromotionList')
49
+ Reason = Shapes::StringShape.new(name: 'Reason')
50
+ ReasonList = Shapes::ListShape.new(name: 'ReasonList')
49
51
  RecommendationID = Shapes::StringShape.new(name: 'RecommendationID')
50
52
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
51
53
  Score = Shapes::FloatShape.new(name: 'Score')
@@ -122,6 +124,7 @@ module Aws::PersonalizeRuntime
122
124
  PredictedItem.add_member(:score, Shapes::ShapeRef.new(shape: Score, location_name: "score"))
123
125
  PredictedItem.add_member(:promotion_name, Shapes::ShapeRef.new(shape: Name, location_name: "promotionName"))
124
126
  PredictedItem.add_member(:metadata, Shapes::ShapeRef.new(shape: Metadata, location_name: "metadata"))
127
+ PredictedItem.add_member(:reason, Shapes::ShapeRef.new(shape: ReasonList, location_name: "reason"))
125
128
  PredictedItem.struct_class = Types::PredictedItem
126
129
 
127
130
  Promotion.add_member(:name, Shapes::ShapeRef.new(shape: Name, location_name: "name"))
@@ -132,6 +135,8 @@ module Aws::PersonalizeRuntime
132
135
 
133
136
  PromotionList.member = Shapes::ShapeRef.new(shape: Promotion)
134
137
 
138
+ ReasonList.member = Shapes::ShapeRef.new(shape: Reason)
139
+
135
140
  ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
136
141
  ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
137
142
 
@@ -146,6 +151,7 @@ module Aws::PersonalizeRuntime
146
151
  "endpointPrefix" => "personalize-runtime",
147
152
  "jsonVersion" => "1.1",
148
153
  "protocol" => "rest-json",
154
+ "protocols" => ["rest-json"],
149
155
  "serviceFullName" => "Amazon Personalize Runtime",
150
156
  "serviceId" => "Personalize Runtime",
151
157
  "signatureVersion" => "v4",
@@ -385,14 +385,41 @@ module Aws::PersonalizeRuntime
385
385
  # Metadata about the item from your Items dataset.
386
386
  # @return [Hash<String,String>]
387
387
  #
388
+ # @!attribute [rw] reason
389
+ # If you use User-Personalization-v2, a list of reasons for why the
390
+ # item was included in recommendations. Possible reasons include the
391
+ # following:
392
+ #
393
+ # * Promoted item - Indicates the item was included as part of a
394
+ # promotion that you applied in your recommendation request.
395
+ #
396
+ # * Exploration - Indicates the item was included with exploration.
397
+ # With exploration, recommendations include items with less
398
+ # interactions data or relevance for the user. For more information
399
+ # about exploration, see [Exploration][1].
400
+ #
401
+ # * Popular item - Indicates the item was included as a placeholder
402
+ # popular item. If you use a filter, depending on how many
403
+ # recommendations the filter removes, Amazon Personalize might add
404
+ # placeholder items to meet the `numResults` for your recommendation
405
+ # request. These items are popular items, based on interactions
406
+ # data, that satisfy your filter criteria. They don't have a
407
+ # relevance score for the user.
408
+ #
409
+ #
410
+ #
411
+ # [1]: https://docs.aws.amazon.com/personalize/latest/dg/use-case-recipe-features.html#about-exploration
412
+ # @return [Array<String>]
413
+ #
388
414
  # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-runtime-2018-05-22/PredictedItem AWS API Documentation
389
415
  #
390
416
  class PredictedItem < Struct.new(
391
417
  :item_id,
392
418
  :score,
393
419
  :promotion_name,
394
- :metadata)
395
- SENSITIVE = []
420
+ :metadata,
421
+ :reason)
422
+ SENSITIVE = [:metadata]
396
423
  include Aws::Structure
397
424
  end
398
425
 
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-personalizeruntime/customizations'
52
52
  # @!group service
53
53
  module Aws::PersonalizeRuntime
54
54
 
55
- GEM_VERSION = '1.48.0'
55
+ GEM_VERSION = '1.49.0'
56
56
 
57
57
  end
data/sig/types.rbs CHANGED
@@ -76,7 +76,8 @@ module Aws::PersonalizeRuntime
76
76
  attr_accessor score: ::Float
77
77
  attr_accessor promotion_name: ::String
78
78
  attr_accessor metadata: ::Hash[::String, ::String]
79
- SENSITIVE: []
79
+ attr_accessor reason: ::Array[::String]
80
+ SENSITIVE: [:metadata]
80
81
  end
81
82
 
82
83
  class Promotion
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.48.0
4
+ version: 1.49.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: 2024-04-25 00:00:00.000000000 Z
11
+ date: 2024-05-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core