aws-sdk-personalizeruntime 1.27.0 → 1.28.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 +24 -8
- data/lib/aws-sdk-personalizeruntime/client_api.rb +2 -1
- data/lib/aws-sdk-personalizeruntime/types.rb +11 -3
- data/lib/aws-sdk-personalizeruntime.rb +1 -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: c1ff0e79035ce7cd754ad93d085afa19a58e5df26876fe9ba8b81db9f310798e
|
4
|
+
data.tar.gz: 3efd4c5807b810f0ff4597ac215c04539587e5203e6cd3bb74793933e8e88217
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e218678d0636afa2b7270d36bc43f857bcc0ab0e264f9a3d44c421248c609935b5747482628d28848b33b3fe509ee15e68934bc79d1b6b22be1fb175bc668ea
|
7
|
+
data.tar.gz: 24b40e8ca0c8ec71d4a31a814e390284a3e3517d78dfc7943b99afebd7401210c53740e9d76a70f934bef8e6d9b7c540ebc91553a570711521807a30cd5b3981
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.28.0
|
@@ -428,20 +428,30 @@ module Aws::PersonalizeRuntime
|
|
428
428
|
req.send_request(options)
|
429
429
|
end
|
430
430
|
|
431
|
-
# Returns a list of recommended items.
|
432
|
-
#
|
433
|
-
#
|
431
|
+
# Returns a list of recommended items. For campaigns, the campaign's
|
432
|
+
# Amazon Resource Name (ARN) is required and the required user and item
|
433
|
+
# input depends on the recipe type used to create the solution backing
|
434
|
+
# the campaign as follows:
|
434
435
|
#
|
435
|
-
# *
|
436
|
+
# * USER\_PERSONALIZATION - `userId` required, `itemId` not used
|
436
437
|
#
|
437
|
-
# *
|
438
|
+
# * RELATED\_ITEMS - `itemId` required, `userId` not used
|
438
439
|
#
|
439
440
|
# <note markdown="1"> Campaigns that are backed by a solution created using a recipe of type
|
440
441
|
# PERSONALIZED\_RANKING use the API.
|
441
442
|
#
|
442
443
|
# </note>
|
443
444
|
#
|
444
|
-
#
|
445
|
+
# For recommenders, the recommender's ARN is required and the required
|
446
|
+
# item and user input depends on the use case (domain-based recipe)
|
447
|
+
# backing the recommender. For information on use case requirements see
|
448
|
+
# [Choosing recommender use cases][1].
|
449
|
+
#
|
450
|
+
#
|
451
|
+
#
|
452
|
+
# [1]: https://docs.aws.amazon.com/personalize/latest/dg/domain-use-cases.html
|
453
|
+
#
|
454
|
+
# @option params [String] :campaign_arn
|
445
455
|
# The Amazon Resource Name (ARN) of the campaign to use for getting
|
446
456
|
# recommendations.
|
447
457
|
#
|
@@ -494,6 +504,11 @@ module Aws::PersonalizeRuntime
|
|
494
504
|
#
|
495
505
|
# [1]: https://docs.aws.amazon.com/personalize/latest/dg/filter.html
|
496
506
|
#
|
507
|
+
# @option params [String] :recommender_arn
|
508
|
+
# The Amazon Resource Name (ARN) of the recommender to use to get
|
509
|
+
# recommendations. Provide a recommender ARN if you created a Domain
|
510
|
+
# dataset group with a recommender for a domain use case.
|
511
|
+
#
|
497
512
|
# @return [Types::GetRecommendationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
498
513
|
#
|
499
514
|
# * {Types::GetRecommendationsResponse#item_list #item_list} => Array<Types::PredictedItem>
|
@@ -502,7 +517,7 @@ module Aws::PersonalizeRuntime
|
|
502
517
|
# @example Request syntax with placeholder values
|
503
518
|
#
|
504
519
|
# resp = client.get_recommendations({
|
505
|
-
# campaign_arn: "Arn",
|
520
|
+
# campaign_arn: "Arn",
|
506
521
|
# item_id: "ItemID",
|
507
522
|
# user_id: "UserID",
|
508
523
|
# num_results: 1,
|
@@ -513,6 +528,7 @@ module Aws::PersonalizeRuntime
|
|
513
528
|
# filter_values: {
|
514
529
|
# "FilterAttributeName" => "FilterAttributeValue",
|
515
530
|
# },
|
531
|
+
# recommender_arn: "Arn",
|
516
532
|
# })
|
517
533
|
#
|
518
534
|
# @example Response structure
|
@@ -544,7 +560,7 @@ module Aws::PersonalizeRuntime
|
|
544
560
|
params: params,
|
545
561
|
config: config)
|
546
562
|
context[:gem_name] = 'aws-sdk-personalizeruntime'
|
547
|
-
context[:gem_version] = '1.
|
563
|
+
context[:gem_version] = '1.28.0'
|
548
564
|
Seahorse::Client::Request.new(handlers, context)
|
549
565
|
end
|
550
566
|
|
@@ -54,13 +54,14 @@ module Aws::PersonalizeRuntime
|
|
54
54
|
GetPersonalizedRankingResponse.add_member(:recommendation_id, Shapes::ShapeRef.new(shape: RecommendationID, location_name: "recommendationId"))
|
55
55
|
GetPersonalizedRankingResponse.struct_class = Types::GetPersonalizedRankingResponse
|
56
56
|
|
57
|
-
GetRecommendationsRequest.add_member(:campaign_arn, Shapes::ShapeRef.new(shape: Arn,
|
57
|
+
GetRecommendationsRequest.add_member(:campaign_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "campaignArn"))
|
58
58
|
GetRecommendationsRequest.add_member(:item_id, Shapes::ShapeRef.new(shape: ItemID, location_name: "itemId"))
|
59
59
|
GetRecommendationsRequest.add_member(:user_id, Shapes::ShapeRef.new(shape: UserID, location_name: "userId"))
|
60
60
|
GetRecommendationsRequest.add_member(:num_results, Shapes::ShapeRef.new(shape: NumResults, location_name: "numResults"))
|
61
61
|
GetRecommendationsRequest.add_member(:context, Shapes::ShapeRef.new(shape: Context, location_name: "context"))
|
62
62
|
GetRecommendationsRequest.add_member(:filter_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "filterArn"))
|
63
63
|
GetRecommendationsRequest.add_member(:filter_values, Shapes::ShapeRef.new(shape: FilterValues, location_name: "filterValues"))
|
64
|
+
GetRecommendationsRequest.add_member(:recommender_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "recommenderArn"))
|
64
65
|
GetRecommendationsRequest.struct_class = Types::GetRecommendationsRequest
|
65
66
|
|
66
67
|
GetRecommendationsResponse.add_member(:item_list, Shapes::ShapeRef.new(shape: ItemList, location_name: "itemList"))
|
@@ -115,7 +115,7 @@ module Aws::PersonalizeRuntime
|
|
115
115
|
# data as a hash:
|
116
116
|
#
|
117
117
|
# {
|
118
|
-
# campaign_arn: "Arn",
|
118
|
+
# campaign_arn: "Arn",
|
119
119
|
# item_id: "ItemID",
|
120
120
|
# user_id: "UserID",
|
121
121
|
# num_results: 1,
|
@@ -126,6 +126,7 @@ module Aws::PersonalizeRuntime
|
|
126
126
|
# filter_values: {
|
127
127
|
# "FilterAttributeName" => "FilterAttributeValue",
|
128
128
|
# },
|
129
|
+
# recommender_arn: "Arn",
|
129
130
|
# }
|
130
131
|
#
|
131
132
|
# @!attribute [rw] campaign_arn
|
@@ -189,6 +190,12 @@ module Aws::PersonalizeRuntime
|
|
189
190
|
# [1]: https://docs.aws.amazon.com/personalize/latest/dg/filter.html
|
190
191
|
# @return [Hash<String,String>]
|
191
192
|
#
|
193
|
+
# @!attribute [rw] recommender_arn
|
194
|
+
# The Amazon Resource Name (ARN) of the recommender to use to get
|
195
|
+
# recommendations. Provide a recommender ARN if you created a Domain
|
196
|
+
# dataset group with a recommender for a domain use case.
|
197
|
+
# @return [String]
|
198
|
+
#
|
192
199
|
# @see http://docs.aws.amazon.com/goto/WebAPI/personalize-runtime-2018-05-22/GetRecommendationsRequest AWS API Documentation
|
193
200
|
#
|
194
201
|
class GetRecommendationsRequest < Struct.new(
|
@@ -198,13 +205,14 @@ module Aws::PersonalizeRuntime
|
|
198
205
|
:num_results,
|
199
206
|
:context,
|
200
207
|
:filter_arn,
|
201
|
-
:filter_values
|
208
|
+
:filter_values,
|
209
|
+
:recommender_arn)
|
202
210
|
SENSITIVE = []
|
203
211
|
include Aws::Structure
|
204
212
|
end
|
205
213
|
|
206
214
|
# @!attribute [rw] item_list
|
207
|
-
# A list of recommendations sorted in
|
215
|
+
# A list of recommendations sorted in descending order by prediction
|
208
216
|
# score. There can be a maximum of 500 items in the list.
|
209
217
|
# @return [Array<Types::PredictedItem>]
|
210
218
|
#
|
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.28.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: 2021-11-
|
11
|
+
date: 2021-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|