aws-sdk-personalizeruntime 1.10.0 → 1.15.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 +4 -4
- data/lib/aws-sdk-personalizeruntime.rb +3 -1
- data/lib/aws-sdk-personalizeruntime/client.rb +27 -3
- data/lib/aws-sdk-personalizeruntime/client_api.rb +7 -0
- data/lib/aws-sdk-personalizeruntime/errors.rb +2 -0
- data/lib/aws-sdk-personalizeruntime/resource.rb +2 -0
- data/lib/aws-sdk-personalizeruntime/types.rb +48 -9
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bca3cda9086671e924fcdcbef06ed8512c5bcb3b739252136e0d611a53e6183b
|
4
|
+
data.tar.gz: '08239b4123a122038843509022232693644606fb86903c74e82240256276ea51'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec053f1a913ed5dc228ebb9a9387a98285260824305afb0f359ff7d01745aca5cf19ccb7a12ccfe226448fff36378847e44518ea36f1bb0b71840247accaf221
|
7
|
+
data.tar.gz: 69bef1f5d19579f612de9dbcb5525c282bf2d9ceb1361d81a085a034a474249ab47794eb6606818369da6e45750396aa2d447a51e3e32ac378a83d17340cb826
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -45,6 +47,6 @@ require_relative 'aws-sdk-personalizeruntime/customizations'
|
|
45
47
|
# @service
|
46
48
|
module Aws::PersonalizeRuntime
|
47
49
|
|
48
|
-
GEM_VERSION = '1.
|
50
|
+
GEM_VERSION = '1.15.0'
|
49
51
|
|
50
52
|
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -24,6 +26,7 @@ require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
|
|
24
26
|
require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
|
25
27
|
require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
|
26
28
|
require 'aws-sdk-core/plugins/transfer_encoding.rb'
|
29
|
+
require 'aws-sdk-core/plugins/http_checksum.rb'
|
27
30
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
28
31
|
require 'aws-sdk-core/plugins/protocols/rest_json.rb'
|
29
32
|
|
@@ -69,6 +72,7 @@ module Aws::PersonalizeRuntime
|
|
69
72
|
add_plugin(Aws::Plugins::ClientMetricsPlugin)
|
70
73
|
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
71
74
|
add_plugin(Aws::Plugins::TransferEncoding)
|
75
|
+
add_plugin(Aws::Plugins::HttpChecksum)
|
72
76
|
add_plugin(Aws::Plugins::SignatureV4)
|
73
77
|
add_plugin(Aws::Plugins::Protocols::RestJson)
|
74
78
|
|
@@ -161,7 +165,7 @@ module Aws::PersonalizeRuntime
|
|
161
165
|
# @option options [String] :endpoint
|
162
166
|
# The client endpoint is normally constructed from the `:region`
|
163
167
|
# option. You should only configure an `:endpoint` when connecting
|
164
|
-
# to test endpoints. This should be a valid HTTP(S) URI.
|
168
|
+
# to test or custom endpoints. This should be a valid HTTP(S) URI.
|
165
169
|
#
|
166
170
|
# @option options [Integer] :endpoint_cache_max_entries (1000)
|
167
171
|
# Used for the maximum size limit of the LRU cache storing endpoints data
|
@@ -322,7 +326,7 @@ module Aws::PersonalizeRuntime
|
|
322
326
|
# the personalized ranking.
|
323
327
|
#
|
324
328
|
# @option params [required, Array<String>] :input_list
|
325
|
-
# A list of items (itemId
|
329
|
+
# A list of items (by `itemId`) to rank. If an item was not included in
|
326
330
|
# the training dataset, the item is appended to the end of the reranked
|
327
331
|
# list. The maximum is 500.
|
328
332
|
#
|
@@ -336,9 +340,14 @@ module Aws::PersonalizeRuntime
|
|
336
340
|
# relevant when getting a user's recommendations, such as the user's
|
337
341
|
# current location or device type.
|
338
342
|
#
|
343
|
+
# @option params [String] :filter_arn
|
344
|
+
# The Amazon Resource Name (ARN) of a filter you created to include or
|
345
|
+
# exclude items from recommendations for a given user.
|
346
|
+
#
|
339
347
|
# @return [Types::GetPersonalizedRankingResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
340
348
|
#
|
341
349
|
# * {Types::GetPersonalizedRankingResponse#personalized_ranking #personalized_ranking} => Array<Types::PredictedItem>
|
350
|
+
# * {Types::GetPersonalizedRankingResponse#recommendation_id #recommendation_id} => String
|
342
351
|
#
|
343
352
|
# @example Request syntax with placeholder values
|
344
353
|
#
|
@@ -349,6 +358,7 @@ module Aws::PersonalizeRuntime
|
|
349
358
|
# context: {
|
350
359
|
# "AttributeName" => "AttributeValue",
|
351
360
|
# },
|
361
|
+
# filter_arn: "Arn",
|
352
362
|
# })
|
353
363
|
#
|
354
364
|
# @example Response structure
|
@@ -356,6 +366,7 @@ module Aws::PersonalizeRuntime
|
|
356
366
|
# resp.personalized_ranking #=> Array
|
357
367
|
# resp.personalized_ranking[0].item_id #=> String
|
358
368
|
# resp.personalized_ranking[0].score #=> Float
|
369
|
+
# resp.recommendation_id #=> String
|
359
370
|
#
|
360
371
|
# @see http://docs.aws.amazon.com/goto/WebAPI/personalize-runtime-2018-05-22/GetPersonalizedRanking AWS API Documentation
|
361
372
|
#
|
@@ -403,9 +414,20 @@ module Aws::PersonalizeRuntime
|
|
403
414
|
# relevant when getting a user's recommendations, such as the user's
|
404
415
|
# current location or device type.
|
405
416
|
#
|
417
|
+
# @option params [String] :filter_arn
|
418
|
+
# The ARN of the filter to apply to the returned recommendations. For
|
419
|
+
# more information, see [Using Filters with Amazon Personalize][1].
|
420
|
+
#
|
421
|
+
# When using this parameter, be sure the filter resource is `ACTIVE`.
|
422
|
+
#
|
423
|
+
#
|
424
|
+
#
|
425
|
+
# [1]: https://docs.aws.amazon.com/personalize/latest/dg/filters.html
|
426
|
+
#
|
406
427
|
# @return [Types::GetRecommendationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
407
428
|
#
|
408
429
|
# * {Types::GetRecommendationsResponse#item_list #item_list} => Array<Types::PredictedItem>
|
430
|
+
# * {Types::GetRecommendationsResponse#recommendation_id #recommendation_id} => String
|
409
431
|
#
|
410
432
|
# @example Request syntax with placeholder values
|
411
433
|
#
|
@@ -417,6 +439,7 @@ module Aws::PersonalizeRuntime
|
|
417
439
|
# context: {
|
418
440
|
# "AttributeName" => "AttributeValue",
|
419
441
|
# },
|
442
|
+
# filter_arn: "Arn",
|
420
443
|
# })
|
421
444
|
#
|
422
445
|
# @example Response structure
|
@@ -424,6 +447,7 @@ module Aws::PersonalizeRuntime
|
|
424
447
|
# resp.item_list #=> Array
|
425
448
|
# resp.item_list[0].item_id #=> String
|
426
449
|
# resp.item_list[0].score #=> Float
|
450
|
+
# resp.recommendation_id #=> String
|
427
451
|
#
|
428
452
|
# @see http://docs.aws.amazon.com/goto/WebAPI/personalize-runtime-2018-05-22/GetRecommendations AWS API Documentation
|
429
453
|
#
|
@@ -447,7 +471,7 @@ module Aws::PersonalizeRuntime
|
|
447
471
|
params: params,
|
448
472
|
config: config)
|
449
473
|
context[:gem_name] = 'aws-sdk-personalizeruntime'
|
450
|
-
context[:gem_version] = '1.
|
474
|
+
context[:gem_version] = '1.15.0'
|
451
475
|
Seahorse::Client::Request.new(handlers, context)
|
452
476
|
end
|
453
477
|
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -26,6 +28,7 @@ module Aws::PersonalizeRuntime
|
|
26
28
|
ItemList = Shapes::ListShape.new(name: 'ItemList')
|
27
29
|
NumResults = Shapes::IntegerShape.new(name: 'NumResults')
|
28
30
|
PredictedItem = Shapes::StructureShape.new(name: 'PredictedItem')
|
31
|
+
RecommendationID = Shapes::StringShape.new(name: 'RecommendationID')
|
29
32
|
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
30
33
|
Score = Shapes::FloatShape.new(name: 'Score')
|
31
34
|
UserID = Shapes::StringShape.new(name: 'UserID')
|
@@ -37,9 +40,11 @@ module Aws::PersonalizeRuntime
|
|
37
40
|
GetPersonalizedRankingRequest.add_member(:input_list, Shapes::ShapeRef.new(shape: InputList, required: true, location_name: "inputList"))
|
38
41
|
GetPersonalizedRankingRequest.add_member(:user_id, Shapes::ShapeRef.new(shape: UserID, required: true, location_name: "userId"))
|
39
42
|
GetPersonalizedRankingRequest.add_member(:context, Shapes::ShapeRef.new(shape: Context, location_name: "context"))
|
43
|
+
GetPersonalizedRankingRequest.add_member(:filter_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "filterArn"))
|
40
44
|
GetPersonalizedRankingRequest.struct_class = Types::GetPersonalizedRankingRequest
|
41
45
|
|
42
46
|
GetPersonalizedRankingResponse.add_member(:personalized_ranking, Shapes::ShapeRef.new(shape: ItemList, location_name: "personalizedRanking"))
|
47
|
+
GetPersonalizedRankingResponse.add_member(:recommendation_id, Shapes::ShapeRef.new(shape: RecommendationID, location_name: "recommendationId"))
|
43
48
|
GetPersonalizedRankingResponse.struct_class = Types::GetPersonalizedRankingResponse
|
44
49
|
|
45
50
|
GetRecommendationsRequest.add_member(:campaign_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "campaignArn"))
|
@@ -47,9 +52,11 @@ module Aws::PersonalizeRuntime
|
|
47
52
|
GetRecommendationsRequest.add_member(:user_id, Shapes::ShapeRef.new(shape: UserID, location_name: "userId"))
|
48
53
|
GetRecommendationsRequest.add_member(:num_results, Shapes::ShapeRef.new(shape: NumResults, location_name: "numResults"))
|
49
54
|
GetRecommendationsRequest.add_member(:context, Shapes::ShapeRef.new(shape: Context, location_name: "context"))
|
55
|
+
GetRecommendationsRequest.add_member(:filter_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "filterArn"))
|
50
56
|
GetRecommendationsRequest.struct_class = Types::GetRecommendationsRequest
|
51
57
|
|
52
58
|
GetRecommendationsResponse.add_member(:item_list, Shapes::ShapeRef.new(shape: ItemList, location_name: "itemList"))
|
59
|
+
GetRecommendationsResponse.add_member(:recommendation_id, Shapes::ShapeRef.new(shape: RecommendationID, location_name: "recommendationId"))
|
53
60
|
GetRecommendationsResponse.struct_class = Types::GetRecommendationsResponse
|
54
61
|
|
55
62
|
InputList.member = Shapes::ShapeRef.new(shape: ItemID)
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -18,6 +20,7 @@ module Aws::PersonalizeRuntime
|
|
18
20
|
# context: {
|
19
21
|
# "AttributeName" => "AttributeValue",
|
20
22
|
# },
|
23
|
+
# filter_arn: "Arn",
|
21
24
|
# }
|
22
25
|
#
|
23
26
|
# @!attribute [rw] campaign_arn
|
@@ -26,8 +29,8 @@ module Aws::PersonalizeRuntime
|
|
26
29
|
# @return [String]
|
27
30
|
#
|
28
31
|
# @!attribute [rw] input_list
|
29
|
-
# A list of items (itemId
|
30
|
-
# the training dataset, the item is appended to the end of the
|
32
|
+
# A list of items (by `itemId`) to rank. If an item was not included
|
33
|
+
# in the training dataset, the item is appended to the end of the
|
31
34
|
# reranked list. The maximum is 500.
|
32
35
|
# @return [Array<String>]
|
33
36
|
#
|
@@ -43,13 +46,20 @@ module Aws::PersonalizeRuntime
|
|
43
46
|
# user's current location or device type.
|
44
47
|
# @return [Hash<String,String>]
|
45
48
|
#
|
49
|
+
# @!attribute [rw] filter_arn
|
50
|
+
# The Amazon Resource Name (ARN) of a filter you created to include or
|
51
|
+
# exclude items from recommendations for a given user.
|
52
|
+
# @return [String]
|
53
|
+
#
|
46
54
|
# @see http://docs.aws.amazon.com/goto/WebAPI/personalize-runtime-2018-05-22/GetPersonalizedRankingRequest AWS API Documentation
|
47
55
|
#
|
48
56
|
class GetPersonalizedRankingRequest < Struct.new(
|
49
57
|
:campaign_arn,
|
50
58
|
:input_list,
|
51
59
|
:user_id,
|
52
|
-
:context
|
60
|
+
:context,
|
61
|
+
:filter_arn)
|
62
|
+
SENSITIVE = []
|
53
63
|
include Aws::Structure
|
54
64
|
end
|
55
65
|
|
@@ -58,10 +68,16 @@ module Aws::PersonalizeRuntime
|
|
58
68
|
# maximum is 500.
|
59
69
|
# @return [Array<Types::PredictedItem>]
|
60
70
|
#
|
71
|
+
# @!attribute [rw] recommendation_id
|
72
|
+
# The ID of the recommendation.
|
73
|
+
# @return [String]
|
74
|
+
#
|
61
75
|
# @see http://docs.aws.amazon.com/goto/WebAPI/personalize-runtime-2018-05-22/GetPersonalizedRankingResponse AWS API Documentation
|
62
76
|
#
|
63
77
|
class GetPersonalizedRankingResponse < Struct.new(
|
64
|
-
:personalized_ranking
|
78
|
+
:personalized_ranking,
|
79
|
+
:recommendation_id)
|
80
|
+
SENSITIVE = []
|
65
81
|
include Aws::Structure
|
66
82
|
end
|
67
83
|
|
@@ -76,6 +92,7 @@ module Aws::PersonalizeRuntime
|
|
76
92
|
# context: {
|
77
93
|
# "AttributeName" => "AttributeValue",
|
78
94
|
# },
|
95
|
+
# filter_arn: "Arn",
|
79
96
|
# }
|
80
97
|
#
|
81
98
|
# @!attribute [rw] campaign_arn
|
@@ -107,6 +124,17 @@ module Aws::PersonalizeRuntime
|
|
107
124
|
# user's current location or device type.
|
108
125
|
# @return [Hash<String,String>]
|
109
126
|
#
|
127
|
+
# @!attribute [rw] filter_arn
|
128
|
+
# The ARN of the filter to apply to the returned recommendations. For
|
129
|
+
# more information, see [Using Filters with Amazon Personalize][1].
|
130
|
+
#
|
131
|
+
# When using this parameter, be sure the filter resource is `ACTIVE`.
|
132
|
+
#
|
133
|
+
#
|
134
|
+
#
|
135
|
+
# [1]: https://docs.aws.amazon.com/personalize/latest/dg/filters.html
|
136
|
+
# @return [String]
|
137
|
+
#
|
110
138
|
# @see http://docs.aws.amazon.com/goto/WebAPI/personalize-runtime-2018-05-22/GetRecommendationsRequest AWS API Documentation
|
111
139
|
#
|
112
140
|
class GetRecommendationsRequest < Struct.new(
|
@@ -114,7 +142,9 @@ module Aws::PersonalizeRuntime
|
|
114
142
|
:item_id,
|
115
143
|
:user_id,
|
116
144
|
:num_results,
|
117
|
-
:context
|
145
|
+
:context,
|
146
|
+
:filter_arn)
|
147
|
+
SENSITIVE = []
|
118
148
|
include Aws::Structure
|
119
149
|
end
|
120
150
|
|
@@ -123,10 +153,16 @@ module Aws::PersonalizeRuntime
|
|
123
153
|
# score. There can be a maximum of 500 items in the list.
|
124
154
|
# @return [Array<Types::PredictedItem>]
|
125
155
|
#
|
156
|
+
# @!attribute [rw] recommendation_id
|
157
|
+
# The ID of the recommendation.
|
158
|
+
# @return [String]
|
159
|
+
#
|
126
160
|
# @see http://docs.aws.amazon.com/goto/WebAPI/personalize-runtime-2018-05-22/GetRecommendationsResponse AWS API Documentation
|
127
161
|
#
|
128
162
|
class GetRecommendationsResponse < Struct.new(
|
129
|
-
:item_list
|
163
|
+
:item_list,
|
164
|
+
:recommendation_id)
|
165
|
+
SENSITIVE = []
|
130
166
|
include Aws::Structure
|
131
167
|
end
|
132
168
|
|
@@ -139,6 +175,7 @@ module Aws::PersonalizeRuntime
|
|
139
175
|
#
|
140
176
|
class InvalidInputException < Struct.new(
|
141
177
|
:message)
|
178
|
+
SENSITIVE = []
|
142
179
|
include Aws::Structure
|
143
180
|
end
|
144
181
|
|
@@ -151,9 +188,9 @@ module Aws::PersonalizeRuntime
|
|
151
188
|
# @return [String]
|
152
189
|
#
|
153
190
|
# @!attribute [rw] score
|
154
|
-
# A numeric representation of the model's certainty
|
155
|
-
#
|
156
|
-
# how-scores-work.
|
191
|
+
# A numeric representation of the model's certainty that the item
|
192
|
+
# will be the next user selection. For more information on scoring
|
193
|
+
# logic, see how-scores-work.
|
157
194
|
# @return [Float]
|
158
195
|
#
|
159
196
|
# @see http://docs.aws.amazon.com/goto/WebAPI/personalize-runtime-2018-05-22/PredictedItem AWS API Documentation
|
@@ -161,6 +198,7 @@ module Aws::PersonalizeRuntime
|
|
161
198
|
class PredictedItem < Struct.new(
|
162
199
|
:item_id,
|
163
200
|
:score)
|
201
|
+
SENSITIVE = []
|
164
202
|
include Aws::Structure
|
165
203
|
end
|
166
204
|
|
@@ -173,6 +211,7 @@ module Aws::PersonalizeRuntime
|
|
173
211
|
#
|
174
212
|
class ResourceNotFoundException < Struct.new(
|
175
213
|
:message)
|
214
|
+
SENSITIVE = []
|
176
215
|
include Aws::Structure
|
177
216
|
end
|
178
217
|
|
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.15.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: 2020-
|
11
|
+
date: 2020-08-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.99.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.99.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|