aws-sdk-personalizeevents 1.6.0 → 1.11.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: '090121e567bb6c395ff5ffd3a684bc195a850b3085e9feca0fc26a60cb2a571a'
4
- data.tar.gz: 27c19a40f3ea598a905ec35e75e65bbbc1fc7379d7a4bbae4da8c23c48ae15be
3
+ metadata.gz: bdabd33d4876d4dc07e4ea82f8e9d4b0c1b8edb8eb4795180c3cb25f25ba8149
4
+ data.tar.gz: 0b1495a68a5f8406a1c22814786250b688bf5930152250bb33a13e483fa2832b
5
5
  SHA512:
6
- metadata.gz: bdead4e69b6e32fb7f8b94ef0859e0d186f5b10b8867c27ce01eb3b49630319f4677eab7a6a12b4c8402069f5b3e0f5a600ef555ea5176dddfecfe106d8d0814
7
- data.tar.gz: 48ca4010234ebf5f68b2d741a5a6f2b139da540bdfb883fc5a2c5835429f97da8ea5c9ae3bffbb9a8b9c3facf83bb43d7708a2ff74dfc2227c0f28384e862a6b
6
+ metadata.gz: 75ce5ca7c7654eadf33328c3936000b929f44b68faf14f8282e5ad27342e3ba84016d4760fa7affc6fa96cd0536b870a66fd50c185ae544c2f33b3d0f966dec4
7
+ data.tar.gz: 3959f6f2ac5d74e804932bbb5345c886f08d87363114b46a1c5eec10bed7541a983b480b8bd0095e586d162f36075bd58db3d17db050c7aca2bf52db65508616
@@ -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-personalizeevents/customizations'
42
44
  #
43
45
  # See {Errors} for more information.
44
46
  #
45
- # @service
47
+ # @!group service
46
48
  module Aws::PersonalizeEvents
47
49
 
48
- GEM_VERSION = '1.6.0'
50
+ GEM_VERSION = '1.11.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::PersonalizeEvents
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::PersonalizeEvents
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::PersonalizeEvents
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::PersonalizeEvents
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
@@ -176,7 +195,7 @@ module Aws::PersonalizeEvents
176
195
  # requests fetching endpoints information. Defaults to 60 sec.
177
196
  #
178
197
  # @option options [Boolean] :endpoint_discovery (false)
179
- # When set to `true`, endpoint discovery will be enabled for operations when available. Defaults to `false`.
198
+ # When set to `true`, endpoint discovery will be enabled for operations when available.
180
199
  #
181
200
  # @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
182
201
  # The log formatter.
@@ -308,7 +327,8 @@ module Aws::PersonalizeEvents
308
327
 
309
328
  # @!group API Operations
310
329
 
311
- # Records user interaction event data.
330
+ # Records user interaction event data. For more information see
331
+ # event-record-api.
312
332
  #
313
333
  # @option params [required, String] :tracking_id
314
334
  # The tracking ID for the event. The ID is generated by a call to the
@@ -322,7 +342,11 @@ module Aws::PersonalizeEvents
322
342
  # The user associated with the event.
323
343
  #
324
344
  # @option params [required, String] :session_id
325
- # The session ID associated with the user's visit.
345
+ # The session ID associated with the user's visit. Your application
346
+ # generates the sessionId when a user first visits your website or uses
347
+ # 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.
326
350
  #
327
351
  # @option params [required, Array<Types::Event>] :event_list
328
352
  # A list of event data from the session.
@@ -339,8 +363,12 @@ module Aws::PersonalizeEvents
339
363
  # {
340
364
  # event_id: "StringType",
341
365
  # event_type: "StringType", # required
342
- # properties: "EventPropertiesJSON", # required
366
+ # event_value: 1.0,
367
+ # item_id: "ItemId",
368
+ # properties: "EventPropertiesJSON",
343
369
  # sent_at: Time.now, # required
370
+ # recommendation_id: "RecommendationId",
371
+ # impression: ["ItemId"],
344
372
  # },
345
373
  # ],
346
374
  # })
@@ -367,7 +395,7 @@ module Aws::PersonalizeEvents
367
395
  params: params,
368
396
  config: config)
369
397
  context[:gem_name] = 'aws-sdk-personalizeevents'
370
- context[:gem_version] = '1.6.0'
398
+ context[:gem_version] = '1.11.0'
371
399
  Seahorse::Client::Request.new(handlers, context)
372
400
  end
373
401
 
@@ -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:
@@ -16,19 +18,29 @@ module Aws::PersonalizeEvents
16
18
  Event = Shapes::StructureShape.new(name: 'Event')
17
19
  EventList = Shapes::ListShape.new(name: 'EventList')
18
20
  EventPropertiesJSON = Shapes::StringShape.new(name: 'EventPropertiesJSON')
21
+ FloatType = Shapes::FloatShape.new(name: 'FloatType')
22
+ Impression = Shapes::ListShape.new(name: 'Impression')
19
23
  InvalidInputException = Shapes::StructureShape.new(name: 'InvalidInputException')
24
+ ItemId = Shapes::StringShape.new(name: 'ItemId')
20
25
  PutEventsRequest = Shapes::StructureShape.new(name: 'PutEventsRequest')
26
+ RecommendationId = Shapes::StringShape.new(name: 'RecommendationId')
21
27
  StringType = Shapes::StringShape.new(name: 'StringType')
22
28
  UserId = Shapes::StringShape.new(name: 'UserId')
23
29
 
24
30
  Event.add_member(:event_id, Shapes::ShapeRef.new(shape: StringType, location_name: "eventId"))
25
31
  Event.add_member(:event_type, Shapes::ShapeRef.new(shape: StringType, required: true, location_name: "eventType"))
26
- Event.add_member(:properties, Shapes::ShapeRef.new(shape: EventPropertiesJSON, required: true, location_name: "properties", metadata: {"jsonvalue"=>true}))
32
+ Event.add_member(:event_value, Shapes::ShapeRef.new(shape: FloatType, location_name: "eventValue"))
33
+ Event.add_member(:item_id, Shapes::ShapeRef.new(shape: ItemId, location_name: "itemId"))
34
+ Event.add_member(:properties, Shapes::ShapeRef.new(shape: EventPropertiesJSON, location_name: "properties", metadata: {"jsonvalue"=>true}))
27
35
  Event.add_member(:sent_at, Shapes::ShapeRef.new(shape: Date, required: true, location_name: "sentAt"))
36
+ Event.add_member(:recommendation_id, Shapes::ShapeRef.new(shape: RecommendationId, location_name: "recommendationId"))
37
+ Event.add_member(:impression, Shapes::ShapeRef.new(shape: Impression, location_name: "impression"))
28
38
  Event.struct_class = Types::Event
29
39
 
30
40
  EventList.member = Shapes::ShapeRef.new(shape: Event)
31
41
 
42
+ Impression.member = Shapes::ShapeRef.new(shape: ItemId)
43
+
32
44
  InvalidInputException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
33
45
  InvalidInputException.struct_class = Types::InvalidInputException
34
46
 
@@ -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:
@@ -17,8 +19,12 @@ module Aws::PersonalizeEvents
17
19
  # {
18
20
  # event_id: "StringType",
19
21
  # event_type: "StringType", # required
20
- # properties: "EventPropertiesJSON", # required
22
+ # event_value: 1.0,
23
+ # item_id: "ItemId",
24
+ # properties: "EventPropertiesJSON",
21
25
  # sent_at: Time.now, # required
26
+ # recommendation_id: "RecommendationId",
27
+ # impression: ["ItemId"],
22
28
  # }
23
29
  #
24
30
  # @!attribute [rw] event_id
@@ -34,39 +40,58 @@ module Aws::PersonalizeEvents
34
40
  # field of the Interactions schema.
35
41
  # @return [String]
36
42
  #
43
+ # @!attribute [rw] event_value
44
+ # The event value that corresponds to the `EVENT_VALUE` field of the
45
+ # Interactions schema.
46
+ # @return [Float]
47
+ #
48
+ # @!attribute [rw] item_id
49
+ # The item ID key that corresponds to the `ITEM_ID` field of the
50
+ # Interactions schema.
51
+ # @return [String]
52
+ #
37
53
  # @!attribute [rw] properties
38
54
  # A string map of event-specific data that you might choose to record.
39
- # For example, if a user rates a movie on your site, you might send
40
- # the movie ID and rating, and the number of movie ratings made by the
41
- # user.
55
+ # For example, if a user rates a movie on your site, other than movie
56
+ # ID (`itemId`) and rating (`eventValue`) , you might also send the
57
+ # number of movie ratings made by the user.
42
58
  #
43
59
  # Each item in the map consists of a key-value pair. For example,
44
60
  #
45
- # `\{"itemId": "movie1"\}`
46
- #
47
- # `\{"itemId": "movie2", "eventValue": "4.5"\}`
48
- #
49
- # `\{"itemId": "movie3", "eventValue": "3", "numberOfRatings": "12"\}`
61
+ # `\{"numberOfRatings": "12"\}`
50
62
  #
51
63
  # The keys use camel case names that match the fields in the
52
- # Interactions schema. The `itemId` and `eventValue` keys correspond
53
- # to the `ITEM_ID` and `EVENT_VALUE` fields. In the above example, the
54
- # `eventType` might be 'MovieRating' with `eventValue` being the
55
- # rating. The `numberOfRatings` would match the
56
- # 'NUMBER\_OF\_RATINGS' field defined in the Interactions schema.
64
+ # Interactions schema. In the above example, the `numberOfRatings`
65
+ # would match the 'NUMBER\_OF\_RATINGS' field defined in the
66
+ # Interactions schema.
57
67
  # @return [String]
58
68
  #
59
69
  # @!attribute [rw] sent_at
60
- # The timestamp on the client side when the event occurred.
70
+ # The timestamp (in Unix time) on the client side when the event
71
+ # occurred.
61
72
  # @return [Time]
62
73
  #
74
+ # @!attribute [rw] recommendation_id
75
+ # The ID of the recommendation.
76
+ # @return [String]
77
+ #
78
+ # @!attribute [rw] impression
79
+ # A list of item IDs that represents the sequence of items you have
80
+ # shown the user. For example, `["itemId1", "itemId2", "itemId3"]`.
81
+ # @return [Array<String>]
82
+ #
63
83
  # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-events-2018-03-22/Event AWS API Documentation
64
84
  #
65
85
  class Event < Struct.new(
66
86
  :event_id,
67
87
  :event_type,
88
+ :event_value,
89
+ :item_id,
68
90
  :properties,
69
- :sent_at)
91
+ :sent_at,
92
+ :recommendation_id,
93
+ :impression)
94
+ SENSITIVE = []
70
95
  include Aws::Structure
71
96
  end
72
97
 
@@ -79,6 +104,7 @@ module Aws::PersonalizeEvents
79
104
  #
80
105
  class InvalidInputException < Struct.new(
81
106
  :message)
107
+ SENSITIVE = []
82
108
  include Aws::Structure
83
109
  end
84
110
 
@@ -93,8 +119,12 @@ module Aws::PersonalizeEvents
93
119
  # {
94
120
  # event_id: "StringType",
95
121
  # event_type: "StringType", # required
96
- # properties: "EventPropertiesJSON", # required
122
+ # event_value: 1.0,
123
+ # item_id: "ItemId",
124
+ # properties: "EventPropertiesJSON",
97
125
  # sent_at: Time.now, # required
126
+ # recommendation_id: "RecommendationId",
127
+ # impression: ["ItemId"],
98
128
  # },
99
129
  # ],
100
130
  # }
@@ -113,7 +143,11 @@ module Aws::PersonalizeEvents
113
143
  # @return [String]
114
144
  #
115
145
  # @!attribute [rw] session_id
116
- # The session ID associated with the user's visit.
146
+ # The session ID associated with the user's visit. Your application
147
+ # generates the sessionId when a user first visits your website or
148
+ # uses your application. Amazon Personalize uses the sessionId to
149
+ # associate events with the user before they log in. For more
150
+ # information see event-record-api.
117
151
  # @return [String]
118
152
  #
119
153
  # @!attribute [rw] event_list
@@ -127,6 +161,7 @@ module Aws::PersonalizeEvents
127
161
  :user_id,
128
162
  :session_id,
129
163
  :event_list)
164
+ SENSITIVE = []
130
165
  include Aws::Structure
131
166
  end
132
167
 
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.6.0
4
+ version: 1.11.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-05-07 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