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 +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-personalizeruntime/client.rb +5 -1
- data/lib/aws-sdk-personalizeruntime/client_api.rb +6 -0
- data/lib/aws-sdk-personalizeruntime/types.rb +29 -2
- data/lib/aws-sdk-personalizeruntime.rb +1 -1
- data/sig/types.rbs +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e6097c3f5dfdcf1c95736e8e3482ed92302a9525d24a266e246568136473f0d
|
4
|
+
data.tar.gz: e313368d8f7b48c5368462d008987d42a4658f06e683725ee5857efd3ce4aee2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e49ec4ac3ee5f3d4b6d4aa08bf4d97c229b526524053a7d8de30906ef0e56ecc3fdbd001de7d393932590cd369bc2f051127944b42f55cad1673d8f7a73bb895
|
7
|
+
data.tar.gz: 36257dbd7c9112f49e6c59de004cadfee86e56ce5aad44a388f0746333e513325127c1fd65e1ca80445ad0ef5b844e2c195015d67771a67d8986cc6cfae08ef2
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
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.
|
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
|
-
|
420
|
+
:metadata,
|
421
|
+
:reason)
|
422
|
+
SENSITIVE = [:metadata]
|
396
423
|
include Aws::Structure
|
397
424
|
end
|
398
425
|
|
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
|
-
|
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.
|
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-
|
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
|