aws-sdk-personalizeevents 1.10.0 → 1.15.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: b0c509b86b648239c3070225e0757262480f0a3623a887e67cbe78ce8104a037
4
- data.tar.gz: eec0f6099ad0d067e0c743ee9d4edc10e58ec8638596ee8ef482d696ede3b1d5
3
+ metadata.gz: b9efe3487baebb9ff34ac5616562bcda8041bf5c7097de413e2d4a0ee7ebade0
4
+ data.tar.gz: 015ac526f46c294147ecfba53fea9d30549c66aaaa25be3ee5ab10cd15a6c296
5
5
  SHA512:
6
- metadata.gz: 8ff73826cba180a4dba7e048bba530cb6ed8301e904fa846c01dc9a215188419f0ee538521e65da46d6421eec489ff60ab4821e95f21dd6aab08590227700159
7
- data.tar.gz: 05d5da709ea58dfa2ca88a35b307a9941a6dc6c2aa4a706250184e04baff156b505daeaf6674ec72143d573c1ba454b48e1ef78af4b3c1183bc989eb9b897fcf
6
+ metadata.gz: e58c4018315b51c0cb33f9d98ddd4367341454747c207eecac8d0bb67d3cbefdec638f2401276ea3645ba602abdd834a481755c9b54c45b73d7e23cf7712ca3a
7
+ data.tar.gz: 94f5a041b67e359767d9e8aca28a5005aab2f605a2c1fdbe2d673262464ccc11b098d42fdfd739c5d43028757f4085b4fe28eb39e9bf1069061254c4ba3a49b5
@@ -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-personalizeevents/customizations'
44
45
  #
45
46
  # See {Errors} for more information.
46
47
  #
47
- # @service
48
+ # @!group service
48
49
  module Aws::PersonalizeEvents
49
50
 
50
- GEM_VERSION = '1.10.0'
51
+ GEM_VERSION = '1.15.0'
51
52
 
52
53
  end
@@ -85,13 +85,28 @@ module Aws::PersonalizeEvents
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::PersonalizeEvents
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
@@ -367,6 +382,72 @@ module Aws::PersonalizeEvents
367
382
  req.send_request(options)
368
383
  end
369
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
+
370
451
  # @!endgroup
371
452
 
372
453
  # @param params ({})
@@ -380,7 +461,7 @@ module Aws::PersonalizeEvents
380
461
  params: params,
381
462
  config: config)
382
463
  context[:gem_name] = 'aws-sdk-personalizeevents'
383
- context[:gem_version] = '1.10.0'
464
+ context[:gem_version] = '1.15.0'
384
465
  Seahorse::Client::Request.new(handlers, context)
385
466
  end
386
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.10.0
4
+ version: 1.15.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-08-06 00:00:00.000000000 Z
11
+ date: 2021-02-02 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.112.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.112.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement