aws-sdk-personalizeevents 1.29.0 → 1.30.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: 8735f0d987228ae5e853e3729d7266a48d19360ac596c036ddb56920ad3955a5
4
- data.tar.gz: 2cd912a21f0971aef32ef62b8f3d989fdb57d447b9553b41fb6f1933284fff80
3
+ metadata.gz: 0add54276279852bd67e21c3da8e5ac5d6156326a35927959a4f11adfe38a97f
4
+ data.tar.gz: c2ebdb382b11bcb47274fee77bafff132ffac0cc3f5cbe1788a9adf425285fc4
5
5
  SHA512:
6
- metadata.gz: 5811a90d12f8ec89032627cf3620add3eb82fc6020aae1714f897028af0352c2e18a1c2227acdc74a4b60999e1b1be1d2f6c0c4cbc55e58328b78ae2cece70f4
7
- data.tar.gz: 20a2bf8275b3e148c02bb9b310ac8068f858f26eec83e4f1064e83dc1c819db5995631d711a45533314fb6221e10935e319bb7c086a27284372df596a84011b2
6
+ metadata.gz: 838b59eff59a50a6f3f65fd5b16c4603597f307fa4b7b5a30c5fb16887fd2194886eef2f74b2ac54881984959f7c4f60727eed86e7b787c9724fec805b1b3a49
7
+ data.tar.gz: 9e9980b2c1c11ccf3eb30db25d311a498f4219918753d38a1a8eb020c48d2b5f4d9d3f29891273798f3c6c42298985f24479460589b1a97687c2752eb21ae383
data/CHANGELOG.md CHANGED
@@ -1,6 +1,13 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.30.0 (2023-01-18)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ * Issue - Replace runtime endpoint resolution approach with generated ruby code.
10
+
4
11
  1.29.0 (2022-11-16)
5
12
  ------------------
6
13
 
@@ -155,4 +162,4 @@ Unreleased Changes
155
162
  1.0.0 (2019-06-10)
156
163
  ------------------
157
164
 
158
- * Feature - Initial release of `aws-sdk-personalizeevents`.
165
+ * Feature - Initial release of `aws-sdk-personalizeevents`.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.29.0
1
+ 1.30.0
@@ -521,7 +521,7 @@ module Aws::PersonalizeEvents
521
521
  params: params,
522
522
  config: config)
523
523
  context[:gem_name] = 'aws-sdk-personalizeevents'
524
- context[:gem_version] = '1.29.0'
524
+ context[:gem_version] = '1.30.0'
525
525
  Seahorse::Client::Request.new(handlers, context)
526
526
  end
527
527
 
@@ -9,103 +9,43 @@
9
9
 
10
10
  module Aws::PersonalizeEvents
11
11
  class EndpointProvider
12
- def initialize(rule_set = nil)
13
- @@rule_set ||= begin
14
- endpoint_rules = Aws::Json.load(Base64.decode64(RULES))
15
- Aws::Endpoints::RuleSet.new(
16
- version: endpoint_rules['version'],
17
- service_id: endpoint_rules['serviceId'],
18
- parameters: endpoint_rules['parameters'],
19
- rules: endpoint_rules['rules']
20
- )
12
+ def resolve_endpoint(parameters)
13
+ region = parameters.region
14
+ use_dual_stack = parameters.use_dual_stack
15
+ use_fips = parameters.use_fips
16
+ endpoint = parameters.endpoint
17
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
18
+ if Aws::Endpoints::Matchers.set?(endpoint) && (url = Aws::Endpoints::Matchers.parse_url(endpoint))
19
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
20
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
21
+ end
22
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
23
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
24
+ end
25
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
26
+ end
27
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
28
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
29
+ return Aws::Endpoints::Endpoint.new(url: "https://personalize-events-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
30
+ end
31
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
32
+ end
33
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
34
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
+ return Aws::Endpoints::Endpoint.new(url: "https://personalize-events-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
36
+ end
37
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
38
+ end
39
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
40
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
41
+ return Aws::Endpoints::Endpoint.new(url: "https://personalize-events.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
42
+ end
43
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
44
+ end
45
+ return Aws::Endpoints::Endpoint.new(url: "https://personalize-events.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
21
46
  end
22
- @provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
23
- end
47
+ raise ArgumentError, 'No endpoint could be resolved'
24
48
 
25
- def resolve_endpoint(parameters)
26
- @provider.resolve_endpoint(parameters)
27
49
  end
28
-
29
- # @api private
30
- RULES = <<-JSON
31
- eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
32
- bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOmZhbHNlLCJkb2N1bWVu
33
- dGF0aW9uIjoiVGhlIEFXUyByZWdpb24gdXNlZCB0byBkaXNwYXRjaCB0aGUg
34
- cmVxdWVzdC4iLCJ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N0YWNrRG5zU3VmZml4fSIsInByb3Bl
101
- cnRpZXMiOnt9LCJoZWFkZXJzIjp7fX0sInR5cGUiOiJlbmRwb2ludCJ9XX0s
102
- eyJjb25kaXRpb25zIjpbXSwiZXJyb3IiOiJEdWFsU3RhY2sgaXMgZW5hYmxl
103
- ZCBidXQgdGhpcyBwYXJ0aXRpb24gZG9lcyBub3Qgc3VwcG9ydCBEdWFsU3Rh
104
- Y2siLCJ0eXBlIjoiZXJyb3IifV19LHsiY29uZGl0aW9ucyI6W10sImVuZHBv
105
- aW50Ijp7InVybCI6Imh0dHBzOi8vcGVyc29uYWxpemUtZXZlbnRzLntSZWdp
106
- b259LntQYXJ0aXRpb25SZXN1bHQjZG5zU3VmZml4fSIsInByb3BlcnRpZXMi
107
- Ont9LCJoZWFkZXJzIjp7fX0sInR5cGUiOiJlbmRwb2ludCJ9XX1dfQ==
108
-
109
- JSON
110
50
  end
111
51
  end
@@ -13,23 +13,6 @@ module Aws::PersonalizeEvents
13
13
  # Represents user interaction event information sent using the
14
14
  # `PutEvents` API.
15
15
  #
16
- # @note When making an API call, you may pass Event
17
- # data as a hash:
18
- #
19
- # {
20
- # event_id: "StringType",
21
- # event_type: "StringType", # required
22
- # event_value: 1.0,
23
- # item_id: "ItemId",
24
- # properties: "EventPropertiesJSON",
25
- # sent_at: Time.now, # required
26
- # recommendation_id: "RecommendationId",
27
- # impression: ["ItemId"],
28
- # metric_attribution: {
29
- # event_attribution_source: "EventAttributionSource", # required
30
- # },
31
- # }
32
- #
33
16
  # @!attribute [rw] event_id
34
17
  # An ID associated with the event. If an event ID is not provided,
35
18
  # Amazon Personalize generates a unique ID for the event. An event ID
@@ -151,14 +134,6 @@ module Aws::PersonalizeEvents
151
134
  #
152
135
  # [1]: https://docs.aws.amazon.com/personalize/latest/dg/importing-items.html
153
136
  #
154
- # @note When making an API call, you may pass Item
155
- # data as a hash:
156
- #
157
- # {
158
- # item_id: "StringType", # required
159
- # properties: "ItemProperties",
160
- # }
161
- #
162
137
  # @!attribute [rw] item_id
163
138
  # The ID associated with the item.
164
139
  # @return [String]
@@ -193,13 +168,6 @@ module Aws::PersonalizeEvents
193
168
  #
194
169
  # [1]: https://docs.aws.amazon.com/personalize/latest/dg/measuring-recommendation-impact.html
195
170
  #
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
171
  # @!attribute [rw] event_attribution_source
204
172
  # The source of the event, such as a third party.
205
173
  # @return [String]
@@ -212,30 +180,6 @@ module Aws::PersonalizeEvents
212
180
  include Aws::Structure
213
181
  end
214
182
 
215
- # @note When making an API call, you may pass PutEventsRequest
216
- # data as a hash:
217
- #
218
- # {
219
- # tracking_id: "StringType", # required
220
- # user_id: "UserId",
221
- # session_id: "StringType", # required
222
- # event_list: [ # required
223
- # {
224
- # event_id: "StringType",
225
- # event_type: "StringType", # required
226
- # event_value: 1.0,
227
- # item_id: "ItemId",
228
- # properties: "EventPropertiesJSON",
229
- # sent_at: Time.now, # required
230
- # recommendation_id: "RecommendationId",
231
- # impression: ["ItemId"],
232
- # metric_attribution: {
233
- # event_attribution_source: "EventAttributionSource", # required
234
- # },
235
- # },
236
- # ],
237
- # }
238
- #
239
183
  # @!attribute [rw] tracking_id
240
184
  # The tracking ID for the event. The ID is generated by a call to the
241
185
  # [CreateEventTracker][1] API.
@@ -276,19 +220,6 @@ module Aws::PersonalizeEvents
276
220
  include Aws::Structure
277
221
  end
278
222
 
279
- # @note When making an API call, you may pass PutItemsRequest
280
- # data as a hash:
281
- #
282
- # {
283
- # dataset_arn: "Arn", # required
284
- # items: [ # required
285
- # {
286
- # item_id: "StringType", # required
287
- # properties: "ItemProperties",
288
- # },
289
- # ],
290
- # }
291
- #
292
223
  # @!attribute [rw] dataset_arn
293
224
  # The Amazon Resource Name (ARN) of the Items dataset you are adding
294
225
  # the item or items to.
@@ -307,19 +238,6 @@ module Aws::PersonalizeEvents
307
238
  include Aws::Structure
308
239
  end
309
240
 
310
- # @note When making an API call, you may pass PutUsersRequest
311
- # data as a hash:
312
- #
313
- # {
314
- # dataset_arn: "Arn", # required
315
- # users: [ # required
316
- # {
317
- # user_id: "StringType", # required
318
- # properties: "UserProperties",
319
- # },
320
- # ],
321
- # }
322
- #
323
241
  # @!attribute [rw] dataset_arn
324
242
  # The Amazon Resource Name (ARN) of the Users dataset you are adding
325
243
  # the user or users to.
@@ -371,14 +289,6 @@ module Aws::PersonalizeEvents
371
289
  #
372
290
  # [1]: https://docs.aws.amazon.com/personalize/latest/dg/importing-users.html
373
291
  #
374
- # @note When making an API call, you may pass User
375
- # data as a hash:
376
- #
377
- # {
378
- # user_id: "StringType", # required
379
- # properties: "UserProperties",
380
- # }
381
- #
382
292
  # @!attribute [rw] user_id
383
293
  # The ID associated with the user.
384
294
  # @return [String]
@@ -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.29.0'
55
+ GEM_VERSION = '1.30.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.29.0
4
+ version: 1.30.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-11-16 00:00:00.000000000 Z
11
+ date: 2023-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core