aws-sdk-personalizeevents 1.8.1 → 1.13.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: bb6027813db0d925513dbf98fbbc68e87ce6718aeb8914a931b1b01808455d28
4
- data.tar.gz: '0180851397c1837c36fcadf530a35f0fee8a65518225fac4917c44bac22b9037'
3
+ metadata.gz: 883d3fd4d4bd4b356bff021a87abe1c8177fca1f8d9db54c496f0442284534c8
4
+ data.tar.gz: 5ffe0a96608b97086826291555b38bb3b5f00e13b8060e188efefac5eceea482
5
5
  SHA512:
6
- metadata.gz: 5845c30b0c3ca693f3d41696162e7e59a6cb81c757a588c47216f837ede9c9d7df70e01129912d181789c445d0c3c755f7afe416cf50c67704b6caffd97fdffc
7
- data.tar.gz: f879f8abd35022b00633da8ef0245dca36c647876d9147dfb92543c0e654950273cc249858500ce74a304a74954ec5c965a8d02e570da0e2c2085343d2206b4f
6
+ metadata.gz: 3a3949b4d0240091b60eb761138f248bee269c8c5580e43ecb359f93eb1436a3e9c8d6907046a15ab4af3a12143ed33920b4b3bc3f292b713b0f7ef8af08792e
7
+ data.tar.gz: 927974b21acc4fa212291b3d11a43194b0179e5eb0376b7bb2136d4ec8c6fa826e81eb1c3adebae5bcaf1132f66c266f797e7a0d97c91f27c682e72c7376d21c
@@ -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.8.1'
51
+ GEM_VERSION = '1.13.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:
@@ -83,13 +85,28 @@ module Aws::PersonalizeEvents
83
85
  # * `Aws::Credentials` - Used for configuring static, non-refreshing
84
86
  # credentials.
85
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
+ #
86
102
  # * `Aws::InstanceProfileCredentials` - Used for loading credentials
87
103
  # from an EC2 IMDS on an EC2 instance.
88
104
  #
89
- # * `Aws::SharedCredentials` - Used for loading credentials from a
90
- # shared file, such as `~/.aws/config`.
105
+ # * `Aws::ECSCredentials` - Used for loading credentials from
106
+ # instances running in ECS.
91
107
  #
92
- # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
108
+ # * `Aws::CognitoIdentityCredentials` - Used for loading credentials
109
+ # from the Cognito Identity service.
93
110
  #
94
111
  # When `:credentials` are not configured directly, the following
95
112
  # locations will be searched for credentials:
@@ -99,10 +116,10 @@ module Aws::PersonalizeEvents
99
116
  # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
100
117
  # * `~/.aws/credentials`
101
118
  # * `~/.aws/config`
102
- # * EC2 IMDS instance profile - When used by default, the timeouts are
103
- # very aggressive. Construct and pass an instance of
104
- # `Aws::InstanceProfileCredentails` to enable retries and extended
105
- # 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.
106
123
  #
107
124
  # @option options [required, String] :region
108
125
  # The AWS region to connect to. The configured `:region` is
@@ -310,7 +327,8 @@ module Aws::PersonalizeEvents
310
327
 
311
328
  # @!group API Operations
312
329
 
313
- # Records user interaction event data.
330
+ # Records user interaction event data. For more information see
331
+ # event-record-api.
314
332
  #
315
333
  # @option params [required, String] :tracking_id
316
334
  # The tracking ID for the event. The ID is generated by a call to the
@@ -324,7 +342,11 @@ module Aws::PersonalizeEvents
324
342
  # The user associated with the event.
325
343
  #
326
344
  # @option params [required, String] :session_id
327
- # 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.
328
350
  #
329
351
  # @option params [required, Array<Types::Event>] :event_list
330
352
  # A list of event data from the session.
@@ -341,8 +363,12 @@ module Aws::PersonalizeEvents
341
363
  # {
342
364
  # event_id: "StringType",
343
365
  # event_type: "StringType", # required
344
- # properties: "EventPropertiesJSON", # required
366
+ # event_value: 1.0,
367
+ # item_id: "ItemId",
368
+ # properties: "EventPropertiesJSON",
345
369
  # sent_at: Time.now, # required
370
+ # recommendation_id: "RecommendationId",
371
+ # impression: ["ItemId"],
346
372
  # },
347
373
  # ],
348
374
  # })
@@ -369,7 +395,7 @@ module Aws::PersonalizeEvents
369
395
  params: params,
370
396
  config: config)
371
397
  context[:gem_name] = 'aws-sdk-personalizeevents'
372
- context[:gem_version] = '1.8.1'
398
+ context[:gem_version] = '1.13.0'
373
399
  Seahorse::Client::Request.new(handlers, context)
374
400
  end
375
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.8.1
4
+ version: 1.13.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-06-11 00:00:00.000000000 Z
11
+ date: 2020-09-30 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.109.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.109.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement