aws-partitions 1.223.0 → 1.228.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 +83 -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: cbde7aa09867b8f1375e528edfec5fcc92c89023
|
|
4
|
+
data.tar.gz: 3a162f5b850437bcb9db85f04eddb8eba76057dc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: aed6f7a8eabc25b22c0586bec7257c08e42891dd898458d7cef9fd71bcde3aba9607fbcff028041f7f197e236fa2ac7f7fae6d5c148f4d13290ddb390059142d
|
|
7
|
+
data.tar.gz: 1051e16f96ae0f7dfc291d3d60026175cc00e70125f62905f0099cc346d0699424ee15306ac67640599d82d3834ef2aeaa6dda1382d9be66d247e09b272dd1fd
|
|
@@ -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" : {
|
|
@@ -641,6 +643,7 @@
|
|
|
641
643
|
"eu-west-2" : { },
|
|
642
644
|
"eu-west-3" : { },
|
|
643
645
|
"me-south-1" : { },
|
|
646
|
+
"sa-east-1" : { },
|
|
644
647
|
"us-east-1" : { },
|
|
645
648
|
"us-east-2" : { },
|
|
646
649
|
"us-west-1" : { },
|
|
@@ -1121,6 +1124,18 @@
|
|
|
1121
1124
|
},
|
|
1122
1125
|
"hostname" : "rds.ap-northeast-2.amazonaws.com"
|
|
1123
1126
|
},
|
|
1127
|
+
"ap-south-1" : {
|
|
1128
|
+
"credentialScope" : {
|
|
1129
|
+
"region" : "ap-south-1"
|
|
1130
|
+
},
|
|
1131
|
+
"hostname" : "rds.ap-south-1.amazonaws.com"
|
|
1132
|
+
},
|
|
1133
|
+
"ap-southeast-1" : {
|
|
1134
|
+
"credentialScope" : {
|
|
1135
|
+
"region" : "ap-southeast-1"
|
|
1136
|
+
},
|
|
1137
|
+
"hostname" : "rds.ap-southeast-1.amazonaws.com"
|
|
1138
|
+
},
|
|
1124
1139
|
"ap-southeast-2" : {
|
|
1125
1140
|
"credentialScope" : {
|
|
1126
1141
|
"region" : "ap-southeast-2"
|
|
@@ -2651,6 +2666,7 @@
|
|
|
2651
2666
|
"eu-west-1" : { },
|
|
2652
2667
|
"eu-west-2" : { },
|
|
2653
2668
|
"eu-west-3" : { },
|
|
2669
|
+
"me-south-1" : { },
|
|
2654
2670
|
"sa-east-1" : { },
|
|
2655
2671
|
"us-east-1" : { },
|
|
2656
2672
|
"us-east-1-fips" : {
|
|
@@ -3366,42 +3382,26 @@
|
|
|
3366
3382
|
}
|
|
3367
3383
|
},
|
|
3368
3384
|
"sts" : {
|
|
3369
|
-
"defaults" : {
|
|
3370
|
-
"credentialScope" : {
|
|
3371
|
-
"region" : "us-east-1"
|
|
3372
|
-
},
|
|
3373
|
-
"hostname" : "sts.amazonaws.com"
|
|
3374
|
-
},
|
|
3375
3385
|
"endpoints" : {
|
|
3376
|
-
"ap-east-1" : {
|
|
3377
|
-
"credentialScope" : {
|
|
3378
|
-
"region" : "ap-east-1"
|
|
3379
|
-
},
|
|
3380
|
-
"hostname" : "sts.ap-east-1.amazonaws.com"
|
|
3381
|
-
},
|
|
3386
|
+
"ap-east-1" : { },
|
|
3382
3387
|
"ap-northeast-1" : { },
|
|
3383
|
-
"ap-northeast-2" : {
|
|
3384
|
-
"credentialScope" : {
|
|
3385
|
-
"region" : "ap-northeast-2"
|
|
3386
|
-
},
|
|
3387
|
-
"hostname" : "sts.ap-northeast-2.amazonaws.com"
|
|
3388
|
-
},
|
|
3388
|
+
"ap-northeast-2" : { },
|
|
3389
3389
|
"ap-south-1" : { },
|
|
3390
3390
|
"ap-southeast-1" : { },
|
|
3391
3391
|
"ap-southeast-2" : { },
|
|
3392
|
-
"aws-global" : {
|
|
3392
|
+
"aws-global" : {
|
|
3393
|
+
"credentialScope" : {
|
|
3394
|
+
"region" : "us-east-1"
|
|
3395
|
+
},
|
|
3396
|
+
"hostname" : "sts.amazonaws.com"
|
|
3397
|
+
},
|
|
3393
3398
|
"ca-central-1" : { },
|
|
3394
3399
|
"eu-central-1" : { },
|
|
3395
3400
|
"eu-north-1" : { },
|
|
3396
3401
|
"eu-west-1" : { },
|
|
3397
3402
|
"eu-west-2" : { },
|
|
3398
3403
|
"eu-west-3" : { },
|
|
3399
|
-
"me-south-1" : {
|
|
3400
|
-
"credentialScope" : {
|
|
3401
|
-
"region" : "me-south-1"
|
|
3402
|
-
},
|
|
3403
|
-
"hostname" : "sts.me-south-1.amazonaws.com"
|
|
3404
|
-
},
|
|
3404
|
+
"me-south-1" : { },
|
|
3405
3405
|
"sa-east-1" : { },
|
|
3406
3406
|
"us-east-1" : { },
|
|
3407
3407
|
"us-east-1-fips" : {
|
|
@@ -3489,6 +3489,27 @@
|
|
|
3489
3489
|
"us-west-2" : { }
|
|
3490
3490
|
}
|
|
3491
3491
|
},
|
|
3492
|
+
"transcribe" : {
|
|
3493
|
+
"defaults" : {
|
|
3494
|
+
"protocols" : [ "https" ]
|
|
3495
|
+
},
|
|
3496
|
+
"endpoints" : {
|
|
3497
|
+
"ap-northeast-2" : { },
|
|
3498
|
+
"ap-south-1" : { },
|
|
3499
|
+
"ap-southeast-1" : { },
|
|
3500
|
+
"ap-southeast-2" : { },
|
|
3501
|
+
"ca-central-1" : { },
|
|
3502
|
+
"eu-central-1" : { },
|
|
3503
|
+
"eu-west-1" : { },
|
|
3504
|
+
"eu-west-2" : { },
|
|
3505
|
+
"eu-west-3" : { },
|
|
3506
|
+
"sa-east-1" : { },
|
|
3507
|
+
"us-east-1" : { },
|
|
3508
|
+
"us-east-2" : { },
|
|
3509
|
+
"us-west-1" : { },
|
|
3510
|
+
"us-west-2" : { }
|
|
3511
|
+
}
|
|
3512
|
+
},
|
|
3492
3513
|
"transfer" : {
|
|
3493
3514
|
"endpoints" : {
|
|
3494
3515
|
"ap-northeast-1" : { },
|
|
@@ -4084,6 +4105,25 @@
|
|
|
4084
4105
|
"cn-north-1" : { },
|
|
4085
4106
|
"cn-northwest-1" : { }
|
|
4086
4107
|
}
|
|
4108
|
+
},
|
|
4109
|
+
"transcribe" : {
|
|
4110
|
+
"defaults" : {
|
|
4111
|
+
"protocols" : [ "https" ]
|
|
4112
|
+
},
|
|
4113
|
+
"endpoints" : {
|
|
4114
|
+
"cn-north-1" : {
|
|
4115
|
+
"credentialScope" : {
|
|
4116
|
+
"region" : "cn-north-1"
|
|
4117
|
+
},
|
|
4118
|
+
"hostname" : "cn.transcribe.cn-north-1.amazonaws.com.cn"
|
|
4119
|
+
},
|
|
4120
|
+
"cn-northwest-1" : {
|
|
4121
|
+
"credentialScope" : {
|
|
4122
|
+
"region" : "cn-northwest-1"
|
|
4123
|
+
},
|
|
4124
|
+
"hostname" : "cn.transcribe.cn-northwest-1.amazonaws.com.cn"
|
|
4125
|
+
}
|
|
4126
|
+
}
|
|
4087
4127
|
}
|
|
4088
4128
|
}
|
|
4089
4129
|
}, {
|
|
@@ -4800,6 +4840,14 @@
|
|
|
4800
4840
|
"us-gov-west-1" : { }
|
|
4801
4841
|
}
|
|
4802
4842
|
},
|
|
4843
|
+
"transcribe" : {
|
|
4844
|
+
"defaults" : {
|
|
4845
|
+
"protocols" : [ "https" ]
|
|
4846
|
+
},
|
|
4847
|
+
"endpoints" : {
|
|
4848
|
+
"us-gov-west-1" : { }
|
|
4849
|
+
}
|
|
4850
|
+
},
|
|
4803
4851
|
"translate" : {
|
|
4804
4852
|
"defaults" : {
|
|
4805
4853
|
"protocols" : [ "https" ]
|
|
@@ -4851,6 +4899,11 @@
|
|
|
4851
4899
|
}
|
|
4852
4900
|
}
|
|
4853
4901
|
},
|
|
4902
|
+
"api.sagemaker" : {
|
|
4903
|
+
"endpoints" : {
|
|
4904
|
+
"us-iso-east-1" : { }
|
|
4905
|
+
}
|
|
4906
|
+
},
|
|
4854
4907
|
"apigateway" : {
|
|
4855
4908
|
"endpoints" : {
|
|
4856
4909
|
"us-iso-east-1" : { }
|
|
@@ -5033,6 +5086,11 @@
|
|
|
5033
5086
|
"isRegionalized" : false,
|
|
5034
5087
|
"partitionEndpoint" : "aws-iso-global"
|
|
5035
5088
|
},
|
|
5089
|
+
"runtime.sagemaker" : {
|
|
5090
|
+
"endpoints" : {
|
|
5091
|
+
"us-iso-east-1" : { }
|
|
5092
|
+
}
|
|
5093
|
+
},
|
|
5036
5094
|
"s3" : {
|
|
5037
5095
|
"defaults" : {
|
|
5038
5096
|
"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.228.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-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Provides interfaces to enumerate AWS partitions, regions, and services.
|
|
14
14
|
email:
|