aws-sdk-personalizeruntime 1.27.0 → 1.28.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: 8d37062ec0844aada93968f70c2c60553aa9509935e9a8d5f0c31479b189497d
4
- data.tar.gz: faba2dc8de83c2d84e989544e605979a475568657ba12e3c84b3a6bc417606cb
3
+ metadata.gz: c1ff0e79035ce7cd754ad93d085afa19a58e5df26876fe9ba8b81db9f310798e
4
+ data.tar.gz: 3efd4c5807b810f0ff4597ac215c04539587e5203e6cd3bb74793933e8e88217
5
5
  SHA512:
6
- metadata.gz: 92a9afa36b54d1496605d1a8f8e27f176c18f64aceff3d14daef77c26804f78689da3cb09b12899b28e252734ad911cb619e4f0935eb95fd253d3d1f85e6e52d
7
- data.tar.gz: 1c88a4ecfc91624b3a8d0077f0fdb102cde29915810be7de62ff4f12f6b5ff8916b445ae2266662709b68da320ec771d3d4e2770504bce7853f2ea16fcb54bb3
6
+ metadata.gz: 2e218678d0636afa2b7270d36bc43f857bcc0ab0e264f9a3d44c421248c609935b5747482628d28848b33b3fe509ee15e68934bc79d1b6b22be1fb175bc668ea
7
+ data.tar.gz: 24b40e8ca0c8ec71d4a31a814e390284a3e3517d78dfc7943b99afebd7401210c53740e9d76a70f934bef8e6d9b7c540ebc91553a570711521807a30cd5b3981
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.28.0 (2021-11-29)
5
+ ------------------
6
+
7
+ * Feature - This release adds inference support for Recommenders.
8
+
4
9
  1.27.0 (2021-11-04)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.27.0
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. The required input depends on the
432
- # recipe type used to create the solution backing the campaign, as
433
- # follows:
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
- # * RELATED\_ITEMS - `itemId` required, `userId` not used
436
+ # * USER\_PERSONALIZATION - `userId` required, `itemId` not used
436
437
  #
437
- # * USER\_PERSONALIZATION - `itemId` optional, `userId` required
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
- # @option params [required, String] :campaign_arn
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&lt;Types::PredictedItem&gt;
@@ -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", # required
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.27.0'
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, required: true, location_name: "campaignArn"))
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", # required
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 ascending order by prediction
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
  #
@@ -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.27.0'
51
+ GEM_VERSION = '1.28.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.27.0
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-04 00:00:00.000000000 Z
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