aws-sdk-personalizeruntime 1.11.0 → 1.16.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 21445ed9e0086265a9e484b93dd74c073393ebf49bb5cbee65be9f9fadd7f0a8
4
- data.tar.gz: 0acc83487dd628d8eb5185c2f72ea8e5d3d19852639a7f1edcee81717b99c2f7
3
+ metadata.gz: 3d235aad2c85e19e61dd6a3620867323ad5b0455b5accba2d01d804a98d09893
4
+ data.tar.gz: c14c5268509e2ca3e3d447492cd2d6a77562694ec2f1faf4e6b2b08043869952
5
5
  SHA512:
6
- metadata.gz: b709e62499fa300ce0f60f943758077db5b1934753ad29a5df2e4adeb2bbb1dea277c2170e50723bba1bd30a340539201e789af55bc4b1ee5d7101a43dc86ae2
7
- data.tar.gz: b84818876cde241df3f5a2e435782d83fb9e69f0c43f2dd37af74909ed8f698b414f33972c4a2ed947d1d1fd68f0c8677798bca275430916b765e41f2f9ba431
6
+ metadata.gz: 515c5923a5245b2fe7da26cf32073538ec56beff93a0c10cd6acf777808ef0cd5e650d892b6db63bc73a58ca7218a18419e9ae4cffabaca795e0756de2468a81
7
+ data.tar.gz: 775aaf5bbf29f0d1624892ef2bf55ada2ea8fc60ff205c812795318522fbb6a1994af0c794addbf4127eb4c95a9da6de472d04fa62c6e00ba76b169ba950af8c
@@ -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:
@@ -42,9 +44,9 @@ require_relative 'aws-sdk-personalizeruntime/customizations'
42
44
  #
43
45
  # See {Errors} for more information.
44
46
  #
45
- # @service
47
+ # @!group service
46
48
  module Aws::PersonalizeRuntime
47
49
 
48
- GEM_VERSION = '1.11.0'
50
+ GEM_VERSION = '1.16.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
 
@@ -81,13 +85,28 @@ module Aws::PersonalizeRuntime
81
85
  # * `Aws::Credentials` - Used for configuring static, non-refreshing
82
86
  # credentials.
83
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
+ #
84
102
  # * `Aws::InstanceProfileCredentials` - Used for loading credentials
85
103
  # from an EC2 IMDS on an EC2 instance.
86
104
  #
87
- # * `Aws::SharedCredentials` - Used for loading credentials from a
88
- # shared file, such as `~/.aws/config`.
105
+ # * `Aws::ECSCredentials` - Used for loading credentials from
106
+ # instances running in ECS.
89
107
  #
90
- # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
108
+ # * `Aws::CognitoIdentityCredentials` - Used for loading credentials
109
+ # from the Cognito Identity service.
91
110
  #
92
111
  # When `:credentials` are not configured directly, the following
93
112
  # locations will be searched for credentials:
@@ -97,10 +116,10 @@ module Aws::PersonalizeRuntime
97
116
  # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
98
117
  # * `~/.aws/credentials`
99
118
  # * `~/.aws/config`
100
- # * EC2 IMDS instance profile - When used by default, the timeouts are
101
- # very aggressive. Construct and pass an instance of
102
- # `Aws::InstanceProfileCredentails` to enable retries and extended
103
- # 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.
104
123
  #
105
124
  # @option options [required, String] :region
106
125
  # The AWS region to connect to. The configured `:region` is
@@ -161,7 +180,7 @@ module Aws::PersonalizeRuntime
161
180
  # @option options [String] :endpoint
162
181
  # The client endpoint is normally constructed from the `:region`
163
182
  # option. You should only configure an `:endpoint` when connecting
164
- # to test endpoints. This should be a valid HTTP(S) URI.
183
+ # to test or custom endpoints. This should be a valid HTTP(S) URI.
165
184
  #
166
185
  # @option options [Integer] :endpoint_cache_max_entries (1000)
167
186
  # Used for the maximum size limit of the LRU cache storing endpoints data
@@ -322,7 +341,7 @@ module Aws::PersonalizeRuntime
322
341
  # the personalized ranking.
323
342
  #
324
343
  # @option params [required, Array<String>] :input_list
325
- # 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
326
345
  # the training dataset, the item is appended to the end of the reranked
327
346
  # list. The maximum is 500.
328
347
  #
@@ -336,9 +355,14 @@ module Aws::PersonalizeRuntime
336
355
  # relevant when getting a user's recommendations, such as the user's
337
356
  # current location or device type.
338
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
+ #
339
362
  # @return [Types::GetPersonalizedRankingResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
340
363
  #
341
364
  # * {Types::GetPersonalizedRankingResponse#personalized_ranking #personalized_ranking} => Array&lt;Types::PredictedItem&gt;
365
+ # * {Types::GetPersonalizedRankingResponse#recommendation_id #recommendation_id} => String
342
366
  #
343
367
  # @example Request syntax with placeholder values
344
368
  #
@@ -349,6 +373,7 @@ module Aws::PersonalizeRuntime
349
373
  # context: {
350
374
  # "AttributeName" => "AttributeValue",
351
375
  # },
376
+ # filter_arn: "Arn",
352
377
  # })
353
378
  #
354
379
  # @example Response structure
@@ -356,6 +381,7 @@ module Aws::PersonalizeRuntime
356
381
  # resp.personalized_ranking #=> Array
357
382
  # resp.personalized_ranking[0].item_id #=> String
358
383
  # resp.personalized_ranking[0].score #=> Float
384
+ # resp.recommendation_id #=> String
359
385
  #
360
386
  # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-runtime-2018-05-22/GetPersonalizedRanking AWS API Documentation
361
387
  #
@@ -405,11 +431,18 @@ module Aws::PersonalizeRuntime
405
431
  #
406
432
  # @option params [String] :filter_arn
407
433
  # The ARN of the filter to apply to the returned recommendations. For
408
- # 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
409
441
  #
410
442
  # @return [Types::GetRecommendationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
411
443
  #
412
444
  # * {Types::GetRecommendationsResponse#item_list #item_list} => Array&lt;Types::PredictedItem&gt;
445
+ # * {Types::GetRecommendationsResponse#recommendation_id #recommendation_id} => String
413
446
  #
414
447
  # @example Request syntax with placeholder values
415
448
  #
@@ -429,6 +462,7 @@ module Aws::PersonalizeRuntime
429
462
  # resp.item_list #=> Array
430
463
  # resp.item_list[0].item_id #=> String
431
464
  # resp.item_list[0].score #=> Float
465
+ # resp.recommendation_id #=> String
432
466
  #
433
467
  # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-runtime-2018-05-22/GetRecommendations AWS API Documentation
434
468
  #
@@ -452,7 +486,7 @@ module Aws::PersonalizeRuntime
452
486
  params: params,
453
487
  config: config)
454
488
  context[:gem_name] = 'aws-sdk-personalizeruntime'
455
- context[:gem_version] = '1.11.0'
489
+ context[:gem_version] = '1.16.0'
456
490
  Seahorse::Client::Request.new(handlers, context)
457
491
  end
458
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.11.0
4
+ version: 1.16.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-05 00:00:00.000000000 Z
11
+ date: 2020-08-25 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.71.0
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.71.0
32
+ version: 3.99.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement