aws-partitions 1.224.0 → 1.229.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/endpoint_provider.rb +36 -6
- data/partitions.json +113 -25
- 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: 1637a57916a782e5fc13a40ef5d479c40bcaea9b
|
|
4
|
+
data.tar.gz: e8129e1a8a4ba21667ae7607e00e12d6f5049dfb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8b84e1ab0db9b2b2196d2c346d2dc6ad129a8c9f8cdfbec484961aeca9e6d5dba18638e9732fc93aa778bb0a201863079338acd91c60d1580f921a17d2b30869
|
|
7
|
+
data.tar.gz: 82e769d1a60e611fcda9eae2c7ebc2880db0cd09d460c59bc18dd8bcf1f8b52d37145b4b7bbd5dcb3026f2f9d2a8ee85e1748711b63e5cf8e526d751abf391fb
|
|
@@ -3,6 +3,28 @@ module Aws
|
|
|
3
3
|
# @api private
|
|
4
4
|
class EndpointProvider
|
|
5
5
|
|
|
6
|
+
# when sts_regional_endpoint set to `legacy`
|
|
7
|
+
# endpoint pattern stays global for
|
|
8
|
+
# following regions
|
|
9
|
+
STS_LEGACY_REGIONS = %w(
|
|
10
|
+
ap-northeast-1
|
|
11
|
+
ap-south-1
|
|
12
|
+
ap-southeast-1
|
|
13
|
+
ap-southeast-2
|
|
14
|
+
aws-global
|
|
15
|
+
ca-central-1
|
|
16
|
+
eu-central-1
|
|
17
|
+
eu-north-1
|
|
18
|
+
eu-west-1
|
|
19
|
+
eu-west-2
|
|
20
|
+
eu-west-3
|
|
21
|
+
sa-east-1
|
|
22
|
+
us-east-1
|
|
23
|
+
us-east-2
|
|
24
|
+
us-west-1
|
|
25
|
+
us-west-2
|
|
26
|
+
)
|
|
27
|
+
|
|
6
28
|
# Intentionally marked private. The format of the endpoint rules
|
|
7
29
|
# is an implementation detail.
|
|
8
30
|
# @api private
|
|
@@ -13,9 +35,12 @@ module Aws
|
|
|
13
35
|
# @param [String] region
|
|
14
36
|
# @param [String] service The endpoint prefix for the service, e.g. "monitoring" for
|
|
15
37
|
# cloudwatch.
|
|
38
|
+
# @param [String] sts_regional_endpoints [STS only] Whether to use `legacy` (global endpoint for
|
|
39
|
+
# legacy regions) or `regional` mode for using regional endpoint for supported regions
|
|
40
|
+
# except 'aws-global'
|
|
16
41
|
# @api private Use the static class methods instead.
|
|
17
|
-
def resolve(region, service)
|
|
18
|
-
"https://" + endpoint_for(region, service)
|
|
42
|
+
def resolve(region, service, sts_regional_endpoints = nil)
|
|
43
|
+
"https://" + endpoint_for(region, service, sts_regional_endpoints)
|
|
19
44
|
end
|
|
20
45
|
|
|
21
46
|
# @api private Use the static class methods instead.
|
|
@@ -37,7 +62,7 @@ module Aws
|
|
|
37
62
|
|
|
38
63
|
private
|
|
39
64
|
|
|
40
|
-
def endpoint_for(region, service)
|
|
65
|
+
def endpoint_for(region, service, sts_regional_endpoints)
|
|
41
66
|
partition = get_partition(region)
|
|
42
67
|
endpoint = default_endpoint(partition, service, region)
|
|
43
68
|
service_cfg = partition.fetch("services", {}).fetch(service, {})
|
|
@@ -45,8 +70,13 @@ module Aws
|
|
|
45
70
|
# Check for service-level default endpoint.
|
|
46
71
|
endpoint = service_cfg.fetch("defaults", {}).fetch("hostname", endpoint)
|
|
47
72
|
|
|
73
|
+
# Check for sts legacy behavior
|
|
74
|
+
sts_legacy = service == 'sts' &&
|
|
75
|
+
sts_regional_endpoints == 'legacy' &&
|
|
76
|
+
STS_LEGACY_REGIONS.include?(region)
|
|
77
|
+
|
|
48
78
|
# Check for global endpoint.
|
|
49
|
-
if service_cfg["isRegionalized"] == false
|
|
79
|
+
if sts_legacy || service_cfg["isRegionalized"] == false
|
|
50
80
|
region = service_cfg.fetch("partitionEndpoint", region)
|
|
51
81
|
end
|
|
52
82
|
|
|
@@ -91,8 +121,8 @@ module Aws
|
|
|
91
121
|
|
|
92
122
|
class << self
|
|
93
123
|
|
|
94
|
-
def resolve(region, service)
|
|
95
|
-
default_provider.resolve(region, service)
|
|
124
|
+
def resolve(region, service, sts_regional_endpoints = nil)
|
|
125
|
+
default_provider.resolve(region, service, sts_regional_endpoints)
|
|
96
126
|
end
|
|
97
127
|
|
|
98
128
|
def signing_region(region, service)
|
data/partitions.json
CHANGED
|
@@ -110,6 +110,7 @@
|
|
|
110
110
|
"eu-west-1" : { },
|
|
111
111
|
"eu-west-2" : { },
|
|
112
112
|
"eu-west-3" : { },
|
|
113
|
+
"me-south-1" : { },
|
|
113
114
|
"us-east-1" : { },
|
|
114
115
|
"us-east-2" : { },
|
|
115
116
|
"us-west-1" : { },
|
|
@@ -264,6 +265,7 @@
|
|
|
264
265
|
"eu-west-1" : { },
|
|
265
266
|
"eu-west-2" : { },
|
|
266
267
|
"eu-west-3" : { },
|
|
268
|
+
"me-south-1" : { },
|
|
267
269
|
"sa-east-1" : { },
|
|
268
270
|
"us-east-1" : { },
|
|
269
271
|
"us-east-1-fips" : {
|
|
@@ -357,6 +359,7 @@
|
|
|
357
359
|
"eu-central-1" : { },
|
|
358
360
|
"eu-west-1" : { },
|
|
359
361
|
"eu-west-2" : { },
|
|
362
|
+
"eu-west-3" : { },
|
|
360
363
|
"us-east-1" : { },
|
|
361
364
|
"us-east-2" : { },
|
|
362
365
|
"us-west-1" : { },
|
|
@@ -641,6 +644,7 @@
|
|
|
641
644
|
"eu-west-2" : { },
|
|
642
645
|
"eu-west-3" : { },
|
|
643
646
|
"me-south-1" : { },
|
|
647
|
+
"sa-east-1" : { },
|
|
644
648
|
"us-east-1" : { },
|
|
645
649
|
"us-east-2" : { },
|
|
646
650
|
"us-west-1" : { },
|
|
@@ -1121,6 +1125,12 @@
|
|
|
1121
1125
|
},
|
|
1122
1126
|
"hostname" : "rds.ap-northeast-2.amazonaws.com"
|
|
1123
1127
|
},
|
|
1128
|
+
"ap-south-1" : {
|
|
1129
|
+
"credentialScope" : {
|
|
1130
|
+
"region" : "ap-south-1"
|
|
1131
|
+
},
|
|
1132
|
+
"hostname" : "rds.ap-south-1.amazonaws.com"
|
|
1133
|
+
},
|
|
1124
1134
|
"ap-southeast-1" : {
|
|
1125
1135
|
"credentialScope" : {
|
|
1126
1136
|
"region" : "ap-southeast-1"
|
|
@@ -1543,6 +1553,26 @@
|
|
|
1543
1553
|
"us-west-2" : { }
|
|
1544
1554
|
}
|
|
1545
1555
|
},
|
|
1556
|
+
"forecast" : {
|
|
1557
|
+
"endpoints" : {
|
|
1558
|
+
"ap-northeast-1" : { },
|
|
1559
|
+
"ap-southeast-1" : { },
|
|
1560
|
+
"eu-west-1" : { },
|
|
1561
|
+
"us-east-1" : { },
|
|
1562
|
+
"us-east-2" : { },
|
|
1563
|
+
"us-west-2" : { }
|
|
1564
|
+
}
|
|
1565
|
+
},
|
|
1566
|
+
"forecastquery" : {
|
|
1567
|
+
"endpoints" : {
|
|
1568
|
+
"ap-northeast-1" : { },
|
|
1569
|
+
"ap-southeast-1" : { },
|
|
1570
|
+
"eu-west-1" : { },
|
|
1571
|
+
"us-east-1" : { },
|
|
1572
|
+
"us-east-2" : { },
|
|
1573
|
+
"us-west-2" : { }
|
|
1574
|
+
}
|
|
1575
|
+
},
|
|
1546
1576
|
"fsx" : {
|
|
1547
1577
|
"endpoints" : {
|
|
1548
1578
|
"ap-northeast-1" : { },
|
|
@@ -2657,6 +2687,7 @@
|
|
|
2657
2687
|
"eu-west-1" : { },
|
|
2658
2688
|
"eu-west-2" : { },
|
|
2659
2689
|
"eu-west-3" : { },
|
|
2690
|
+
"me-south-1" : { },
|
|
2660
2691
|
"sa-east-1" : { },
|
|
2661
2692
|
"us-east-1" : { },
|
|
2662
2693
|
"us-east-1-fips" : {
|
|
@@ -3372,42 +3403,26 @@
|
|
|
3372
3403
|
}
|
|
3373
3404
|
},
|
|
3374
3405
|
"sts" : {
|
|
3375
|
-
"defaults" : {
|
|
3376
|
-
"credentialScope" : {
|
|
3377
|
-
"region" : "us-east-1"
|
|
3378
|
-
},
|
|
3379
|
-
"hostname" : "sts.amazonaws.com"
|
|
3380
|
-
},
|
|
3381
3406
|
"endpoints" : {
|
|
3382
|
-
"ap-east-1" : {
|
|
3383
|
-
"credentialScope" : {
|
|
3384
|
-
"region" : "ap-east-1"
|
|
3385
|
-
},
|
|
3386
|
-
"hostname" : "sts.ap-east-1.amazonaws.com"
|
|
3387
|
-
},
|
|
3407
|
+
"ap-east-1" : { },
|
|
3388
3408
|
"ap-northeast-1" : { },
|
|
3389
|
-
"ap-northeast-2" : {
|
|
3390
|
-
"credentialScope" : {
|
|
3391
|
-
"region" : "ap-northeast-2"
|
|
3392
|
-
},
|
|
3393
|
-
"hostname" : "sts.ap-northeast-2.amazonaws.com"
|
|
3394
|
-
},
|
|
3409
|
+
"ap-northeast-2" : { },
|
|
3395
3410
|
"ap-south-1" : { },
|
|
3396
3411
|
"ap-southeast-1" : { },
|
|
3397
3412
|
"ap-southeast-2" : { },
|
|
3398
|
-
"aws-global" : {
|
|
3413
|
+
"aws-global" : {
|
|
3414
|
+
"credentialScope" : {
|
|
3415
|
+
"region" : "us-east-1"
|
|
3416
|
+
},
|
|
3417
|
+
"hostname" : "sts.amazonaws.com"
|
|
3418
|
+
},
|
|
3399
3419
|
"ca-central-1" : { },
|
|
3400
3420
|
"eu-central-1" : { },
|
|
3401
3421
|
"eu-north-1" : { },
|
|
3402
3422
|
"eu-west-1" : { },
|
|
3403
3423
|
"eu-west-2" : { },
|
|
3404
3424
|
"eu-west-3" : { },
|
|
3405
|
-
"me-south-1" : {
|
|
3406
|
-
"credentialScope" : {
|
|
3407
|
-
"region" : "me-south-1"
|
|
3408
|
-
},
|
|
3409
|
-
"hostname" : "sts.me-south-1.amazonaws.com"
|
|
3410
|
-
},
|
|
3425
|
+
"me-south-1" : { },
|
|
3411
3426
|
"sa-east-1" : { },
|
|
3412
3427
|
"us-east-1" : { },
|
|
3413
3428
|
"us-east-1-fips" : {
|
|
@@ -3495,6 +3510,37 @@
|
|
|
3495
3510
|
"us-west-2" : { }
|
|
3496
3511
|
}
|
|
3497
3512
|
},
|
|
3513
|
+
"transcribe" : {
|
|
3514
|
+
"defaults" : {
|
|
3515
|
+
"protocols" : [ "https" ]
|
|
3516
|
+
},
|
|
3517
|
+
"endpoints" : {
|
|
3518
|
+
"ap-northeast-2" : { },
|
|
3519
|
+
"ap-south-1" : { },
|
|
3520
|
+
"ap-southeast-1" : { },
|
|
3521
|
+
"ap-southeast-2" : { },
|
|
3522
|
+
"ca-central-1" : { },
|
|
3523
|
+
"eu-central-1" : { },
|
|
3524
|
+
"eu-west-1" : { },
|
|
3525
|
+
"eu-west-2" : { },
|
|
3526
|
+
"eu-west-3" : { },
|
|
3527
|
+
"sa-east-1" : { },
|
|
3528
|
+
"us-east-1" : { },
|
|
3529
|
+
"us-east-2" : { },
|
|
3530
|
+
"us-west-1" : { },
|
|
3531
|
+
"us-west-2" : { }
|
|
3532
|
+
}
|
|
3533
|
+
},
|
|
3534
|
+
"transcribestreaming" : {
|
|
3535
|
+
"endpoints" : {
|
|
3536
|
+
"ap-southeast-2" : { },
|
|
3537
|
+
"ca-central-1" : { },
|
|
3538
|
+
"eu-west-1" : { },
|
|
3539
|
+
"us-east-1" : { },
|
|
3540
|
+
"us-east-2" : { },
|
|
3541
|
+
"us-west-2" : { }
|
|
3542
|
+
}
|
|
3543
|
+
},
|
|
3498
3544
|
"transfer" : {
|
|
3499
3545
|
"endpoints" : {
|
|
3500
3546
|
"ap-northeast-1" : { },
|
|
@@ -3873,6 +3919,11 @@
|
|
|
3873
3919
|
"cn-northwest-1" : { }
|
|
3874
3920
|
}
|
|
3875
3921
|
},
|
|
3922
|
+
"glue" : {
|
|
3923
|
+
"endpoints" : {
|
|
3924
|
+
"cn-northwest-1" : { }
|
|
3925
|
+
}
|
|
3926
|
+
},
|
|
3876
3927
|
"greengrass" : {
|
|
3877
3928
|
"defaults" : {
|
|
3878
3929
|
"protocols" : [ "https" ]
|
|
@@ -4090,6 +4141,25 @@
|
|
|
4090
4141
|
"cn-north-1" : { },
|
|
4091
4142
|
"cn-northwest-1" : { }
|
|
4092
4143
|
}
|
|
4144
|
+
},
|
|
4145
|
+
"transcribe" : {
|
|
4146
|
+
"defaults" : {
|
|
4147
|
+
"protocols" : [ "https" ]
|
|
4148
|
+
},
|
|
4149
|
+
"endpoints" : {
|
|
4150
|
+
"cn-north-1" : {
|
|
4151
|
+
"credentialScope" : {
|
|
4152
|
+
"region" : "cn-north-1"
|
|
4153
|
+
},
|
|
4154
|
+
"hostname" : "cn.transcribe.cn-north-1.amazonaws.com.cn"
|
|
4155
|
+
},
|
|
4156
|
+
"cn-northwest-1" : {
|
|
4157
|
+
"credentialScope" : {
|
|
4158
|
+
"region" : "cn-northwest-1"
|
|
4159
|
+
},
|
|
4160
|
+
"hostname" : "cn.transcribe.cn-northwest-1.amazonaws.com.cn"
|
|
4161
|
+
}
|
|
4162
|
+
}
|
|
4093
4163
|
}
|
|
4094
4164
|
}
|
|
4095
4165
|
}, {
|
|
@@ -4806,6 +4876,14 @@
|
|
|
4806
4876
|
"us-gov-west-1" : { }
|
|
4807
4877
|
}
|
|
4808
4878
|
},
|
|
4879
|
+
"transcribe" : {
|
|
4880
|
+
"defaults" : {
|
|
4881
|
+
"protocols" : [ "https" ]
|
|
4882
|
+
},
|
|
4883
|
+
"endpoints" : {
|
|
4884
|
+
"us-gov-west-1" : { }
|
|
4885
|
+
}
|
|
4886
|
+
},
|
|
4809
4887
|
"translate" : {
|
|
4810
4888
|
"defaults" : {
|
|
4811
4889
|
"protocols" : [ "https" ]
|
|
@@ -4857,6 +4935,11 @@
|
|
|
4857
4935
|
}
|
|
4858
4936
|
}
|
|
4859
4937
|
},
|
|
4938
|
+
"api.sagemaker" : {
|
|
4939
|
+
"endpoints" : {
|
|
4940
|
+
"us-iso-east-1" : { }
|
|
4941
|
+
}
|
|
4942
|
+
},
|
|
4860
4943
|
"apigateway" : {
|
|
4861
4944
|
"endpoints" : {
|
|
4862
4945
|
"us-iso-east-1" : { }
|
|
@@ -5039,6 +5122,11 @@
|
|
|
5039
5122
|
"isRegionalized" : false,
|
|
5040
5123
|
"partitionEndpoint" : "aws-iso-global"
|
|
5041
5124
|
},
|
|
5125
|
+
"runtime.sagemaker" : {
|
|
5126
|
+
"endpoints" : {
|
|
5127
|
+
"us-iso-east-1" : { }
|
|
5128
|
+
}
|
|
5129
|
+
},
|
|
5042
5130
|
"s3" : {
|
|
5043
5131
|
"defaults" : {
|
|
5044
5132
|
"signatureVersions" : [ "s3v4" ]
|
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.229.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-10-
|
|
11
|
+
date: 2019-10-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Provides interfaces to enumerate AWS partitions, regions, and services.
|
|
14
14
|
email:
|