aws-sdk-personalizeevents 1.13.0 → 1.14.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: 883d3fd4d4bd4b356bff021a87abe1c8177fca1f8d9db54c496f0442284534c8
4
- data.tar.gz: 5ffe0a96608b97086826291555b38bb3b5f00e13b8060e188efefac5eceea482
3
+ metadata.gz: 0b120105f555c6a740796d1a3914e986da6d49c134f1ead63701ca5b3d2e1438
4
+ data.tar.gz: 06bb21430e9d02bd44b24c7c3487653cad4bd8e2ae9573ead8170ef4b1d8920e
5
5
  SHA512:
6
- metadata.gz: 3a3949b4d0240091b60eb761138f248bee269c8c5580e43ecb359f93eb1436a3e9c8d6907046a15ab4af3a12143ed33920b4b3bc3f292b713b0f7ef8af08792e
7
- data.tar.gz: 927974b21acc4fa212291b3d11a43194b0179e5eb0376b7bb2136d4ec8c6fa826e81eb1c3adebae5bcaf1132f66c266f797e7a0d97c91f27c682e72c7376d21c
6
+ metadata.gz: a83536240854bdc8e84684d906befc076b3c06089cf502cfe320475d69c59ae8ca17bfa95737aabd80450853e8dec5d0af36da85d0591a9cb69d1c2b66a50d11
7
+ data.tar.gz: 8865de0f092984e3303d00328b75f47290444601298da59bb1bfd670212716b253a51295a81bf3d60ad725eb620e4116ede47b9c1b1a5769e99c6a3b48fbd150
@@ -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.13.0'
51
+ GEM_VERSION = '1.14.0'
52
52
 
53
53
  end
@@ -382,6 +382,72 @@ module Aws::PersonalizeEvents
382
382
  req.send_request(options)
383
383
  end
384
384
 
385
+ # Adds one or more items to an Items dataset. For more information see
386
+ # importing-items.
387
+ #
388
+ # @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.
391
+ #
392
+ # @option params [required, Array<Types::Item>] :items
393
+ # A list of item data.
394
+ #
395
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
396
+ #
397
+ # @example Request syntax with placeholder values
398
+ #
399
+ # resp = client.put_items({
400
+ # dataset_arn: "Arn", # required
401
+ # items: [ # required
402
+ # {
403
+ # item_id: "StringType", # required
404
+ # properties: "ItemProperties",
405
+ # },
406
+ # ],
407
+ # })
408
+ #
409
+ # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-events-2018-03-22/PutItems AWS API Documentation
410
+ #
411
+ # @overload put_items(params = {})
412
+ # @param [Hash] params ({})
413
+ def put_items(params = {}, options = {})
414
+ req = build_request(:put_items, params)
415
+ req.send_request(options)
416
+ end
417
+
418
+ # Adds one or more users to a Users dataset. For more information see
419
+ # importing-users.
420
+ #
421
+ # @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.
424
+ #
425
+ # @option params [required, Array<Types::User>] :users
426
+ # A list of user data.
427
+ #
428
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
429
+ #
430
+ # @example Request syntax with placeholder values
431
+ #
432
+ # resp = client.put_users({
433
+ # dataset_arn: "Arn", # required
434
+ # users: [ # required
435
+ # {
436
+ # user_id: "StringType", # required
437
+ # properties: "UserProperties",
438
+ # },
439
+ # ],
440
+ # })
441
+ #
442
+ # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-events-2018-03-22/PutUsers AWS API Documentation
443
+ #
444
+ # @overload put_users(params = {})
445
+ # @param [Hash] params ({})
446
+ def put_users(params = {}, options = {})
447
+ req = build_request(:put_users, params)
448
+ req.send_request(options)
449
+ end
450
+
385
451
  # @!endgroup
386
452
 
387
453
  # @param params ({})
@@ -395,7 +461,7 @@ module Aws::PersonalizeEvents
395
461
  params: params,
396
462
  config: config)
397
463
  context[:gem_name] = 'aws-sdk-personalizeevents'
398
- context[:gem_version] = '1.13.0'
464
+ context[:gem_version] = '1.14.0'
399
465
  Seahorse::Client::Request.new(handlers, context)
400
466
  end
401
467
 
@@ -13,6 +13,7 @@ module Aws::PersonalizeEvents
13
13
 
14
14
  include Seahorse::Model
15
15
 
16
+ Arn = Shapes::StringShape.new(name: 'Arn')
16
17
  Date = Shapes::TimestampShape.new(name: 'Date')
17
18
  ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
18
19
  Event = Shapes::StructureShape.new(name: 'Event')
@@ -21,11 +22,20 @@ module Aws::PersonalizeEvents
21
22
  FloatType = Shapes::FloatShape.new(name: 'FloatType')
22
23
  Impression = Shapes::ListShape.new(name: 'Impression')
23
24
  InvalidInputException = Shapes::StructureShape.new(name: 'InvalidInputException')
25
+ Item = Shapes::StructureShape.new(name: 'Item')
24
26
  ItemId = Shapes::StringShape.new(name: 'ItemId')
27
+ ItemList = Shapes::ListShape.new(name: 'ItemList')
28
+ ItemProperties = Shapes::StringShape.new(name: 'ItemProperties')
25
29
  PutEventsRequest = Shapes::StructureShape.new(name: 'PutEventsRequest')
30
+ PutItemsRequest = Shapes::StructureShape.new(name: 'PutItemsRequest')
31
+ PutUsersRequest = Shapes::StructureShape.new(name: 'PutUsersRequest')
26
32
  RecommendationId = Shapes::StringShape.new(name: 'RecommendationId')
33
+ ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
27
34
  StringType = Shapes::StringShape.new(name: 'StringType')
35
+ User = Shapes::StructureShape.new(name: 'User')
28
36
  UserId = Shapes::StringShape.new(name: 'UserId')
37
+ UserList = Shapes::ListShape.new(name: 'UserList')
38
+ UserProperties = Shapes::StringShape.new(name: 'UserProperties')
29
39
 
30
40
  Event.add_member(:event_id, Shapes::ShapeRef.new(shape: StringType, location_name: "eventId"))
31
41
  Event.add_member(:event_type, Shapes::ShapeRef.new(shape: StringType, required: true, location_name: "eventType"))
@@ -44,12 +54,35 @@ module Aws::PersonalizeEvents
44
54
  InvalidInputException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
45
55
  InvalidInputException.struct_class = Types::InvalidInputException
46
56
 
57
+ Item.add_member(:item_id, Shapes::ShapeRef.new(shape: StringType, required: true, location_name: "itemId"))
58
+ Item.add_member(:properties, Shapes::ShapeRef.new(shape: ItemProperties, location_name: "properties", metadata: {"jsonvalue"=>true}))
59
+ Item.struct_class = Types::Item
60
+
61
+ ItemList.member = Shapes::ShapeRef.new(shape: Item)
62
+
47
63
  PutEventsRequest.add_member(:tracking_id, Shapes::ShapeRef.new(shape: StringType, required: true, location_name: "trackingId"))
48
64
  PutEventsRequest.add_member(:user_id, Shapes::ShapeRef.new(shape: UserId, location_name: "userId"))
49
65
  PutEventsRequest.add_member(:session_id, Shapes::ShapeRef.new(shape: StringType, required: true, location_name: "sessionId"))
50
66
  PutEventsRequest.add_member(:event_list, Shapes::ShapeRef.new(shape: EventList, required: true, location_name: "eventList"))
51
67
  PutEventsRequest.struct_class = Types::PutEventsRequest
52
68
 
69
+ PutItemsRequest.add_member(:dataset_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "datasetArn"))
70
+ PutItemsRequest.add_member(:items, Shapes::ShapeRef.new(shape: ItemList, required: true, location_name: "items"))
71
+ PutItemsRequest.struct_class = Types::PutItemsRequest
72
+
73
+ PutUsersRequest.add_member(:dataset_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "datasetArn"))
74
+ PutUsersRequest.add_member(:users, Shapes::ShapeRef.new(shape: UserList, required: true, location_name: "users"))
75
+ PutUsersRequest.struct_class = Types::PutUsersRequest
76
+
77
+ ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
78
+ ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
79
+
80
+ User.add_member(:user_id, Shapes::ShapeRef.new(shape: StringType, required: true, location_name: "userId"))
81
+ User.add_member(:properties, Shapes::ShapeRef.new(shape: UserProperties, location_name: "properties", metadata: {"jsonvalue"=>true}))
82
+ User.struct_class = Types::User
83
+
84
+ UserList.member = Shapes::ShapeRef.new(shape: User)
85
+
53
86
 
54
87
  # @api private
55
88
  API = Seahorse::Model::Api.new.tap do |api|
@@ -76,6 +109,26 @@ module Aws::PersonalizeEvents
76
109
  o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
77
110
  o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
78
111
  end)
112
+
113
+ api.add_operation(:put_items, Seahorse::Model::Operation.new.tap do |o|
114
+ o.name = "PutItems"
115
+ o.http_method = "POST"
116
+ o.http_request_uri = "/items"
117
+ o.input = Shapes::ShapeRef.new(shape: PutItemsRequest)
118
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
119
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
120
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
121
+ end)
122
+
123
+ api.add_operation(:put_users, Seahorse::Model::Operation.new.tap do |o|
124
+ o.name = "PutUsers"
125
+ o.http_method = "POST"
126
+ o.http_request_uri = "/users"
127
+ o.input = Shapes::ShapeRef.new(shape: PutUsersRequest)
128
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
129
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
130
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
131
+ end)
79
132
  end
80
133
 
81
134
  end
@@ -28,6 +28,7 @@ module Aws::PersonalizeEvents
28
28
  #
29
29
  # ## Error Classes
30
30
  # * {InvalidInputException}
31
+ # * {ResourceNotFoundException}
31
32
  #
32
33
  # Additionally, error classes are dynamically generated for service errors based on the error code
33
34
  # if they are not defined above.
@@ -50,5 +51,20 @@ module Aws::PersonalizeEvents
50
51
  end
51
52
  end
52
53
 
54
+ class ResourceNotFoundException < ServiceError
55
+
56
+ # @param [Seahorse::Client::RequestContext] context
57
+ # @param [String] message
58
+ # @param [Aws::PersonalizeEvents::Types::ResourceNotFoundException] data
59
+ def initialize(context, message, data = Aws::EmptyStructure.new)
60
+ super(context, message, data)
61
+ end
62
+
63
+ # @return [String]
64
+ def message
65
+ @message || @data[:message]
66
+ end
67
+ end
68
+
53
69
  end
54
70
  end
@@ -36,8 +36,9 @@ module Aws::PersonalizeEvents
36
36
  # @return [String]
37
37
  #
38
38
  # @!attribute [rw] event_type
39
- # The type of event. This property corresponds to the `EVENT_TYPE`
40
- # field of the Interactions schema.
39
+ # The type of event, such as click or download. This property
40
+ # corresponds to the `EVENT_TYPE` field of your Interactions schema
41
+ # and depends on the types of events you are tracking.
41
42
  # @return [String]
42
43
  #
43
44
  # @!attribute [rw] event_value
@@ -108,6 +109,41 @@ module Aws::PersonalizeEvents
108
109
  include Aws::Structure
109
110
  end
110
111
 
112
+ # Represents item metadata added to an Items dataset using the
113
+ # `PutItems` API.
114
+ #
115
+ # @note When making an API call, you may pass Item
116
+ # data as a hash:
117
+ #
118
+ # {
119
+ # item_id: "StringType", # required
120
+ # properties: "ItemProperties",
121
+ # }
122
+ #
123
+ # @!attribute [rw] item_id
124
+ # The ID associated with the item.
125
+ # @return [String]
126
+ #
127
+ # @!attribute [rw] properties
128
+ # 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.
136
+ # @return [String]
137
+ #
138
+ # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-events-2018-03-22/Item AWS API Documentation
139
+ #
140
+ class Item < Struct.new(
141
+ :item_id,
142
+ :properties)
143
+ SENSITIVE = []
144
+ include Aws::Structure
145
+ end
146
+
111
147
  # @note When making an API call, you may pass PutEventsRequest
112
148
  # data as a hash:
113
149
  #
@@ -165,5 +201,116 @@ module Aws::PersonalizeEvents
165
201
  include Aws::Structure
166
202
  end
167
203
 
204
+ # @note When making an API call, you may pass PutItemsRequest
205
+ # data as a hash:
206
+ #
207
+ # {
208
+ # dataset_arn: "Arn", # required
209
+ # items: [ # required
210
+ # {
211
+ # item_id: "StringType", # required
212
+ # properties: "ItemProperties",
213
+ # },
214
+ # ],
215
+ # }
216
+ #
217
+ # @!attribute [rw] dataset_arn
218
+ # The Amazon Resource Number (ARN) of the Items dataset you are adding
219
+ # the item or items to.
220
+ # @return [String]
221
+ #
222
+ # @!attribute [rw] items
223
+ # A list of item data.
224
+ # @return [Array<Types::Item>]
225
+ #
226
+ # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-events-2018-03-22/PutItemsRequest AWS API Documentation
227
+ #
228
+ class PutItemsRequest < Struct.new(
229
+ :dataset_arn,
230
+ :items)
231
+ SENSITIVE = []
232
+ include Aws::Structure
233
+ end
234
+
235
+ # @note When making an API call, you may pass PutUsersRequest
236
+ # data as a hash:
237
+ #
238
+ # {
239
+ # dataset_arn: "Arn", # required
240
+ # users: [ # required
241
+ # {
242
+ # user_id: "StringType", # required
243
+ # properties: "UserProperties",
244
+ # },
245
+ # ],
246
+ # }
247
+ #
248
+ # @!attribute [rw] dataset_arn
249
+ # The Amazon Resource Number (ARN) of the Users dataset you are adding
250
+ # the user or users to.
251
+ # @return [String]
252
+ #
253
+ # @!attribute [rw] users
254
+ # A list of user data.
255
+ # @return [Array<Types::User>]
256
+ #
257
+ # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-events-2018-03-22/PutUsersRequest AWS API Documentation
258
+ #
259
+ class PutUsersRequest < Struct.new(
260
+ :dataset_arn,
261
+ :users)
262
+ SENSITIVE = []
263
+ include Aws::Structure
264
+ end
265
+
266
+ # Could not find the specified resource.
267
+ #
268
+ # @!attribute [rw] message
269
+ # @return [String]
270
+ #
271
+ # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-events-2018-03-22/ResourceNotFoundException AWS API Documentation
272
+ #
273
+ class ResourceNotFoundException < Struct.new(
274
+ :message)
275
+ SENSITIVE = []
276
+ include Aws::Structure
277
+ end
278
+
279
+ # Represents user metadata added to a Users dataset using the `PutUsers`
280
+ # API.
281
+ #
282
+ # @note When making an API call, you may pass User
283
+ # data as a hash:
284
+ #
285
+ # {
286
+ # user_id: "StringType", # required
287
+ # properties: "UserProperties",
288
+ # }
289
+ #
290
+ # @!attribute [rw] user_id
291
+ # The ID associated with the user.
292
+ # @return [String]
293
+ #
294
+ # @!attribute [rw] properties
295
+ # A string map of user-specific metadata. Each element in the map
296
+ # 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.
304
+ # @return [String]
305
+ #
306
+ # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-events-2018-03-22/User AWS API Documentation
307
+ #
308
+ class User < Struct.new(
309
+ :user_id,
310
+ :properties)
311
+ SENSITIVE = []
312
+ include Aws::Structure
313
+ end
314
+
168
315
  end
169
316
  end
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.13.0
4
+ version: 1.14.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-09-30 00:00:00.000000000 Z
11
+ date: 2020-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core