aws-partitions 1.241.0 → 1.246.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 +4 -4
- data/lib/aws-partitions.rb +7 -1
- data/lib/aws-partitions/endpoint_provider.rb +14 -18
- data/lib/aws-partitions/partition.rb +30 -19
- data/partitions.json +29 -20
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c40f805e1f76902e66d669945eb24b5976f8598f
|
|
4
|
+
data.tar.gz: 12d2107fb74976c3254c83b75ad1174e3c428473
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9d4bccefca0ac2d2870af700e821af9ac3bc88684d44b5b50cc856c8bc589cb8a0264e911aaa7c4511ee06a95ad9986ddaf709722c7f6a7eeefb1e04f3a690ef
|
|
7
|
+
data.tar.gz: d3e670163db1d29e6748e111c065a1b78ddcadaea65b51ce0f2bcd4a4d80bd7927675914e3635cdb2d1b9ddddcc84a208adeb1df2bfa36e3e1f3759626d2325a
|
data/lib/aws-partitions.rb
CHANGED
|
@@ -228,6 +228,7 @@ module Aws
|
|
|
228
228
|
'Amplify' => 'amplify',
|
|
229
229
|
'ApiGatewayManagementApi' => 'execute-api',
|
|
230
230
|
'ApiGatewayV2' => 'apigateway',
|
|
231
|
+
'AppConfig' => 'appconfig',
|
|
231
232
|
'AppMesh' => 'appmesh',
|
|
232
233
|
'AppStream' => 'appstream2',
|
|
233
234
|
'AppSync' => 'appsync',
|
|
@@ -236,7 +237,7 @@ module Aws
|
|
|
236
237
|
'ApplicationInsights' => 'applicationinsights',
|
|
237
238
|
'Athena' => 'athena',
|
|
238
239
|
'AutoScaling' => 'autoscaling',
|
|
239
|
-
'AutoScalingPlans' => 'autoscaling',
|
|
240
|
+
'AutoScalingPlans' => 'autoscaling-plans',
|
|
240
241
|
'Backup' => 'backup',
|
|
241
242
|
'Batch' => 'batch',
|
|
242
243
|
'Budgets' => 'budgets',
|
|
@@ -265,6 +266,7 @@ module Aws
|
|
|
265
266
|
'ComprehendMedical' => 'comprehendmedical',
|
|
266
267
|
'ConfigService' => 'config',
|
|
267
268
|
'Connect' => 'connect',
|
|
269
|
+
'ConnectParticipant' => 'participant.connect',
|
|
268
270
|
'CostExplorer' => 'ce',
|
|
269
271
|
'CostandUsageReportService' => 'cur',
|
|
270
272
|
'DAX' => 'dax',
|
|
@@ -288,6 +290,7 @@ module Aws
|
|
|
288
290
|
'EMR' => 'elasticmapreduce',
|
|
289
291
|
'ElastiCache' => 'elasticache',
|
|
290
292
|
'ElasticBeanstalk' => 'elasticbeanstalk',
|
|
293
|
+
'ElasticInference' => 'api.elastic-inference',
|
|
291
294
|
'ElasticLoadBalancing' => 'elasticloadbalancing',
|
|
292
295
|
'ElasticLoadBalancingV2' => 'elasticloadbalancing',
|
|
293
296
|
'ElasticTranscoder' => 'elastictranscoder',
|
|
@@ -316,6 +319,7 @@ module Aws
|
|
|
316
319
|
'IoTEvents' => 'iotevents',
|
|
317
320
|
'IoTEventsData' => 'data.iotevents',
|
|
318
321
|
'IoTJobsDataPlane' => 'data.jobs.iot',
|
|
322
|
+
'IoTSecureTunneling' => 'api.tunneling.iot',
|
|
319
323
|
'IoTThingsGraph' => 'iotthingsgraph',
|
|
320
324
|
'KMS' => 'kms',
|
|
321
325
|
'Kafka' => 'kafka',
|
|
@@ -350,6 +354,7 @@ module Aws
|
|
|
350
354
|
'MediaStoreData' => 'data.mediastore',
|
|
351
355
|
'MediaTailor' => 'api.mediatailor',
|
|
352
356
|
'MigrationHub' => 'mgh',
|
|
357
|
+
'MigrationHubConfig' => 'migrationhub-config',
|
|
353
358
|
'Mobile' => 'mobile',
|
|
354
359
|
'Neptune' => 'rds',
|
|
355
360
|
'OpsWorks' => 'opsworks',
|
|
@@ -413,6 +418,7 @@ module Aws
|
|
|
413
418
|
'Translate' => 'translate',
|
|
414
419
|
'WAF' => 'waf',
|
|
415
420
|
'WAFRegional' => 'waf-regional',
|
|
421
|
+
'WAFV2' => 'wafv2',
|
|
416
422
|
'WorkDocs' => 'workdocs',
|
|
417
423
|
'WorkLink' => 'worklink',
|
|
418
424
|
'WorkMail' => 'workmail',
|
|
@@ -60,19 +60,19 @@ module Aws
|
|
|
60
60
|
|
|
61
61
|
# @api private Use the static class methods instead.
|
|
62
62
|
def dns_suffix_for(region)
|
|
63
|
-
|
|
64
|
-
partition['dnsSuffix']
|
|
63
|
+
get_partition(region)['dnsSuffix']
|
|
65
64
|
end
|
|
66
65
|
|
|
67
66
|
private
|
|
68
67
|
|
|
69
68
|
def endpoint_for(region, service, sts_regional_endpoints)
|
|
70
69
|
partition = get_partition(region)
|
|
71
|
-
endpoint = default_endpoint(partition, service, region)
|
|
72
70
|
service_cfg = partition.fetch('services', {}).fetch(service, {})
|
|
73
71
|
|
|
74
|
-
#
|
|
75
|
-
endpoint = service_cfg
|
|
72
|
+
# Find the default endpoint
|
|
73
|
+
endpoint = service_cfg
|
|
74
|
+
.fetch('defaults', {})
|
|
75
|
+
.fetch('hostname', partition['defaults']['hostname'])
|
|
76
76
|
|
|
77
77
|
# Check for sts legacy behavior
|
|
78
78
|
sts_legacy = service == 'sts' &&
|
|
@@ -90,18 +90,14 @@ module Aws
|
|
|
90
90
|
end
|
|
91
91
|
|
|
92
92
|
# Check for service/region level endpoint.
|
|
93
|
-
endpoint = service_cfg
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
hostname_template
|
|
102
|
-
.sub('{region}', region)
|
|
103
|
-
.sub('{service}', service)
|
|
104
|
-
.sub('{dnsSuffix}', partition['dnsSuffix'])
|
|
93
|
+
endpoint = service_cfg
|
|
94
|
+
.fetch('endpoints', {})
|
|
95
|
+
.fetch(region, {}).fetch('hostname', endpoint)
|
|
96
|
+
|
|
97
|
+
# Replace placeholders from the endpoints
|
|
98
|
+
endpoint.sub('{region}', region)
|
|
99
|
+
.sub('{service}', service)
|
|
100
|
+
.sub('{dnsSuffix}', partition['dnsSuffix'])
|
|
105
101
|
end
|
|
106
102
|
|
|
107
103
|
def get_partition(region)
|
|
@@ -120,7 +116,7 @@ module Aws
|
|
|
120
116
|
@rules['partitions'].find do |p|
|
|
121
117
|
region.match(p['regionRegex']) ||
|
|
122
118
|
p['services'].values.find do |svc|
|
|
123
|
-
svc['endpoints'].key?(region) if svc.key?
|
|
119
|
+
svc['endpoints'].key?(region) if svc.key?('endpoints')
|
|
124
120
|
end
|
|
125
121
|
end
|
|
126
122
|
end
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
module Aws
|
|
2
2
|
module Partitions
|
|
3
3
|
class Partition
|
|
4
|
-
|
|
5
4
|
# @option options [required, String] :name
|
|
6
5
|
# @option options [required, Hash<String,Region>] :regions
|
|
7
6
|
# @option options [required, Hash<String,Service>] :services
|
|
@@ -23,7 +22,7 @@ module Aws
|
|
|
23
22
|
@regions[region_name]
|
|
24
23
|
else
|
|
25
24
|
msg = "invalid region name #{region_name.inspect}; valid region "
|
|
26
|
-
msg << "names include
|
|
25
|
+
msg << "names include #{@regions.keys.join(', ')}"
|
|
27
26
|
raise ArgumentError, msg
|
|
28
27
|
end
|
|
29
28
|
end
|
|
@@ -33,6 +32,12 @@ module Aws
|
|
|
33
32
|
@regions.values
|
|
34
33
|
end
|
|
35
34
|
|
|
35
|
+
# @param [String] region_name The name of the region, e.g. "us-east-1".
|
|
36
|
+
# @return [Boolean] true if the region is in the partition.
|
|
37
|
+
def region?(region_name)
|
|
38
|
+
@regions.key?(region_name)
|
|
39
|
+
end
|
|
40
|
+
|
|
36
41
|
# @param [String] service_name The service module name.
|
|
37
42
|
# @return [Service]
|
|
38
43
|
# @raise [ArgumentError] Raises `ArgumentError` for unknown service name.
|
|
@@ -41,7 +46,7 @@ module Aws
|
|
|
41
46
|
@services[service_name]
|
|
42
47
|
else
|
|
43
48
|
msg = "invalid service name #{service_name.inspect}; valid service "
|
|
44
|
-
msg << "names include
|
|
49
|
+
msg << "names include #{@services.keys.join(', ')}"
|
|
45
50
|
raise ArgumentError, msg
|
|
46
51
|
end
|
|
47
52
|
end
|
|
@@ -51,14 +56,19 @@ module Aws
|
|
|
51
56
|
@services.values
|
|
52
57
|
end
|
|
53
58
|
|
|
54
|
-
|
|
59
|
+
# @param [String] service_name The service module name.
|
|
60
|
+
# @return [Boolean] true if the service is in the partition.
|
|
61
|
+
def service?(service_name)
|
|
62
|
+
@services.key?(service_name)
|
|
63
|
+
end
|
|
55
64
|
|
|
65
|
+
class << self
|
|
56
66
|
# @api private
|
|
57
67
|
def build(partition)
|
|
58
68
|
Partition.new(
|
|
59
69
|
name: partition['partition'],
|
|
60
70
|
regions: build_regions(partition),
|
|
61
|
-
services: build_services(partition)
|
|
71
|
+
services: build_services(partition)
|
|
62
72
|
)
|
|
63
73
|
end
|
|
64
74
|
|
|
@@ -67,28 +77,29 @@ module Aws
|
|
|
67
77
|
# @param [Hash] partition
|
|
68
78
|
# @return [Hash<String,Region>]
|
|
69
79
|
def build_regions(partition)
|
|
70
|
-
partition['regions'].
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
regions
|
|
80
|
+
partition['regions'].each_with_object({}) do
|
|
81
|
+
|(region_name, region), regions|
|
|
82
|
+
next if region_name == "#{partition['partition']}-global"
|
|
83
|
+
|
|
84
|
+
regions[region_name] = Region.build(
|
|
85
|
+
region_name, region, partition
|
|
86
|
+
)
|
|
75
87
|
end
|
|
76
88
|
end
|
|
77
89
|
|
|
78
90
|
# @param [Hash] partition
|
|
79
91
|
# @return [Hash<String,Service>]
|
|
80
92
|
def build_services(partition)
|
|
81
|
-
Partitions.service_ids.
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
93
|
+
Partitions.service_ids.each_with_object({}) do
|
|
94
|
+
|(service_name, service), services|
|
|
95
|
+
service_data = partition['services'].fetch(
|
|
96
|
+
service, 'endpoints' => {}
|
|
97
|
+
)
|
|
98
|
+
services[service_name] = Service.build(
|
|
99
|
+
service_name, service_data, partition
|
|
100
|
+
)
|
|
89
101
|
end
|
|
90
102
|
end
|
|
91
|
-
|
|
92
103
|
end
|
|
93
104
|
end
|
|
94
105
|
end
|
data/partitions.json
CHANGED
|
@@ -322,10 +322,6 @@
|
|
|
322
322
|
},
|
|
323
323
|
"application-autoscaling" : {
|
|
324
324
|
"defaults" : {
|
|
325
|
-
"credentialScope" : {
|
|
326
|
-
"service" : "application-autoscaling"
|
|
327
|
-
},
|
|
328
|
-
"hostname" : "autoscaling.{region}.amazonaws.com",
|
|
329
325
|
"protocols" : [ "http", "https" ]
|
|
330
326
|
},
|
|
331
327
|
"endpoints" : {
|
|
@@ -454,10 +450,6 @@
|
|
|
454
450
|
},
|
|
455
451
|
"autoscaling-plans" : {
|
|
456
452
|
"defaults" : {
|
|
457
|
-
"credentialScope" : {
|
|
458
|
-
"service" : "autoscaling-plans"
|
|
459
|
-
},
|
|
460
|
-
"hostname" : "autoscaling.{region}.amazonaws.com",
|
|
461
453
|
"protocols" : [ "http", "https" ]
|
|
462
454
|
},
|
|
463
455
|
"endpoints" : {
|
|
@@ -1028,12 +1020,15 @@
|
|
|
1028
1020
|
},
|
|
1029
1021
|
"datasync" : {
|
|
1030
1022
|
"endpoints" : {
|
|
1023
|
+
"ap-east-1" : { },
|
|
1031
1024
|
"ap-northeast-1" : { },
|
|
1032
1025
|
"ap-northeast-2" : { },
|
|
1026
|
+
"ap-south-1" : { },
|
|
1033
1027
|
"ap-southeast-1" : { },
|
|
1034
1028
|
"ap-southeast-2" : { },
|
|
1035
1029
|
"ca-central-1" : { },
|
|
1036
1030
|
"eu-central-1" : { },
|
|
1031
|
+
"eu-north-1" : { },
|
|
1037
1032
|
"eu-west-1" : { },
|
|
1038
1033
|
"eu-west-2" : { },
|
|
1039
1034
|
"eu-west-3" : { },
|
|
@@ -1062,6 +1057,7 @@
|
|
|
1062
1057
|
"hostname" : "datasync-fips.us-west-2.amazonaws.com"
|
|
1063
1058
|
},
|
|
1064
1059
|
"me-south-1" : { },
|
|
1060
|
+
"sa-east-1" : { },
|
|
1065
1061
|
"us-east-1" : { },
|
|
1066
1062
|
"us-east-2" : { },
|
|
1067
1063
|
"us-west-1" : { },
|
|
@@ -1114,6 +1110,7 @@
|
|
|
1114
1110
|
},
|
|
1115
1111
|
"discovery" : {
|
|
1116
1112
|
"endpoints" : {
|
|
1113
|
+
"eu-central-1" : { },
|
|
1117
1114
|
"us-west-2" : { }
|
|
1118
1115
|
}
|
|
1119
1116
|
},
|
|
@@ -1396,6 +1393,7 @@
|
|
|
1396
1393
|
},
|
|
1397
1394
|
"elasticfilesystem" : {
|
|
1398
1395
|
"endpoints" : {
|
|
1396
|
+
"ap-east-1" : { },
|
|
1399
1397
|
"ap-northeast-1" : { },
|
|
1400
1398
|
"ap-northeast-2" : { },
|
|
1401
1399
|
"ap-south-1" : { },
|
|
@@ -1403,9 +1401,12 @@
|
|
|
1403
1401
|
"ap-southeast-2" : { },
|
|
1404
1402
|
"ca-central-1" : { },
|
|
1405
1403
|
"eu-central-1" : { },
|
|
1404
|
+
"eu-north-1" : { },
|
|
1406
1405
|
"eu-west-1" : { },
|
|
1407
1406
|
"eu-west-2" : { },
|
|
1408
1407
|
"eu-west-3" : { },
|
|
1408
|
+
"me-south-1" : { },
|
|
1409
|
+
"sa-east-1" : { },
|
|
1409
1410
|
"us-east-1" : { },
|
|
1410
1411
|
"us-east-2" : { },
|
|
1411
1412
|
"us-west-1" : { },
|
|
@@ -2041,12 +2042,17 @@
|
|
|
2041
2042
|
"lakeformation" : {
|
|
2042
2043
|
"endpoints" : {
|
|
2043
2044
|
"ap-northeast-1" : { },
|
|
2045
|
+
"ap-northeast-2" : { },
|
|
2044
2046
|
"ap-south-1" : { },
|
|
2045
2047
|
"ap-southeast-1" : { },
|
|
2046
2048
|
"ap-southeast-2" : { },
|
|
2049
|
+
"ca-central-1" : { },
|
|
2050
|
+
"eu-central-1" : { },
|
|
2047
2051
|
"eu-west-1" : { },
|
|
2052
|
+
"eu-west-2" : { },
|
|
2048
2053
|
"us-east-1" : { },
|
|
2049
2054
|
"us-east-2" : { },
|
|
2055
|
+
"us-west-1" : { },
|
|
2050
2056
|
"us-west-2" : { }
|
|
2051
2057
|
}
|
|
2052
2058
|
},
|
|
@@ -2258,6 +2264,7 @@
|
|
|
2258
2264
|
},
|
|
2259
2265
|
"mgh" : {
|
|
2260
2266
|
"endpoints" : {
|
|
2267
|
+
"eu-central-1" : { },
|
|
2261
2268
|
"us-west-2" : { }
|
|
2262
2269
|
}
|
|
2263
2270
|
},
|
|
@@ -2674,6 +2681,7 @@
|
|
|
2674
2681
|
"eu-west-1" : { },
|
|
2675
2682
|
"eu-west-2" : { },
|
|
2676
2683
|
"eu-west-3" : { },
|
|
2684
|
+
"sa-east-1" : { },
|
|
2677
2685
|
"us-east-1" : { },
|
|
2678
2686
|
"us-east-2" : { },
|
|
2679
2687
|
"us-west-1" : { },
|
|
@@ -3712,6 +3720,7 @@
|
|
|
3712
3720
|
},
|
|
3713
3721
|
"endpoints" : {
|
|
3714
3722
|
"ap-east-1" : { },
|
|
3723
|
+
"ap-northeast-1" : { },
|
|
3715
3724
|
"ap-northeast-2" : { },
|
|
3716
3725
|
"ap-south-1" : { },
|
|
3717
3726
|
"ap-southeast-1" : { },
|
|
@@ -3764,13 +3773,18 @@
|
|
|
3764
3773
|
"protocols" : [ "https" ]
|
|
3765
3774
|
},
|
|
3766
3775
|
"endpoints" : {
|
|
3776
|
+
"ap-east-1" : { },
|
|
3767
3777
|
"ap-northeast-1" : { },
|
|
3768
3778
|
"ap-northeast-2" : { },
|
|
3769
3779
|
"ap-south-1" : { },
|
|
3770
3780
|
"ap-southeast-1" : { },
|
|
3781
|
+
"ap-southeast-2" : { },
|
|
3771
3782
|
"ca-central-1" : { },
|
|
3772
3783
|
"eu-central-1" : { },
|
|
3784
|
+
"eu-north-1" : { },
|
|
3773
3785
|
"eu-west-1" : { },
|
|
3786
|
+
"eu-west-2" : { },
|
|
3787
|
+
"eu-west-3" : { },
|
|
3774
3788
|
"us-east-1" : { },
|
|
3775
3789
|
"us-east-1-fips" : {
|
|
3776
3790
|
"credentialScope" : {
|
|
@@ -3785,6 +3799,7 @@
|
|
|
3785
3799
|
},
|
|
3786
3800
|
"hostname" : "translate-fips.us-east-2.amazonaws.com"
|
|
3787
3801
|
},
|
|
3802
|
+
"us-west-1" : { },
|
|
3788
3803
|
"us-west-2" : { },
|
|
3789
3804
|
"us-west-2-fips" : {
|
|
3790
3805
|
"credentialScope" : {
|
|
@@ -3927,10 +3942,6 @@
|
|
|
3927
3942
|
},
|
|
3928
3943
|
"application-autoscaling" : {
|
|
3929
3944
|
"defaults" : {
|
|
3930
|
-
"credentialScope" : {
|
|
3931
|
-
"service" : "application-autoscaling"
|
|
3932
|
-
},
|
|
3933
|
-
"hostname" : "autoscaling.{region}.amazonaws.com",
|
|
3934
3945
|
"protocols" : [ "http", "https" ]
|
|
3935
3946
|
},
|
|
3936
3947
|
"endpoints" : {
|
|
@@ -4432,6 +4443,9 @@
|
|
|
4432
4443
|
}
|
|
4433
4444
|
},
|
|
4434
4445
|
"application-autoscaling" : {
|
|
4446
|
+
"defaults" : {
|
|
4447
|
+
"protocols" : [ "http", "https" ]
|
|
4448
|
+
},
|
|
4435
4449
|
"endpoints" : {
|
|
4436
4450
|
"us-gov-east-1" : { },
|
|
4437
4451
|
"us-gov-west-1" : { }
|
|
@@ -4564,6 +4578,7 @@
|
|
|
4564
4578
|
},
|
|
4565
4579
|
"hostname" : "datasync-fips.us-gov-west-1.amazonaws.com"
|
|
4566
4580
|
},
|
|
4581
|
+
"us-gov-east-1" : { },
|
|
4567
4582
|
"us-gov-west-1" : { }
|
|
4568
4583
|
}
|
|
4569
4584
|
},
|
|
@@ -5155,10 +5170,7 @@
|
|
|
5155
5170
|
},
|
|
5156
5171
|
"application-autoscaling" : {
|
|
5157
5172
|
"defaults" : {
|
|
5158
|
-
"
|
|
5159
|
-
"service" : "application-autoscaling"
|
|
5160
|
-
},
|
|
5161
|
-
"hostname" : "autoscaling.{region}.amazonaws.com",
|
|
5173
|
+
"hostname" : "autoscaling.us-iso-east-1.c2s.ic.gov",
|
|
5162
5174
|
"protocols" : [ "http", "https" ]
|
|
5163
5175
|
},
|
|
5164
5176
|
"endpoints" : {
|
|
@@ -5428,10 +5440,7 @@
|
|
|
5428
5440
|
"services" : {
|
|
5429
5441
|
"application-autoscaling" : {
|
|
5430
5442
|
"defaults" : {
|
|
5431
|
-
"
|
|
5432
|
-
"service" : "application-autoscaling"
|
|
5433
|
-
},
|
|
5434
|
-
"hostname" : "autoscaling.{region}.amazonaws.com",
|
|
5443
|
+
"hostname" : "autoscaling.us-isob-east-1.sc2s.sgov.gov",
|
|
5435
5444
|
"protocols" : [ "http", "https" ]
|
|
5436
5445
|
},
|
|
5437
5446
|
"endpoints" : {
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: aws-partitions
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.246.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: 2019-11-
|
|
11
|
+
date: 2019-11-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Provides interfaces to enumerate AWS partitions, regions, and services.
|
|
14
14
|
email:
|