aws-partitions 1.616.0 → 1.714.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: 185c24c506000ca929742d2118a05bdb493e1c8c71ba342954e9fdb0d15a9291
4
- data.tar.gz: b5ea4ee2e203b0e4a667d0301052af09e3654e9fe34b31e30fbbbe8deac5d0d3
3
+ metadata.gz: 940f763c40eebb30635f1b939dbd5fc92e45737cef8fb24527a6e6d481c8a6c7
4
+ data.tar.gz: 47bb30f69adba570157fe3790cbad1937bb1c3abdd1ae01d6de5831fde943c71
5
5
  SHA512:
6
- metadata.gz: 1ff703210693772536db37f2e41061f14908fc69d8334457276fbf6a4f448333f8e8adf88cdde0dc266dc829633a1143a8ae2014c1c1cdd66f52766a0e9dd87e
7
- data.tar.gz: ecae0064ee0f180b8b030e88d158fe21f4c2786d1b1dd051d79b82cef7c6e5cda306e57ddd0ae8bf6a29095dae2e1ddace6cfd064367ffe6bcd1e2b3a4a841b9
6
+ metadata.gz: 77991e695ead23c912fce31b5634bbf12e73a1959e271bd07ed038e8d2405ac163f9b0417d1f7940f04f68b1e99d84a78890cbdb7289fc6116b3c8ff99108567
7
+ data.tar.gz: 3f2704c29a85765be6a6b34143471756045f107b9c38a4a4aaa2ac49354ba72893f477c2571149db45ce2750446195d95cff495dad57b396b2ab7939a457539e
data/CHANGELOG.md CHANGED
@@ -1,6 +1,512 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.714.0 (2023-02-17)
5
+ ------------------
6
+
7
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
8
+
9
+ 1.713.0 (2023-02-16)
10
+ ------------------
11
+
12
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
13
+
14
+ 1.712.0 (2023-02-15)
15
+ ------------------
16
+
17
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
18
+
19
+ 1.711.0 (2023-02-13)
20
+ ------------------
21
+
22
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
23
+
24
+ 1.710.0 (2023-02-10)
25
+ ------------------
26
+
27
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
28
+
29
+ 1.709.0 (2023-02-09)
30
+ ------------------
31
+
32
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
33
+
34
+ 1.708.0 (2023-02-08)
35
+ ------------------
36
+
37
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
38
+
39
+ 1.707.0 (2023-02-07)
40
+ ------------------
41
+
42
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
43
+
44
+ 1.706.0 (2023-02-06)
45
+ ------------------
46
+
47
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
48
+
49
+ 1.705.0 (2023-02-03)
50
+ ------------------
51
+
52
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
53
+
54
+ 1.704.0 (2023-02-02)
55
+ ------------------
56
+
57
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
58
+
59
+ 1.703.0 (2023-02-01)
60
+ ------------------
61
+
62
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
63
+
64
+ 1.702.0 (2023-01-31)
65
+ ------------------
66
+
67
+ * Feature - Added support for enumerating regions for `Aws::CloudTrailData`.
68
+
69
+ 1.701.0 (2023-01-26)
70
+ ------------------
71
+
72
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
73
+
74
+ 1.700.0 (2023-01-25)
75
+ ------------------
76
+
77
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
78
+
79
+ 1.699.0 (2023-01-24)
80
+ ------------------
81
+
82
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
83
+
84
+ 1.698.0 (2023-01-23)
85
+ ------------------
86
+
87
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
88
+
89
+ 1.697.0 (2023-01-20)
90
+ ------------------
91
+
92
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
93
+
94
+ 1.696.0 (2023-01-19)
95
+ ------------------
96
+
97
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
98
+
99
+ 1.695.0 (2023-01-18)
100
+ ------------------
101
+
102
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
103
+
104
+ 1.694.0 (2023-01-17)
105
+ ------------------
106
+
107
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
108
+
109
+ 1.693.0 (2023-01-13)
110
+ ------------------
111
+
112
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
113
+
114
+ 1.692.0 (2023-01-12)
115
+ ------------------
116
+
117
+ * Feature - Added support for enumerating regions for `Aws::CleanRooms`.
118
+
119
+ 1.691.0 (2023-01-10)
120
+ ------------------
121
+
122
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
123
+
124
+ 1.690.0 (2023-01-09)
125
+ ------------------
126
+
127
+ * Feature - Added support for enumerating regions for `Aws::KendraRanking`.
128
+
129
+ 1.689.0 (2023-01-06)
130
+ ------------------
131
+
132
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
133
+
134
+ 1.688.0 (2023-01-05)
135
+ ------------------
136
+
137
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
138
+
139
+ 1.687.0 (2023-01-03)
140
+ ------------------
141
+
142
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
143
+
144
+ 1.686.0 (2022-12-30)
145
+ ------------------
146
+
147
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
148
+
149
+ 1.685.0 (2022-12-29)
150
+ ------------------
151
+
152
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
153
+
154
+ 1.684.0 (2022-12-23)
155
+ ------------------
156
+
157
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
158
+
159
+ 1.683.0 (2022-12-22)
160
+ ------------------
161
+
162
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
163
+
164
+ 1.682.0 (2022-12-21)
165
+ ------------------
166
+
167
+ * Feature - Added support for enumerating regions for `Aws::LicenseManagerLinuxSubscriptions`.
168
+
169
+ 1.681.0 (2022-12-20)
170
+ ------------------
171
+
172
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
173
+
174
+ 1.680.0 (2022-12-19)
175
+ ------------------
176
+
177
+ * Feature - Added support for enumerating regions for `Aws::KinesisVideoWebRTCStorage`.
178
+
179
+ 1.679.0 (2022-12-16)
180
+ ------------------
181
+
182
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
183
+
184
+ 1.678.0 (2022-12-15)
185
+ ------------------
186
+
187
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
188
+
189
+ 1.677.0 (2022-12-14)
190
+ ------------------
191
+
192
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
193
+
194
+ 1.676.0 (2022-12-13)
195
+ ------------------
196
+
197
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
198
+
199
+ 1.675.0 (2022-12-12)
200
+ ------------------
201
+
202
+ * Feature - Added support for enumerating regions for `Aws::SageMakerMetrics`.
203
+
204
+ 1.674.0 (2022-12-08)
205
+ ------------------
206
+
207
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
208
+
209
+ 1.673.0 (2022-12-07)
210
+ ------------------
211
+
212
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
213
+
214
+ 1.672.0 (2022-12-06)
215
+ ------------------
216
+
217
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
218
+
219
+ 1.671.0 (2022-12-05)
220
+ ------------------
221
+
222
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
223
+
224
+ 1.670.0 (2022-12-01)
225
+ ------------------
226
+
227
+ * Feature - Added support for enumerating regions for `Aws::Pipes`.
228
+
229
+ * Feature - Added support for enumerating regions for `Aws::CodeCatalyst`.
230
+
231
+ 1.669.0 (2022-11-30)
232
+ ------------------
233
+
234
+ * Feature - Added support for enumerating regions for `Aws::SageMakerGeospatial`.
235
+
236
+ * Feature - Added support for enumerating regions for `Aws::DocDBElastic`.
237
+
238
+ 1.668.0 (2022-11-29)
239
+ ------------------
240
+
241
+ * Feature - Added support for enumerating regions for `Aws::SimSpaceWeaver`.
242
+
243
+ * Feature - Added support for enumerating regions for `Aws::SecurityLake`.
244
+
245
+ * Feature - Added support for enumerating regions for `Aws::OpenSearchServerless`.
246
+
247
+ * Feature - Added support for enumerating regions for `Aws::Omics`.
248
+
249
+ 1.667.0 (2022-11-29)
250
+ ------------------
251
+
252
+ * Feature - Added support for enumerating regions for `Aws::ARCZonalShift`.
253
+
254
+ 1.666.0 (2022-11-28)
255
+ ------------------
256
+
257
+ * Feature - Added support for enumerating regions for `Aws::OAM`.
258
+
259
+ 1.665.0 (2022-11-22)
260
+ ------------------
261
+
262
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
263
+
264
+ 1.664.0 (2022-11-18)
265
+ ------------------
266
+
267
+ * Feature - Added support for enumerating regions for `Aws::IoTRoboRunner`.
268
+
269
+ * Feature - Added support for enumerating regions for `Aws::ChimeSDKVoice`.
270
+
271
+ 1.663.0 (2022-11-17)
272
+ ------------------
273
+
274
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
275
+
276
+ 1.662.0 (2022-11-16)
277
+ ------------------
278
+
279
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
280
+
281
+ 1.661.0 (2022-11-15)
282
+ ------------------
283
+
284
+ * Feature - Added support for enumerating regions for `Aws::SsmSap`.
285
+
286
+ 1.660.0 (2022-11-11)
287
+ ------------------
288
+
289
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
290
+
291
+ 1.659.0 (2022-11-10)
292
+ ------------------
293
+
294
+ * Feature - Added support for enumerating regions for `Aws::Scheduler`.
295
+
296
+ 1.658.0 (2022-11-08)
297
+ ------------------
298
+
299
+ * Feature - Added support for enumerating regions for `Aws::ResourceExplorer2`.
300
+
301
+ 1.657.0 (2022-11-07)
302
+ ------------------
303
+
304
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
305
+
306
+ 1.656.0 (2022-11-04)
307
+ ------------------
308
+
309
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
310
+
311
+ 1.655.0 (2022-11-02)
312
+ ------------------
313
+
314
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
315
+
316
+ 1.654.0 (2022-10-31)
317
+ ------------------
318
+
319
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
320
+
321
+ 1.653.0 (2022-10-28)
322
+ ------------------
323
+
324
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
325
+
326
+ 1.652.0 (2022-10-27)
327
+ ------------------
328
+
329
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
330
+
331
+ 1.651.0 (2022-10-25)
332
+ ------------------
333
+
334
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
335
+
336
+ * Feature - Add a metadata method to `Partition` to supplement endpoint generation in service gems.
337
+
338
+ 1.650.0 (2022-10-24)
339
+ ------------------
340
+
341
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
342
+
343
+ 1.649.0 (2022-10-20)
344
+ ------------------
345
+
346
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
347
+
348
+ 1.648.0 (2022-10-19)
349
+ ------------------
350
+
351
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
352
+
353
+ 1.647.0 (2022-10-18)
354
+ ------------------
355
+
356
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
357
+
358
+ 1.646.0 (2022-10-14)
359
+ ------------------
360
+
361
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
362
+
363
+ 1.645.0 (2022-10-13)
364
+ ------------------
365
+
366
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
367
+
368
+ 1.644.0 (2022-10-07)
369
+ ------------------
370
+
371
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
372
+
373
+ 1.643.0 (2022-10-06)
374
+ ------------------
375
+
376
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
377
+
378
+ 1.642.0 (2022-10-04)
379
+ ------------------
380
+
381
+ * Feature - Added support for enumerating regions for `Aws::ConnectCases`.
382
+
383
+ 1.641.0 (2022-10-03)
384
+ ------------------
385
+
386
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
387
+
388
+ 1.640.0 (2022-09-30)
389
+ ------------------
390
+
391
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
392
+
393
+ 1.639.0 (2022-09-29)
394
+ ------------------
395
+
396
+ * Feature - Added support for enumerating regions for `Aws::MigrationHubOrchestrator`.
397
+
398
+ 1.638.0 (2022-09-27)
399
+ ------------------
400
+
401
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
402
+
403
+ 1.637.0 (2022-09-26)
404
+ ------------------
405
+
406
+ * Feature - Added support for enumerating regions for `Aws::IoTFleetWise`.
407
+
408
+ 1.636.0 (2022-09-23)
409
+ ------------------
410
+
411
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
412
+
413
+ 1.635.0 (2022-09-22)
414
+ ------------------
415
+
416
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
417
+
418
+ 1.634.0 (2022-09-21)
419
+ ------------------
420
+
421
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
422
+
423
+ 1.633.0 (2022-09-20)
424
+ ------------------
425
+
426
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
427
+
428
+ 1.632.0 (2022-09-19)
429
+ ------------------
430
+
431
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
432
+
433
+ 1.631.0 (2022-09-15)
434
+ ------------------
435
+
436
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
437
+
438
+ 1.630.0 (2022-09-14)
439
+ ------------------
440
+
441
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
442
+
443
+ 1.629.0 (2022-09-13)
444
+ ------------------
445
+
446
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
447
+
448
+ 1.628.0 (2022-09-09)
449
+ ------------------
450
+
451
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
452
+
453
+ 1.627.0 (2022-09-08)
454
+ ------------------
455
+
456
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
457
+
458
+ 1.626.0 (2022-09-02)
459
+ ------------------
460
+
461
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
462
+
463
+ 1.625.0 (2022-09-01)
464
+ ------------------
465
+
466
+ * Feature - Added support for enumerating regions for `Aws::ControlTower`.
467
+
468
+ 1.624.0 (2022-08-30)
469
+ ------------------
470
+
471
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
472
+
473
+ 1.623.0 (2022-08-29)
474
+ ------------------
475
+
476
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
477
+
478
+ 1.622.0 (2022-08-25)
479
+ ------------------
480
+
481
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
482
+
483
+ 1.621.0 (2022-08-22)
484
+ ------------------
485
+
486
+ * Feature - Added support for enumerating regions for `Aws::SupportApp`.
487
+
488
+ 1.620.0 (2022-08-19)
489
+ ------------------
490
+
491
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
492
+
493
+ 1.619.0 (2022-08-16)
494
+ ------------------
495
+
496
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
497
+
498
+ 1.618.0 (2022-08-12)
499
+ ------------------
500
+
501
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
502
+
503
+ 1.617.0 (2022-08-11)
504
+ ------------------
505
+
506
+ * Feature - Added support for enumerating regions for `Aws::PrivateNetworks`.
507
+
508
+ * Feature - Added support for enumerating regions for `Aws::BackupStorage`.
509
+
4
510
  1.616.0 (2022-08-08)
5
511
  ------------------
6
512
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.616.0
1
+ 1.714.0
@@ -10,12 +10,20 @@ module Aws
10
10
  def initialize(options = {})
11
11
  @name = options[:name]
12
12
  @regions = options[:regions]
13
+ @region_regex = options[:region_regex]
13
14
  @services = options[:services]
15
+ @metadata = options[:metadata]
14
16
  end
15
17
 
16
18
  # @return [String] The partition name, e.g. "aws", "aws-cn", "aws-us-gov".
17
19
  attr_reader :name
18
20
 
21
+ # @return [String] The regex representing the region format.
22
+ attr_reader :region_regex
23
+
24
+ # @return [Metadata] The metadata for the partition.
25
+ attr_reader :metadata
26
+
19
27
  # @param [String] region_name The name of the region, e.g. "us-east-1".
20
28
  # @return [Region]
21
29
  # @raise [ArgumentError] Raises `ArgumentError` for unknown region name.
@@ -70,6 +78,7 @@ module Aws
70
78
  Partition.new(
71
79
  name: partition['partition'],
72
80
  regions: build_regions(partition),
81
+ region_regex: partition['regionRegex'],
73
82
  services: build_services(partition)
74
83
  )
75
84
  end
@@ -79,8 +88,7 @@ module Aws
79
88
  # @param [Hash] partition
80
89
  # @return [Hash<String,Region>]
81
90
  def build_regions(partition)
82
- partition['regions'].each_with_object({}) do
83
- |(region_name, region), regions|
91
+ partition['regions'].each_with_object({}) do |(region_name, region), regions|
84
92
  next if region_name == "#{partition['partition']}-global"
85
93
 
86
94
  regions[region_name] = Region.build(
@@ -42,12 +42,62 @@ module Aws
42
42
  end
43
43
  end
44
44
 
45
+ # @param [Partition] partition
46
+ # @api private
47
+ def merge_metadata(partitions_metadata)
48
+ partitions_metadata['partitions'].each do |partition_metadata|
49
+ outputs = partition_metadata['outputs']
50
+
51
+ if existing = @partitions[partition_metadata['id']]
52
+ @partitions[partition_metadata['id']] = Partition.new(
53
+ name: existing.name,
54
+ regions: build_metadata_regions(
55
+ partition_metadata['id'],
56
+ partition_metadata['regions'],
57
+ existing),
58
+ region_regex: partition_metadata['regionRegex'],
59
+ services: existing.services.each_with_object({}) do |s, services|
60
+ services[s.name] = s
61
+ end,
62
+ metadata: outputs
63
+ )
64
+ else
65
+ @partitions[partition_metadata['id']] = Partition.new(
66
+ name: partition_metadata['id'],
67
+ regions: build_metadata_regions(
68
+ partition_metadata['id'], partition_metadata['regions']
69
+ ),
70
+ region_regex: partition_metadata['regionRegex'],
71
+ services: {},
72
+ metadata: outputs
73
+ )
74
+ end
75
+ end
76
+ end
77
+
45
78
  # Removed all partitions.
46
79
  # @api private
47
80
  def clear
48
81
  @partitions = {}
49
82
  end
50
83
 
84
+ private
85
+
86
+ def build_metadata_regions(partition_name, metadata_regions, existing = nil)
87
+ metadata_regions.each_with_object({}) do |(region_name, region), regions|
88
+ if existing && existing.region?(region_name)
89
+ regions[region_name] = existing.region(region_name)
90
+ else
91
+ regions[region_name] = Region.new(
92
+ name: region_name,
93
+ description: region['description'],
94
+ partition_name: partition_name,
95
+ services: Set.new
96
+ )
97
+ end
98
+ end
99
+ end
100
+
51
101
  class << self
52
102
 
53
103
  # @api private