aws-sdk-personalizeevents 1.28.0 → 1.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 837d2e7a291a233b0ef5b48bc32c92b9583e7286e7d880f0f41295f184dd6979
4
- data.tar.gz: 4ee8e46dec916f735d9865d84ef9aa60f91e421626d452b8ed72225ae613e919
3
+ metadata.gz: 8735f0d987228ae5e853e3729d7266a48d19360ac596c036ddb56920ad3955a5
4
+ data.tar.gz: 2cd912a21f0971aef32ef62b8f3d989fdb57d447b9553b41fb6f1933284fff80
5
5
  SHA512:
6
- metadata.gz: 6b29065e0e4f9436320224e46484304de9c058bcc9280c761596eee4d79f1b3f22bb2bb22adf38a84dc1370629089de0b04333652da3c00237a1f607ebbc0845
7
- data.tar.gz: f40e488ee1d9bcce94725ba48bb56e1c648807369459742ac81f977d419cb69f24b0b4ba568c0d5ef6509f4e582ef9817799962e1bc6a5041efb9a9f9c5db97e
6
+ metadata.gz: 5811a90d12f8ec89032627cf3620add3eb82fc6020aae1714f897028af0352c2e18a1c2227acdc74a4b60999e1b1be1d2f6c0c4cbc55e58328b78ae2cece70f4
7
+ data.tar.gz: 20a2bf8275b3e148c02bb9b310ac8068f858f26eec83e4f1064e83dc1c819db5995631d711a45533314fb6221e10935e319bb7c086a27284372df596a84011b2
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.29.0 (2022-11-16)
5
+ ------------------
6
+
7
+ * Feature - This release provides support for creation and use of metric attributions in AWS Personalize
8
+
4
9
  1.28.0 (2022-10-25)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.28.0
1
+ 1.29.0
@@ -418,6 +418,9 @@ module Aws::PersonalizeEvents
418
418
  # sent_at: Time.now, # required
419
419
  # recommendation_id: "RecommendationId",
420
420
  # impression: ["ItemId"],
421
+ # metric_attribution: {
422
+ # event_attribution_source: "EventAttributionSource", # required
423
+ # },
421
424
  # },
422
425
  # ],
423
426
  # })
@@ -518,7 +521,7 @@ module Aws::PersonalizeEvents
518
521
  params: params,
519
522
  config: config)
520
523
  context[:gem_name] = 'aws-sdk-personalizeevents'
521
- context[:gem_version] = '1.28.0'
524
+ context[:gem_version] = '1.29.0'
522
525
  Seahorse::Client::Request.new(handlers, context)
523
526
  end
524
527
 
@@ -17,6 +17,7 @@ module Aws::PersonalizeEvents
17
17
  Date = Shapes::TimestampShape.new(name: 'Date')
18
18
  ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
19
19
  Event = Shapes::StructureShape.new(name: 'Event')
20
+ EventAttributionSource = Shapes::StringShape.new(name: 'EventAttributionSource')
20
21
  EventList = Shapes::ListShape.new(name: 'EventList')
21
22
  EventPropertiesJSON = Shapes::StringShape.new(name: 'EventPropertiesJSON')
22
23
  FloatType = Shapes::FloatShape.new(name: 'FloatType')
@@ -26,6 +27,7 @@ module Aws::PersonalizeEvents
26
27
  ItemId = Shapes::StringShape.new(name: 'ItemId')
27
28
  ItemList = Shapes::ListShape.new(name: 'ItemList')
28
29
  ItemProperties = Shapes::StringShape.new(name: 'ItemProperties')
30
+ MetricAttribution = Shapes::StructureShape.new(name: 'MetricAttribution')
29
31
  PutEventsRequest = Shapes::StructureShape.new(name: 'PutEventsRequest')
30
32
  PutItemsRequest = Shapes::StructureShape.new(name: 'PutItemsRequest')
31
33
  PutUsersRequest = Shapes::StructureShape.new(name: 'PutUsersRequest')
@@ -46,6 +48,7 @@ module Aws::PersonalizeEvents
46
48
  Event.add_member(:sent_at, Shapes::ShapeRef.new(shape: Date, required: true, location_name: "sentAt"))
47
49
  Event.add_member(:recommendation_id, Shapes::ShapeRef.new(shape: RecommendationId, location_name: "recommendationId"))
48
50
  Event.add_member(:impression, Shapes::ShapeRef.new(shape: Impression, location_name: "impression"))
51
+ Event.add_member(:metric_attribution, Shapes::ShapeRef.new(shape: MetricAttribution, location_name: "metricAttribution"))
49
52
  Event.struct_class = Types::Event
50
53
 
51
54
  EventList.member = Shapes::ShapeRef.new(shape: Event)
@@ -61,6 +64,9 @@ module Aws::PersonalizeEvents
61
64
 
62
65
  ItemList.member = Shapes::ShapeRef.new(shape: Item)
63
66
 
67
+ MetricAttribution.add_member(:event_attribution_source, Shapes::ShapeRef.new(shape: EventAttributionSource, required: true, location_name: "eventAttributionSource"))
68
+ MetricAttribution.struct_class = Types::MetricAttribution
69
+
64
70
  PutEventsRequest.add_member(:tracking_id, Shapes::ShapeRef.new(shape: StringType, required: true, location_name: "trackingId"))
65
71
  PutEventsRequest.add_member(:user_id, Shapes::ShapeRef.new(shape: UserId, location_name: "userId"))
66
72
  PutEventsRequest.add_member(:session_id, Shapes::ShapeRef.new(shape: StringType, required: true, location_name: "sessionId"))
@@ -25,6 +25,9 @@ module Aws::PersonalizeEvents
25
25
  # sent_at: Time.now, # required
26
26
  # recommendation_id: "RecommendationId",
27
27
  # impression: ["ItemId"],
28
+ # metric_attribution: {
29
+ # event_attribution_source: "EventAttributionSource", # required
30
+ # },
28
31
  # }
29
32
  #
30
33
  # @!attribute [rw] event_id
@@ -73,14 +76,44 @@ module Aws::PersonalizeEvents
73
76
  # @return [Time]
74
77
  #
75
78
  # @!attribute [rw] recommendation_id
76
- # The ID of the recommendation.
79
+ # The ID of the list of recommendations that contains the item the
80
+ # user interacted with. Provide a `recommendationId` to have Amazon
81
+ # Personalize implicitly record the recommendations you show your user
82
+ # as impressions data. Or provide a `recommendationId` if you use a
83
+ # metric attribution to measure the impact of recommendations.
84
+ #
85
+ # For more information on recording impressions data, see [Recording
86
+ # impressions data][1]. For more information on creating a metric
87
+ # attribution see [Measuring impact of recommendations][2].
88
+ #
89
+ #
90
+ #
91
+ # [1]: https://docs.aws.amazon.com/personalize/latest/dg/recording-events.html#putevents-including-impressions-data
92
+ # [2]: https://docs.aws.amazon.com/personalize/latest/dg/measuring-recommendation-impact.html
77
93
  # @return [String]
78
94
  #
79
95
  # @!attribute [rw] impression
80
96
  # A list of item IDs that represents the sequence of items you have
81
97
  # shown the user. For example, `["itemId1", "itemId2", "itemId3"]`.
98
+ # Provide a list of items to manually record impressions data for an
99
+ # event. For more information on recording impressions data, see
100
+ # [Recording impressions data][1].
101
+ #
102
+ #
103
+ #
104
+ # [1]: https://docs.aws.amazon.com/personalize/latest/dg/recording-events.html#putevents-including-impressions-data
82
105
  # @return [Array<String>]
83
106
  #
107
+ # @!attribute [rw] metric_attribution
108
+ # Contains information about the metric attribution associated with an
109
+ # event. For more information about metric attributions, see
110
+ # [Measuring impact of recommendations][1].
111
+ #
112
+ #
113
+ #
114
+ # [1]: https://docs.aws.amazon.com/personalize/latest/dg/measuring-recommendation-impact.html
115
+ # @return [Types::MetricAttribution]
116
+ #
84
117
  # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-events-2018-03-22/Event AWS API Documentation
85
118
  #
86
119
  class Event < Struct.new(
@@ -91,8 +124,9 @@ module Aws::PersonalizeEvents
91
124
  :properties,
92
125
  :sent_at,
93
126
  :recommendation_id,
94
- :impression)
95
- SENSITIVE = []
127
+ :impression,
128
+ :metric_attribution)
129
+ SENSITIVE = [:item_id, :properties]
96
130
  include Aws::Structure
97
131
  end
98
132
 
@@ -147,6 +181,33 @@ module Aws::PersonalizeEvents
147
181
  class Item < Struct.new(
148
182
  :item_id,
149
183
  :properties)
184
+ SENSITIVE = [:properties]
185
+ include Aws::Structure
186
+ end
187
+
188
+ # Contains information about a metric attribution associated with an
189
+ # event. For more information about metric attributions, see [Measuring
190
+ # impact of recommendations][1].
191
+ #
192
+ #
193
+ #
194
+ # [1]: https://docs.aws.amazon.com/personalize/latest/dg/measuring-recommendation-impact.html
195
+ #
196
+ # @note When making an API call, you may pass MetricAttribution
197
+ # data as a hash:
198
+ #
199
+ # {
200
+ # event_attribution_source: "EventAttributionSource", # required
201
+ # }
202
+ #
203
+ # @!attribute [rw] event_attribution_source
204
+ # The source of the event, such as a third party.
205
+ # @return [String]
206
+ #
207
+ # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-events-2018-03-22/MetricAttribution AWS API Documentation
208
+ #
209
+ class MetricAttribution < Struct.new(
210
+ :event_attribution_source)
150
211
  SENSITIVE = []
151
212
  include Aws::Structure
152
213
  end
@@ -168,6 +229,9 @@ module Aws::PersonalizeEvents
168
229
  # sent_at: Time.now, # required
169
230
  # recommendation_id: "RecommendationId",
170
231
  # impression: ["ItemId"],
232
+ # metric_attribution: {
233
+ # event_attribution_source: "EventAttributionSource", # required
234
+ # },
171
235
  # },
172
236
  # ],
173
237
  # }
@@ -208,7 +272,7 @@ module Aws::PersonalizeEvents
208
272
  :user_id,
209
273
  :session_id,
210
274
  :event_list)
211
- SENSITIVE = []
275
+ SENSITIVE = [:user_id]
212
276
  include Aws::Structure
213
277
  end
214
278
 
@@ -338,7 +402,7 @@ module Aws::PersonalizeEvents
338
402
  class User < Struct.new(
339
403
  :user_id,
340
404
  :properties)
341
- SENSITIVE = []
405
+ SENSITIVE = [:properties]
342
406
  include Aws::Structure
343
407
  end
344
408
 
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-personalizeevents/customizations'
52
52
  # @!group service
53
53
  module Aws::PersonalizeEvents
54
54
 
55
- GEM_VERSION = '1.28.0'
55
+ GEM_VERSION = '1.29.0'
56
56
 
57
57
  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.28.0
4
+ version: 1.29.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: 2022-10-25 00:00:00.000000000 Z
11
+ date: 2022-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core