aws-sdk-personalizeruntime 1.12.1 → 1.17.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: c7d47a14e18d38c1dd285a4b05f5549a6feb6f2cf2f6ab653db77f7ab10166fb
4
- data.tar.gz: 326c1269af09bbe0a979e5b429f3a6f3ec9d828816c15c3bd7849c649cf570aa
3
+ metadata.gz: 253478f4fe3fd7b3385e6d54982c88cfa571225e70827961507d2c1fefb92db7
4
+ data.tar.gz: 5adf5275d4341d70017055f06da20f27273459cfe52d0ca9b095a82bf1320e38
5
5
  SHA512:
6
- metadata.gz: 994a366893b4362f2782b1c01da41a268ee779ceed8e9cff239c7f2b2e0cf41b91dc91c58332eb51e809f896affad42abfe9659e2f2edccb636743442733bbad
7
- data.tar.gz: 7261c17253d12ebe891f8dcc13cedb4b0a6b873e759cdd763d6abb3f284a562179a5af6663afec1b84e1dc6ccee4b301372cbdb2037f47d076bdcb9d13fb3e5c
6
+ metadata.gz: 0a34a744768aca717512a6aac6cf5ce545d4c66e1d87b648a4d646135d75fc996ee68080bc2b1f288f13436848b400e321e73568aa347c1a1dd4e71c59eae575
7
+ data.tar.gz: 4860d6941ffff740c5a5197ca796de73b5b7f7e5a5510ac344348049f73c34d2aa1c714448dea3f2c82cd92aba96ea9c2e090be559a0a77c4dd6773864cdd436
@@ -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:
@@ -5,6 +7,7 @@
5
7
  #
6
8
  # WARNING ABOUT GENERATED CODE
7
9
 
10
+
8
11
  require 'aws-sdk-core'
9
12
  require 'aws-sigv4'
10
13
 
@@ -42,9 +45,9 @@ require_relative 'aws-sdk-personalizeruntime/customizations'
42
45
  #
43
46
  # See {Errors} for more information.
44
47
  #
45
- # @service
48
+ # @!group service
46
49
  module Aws::PersonalizeRuntime
47
50
 
48
- GEM_VERSION = '1.12.1'
51
+ GEM_VERSION = '1.17.0'
49
52
 
50
53
  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:
@@ -83,13 +85,28 @@ module Aws::PersonalizeRuntime
83
85
  # * `Aws::Credentials` - Used for configuring static, non-refreshing
84
86
  # credentials.
85
87
  #
88
+ # * `Aws::SharedCredentials` - Used for loading static credentials from a
89
+ # shared file, such as `~/.aws/config`.
90
+ #
91
+ # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
92
+ #
93
+ # * `Aws::AssumeRoleWebIdentityCredentials` - Used when you need to
94
+ # assume a role after providing credentials via the web.
95
+ #
96
+ # * `Aws::SSOCredentials` - Used for loading credentials from AWS SSO using an
97
+ # access token generated from `aws login`.
98
+ #
99
+ # * `Aws::ProcessCredentials` - Used for loading credentials from a
100
+ # process that outputs to stdout.
101
+ #
86
102
  # * `Aws::InstanceProfileCredentials` - Used for loading credentials
87
103
  # from an EC2 IMDS on an EC2 instance.
88
104
  #
89
- # * `Aws::SharedCredentials` - Used for loading credentials from a
90
- # shared file, such as `~/.aws/config`.
105
+ # * `Aws::ECSCredentials` - Used for loading credentials from
106
+ # instances running in ECS.
91
107
  #
92
- # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
108
+ # * `Aws::CognitoIdentityCredentials` - Used for loading credentials
109
+ # from the Cognito Identity service.
93
110
  #
94
111
  # When `:credentials` are not configured directly, the following
95
112
  # locations will be searched for credentials:
@@ -99,10 +116,10 @@ module Aws::PersonalizeRuntime
99
116
  # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
100
117
  # * `~/.aws/credentials`
101
118
  # * `~/.aws/config`
102
- # * EC2 IMDS instance profile - When used by default, the timeouts are
103
- # very aggressive. Construct and pass an instance of
104
- # `Aws::InstanceProfileCredentails` to enable retries and extended
105
- # timeouts.
119
+ # * EC2/ECS IMDS instance profile - When used by default, the timeouts
120
+ # are very aggressive. Construct and pass an instance of
121
+ # `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
122
+ # enable retries and extended timeouts.
106
123
  #
107
124
  # @option options [required, String] :region
108
125
  # The AWS region to connect to. The configured `:region` is
@@ -324,7 +341,7 @@ module Aws::PersonalizeRuntime
324
341
  # the personalized ranking.
325
342
  #
326
343
  # @option params [required, Array<String>] :input_list
327
- # A list of items (itemId's) to rank. If an item was not included in
344
+ # A list of items (by `itemId`) to rank. If an item was not included in
328
345
  # the training dataset, the item is appended to the end of the reranked
329
346
  # list. The maximum is 500.
330
347
  #
@@ -338,9 +355,14 @@ module Aws::PersonalizeRuntime
338
355
  # relevant when getting a user's recommendations, such as the user's
339
356
  # current location or device type.
340
357
  #
358
+ # @option params [String] :filter_arn
359
+ # The Amazon Resource Name (ARN) of a filter you created to include or
360
+ # exclude items from recommendations for a given user.
361
+ #
341
362
  # @return [Types::GetPersonalizedRankingResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
342
363
  #
343
364
  # * {Types::GetPersonalizedRankingResponse#personalized_ranking #personalized_ranking} => Array&lt;Types::PredictedItem&gt;
365
+ # * {Types::GetPersonalizedRankingResponse#recommendation_id #recommendation_id} => String
344
366
  #
345
367
  # @example Request syntax with placeholder values
346
368
  #
@@ -351,6 +373,7 @@ module Aws::PersonalizeRuntime
351
373
  # context: {
352
374
  # "AttributeName" => "AttributeValue",
353
375
  # },
376
+ # filter_arn: "Arn",
354
377
  # })
355
378
  #
356
379
  # @example Response structure
@@ -358,6 +381,7 @@ module Aws::PersonalizeRuntime
358
381
  # resp.personalized_ranking #=> Array
359
382
  # resp.personalized_ranking[0].item_id #=> String
360
383
  # resp.personalized_ranking[0].score #=> Float
384
+ # resp.recommendation_id #=> String
361
385
  #
362
386
  # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-runtime-2018-05-22/GetPersonalizedRanking AWS API Documentation
363
387
  #
@@ -407,11 +431,18 @@ module Aws::PersonalizeRuntime
407
431
  #
408
432
  # @option params [String] :filter_arn
409
433
  # The ARN of the filter to apply to the returned recommendations. For
410
- # more information, see Using Filters with Amazon Personalize.
434
+ # more information, see [Using Filters with Amazon Personalize][1].
435
+ #
436
+ # When using this parameter, be sure the filter resource is `ACTIVE`.
437
+ #
438
+ #
439
+ #
440
+ # [1]: https://docs.aws.amazon.com/personalize/latest/dg/filters.html
411
441
  #
412
442
  # @return [Types::GetRecommendationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
413
443
  #
414
444
  # * {Types::GetRecommendationsResponse#item_list #item_list} => Array&lt;Types::PredictedItem&gt;
445
+ # * {Types::GetRecommendationsResponse#recommendation_id #recommendation_id} => String
415
446
  #
416
447
  # @example Request syntax with placeholder values
417
448
  #
@@ -431,6 +462,7 @@ module Aws::PersonalizeRuntime
431
462
  # resp.item_list #=> Array
432
463
  # resp.item_list[0].item_id #=> String
433
464
  # resp.item_list[0].score #=> Float
465
+ # resp.recommendation_id #=> String
434
466
  #
435
467
  # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-runtime-2018-05-22/GetRecommendations AWS API Documentation
436
468
  #
@@ -454,7 +486,7 @@ module Aws::PersonalizeRuntime
454
486
  params: params,
455
487
  config: config)
456
488
  context[:gem_name] = 'aws-sdk-personalizeruntime'
457
- context[:gem_version] = '1.12.1'
489
+ context[:gem_version] = '1.17.0'
458
490
  Seahorse::Client::Request.new(handlers, context)
459
491
  end
460
492
 
@@ -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"))
@@ -51,6 +56,7 @@ module Aws::PersonalizeRuntime
51
56
  GetRecommendationsRequest.struct_class = Types::GetRecommendationsRequest
52
57
 
53
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"))
54
60
  GetRecommendationsResponse.struct_class = Types::GetRecommendationsResponse
55
61
 
56
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:
@@ -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:
@@ -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's) to rank. If an item was not included in
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
 
@@ -110,7 +126,13 @@ module Aws::PersonalizeRuntime
110
126
  #
111
127
  # @!attribute [rw] filter_arn
112
128
  # The ARN of the filter to apply to the returned recommendations. For
113
- # more information, see Using Filters with Amazon Personalize.
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
114
136
  # @return [String]
115
137
  #
116
138
  # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-runtime-2018-05-22/GetRecommendationsRequest AWS API Documentation
@@ -122,6 +144,7 @@ module Aws::PersonalizeRuntime
122
144
  :num_results,
123
145
  :context,
124
146
  :filter_arn)
147
+ SENSITIVE = []
125
148
  include Aws::Structure
126
149
  end
127
150
 
@@ -130,10 +153,16 @@ module Aws::PersonalizeRuntime
130
153
  # score. There can be a maximum of 500 items in the list.
131
154
  # @return [Array<Types::PredictedItem>]
132
155
  #
156
+ # @!attribute [rw] recommendation_id
157
+ # The ID of the recommendation.
158
+ # @return [String]
159
+ #
133
160
  # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-runtime-2018-05-22/GetRecommendationsResponse AWS API Documentation
134
161
  #
135
162
  class GetRecommendationsResponse < Struct.new(
136
- :item_list)
163
+ :item_list,
164
+ :recommendation_id)
165
+ SENSITIVE = []
137
166
  include Aws::Structure
138
167
  end
139
168
 
@@ -146,6 +175,7 @@ module Aws::PersonalizeRuntime
146
175
  #
147
176
  class InvalidInputException < Struct.new(
148
177
  :message)
178
+ SENSITIVE = []
149
179
  include Aws::Structure
150
180
  end
151
181
 
@@ -168,6 +198,7 @@ module Aws::PersonalizeRuntime
168
198
  class PredictedItem < Struct.new(
169
199
  :item_id,
170
200
  :score)
201
+ SENSITIVE = []
171
202
  include Aws::Structure
172
203
  end
173
204
 
@@ -180,6 +211,7 @@ module Aws::PersonalizeRuntime
180
211
  #
181
212
  class ResourceNotFoundException < Struct.new(
182
213
  :message)
214
+ SENSITIVE = []
183
215
  include Aws::Structure
184
216
  end
185
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.12.1
4
+ version: 1.17.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-06-11 00:00:00.000000000 Z
11
+ date: 2020-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core