aws-sdk-personalizeruntime 1.13.0 → 1.18.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: 6739d6c8361e473f756be445337403d97debb255dbef3b5270810c38145efb44
4
- data.tar.gz: 39fc794ef6da4a0f8b6a5b72580447fd6496879263956f4ac57e0d379481a5e9
3
+ metadata.gz: 2d963bcea7b9fe9a9f033ad6259a34715040fc5b4ceab0b4d5ddfd7f97ea7a23
4
+ data.tar.gz: d29ab7f20f520f291ed3db9c25c4c0a6687d8534f036db65ded13c2fd7dee310
5
5
  SHA512:
6
- metadata.gz: 2f8a98cd3d4084808f00f5a8aac562f3eaf4c986e09f85d4cdea49dee06dd9b0700cc283c3be9f0feb7b6f88baa8c4fef622508e0b3e77c5f56795d77508ca9a
7
- data.tar.gz: ace7426ad454413180788b97e8c8368e5b562e2d80414705a18704e18b3983bdb0a77837a1d2270fce7294e1c367243ad19c56cce6f94445538b1ab3a06b002d
6
+ metadata.gz: b185fd9345a9f71fa285044f895f0e9814192806d7c84356e9349047741ca55166d9335c403061647a3018632a94f45d841582bcd3febebcd2902d8435841bd6
7
+ data.tar.gz: 403fecb8e0db68fdba979a6b7f00ec7528956579af20b88e00ba0377203bf9cdea2d102da133e77346ea924af7d5a915e0f3d2a253e7f3f003cdab56cf4674c2
@@ -7,6 +7,7 @@
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
10
+
10
11
  require 'aws-sdk-core'
11
12
  require 'aws-sigv4'
12
13
 
@@ -44,9 +45,9 @@ require_relative 'aws-sdk-personalizeruntime/customizations'
44
45
  #
45
46
  # See {Errors} for more information.
46
47
  #
47
- # @service
48
+ # @!group service
48
49
  module Aws::PersonalizeRuntime
49
50
 
50
- GEM_VERSION = '1.13.0'
51
+ GEM_VERSION = '1.18.0'
51
52
 
52
53
  end
@@ -85,13 +85,28 @@ module Aws::PersonalizeRuntime
85
85
  # * `Aws::Credentials` - Used for configuring static, non-refreshing
86
86
  # credentials.
87
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
+ #
88
102
  # * `Aws::InstanceProfileCredentials` - Used for loading credentials
89
103
  # from an EC2 IMDS on an EC2 instance.
90
104
  #
91
- # * `Aws::SharedCredentials` - Used for loading credentials from a
92
- # shared file, such as `~/.aws/config`.
105
+ # * `Aws::ECSCredentials` - Used for loading credentials from
106
+ # instances running in ECS.
93
107
  #
94
- # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
108
+ # * `Aws::CognitoIdentityCredentials` - Used for loading credentials
109
+ # from the Cognito Identity service.
95
110
  #
96
111
  # When `:credentials` are not configured directly, the following
97
112
  # locations will be searched for credentials:
@@ -101,10 +116,10 @@ module Aws::PersonalizeRuntime
101
116
  # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
102
117
  # * `~/.aws/credentials`
103
118
  # * `~/.aws/config`
104
- # * EC2 IMDS instance profile - When used by default, the timeouts are
105
- # very aggressive. Construct and pass an instance of
106
- # `Aws::InstanceProfileCredentails` to enable retries and extended
107
- # 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.
108
123
  #
109
124
  # @option options [required, String] :region
110
125
  # The AWS region to connect to. The configured `:region` is
@@ -326,7 +341,7 @@ module Aws::PersonalizeRuntime
326
341
  # the personalized ranking.
327
342
  #
328
343
  # @option params [required, Array<String>] :input_list
329
- # 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
330
345
  # the training dataset, the item is appended to the end of the reranked
331
346
  # list. The maximum is 500.
332
347
  #
@@ -340,9 +355,14 @@ module Aws::PersonalizeRuntime
340
355
  # relevant when getting a user's recommendations, such as the user's
341
356
  # current location or device type.
342
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
+ #
343
362
  # @return [Types::GetPersonalizedRankingResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
344
363
  #
345
364
  # * {Types::GetPersonalizedRankingResponse#personalized_ranking #personalized_ranking} => Array&lt;Types::PredictedItem&gt;
365
+ # * {Types::GetPersonalizedRankingResponse#recommendation_id #recommendation_id} => String
346
366
  #
347
367
  # @example Request syntax with placeholder values
348
368
  #
@@ -353,6 +373,7 @@ module Aws::PersonalizeRuntime
353
373
  # context: {
354
374
  # "AttributeName" => "AttributeValue",
355
375
  # },
376
+ # filter_arn: "Arn",
356
377
  # })
357
378
  #
358
379
  # @example Response structure
@@ -360,6 +381,7 @@ module Aws::PersonalizeRuntime
360
381
  # resp.personalized_ranking #=> Array
361
382
  # resp.personalized_ranking[0].item_id #=> String
362
383
  # resp.personalized_ranking[0].score #=> Float
384
+ # resp.recommendation_id #=> String
363
385
  #
364
386
  # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-runtime-2018-05-22/GetPersonalizedRanking AWS API Documentation
365
387
  #
@@ -409,11 +431,18 @@ module Aws::PersonalizeRuntime
409
431
  #
410
432
  # @option params [String] :filter_arn
411
433
  # The ARN of the filter to apply to the returned recommendations. For
412
- # 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
413
441
  #
414
442
  # @return [Types::GetRecommendationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
415
443
  #
416
444
  # * {Types::GetRecommendationsResponse#item_list #item_list} => Array&lt;Types::PredictedItem&gt;
445
+ # * {Types::GetRecommendationsResponse#recommendation_id #recommendation_id} => String
417
446
  #
418
447
  # @example Request syntax with placeholder values
419
448
  #
@@ -433,6 +462,7 @@ module Aws::PersonalizeRuntime
433
462
  # resp.item_list #=> Array
434
463
  # resp.item_list[0].item_id #=> String
435
464
  # resp.item_list[0].score #=> Float
465
+ # resp.recommendation_id #=> String
436
466
  #
437
467
  # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-runtime-2018-05-22/GetRecommendations AWS API Documentation
438
468
  #
@@ -456,7 +486,7 @@ module Aws::PersonalizeRuntime
456
486
  params: params,
457
487
  config: config)
458
488
  context[:gem_name] = 'aws-sdk-personalizeruntime'
459
- context[:gem_version] = '1.13.0'
489
+ context[:gem_version] = '1.18.0'
460
490
  Seahorse::Client::Request.new(handlers, context)
461
491
  end
462
492
 
@@ -28,6 +28,7 @@ module Aws::PersonalizeRuntime
28
28
  ItemList = Shapes::ListShape.new(name: 'ItemList')
29
29
  NumResults = Shapes::IntegerShape.new(name: 'NumResults')
30
30
  PredictedItem = Shapes::StructureShape.new(name: 'PredictedItem')
31
+ RecommendationID = Shapes::StringShape.new(name: 'RecommendationID')
31
32
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
32
33
  Score = Shapes::FloatShape.new(name: 'Score')
33
34
  UserID = Shapes::StringShape.new(name: 'UserID')
@@ -39,9 +40,11 @@ module Aws::PersonalizeRuntime
39
40
  GetPersonalizedRankingRequest.add_member(:input_list, Shapes::ShapeRef.new(shape: InputList, required: true, location_name: "inputList"))
40
41
  GetPersonalizedRankingRequest.add_member(:user_id, Shapes::ShapeRef.new(shape: UserID, required: true, location_name: "userId"))
41
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"))
42
44
  GetPersonalizedRankingRequest.struct_class = Types::GetPersonalizedRankingRequest
43
45
 
44
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"))
45
48
  GetPersonalizedRankingResponse.struct_class = Types::GetPersonalizedRankingResponse
46
49
 
47
50
  GetRecommendationsRequest.add_member(:campaign_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "campaignArn"))
@@ -53,6 +56,7 @@ module Aws::PersonalizeRuntime
53
56
  GetRecommendationsRequest.struct_class = Types::GetRecommendationsRequest
54
57
 
55
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"))
56
60
  GetRecommendationsResponse.struct_class = Types::GetRecommendationsResponse
57
61
 
58
62
  InputList.member = Shapes::ShapeRef.new(shape: ItemID)
@@ -20,6 +20,7 @@ module Aws::PersonalizeRuntime
20
20
  # context: {
21
21
  # "AttributeName" => "AttributeValue",
22
22
  # },
23
+ # filter_arn: "Arn",
23
24
  # }
24
25
  #
25
26
  # @!attribute [rw] campaign_arn
@@ -28,8 +29,8 @@ module Aws::PersonalizeRuntime
28
29
  # @return [String]
29
30
  #
30
31
  # @!attribute [rw] input_list
31
- # A list of items (itemId's) to rank. If an item was not included in
32
- # 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
33
34
  # reranked list. The maximum is 500.
34
35
  # @return [Array<String>]
35
36
  #
@@ -45,13 +46,19 @@ module Aws::PersonalizeRuntime
45
46
  # user's current location or device type.
46
47
  # @return [Hash<String,String>]
47
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
+ #
48
54
  # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-runtime-2018-05-22/GetPersonalizedRankingRequest AWS API Documentation
49
55
  #
50
56
  class GetPersonalizedRankingRequest < Struct.new(
51
57
  :campaign_arn,
52
58
  :input_list,
53
59
  :user_id,
54
- :context)
60
+ :context,
61
+ :filter_arn)
55
62
  SENSITIVE = []
56
63
  include Aws::Structure
57
64
  end
@@ -61,10 +68,15 @@ module Aws::PersonalizeRuntime
61
68
  # maximum is 500.
62
69
  # @return [Array<Types::PredictedItem>]
63
70
  #
71
+ # @!attribute [rw] recommendation_id
72
+ # The ID of the recommendation.
73
+ # @return [String]
74
+ #
64
75
  # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-runtime-2018-05-22/GetPersonalizedRankingResponse AWS API Documentation
65
76
  #
66
77
  class GetPersonalizedRankingResponse < Struct.new(
67
- :personalized_ranking)
78
+ :personalized_ranking,
79
+ :recommendation_id)
68
80
  SENSITIVE = []
69
81
  include Aws::Structure
70
82
  end
@@ -114,7 +126,13 @@ module Aws::PersonalizeRuntime
114
126
  #
115
127
  # @!attribute [rw] filter_arn
116
128
  # The ARN of the filter to apply to the returned recommendations. For
117
- # 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
118
136
  # @return [String]
119
137
  #
120
138
  # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-runtime-2018-05-22/GetRecommendationsRequest AWS API Documentation
@@ -135,10 +153,15 @@ module Aws::PersonalizeRuntime
135
153
  # score. There can be a maximum of 500 items in the list.
136
154
  # @return [Array<Types::PredictedItem>]
137
155
  #
156
+ # @!attribute [rw] recommendation_id
157
+ # The ID of the recommendation.
158
+ # @return [String]
159
+ #
138
160
  # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-runtime-2018-05-22/GetRecommendationsResponse AWS API Documentation
139
161
  #
140
162
  class GetRecommendationsResponse < Struct.new(
141
- :item_list)
163
+ :item_list,
164
+ :recommendation_id)
142
165
  SENSITIVE = []
143
166
  include Aws::Structure
144
167
  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.13.0
4
+ version: 1.18.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-23 00:00:00.000000000 Z
11
+ date: 2020-09-30 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.99.0
22
+ version: 3.109.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.99.0
32
+ version: 3.109.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement