aws-partitions 1.238.0 → 1.243.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 +4 -0
- data/lib/aws-partitions/endpoint_provider.rb +52 -43
- data/partitions.json +56 -17
- 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: 78c64e4a8361153d70aba7c807306ca5a8adfbeb
|
|
4
|
+
data.tar.gz: d914b52e5144bb15f073a33f72de3bf5af326a3b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a5704f45440c9ceba1c1947f766195bd940f7d2f766bc52e4582c19b5181adb5225e09afdb7cfa4cca5d2eb55595883717b14d5972fc7a12e8378791e992703b
|
|
7
|
+
data.tar.gz: 19ec34d4aeba0f04f7ccaec63f3ffcd60242de03f4cebcb7f955198ec4cceb333fbb706cbd321a31a344e7fcb3858aa2c496e0339d6f500e103b49494978b895
|
data/lib/aws-partitions.rb
CHANGED
|
@@ -265,10 +265,12 @@ module Aws
|
|
|
265
265
|
'ComprehendMedical' => 'comprehendmedical',
|
|
266
266
|
'ConfigService' => 'config',
|
|
267
267
|
'Connect' => 'connect',
|
|
268
|
+
'ConnectParticipant' => 'participant.connect',
|
|
268
269
|
'CostExplorer' => 'ce',
|
|
269
270
|
'CostandUsageReportService' => 'cur',
|
|
270
271
|
'DAX' => 'dax',
|
|
271
272
|
'DLM' => 'dlm',
|
|
273
|
+
'DataExchange' => 'dataexchange',
|
|
272
274
|
'DataPipeline' => 'datapipeline',
|
|
273
275
|
'DataSync' => 'datasync',
|
|
274
276
|
'DatabaseMigrationService' => 'dms',
|
|
@@ -349,6 +351,7 @@ module Aws
|
|
|
349
351
|
'MediaStoreData' => 'data.mediastore',
|
|
350
352
|
'MediaTailor' => 'api.mediatailor',
|
|
351
353
|
'MigrationHub' => 'mgh',
|
|
354
|
+
'MigrationHubConfig' => 'migrationhub-config',
|
|
352
355
|
'Mobile' => 'mobile',
|
|
353
356
|
'Neptune' => 'rds',
|
|
354
357
|
'OpsWorks' => 'opsworks',
|
|
@@ -380,6 +383,7 @@ module Aws
|
|
|
380
383
|
'S3' => 's3',
|
|
381
384
|
'S3Control' => 's3-control',
|
|
382
385
|
'SES' => 'email',
|
|
386
|
+
'SESV2' => 'email',
|
|
383
387
|
'SMS' => 'sms',
|
|
384
388
|
'SNS' => 'sns',
|
|
385
389
|
'SQS' => 'sqs',
|
|
@@ -2,11 +2,9 @@ module Aws
|
|
|
2
2
|
module Partitions
|
|
3
3
|
# @api private
|
|
4
4
|
class EndpointProvider
|
|
5
|
-
|
|
6
|
-
#
|
|
7
|
-
|
|
8
|
-
# following regions
|
|
9
|
-
STS_LEGACY_REGIONS = %w(
|
|
5
|
+
# When sts_regional_endpoint is set to `legacy`, the endpoint
|
|
6
|
+
# pattern stays global for the following regions:
|
|
7
|
+
STS_LEGACY_REGIONS = %w[
|
|
10
8
|
ap-northeast-1
|
|
11
9
|
ap-south-1
|
|
12
10
|
ap-southeast-1
|
|
@@ -23,7 +21,13 @@ module Aws
|
|
|
23
21
|
us-east-2
|
|
24
22
|
us-west-1
|
|
25
23
|
us-west-2
|
|
26
|
-
|
|
24
|
+
].freeze
|
|
25
|
+
|
|
26
|
+
# Can be removed once S3 endpoint is updated
|
|
27
|
+
S3_IAD_REGIONAL = {
|
|
28
|
+
'hostname' => 's3.us-east-1.amazonaws.com',
|
|
29
|
+
'signatureVersions' => %w[s3 s3v4]
|
|
30
|
+
}.freeze
|
|
27
31
|
|
|
28
32
|
# Intentionally marked private. The format of the endpoint rules
|
|
29
33
|
# is an implementation detail.
|
|
@@ -32,26 +36,26 @@ module Aws
|
|
|
32
36
|
@rules = rules
|
|
33
37
|
end
|
|
34
38
|
|
|
35
|
-
# @param [String] region
|
|
36
|
-
# @param [String] service The endpoint prefix for the service, e.g.
|
|
37
|
-
# cloudwatch.
|
|
38
|
-
# @param [String] sts_regional_endpoints [STS only] Whether to use
|
|
39
|
-
# legacy regions) or `regional` mode for
|
|
40
|
-
#
|
|
39
|
+
# @param [String] region The region for the client.
|
|
40
|
+
# @param [String] service The endpoint prefix for the service, e.g.
|
|
41
|
+
# "monitoring" for cloudwatch.
|
|
42
|
+
# @param [String] sts_regional_endpoints [STS only] Whether to use
|
|
43
|
+
# `legacy` (global endpoint for legacy regions) or `regional` mode for
|
|
44
|
+
# using regional endpoint for supported regions except 'aws-global'
|
|
41
45
|
# @api private Use the static class methods instead.
|
|
42
|
-
def resolve(region, service, sts_regional_endpoints
|
|
43
|
-
|
|
46
|
+
def resolve(region, service, sts_regional_endpoints)
|
|
47
|
+
'https://' + endpoint_for(region, service, sts_regional_endpoints)
|
|
44
48
|
end
|
|
45
49
|
|
|
46
50
|
# @api private Use the static class methods instead.
|
|
47
51
|
def signing_region(region, service)
|
|
48
|
-
get_partition(region)
|
|
49
|
-
fetch(
|
|
50
|
-
fetch(service, {})
|
|
51
|
-
fetch(
|
|
52
|
-
fetch(region, {})
|
|
53
|
-
fetch(
|
|
54
|
-
fetch(
|
|
52
|
+
get_partition(region)
|
|
53
|
+
.fetch('services', {})
|
|
54
|
+
.fetch(service, {})
|
|
55
|
+
.fetch('endpoints', {})
|
|
56
|
+
.fetch(region, {})
|
|
57
|
+
.fetch('credentialScope', {})
|
|
58
|
+
.fetch('region', region)
|
|
55
59
|
end
|
|
56
60
|
|
|
57
61
|
# @api private Use the static class methods instead.
|
|
@@ -65,40 +69,45 @@ module Aws
|
|
|
65
69
|
def endpoint_for(region, service, sts_regional_endpoints)
|
|
66
70
|
partition = get_partition(region)
|
|
67
71
|
endpoint = default_endpoint(partition, service, region)
|
|
68
|
-
service_cfg = partition.fetch(
|
|
72
|
+
service_cfg = partition.fetch('services', {}).fetch(service, {})
|
|
69
73
|
|
|
70
74
|
# Check for service-level default endpoint.
|
|
71
|
-
endpoint = service_cfg.fetch(
|
|
75
|
+
endpoint = service_cfg.fetch('defaults', {}).fetch('hostname', endpoint)
|
|
72
76
|
|
|
73
77
|
# Check for sts legacy behavior
|
|
74
78
|
sts_legacy = service == 'sts' &&
|
|
75
|
-
|
|
76
|
-
|
|
79
|
+
sts_regional_endpoints == 'legacy' &&
|
|
80
|
+
STS_LEGACY_REGIONS.include?(region)
|
|
77
81
|
|
|
78
82
|
# Check for global endpoint.
|
|
79
|
-
if sts_legacy || service_cfg[
|
|
80
|
-
region = service_cfg.fetch(
|
|
83
|
+
if sts_legacy || service_cfg['isRegionalized'] == false
|
|
84
|
+
region = service_cfg.fetch('partitionEndpoint', region)
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# Can be removed once S3 endpoint is updated
|
|
88
|
+
if (service == 's3') && (region == 'us-east-1')
|
|
89
|
+
service_cfg['endpoints'][region] = S3_IAD_REGIONAL
|
|
81
90
|
end
|
|
82
91
|
|
|
83
92
|
# Check for service/region level endpoint.
|
|
84
|
-
endpoint = service_cfg.fetch(
|
|
85
|
-
|
|
93
|
+
endpoint = service_cfg.fetch('endpoints', {})
|
|
94
|
+
.fetch(region, {}).fetch('hostname', endpoint)
|
|
86
95
|
|
|
87
96
|
endpoint
|
|
88
97
|
end
|
|
89
98
|
|
|
90
99
|
def default_endpoint(partition, service, region)
|
|
91
|
-
hostname_template = partition[
|
|
92
|
-
hostname_template
|
|
93
|
-
sub('{region}', region)
|
|
94
|
-
sub('{service}', service)
|
|
95
|
-
sub('{dnsSuffix}', partition[
|
|
100
|
+
hostname_template = partition['defaults']['hostname']
|
|
101
|
+
hostname_template
|
|
102
|
+
.sub('{region}', region)
|
|
103
|
+
.sub('{service}', service)
|
|
104
|
+
.sub('{dnsSuffix}', partition['dnsSuffix'])
|
|
96
105
|
end
|
|
97
106
|
|
|
98
107
|
def get_partition(region)
|
|
99
108
|
partition_containing_region(region) ||
|
|
100
|
-
|
|
101
|
-
|
|
109
|
+
partition_matching_region(region) ||
|
|
110
|
+
default_partition
|
|
102
111
|
end
|
|
103
112
|
|
|
104
113
|
def partition_containing_region(region)
|
|
@@ -109,19 +118,20 @@ module Aws
|
|
|
109
118
|
|
|
110
119
|
def partition_matching_region(region)
|
|
111
120
|
@rules['partitions'].find do |p|
|
|
112
|
-
region.match(p[
|
|
113
|
-
|
|
121
|
+
region.match(p['regionRegex']) ||
|
|
122
|
+
p['services'].values.find do |svc|
|
|
123
|
+
svc['endpoints'].key?(region) if svc.key? 'endpoints'
|
|
124
|
+
end
|
|
114
125
|
end
|
|
115
126
|
end
|
|
116
127
|
|
|
117
128
|
def default_partition
|
|
118
|
-
@rules['partitions'].find { |p| p[
|
|
119
|
-
|
|
129
|
+
@rules['partitions'].find { |p| p['partition'] == 'aws' } ||
|
|
130
|
+
@rules['partitions'].first
|
|
120
131
|
end
|
|
121
132
|
|
|
122
133
|
class << self
|
|
123
|
-
|
|
124
|
-
def resolve(region, service, sts_regional_endpoints = nil)
|
|
134
|
+
def resolve(region, service, sts_regional_endpoints = 'legacy')
|
|
125
135
|
default_provider.resolve(region, service, sts_regional_endpoints)
|
|
126
136
|
end
|
|
127
137
|
|
|
@@ -138,7 +148,6 @@ module Aws
|
|
|
138
148
|
def default_provider
|
|
139
149
|
@default_provider ||= EndpointProvider.new(Partitions.defaults)
|
|
140
150
|
end
|
|
141
|
-
|
|
142
151
|
end
|
|
143
152
|
end
|
|
144
153
|
end
|
data/partitions.json
CHANGED
|
@@ -1002,6 +1002,21 @@
|
|
|
1002
1002
|
"us-west-2" : { }
|
|
1003
1003
|
}
|
|
1004
1004
|
},
|
|
1005
|
+
"dataexchange" : {
|
|
1006
|
+
"endpoints" : {
|
|
1007
|
+
"ap-northeast-1" : { },
|
|
1008
|
+
"ap-northeast-2" : { },
|
|
1009
|
+
"ap-southeast-1" : { },
|
|
1010
|
+
"ap-southeast-2" : { },
|
|
1011
|
+
"eu-central-1" : { },
|
|
1012
|
+
"eu-west-1" : { },
|
|
1013
|
+
"eu-west-2" : { },
|
|
1014
|
+
"us-east-1" : { },
|
|
1015
|
+
"us-east-2" : { },
|
|
1016
|
+
"us-west-1" : { },
|
|
1017
|
+
"us-west-2" : { }
|
|
1018
|
+
}
|
|
1019
|
+
},
|
|
1005
1020
|
"datapipeline" : {
|
|
1006
1021
|
"endpoints" : {
|
|
1007
1022
|
"ap-northeast-1" : { },
|
|
@@ -1013,12 +1028,15 @@
|
|
|
1013
1028
|
},
|
|
1014
1029
|
"datasync" : {
|
|
1015
1030
|
"endpoints" : {
|
|
1031
|
+
"ap-east-1" : { },
|
|
1016
1032
|
"ap-northeast-1" : { },
|
|
1017
1033
|
"ap-northeast-2" : { },
|
|
1034
|
+
"ap-south-1" : { },
|
|
1018
1035
|
"ap-southeast-1" : { },
|
|
1019
1036
|
"ap-southeast-2" : { },
|
|
1020
1037
|
"ca-central-1" : { },
|
|
1021
1038
|
"eu-central-1" : { },
|
|
1039
|
+
"eu-north-1" : { },
|
|
1022
1040
|
"eu-west-1" : { },
|
|
1023
1041
|
"eu-west-2" : { },
|
|
1024
1042
|
"eu-west-3" : { },
|
|
@@ -1047,6 +1065,7 @@
|
|
|
1047
1065
|
"hostname" : "datasync-fips.us-west-2.amazonaws.com"
|
|
1048
1066
|
},
|
|
1049
1067
|
"me-south-1" : { },
|
|
1068
|
+
"sa-east-1" : { },
|
|
1050
1069
|
"us-east-1" : { },
|
|
1051
1070
|
"us-east-2" : { },
|
|
1052
1071
|
"us-west-1" : { },
|
|
@@ -1099,6 +1118,7 @@
|
|
|
1099
1118
|
},
|
|
1100
1119
|
"discovery" : {
|
|
1101
1120
|
"endpoints" : {
|
|
1121
|
+
"eu-central-1" : { },
|
|
1102
1122
|
"us-west-2" : { }
|
|
1103
1123
|
}
|
|
1104
1124
|
},
|
|
@@ -1381,6 +1401,7 @@
|
|
|
1381
1401
|
},
|
|
1382
1402
|
"elasticfilesystem" : {
|
|
1383
1403
|
"endpoints" : {
|
|
1404
|
+
"ap-east-1" : { },
|
|
1384
1405
|
"ap-northeast-1" : { },
|
|
1385
1406
|
"ap-northeast-2" : { },
|
|
1386
1407
|
"ap-south-1" : { },
|
|
@@ -1388,9 +1409,12 @@
|
|
|
1388
1409
|
"ap-southeast-2" : { },
|
|
1389
1410
|
"ca-central-1" : { },
|
|
1390
1411
|
"eu-central-1" : { },
|
|
1412
|
+
"eu-north-1" : { },
|
|
1391
1413
|
"eu-west-1" : { },
|
|
1392
1414
|
"eu-west-2" : { },
|
|
1393
1415
|
"eu-west-3" : { },
|
|
1416
|
+
"me-south-1" : { },
|
|
1417
|
+
"sa-east-1" : { },
|
|
1394
1418
|
"us-east-1" : { },
|
|
1395
1419
|
"us-east-2" : { },
|
|
1396
1420
|
"us-west-1" : { },
|
|
@@ -1563,11 +1587,16 @@
|
|
|
1563
1587
|
"endpoints" : {
|
|
1564
1588
|
"ap-northeast-1" : { },
|
|
1565
1589
|
"ap-northeast-2" : { },
|
|
1590
|
+
"ap-south-1" : { },
|
|
1566
1591
|
"ap-southeast-1" : { },
|
|
1567
1592
|
"ap-southeast-2" : { },
|
|
1593
|
+
"ca-central-1" : { },
|
|
1568
1594
|
"eu-central-1" : { },
|
|
1595
|
+
"eu-north-1" : { },
|
|
1569
1596
|
"eu-west-1" : { },
|
|
1570
1597
|
"eu-west-2" : { },
|
|
1598
|
+
"eu-west-3" : { },
|
|
1599
|
+
"sa-east-1" : { },
|
|
1571
1600
|
"us-east-1" : { },
|
|
1572
1601
|
"us-east-2" : { },
|
|
1573
1602
|
"us-west-1" : { },
|
|
@@ -2021,12 +2050,17 @@
|
|
|
2021
2050
|
"lakeformation" : {
|
|
2022
2051
|
"endpoints" : {
|
|
2023
2052
|
"ap-northeast-1" : { },
|
|
2053
|
+
"ap-northeast-2" : { },
|
|
2024
2054
|
"ap-south-1" : { },
|
|
2025
2055
|
"ap-southeast-1" : { },
|
|
2026
2056
|
"ap-southeast-2" : { },
|
|
2057
|
+
"ca-central-1" : { },
|
|
2058
|
+
"eu-central-1" : { },
|
|
2027
2059
|
"eu-west-1" : { },
|
|
2060
|
+
"eu-west-2" : { },
|
|
2028
2061
|
"us-east-1" : { },
|
|
2029
2062
|
"us-east-2" : { },
|
|
2063
|
+
"us-west-1" : { },
|
|
2030
2064
|
"us-west-2" : { }
|
|
2031
2065
|
}
|
|
2032
2066
|
},
|
|
@@ -2238,6 +2272,7 @@
|
|
|
2238
2272
|
},
|
|
2239
2273
|
"mgh" : {
|
|
2240
2274
|
"endpoints" : {
|
|
2275
|
+
"eu-central-1" : { },
|
|
2241
2276
|
"us-west-2" : { }
|
|
2242
2277
|
}
|
|
2243
2278
|
},
|
|
@@ -2631,6 +2666,10 @@
|
|
|
2631
2666
|
"qldb" : {
|
|
2632
2667
|
"endpoints" : {
|
|
2633
2668
|
"ap-northeast-1" : { },
|
|
2669
|
+
"ap-northeast-2" : { },
|
|
2670
|
+
"ap-southeast-1" : { },
|
|
2671
|
+
"ap-southeast-2" : { },
|
|
2672
|
+
"eu-central-1" : { },
|
|
2634
2673
|
"eu-west-1" : { },
|
|
2635
2674
|
"us-east-1" : { },
|
|
2636
2675
|
"us-east-2" : { },
|
|
@@ -3306,6 +3345,10 @@
|
|
|
3306
3345
|
"session.qldb" : {
|
|
3307
3346
|
"endpoints" : {
|
|
3308
3347
|
"ap-northeast-1" : { },
|
|
3348
|
+
"ap-northeast-2" : { },
|
|
3349
|
+
"ap-southeast-1" : { },
|
|
3350
|
+
"ap-southeast-2" : { },
|
|
3351
|
+
"eu-central-1" : { },
|
|
3309
3352
|
"eu-west-1" : { },
|
|
3310
3353
|
"us-east-1" : { },
|
|
3311
3354
|
"us-east-2" : { },
|
|
@@ -3315,25 +3358,10 @@
|
|
|
3315
3358
|
"shield" : {
|
|
3316
3359
|
"defaults" : {
|
|
3317
3360
|
"protocols" : [ "https" ],
|
|
3318
|
-
"sslCommonName" : "shield.
|
|
3361
|
+
"sslCommonName" : "shield.us-east-1.amazonaws.com"
|
|
3319
3362
|
},
|
|
3320
3363
|
"endpoints" : {
|
|
3321
|
-
"
|
|
3322
|
-
"ap-northeast-2" : { },
|
|
3323
|
-
"ap-south-1" : { },
|
|
3324
|
-
"ap-southeast-1" : { },
|
|
3325
|
-
"ap-southeast-2" : { },
|
|
3326
|
-
"ca-central-1" : { },
|
|
3327
|
-
"eu-central-1" : { },
|
|
3328
|
-
"eu-north-1" : { },
|
|
3329
|
-
"eu-west-1" : { },
|
|
3330
|
-
"eu-west-2" : { },
|
|
3331
|
-
"eu-west-3" : { },
|
|
3332
|
-
"sa-east-1" : { },
|
|
3333
|
-
"us-east-1" : { },
|
|
3334
|
-
"us-east-2" : { },
|
|
3335
|
-
"us-west-1" : { },
|
|
3336
|
-
"us-west-2" : { }
|
|
3364
|
+
"us-east-1" : { }
|
|
3337
3365
|
},
|
|
3338
3366
|
"isRegionalized" : false
|
|
3339
3367
|
},
|
|
@@ -4000,6 +4028,11 @@
|
|
|
4000
4028
|
"cn-northwest-1" : { }
|
|
4001
4029
|
}
|
|
4002
4030
|
},
|
|
4031
|
+
"dax" : {
|
|
4032
|
+
"endpoints" : {
|
|
4033
|
+
"cn-northwest-1" : { }
|
|
4034
|
+
}
|
|
4035
|
+
},
|
|
4003
4036
|
"directconnect" : {
|
|
4004
4037
|
"endpoints" : {
|
|
4005
4038
|
"cn-north-1" : { },
|
|
@@ -4345,6 +4378,11 @@
|
|
|
4345
4378
|
"hostname" : "cn.transcribe.cn-northwest-1.amazonaws.com.cn"
|
|
4346
4379
|
}
|
|
4347
4380
|
}
|
|
4381
|
+
},
|
|
4382
|
+
"workspaces" : {
|
|
4383
|
+
"endpoints" : {
|
|
4384
|
+
"cn-northwest-1" : { }
|
|
4385
|
+
}
|
|
4348
4386
|
}
|
|
4349
4387
|
}
|
|
4350
4388
|
}, {
|
|
@@ -4541,6 +4579,7 @@
|
|
|
4541
4579
|
},
|
|
4542
4580
|
"hostname" : "datasync-fips.us-gov-west-1.amazonaws.com"
|
|
4543
4581
|
},
|
|
4582
|
+
"us-gov-east-1" : { },
|
|
4544
4583
|
"us-gov-west-1" : { }
|
|
4545
4584
|
}
|
|
4546
4585
|
},
|
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.243.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-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Provides interfaces to enumerate AWS partitions, regions, and services.
|
|
14
14
|
email:
|