aws-sdk-personalizeevents 1.15.0 → 1.16.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: b9efe3487baebb9ff34ac5616562bcda8041bf5c7097de413e2d4a0ee7ebade0
4
- data.tar.gz: 015ac526f46c294147ecfba53fea9d30549c66aaaa25be3ee5ab10cd15a6c296
3
+ metadata.gz: fd0b533a3d346ed3c67f830a2c38cabdfc0511d066300b02da789f943d67bf09
4
+ data.tar.gz: f02cc1929f8f100e052bcd6f276c1989bb82f38bc91983692c7c2768eeaa8fa3
5
5
  SHA512:
6
- metadata.gz: e58c4018315b51c0cb33f9d98ddd4367341454747c207eecac8d0bb67d3cbefdec638f2401276ea3645ba602abdd834a481755c9b54c45b73d7e23cf7712ca3a
7
- data.tar.gz: 94f5a041b67e359767d9e8aca28a5005aab2f605a2c1fdbe2d673262464ccc11b098d42fdfd739c5d43028757f4085b4fe28eb39e9bf1069061254c4ba3a49b5
6
+ metadata.gz: ac25c1b66a5c3581e5d6f000e632fe170b19916820159a731913a8775e0f7a79293873bbe8b94fc43cdba4e715fd04903be3b1a49d50972e8cfe0ecb1764ff1b
7
+ data.tar.gz: 0a6ee1743805f2e12e0407d7c737dc6803592e7f1e135b64dae43ca54a67821d5145ba90efc4c96bea78eef25d2095ffc96f09df899f62b1e30ad6a54179e648
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-personalizeevents/customizations'
48
48
  # @!group service
49
49
  module Aws::PersonalizeEvents
50
50
 
51
- GEM_VERSION = '1.15.0'
51
+ GEM_VERSION = '1.16.0'
52
52
 
53
53
  end
@@ -328,7 +328,11 @@ module Aws::PersonalizeEvents
328
328
  # @!group API Operations
329
329
 
330
330
  # Records user interaction event data. For more information see
331
- # event-record-api.
331
+ # [Recording Events][1].
332
+ #
333
+ #
334
+ #
335
+ # [1]: https://docs.aws.amazon.com/personalize/latest/dg/recording-events.html
332
336
  #
333
337
  # @option params [required, String] :tracking_id
334
338
  # The tracking ID for the event. The ID is generated by a call to the
@@ -345,8 +349,12 @@ module Aws::PersonalizeEvents
345
349
  # The session ID associated with the user's visit. Your application
346
350
  # generates the sessionId when a user first visits your website or uses
347
351
  # your application. Amazon Personalize uses the sessionId to associate
348
- # events with the user before they log in. For more information see
349
- # event-record-api.
352
+ # events with the user before they log in. For more information, see
353
+ # [Recording Events][1].
354
+ #
355
+ #
356
+ #
357
+ # [1]: https://docs.aws.amazon.com/personalize/latest/dg/recording-events.html
350
358
  #
351
359
  # @option params [required, Array<Types::Event>] :event_list
352
360
  # A list of event data from the session.
@@ -383,11 +391,15 @@ module Aws::PersonalizeEvents
383
391
  end
384
392
 
385
393
  # Adds one or more items to an Items dataset. For more information see
386
- # importing-items.
394
+ # [Importing Items Incrementally][1].
395
+ #
396
+ #
397
+ #
398
+ # [1]: https://docs.aws.amazon.com/personalize/latest/dg/importing-items.html
387
399
  #
388
400
  # @option params [required, String] :dataset_arn
389
- # The Amazon Resource Number (ARN) of the Items dataset you are adding
390
- # the item or items to.
401
+ # The Amazon Resource Name (ARN) of the Items dataset you are adding the
402
+ # item or items to.
391
403
  #
392
404
  # @option params [required, Array<Types::Item>] :items
393
405
  # A list of item data.
@@ -416,11 +428,15 @@ module Aws::PersonalizeEvents
416
428
  end
417
429
 
418
430
  # Adds one or more users to a Users dataset. For more information see
419
- # importing-users.
431
+ # [Importing Users Incrementally][1].
432
+ #
433
+ #
434
+ #
435
+ # [1]: https://docs.aws.amazon.com/personalize/latest/dg/importing-users.html
420
436
  #
421
437
  # @option params [required, String] :dataset_arn
422
- # The Amazon Resource Number (ARN) of the Users dataset you are adding
423
- # the user or users to.
438
+ # The Amazon Resource Name (ARN) of the Users dataset you are adding the
439
+ # user or users to.
424
440
  #
425
441
  # @option params [required, Array<Types::User>] :users
426
442
  # A list of user data.
@@ -461,7 +477,7 @@ module Aws::PersonalizeEvents
461
477
  params: params,
462
478
  config: config)
463
479
  context[:gem_name] = 'aws-sdk-personalizeevents'
464
- context[:gem_version] = '1.15.0'
480
+ context[:gem_version] = '1.16.0'
465
481
  Seahorse::Client::Request.new(handlers, context)
466
482
  end
467
483
 
@@ -30,6 +30,7 @@ module Aws::PersonalizeEvents
30
30
  PutItemsRequest = Shapes::StructureShape.new(name: 'PutItemsRequest')
31
31
  PutUsersRequest = Shapes::StructureShape.new(name: 'PutUsersRequest')
32
32
  RecommendationId = Shapes::StringShape.new(name: 'RecommendationId')
33
+ ResourceInUseException = Shapes::StructureShape.new(name: 'ResourceInUseException')
33
34
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
34
35
  StringType = Shapes::StringShape.new(name: 'StringType')
35
36
  User = Shapes::StructureShape.new(name: 'User')
@@ -74,6 +75,9 @@ module Aws::PersonalizeEvents
74
75
  PutUsersRequest.add_member(:users, Shapes::ShapeRef.new(shape: UserList, required: true, location_name: "users"))
75
76
  PutUsersRequest.struct_class = Types::PutUsersRequest
76
77
 
78
+ ResourceInUseException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
79
+ ResourceInUseException.struct_class = Types::ResourceInUseException
80
+
77
81
  ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
78
82
  ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
79
83
 
@@ -118,6 +122,7 @@ module Aws::PersonalizeEvents
118
122
  o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
119
123
  o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
120
124
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
125
+ o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
121
126
  end)
122
127
 
123
128
  api.add_operation(:put_users, Seahorse::Model::Operation.new.tap do |o|
@@ -128,6 +133,7 @@ module Aws::PersonalizeEvents
128
133
  o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
129
134
  o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
130
135
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
136
+ o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
131
137
  end)
132
138
  end
133
139
 
@@ -28,6 +28,7 @@ module Aws::PersonalizeEvents
28
28
  #
29
29
  # ## Error Classes
30
30
  # * {InvalidInputException}
31
+ # * {ResourceInUseException}
31
32
  # * {ResourceNotFoundException}
32
33
  #
33
34
  # Additionally, error classes are dynamically generated for service errors based on the error code
@@ -51,6 +52,21 @@ module Aws::PersonalizeEvents
51
52
  end
52
53
  end
53
54
 
55
+ class ResourceInUseException < ServiceError
56
+
57
+ # @param [Seahorse::Client::RequestContext] context
58
+ # @param [String] message
59
+ # @param [Aws::PersonalizeEvents::Types::ResourceInUseException] data
60
+ def initialize(context, message, data = Aws::EmptyStructure.new)
61
+ super(context, message, data)
62
+ end
63
+
64
+ # @return [String]
65
+ def message
66
+ @message || @data[:message]
67
+ end
68
+ end
69
+
54
70
  class ResourceNotFoundException < ServiceError
55
71
 
56
72
  # @param [Seahorse::Client::RequestContext] context
@@ -110,7 +110,12 @@ module Aws::PersonalizeEvents
110
110
  end
111
111
 
112
112
  # Represents item metadata added to an Items dataset using the
113
- # `PutItems` API.
113
+ # `PutItems` API. For more information see [Importing Items
114
+ # Incrementally][1].
115
+ #
116
+ #
117
+ #
118
+ # [1]: https://docs.aws.amazon.com/personalize/latest/dg/importing-items.html
114
119
  #
115
120
  # @note When making an API call, you may pass Item
116
121
  # data as a hash:
@@ -126,13 +131,15 @@ module Aws::PersonalizeEvents
126
131
  #
127
132
  # @!attribute [rw] properties
128
133
  # A string map of item-specific metadata. Each element in the map
129
- # consists of a key-value pair. For example,
130
- #
131
- # `\{"numberOfRatings": "12"\}`
132
- #
133
- # The keys use camel case names that match the fields in the Items
134
- # schema. In the above example, the `numberOfRatings` would match the
135
- # 'NUMBER\_OF\_RATINGS' field defined in the Items schema.
134
+ # consists of a key-value pair. For example, `\{"numberOfRatings":
135
+ # "12"\}`.
136
+ #
137
+ # The keys use camel case names that match the fields in the schema
138
+ # for the Items dataset. In the previous example, the
139
+ # `numberOfRatings` matches the 'NUMBER\_OF\_RATINGS' field defined
140
+ # in the Items schema. For categorical string data, to include
141
+ # multiple categories for a single item, separate each category with a
142
+ # pipe separator (`|`). For example, `"Horror|Action"`.
136
143
  # @return [String]
137
144
  #
138
145
  # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-events-2018-03-22/Item AWS API Documentation
@@ -183,7 +190,11 @@ module Aws::PersonalizeEvents
183
190
  # generates the sessionId when a user first visits your website or
184
191
  # uses your application. Amazon Personalize uses the sessionId to
185
192
  # associate events with the user before they log in. For more
186
- # information see event-record-api.
193
+ # information, see [Recording Events][1].
194
+ #
195
+ #
196
+ #
197
+ # [1]: https://docs.aws.amazon.com/personalize/latest/dg/recording-events.html
187
198
  # @return [String]
188
199
  #
189
200
  # @!attribute [rw] event_list
@@ -215,7 +226,7 @@ module Aws::PersonalizeEvents
215
226
  # }
216
227
  #
217
228
  # @!attribute [rw] dataset_arn
218
- # The Amazon Resource Number (ARN) of the Items dataset you are adding
229
+ # The Amazon Resource Name (ARN) of the Items dataset you are adding
219
230
  # the item or items to.
220
231
  # @return [String]
221
232
  #
@@ -246,7 +257,7 @@ module Aws::PersonalizeEvents
246
257
  # }
247
258
  #
248
259
  # @!attribute [rw] dataset_arn
249
- # The Amazon Resource Number (ARN) of the Users dataset you are adding
260
+ # The Amazon Resource Name (ARN) of the Users dataset you are adding
250
261
  # the user or users to.
251
262
  # @return [String]
252
263
  #
@@ -263,6 +274,19 @@ module Aws::PersonalizeEvents
263
274
  include Aws::Structure
264
275
  end
265
276
 
277
+ # The specified resource is in use.
278
+ #
279
+ # @!attribute [rw] message
280
+ # @return [String]
281
+ #
282
+ # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-events-2018-03-22/ResourceInUseException AWS API Documentation
283
+ #
284
+ class ResourceInUseException < Struct.new(
285
+ :message)
286
+ SENSITIVE = []
287
+ include Aws::Structure
288
+ end
289
+
266
290
  # Could not find the specified resource.
267
291
  #
268
292
  # @!attribute [rw] message
@@ -277,7 +301,11 @@ module Aws::PersonalizeEvents
277
301
  end
278
302
 
279
303
  # Represents user metadata added to a Users dataset using the `PutUsers`
280
- # API.
304
+ # API. For more information see [Importing Users Incrementally][1].
305
+ #
306
+ #
307
+ #
308
+ # [1]: https://docs.aws.amazon.com/personalize/latest/dg/importing-users.html
281
309
  #
282
310
  # @note When making an API call, you may pass User
283
311
  # data as a hash:
@@ -294,13 +322,15 @@ module Aws::PersonalizeEvents
294
322
  # @!attribute [rw] properties
295
323
  # A string map of user-specific metadata. Each element in the map
296
324
  # consists of a key-value pair. For example,
297
- #
298
- # `\{"numberOfVideosWatched": "45"\}`
299
- #
300
- # The keys use camel case names that match the fields in the Users
301
- # schema. In the above example, the `numberOfVideosWatched` would
302
- # match the 'NUMBER\_OF\_VIDEOS\_WATCHED' field defined in the Users
303
- # schema.
325
+ # `\{"numberOfVideosWatched": "45"\}`.
326
+ #
327
+ # The keys use camel case names that match the fields in the schema
328
+ # for the Users dataset. In the previous example, the
329
+ # `numberOfVideosWatched` matches the 'NUMBER\_OF\_VIDEOS\_WATCHED'
330
+ # field defined in the Users schema. For categorical string data, to
331
+ # include multiple categories for a single user, separate each
332
+ # category with a pipe separator (`|`). For example,
333
+ # `"Member|Frequent shopper"`.
304
334
  # @return [String]
305
335
  #
306
336
  # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-events-2018-03-22/User AWS API Documentation
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-personalizeevents
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.15.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: 2021-02-02 00:00:00.000000000 Z
11
+ date: 2021-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core