aws-sdk-personalizeevents 1.7.0 → 1.12.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: 3095ea8f3c60bdce9ecc0a78c308919e001f80a4d03e1b364edd4428aeba7352
4
- data.tar.gz: c586c4a6b4fe3af6047a47d5f079eeb548b98362ff17549ccd73af46339df05b
3
+ metadata.gz: 7561a805789e196dbf2a49baf1ea571808e19bd11ba21667747459a508f7a4c0
4
+ data.tar.gz: 3b19910f6869f3d996a70c2d603b07d104cb8600d8cc477dd3a5165f3daebdf2
5
5
  SHA512:
6
- metadata.gz: 48072522efc14f8c248d39330af78c8396d1b7dffad1d501468991d62631d0951be2ac1c5ac1b6551c9ba2623bc0727044ba52a8be6a3c1faef64e3935d214bd
7
- data.tar.gz: 62638bd607d3007378c4162913c74c6c0c4414b0f6bdd6974c1bafacad9715ca4087e3beb04377cd1d1b495f43356ecff51e3e6c1ebb33fb0735fb914a1b972e
6
+ metadata.gz: 18078ac42ff16b634ce6a75df349b7391f98444a0b23a1799d49b64af027917d513d17d09f262a547a1bc0e2b0f676be02fe6131fa3d34c2abadb95054187e5d
7
+ data.tar.gz: 90da864cf279865f7039a62b422c746da0403a9a56bee724e56331b2d7f0e764a1a8fd766d6985916a16e222c4b1d0950acce2a85befb04279b706b1b997bda3
@@ -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:
@@ -5,6 +7,7 @@
5
7
  #
6
8
  # WARNING ABOUT GENERATED CODE
7
9
 
10
+
8
11
  require 'aws-sdk-core'
9
12
  require 'aws-sigv4'
10
13
 
@@ -42,9 +45,9 @@ require_relative 'aws-sdk-personalizeevents/customizations'
42
45
  #
43
46
  # See {Errors} for more information.
44
47
  #
45
- # @service
48
+ # @!group service
46
49
  module Aws::PersonalizeEvents
47
50
 
48
- GEM_VERSION = '1.7.0'
51
+ GEM_VERSION = '1.12.0'
49
52
 
50
53
  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
@@ -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.7.0'
398
+ context[:gem_version] = '1.12.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.7.0
4
+ version: 1.12.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-28 00:00:00.000000000 Z
11
+ date: 2020-09-15 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