aws-partitions 1.225.0 → 1.230.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 +108 -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: 81dd75d9ef0e4b94e0bb26005a32623800bb4ebe
|
|
4
|
+
data.tar.gz: 4123a51f92bb00cc1fc873b3348bb4b81a7ab58d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b4ad1013c53d567cb6b8d92adb794073efa3a89c14ec1be4e44c79bbc5b4289b88722c16dfa87e6f60ea1e98333ec649481447564afa03fda289e7a0ce373bd9
|
|
7
|
+
data.tar.gz: a53a591eba92b648cef160f8c0ee7fe0cccc06f8320686ee1d847e7742113b326e949d77b6d67d8d4d64f26a82128120fae3003302c7f731bba55222a1c94d86
|
|
@@ -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
|
@@ -265,6 +265,7 @@
|
|
|
265
265
|
"eu-west-1" : { },
|
|
266
266
|
"eu-west-2" : { },
|
|
267
267
|
"eu-west-3" : { },
|
|
268
|
+
"me-south-1" : { },
|
|
268
269
|
"sa-east-1" : { },
|
|
269
270
|
"us-east-1" : { },
|
|
270
271
|
"us-east-1-fips" : {
|
|
@@ -358,6 +359,7 @@
|
|
|
358
359
|
"eu-central-1" : { },
|
|
359
360
|
"eu-west-1" : { },
|
|
360
361
|
"eu-west-2" : { },
|
|
362
|
+
"eu-west-3" : { },
|
|
361
363
|
"us-east-1" : { },
|
|
362
364
|
"us-east-2" : { },
|
|
363
365
|
"us-west-1" : { },
|
|
@@ -472,14 +474,20 @@
|
|
|
472
474
|
},
|
|
473
475
|
"backup" : {
|
|
474
476
|
"endpoints" : {
|
|
477
|
+
"ap-east-1" : { },
|
|
475
478
|
"ap-northeast-1" : { },
|
|
476
479
|
"ap-northeast-2" : { },
|
|
480
|
+
"ap-south-1" : { },
|
|
477
481
|
"ap-southeast-1" : { },
|
|
478
482
|
"ap-southeast-2" : { },
|
|
479
483
|
"ca-central-1" : { },
|
|
480
484
|
"eu-central-1" : { },
|
|
485
|
+
"eu-north-1" : { },
|
|
481
486
|
"eu-west-1" : { },
|
|
482
487
|
"eu-west-2" : { },
|
|
488
|
+
"eu-west-3" : { },
|
|
489
|
+
"me-south-1" : { },
|
|
490
|
+
"sa-east-1" : { },
|
|
483
491
|
"us-east-1" : { },
|
|
484
492
|
"us-east-2" : { },
|
|
485
493
|
"us-west-1" : { },
|
|
@@ -1123,6 +1131,12 @@
|
|
|
1123
1131
|
},
|
|
1124
1132
|
"hostname" : "rds.ap-northeast-2.amazonaws.com"
|
|
1125
1133
|
},
|
|
1134
|
+
"ap-south-1" : {
|
|
1135
|
+
"credentialScope" : {
|
|
1136
|
+
"region" : "ap-south-1"
|
|
1137
|
+
},
|
|
1138
|
+
"hostname" : "rds.ap-south-1.amazonaws.com"
|
|
1139
|
+
},
|
|
1126
1140
|
"ap-southeast-1" : {
|
|
1127
1141
|
"credentialScope" : {
|
|
1128
1142
|
"region" : "ap-southeast-1"
|
|
@@ -1545,6 +1559,26 @@
|
|
|
1545
1559
|
"us-west-2" : { }
|
|
1546
1560
|
}
|
|
1547
1561
|
},
|
|
1562
|
+
"forecast" : {
|
|
1563
|
+
"endpoints" : {
|
|
1564
|
+
"ap-northeast-1" : { },
|
|
1565
|
+
"ap-southeast-1" : { },
|
|
1566
|
+
"eu-west-1" : { },
|
|
1567
|
+
"us-east-1" : { },
|
|
1568
|
+
"us-east-2" : { },
|
|
1569
|
+
"us-west-2" : { }
|
|
1570
|
+
}
|
|
1571
|
+
},
|
|
1572
|
+
"forecastquery" : {
|
|
1573
|
+
"endpoints" : {
|
|
1574
|
+
"ap-northeast-1" : { },
|
|
1575
|
+
"ap-southeast-1" : { },
|
|
1576
|
+
"eu-west-1" : { },
|
|
1577
|
+
"us-east-1" : { },
|
|
1578
|
+
"us-east-2" : { },
|
|
1579
|
+
"us-west-2" : { }
|
|
1580
|
+
}
|
|
1581
|
+
},
|
|
1548
1582
|
"fsx" : {
|
|
1549
1583
|
"endpoints" : {
|
|
1550
1584
|
"ap-northeast-1" : { },
|
|
@@ -2659,6 +2693,7 @@
|
|
|
2659
2693
|
"eu-west-1" : { },
|
|
2660
2694
|
"eu-west-2" : { },
|
|
2661
2695
|
"eu-west-3" : { },
|
|
2696
|
+
"me-south-1" : { },
|
|
2662
2697
|
"sa-east-1" : { },
|
|
2663
2698
|
"us-east-1" : { },
|
|
2664
2699
|
"us-east-1-fips" : {
|
|
@@ -2929,6 +2964,7 @@
|
|
|
2929
2964
|
"eu-west-1" : { },
|
|
2930
2965
|
"eu-west-2" : { },
|
|
2931
2966
|
"eu-west-3" : { },
|
|
2967
|
+
"me-south-1" : { },
|
|
2932
2968
|
"sa-east-1" : { },
|
|
2933
2969
|
"us-east-1" : { },
|
|
2934
2970
|
"us-east-1-fips" : {
|
|
@@ -3374,42 +3410,26 @@
|
|
|
3374
3410
|
}
|
|
3375
3411
|
},
|
|
3376
3412
|
"sts" : {
|
|
3377
|
-
"defaults" : {
|
|
3378
|
-
"credentialScope" : {
|
|
3379
|
-
"region" : "us-east-1"
|
|
3380
|
-
},
|
|
3381
|
-
"hostname" : "sts.amazonaws.com"
|
|
3382
|
-
},
|
|
3383
3413
|
"endpoints" : {
|
|
3384
|
-
"ap-east-1" : {
|
|
3385
|
-
"credentialScope" : {
|
|
3386
|
-
"region" : "ap-east-1"
|
|
3387
|
-
},
|
|
3388
|
-
"hostname" : "sts.ap-east-1.amazonaws.com"
|
|
3389
|
-
},
|
|
3414
|
+
"ap-east-1" : { },
|
|
3390
3415
|
"ap-northeast-1" : { },
|
|
3391
|
-
"ap-northeast-2" : {
|
|
3392
|
-
"credentialScope" : {
|
|
3393
|
-
"region" : "ap-northeast-2"
|
|
3394
|
-
},
|
|
3395
|
-
"hostname" : "sts.ap-northeast-2.amazonaws.com"
|
|
3396
|
-
},
|
|
3416
|
+
"ap-northeast-2" : { },
|
|
3397
3417
|
"ap-south-1" : { },
|
|
3398
3418
|
"ap-southeast-1" : { },
|
|
3399
3419
|
"ap-southeast-2" : { },
|
|
3400
|
-
"aws-global" : {
|
|
3420
|
+
"aws-global" : {
|
|
3421
|
+
"credentialScope" : {
|
|
3422
|
+
"region" : "us-east-1"
|
|
3423
|
+
},
|
|
3424
|
+
"hostname" : "sts.amazonaws.com"
|
|
3425
|
+
},
|
|
3401
3426
|
"ca-central-1" : { },
|
|
3402
3427
|
"eu-central-1" : { },
|
|
3403
3428
|
"eu-north-1" : { },
|
|
3404
3429
|
"eu-west-1" : { },
|
|
3405
3430
|
"eu-west-2" : { },
|
|
3406
3431
|
"eu-west-3" : { },
|
|
3407
|
-
"me-south-1" : {
|
|
3408
|
-
"credentialScope" : {
|
|
3409
|
-
"region" : "me-south-1"
|
|
3410
|
-
},
|
|
3411
|
-
"hostname" : "sts.me-south-1.amazonaws.com"
|
|
3412
|
-
},
|
|
3432
|
+
"me-south-1" : { },
|
|
3413
3433
|
"sa-east-1" : { },
|
|
3414
3434
|
"us-east-1" : { },
|
|
3415
3435
|
"us-east-1-fips" : {
|
|
@@ -3497,6 +3517,37 @@
|
|
|
3497
3517
|
"us-west-2" : { }
|
|
3498
3518
|
}
|
|
3499
3519
|
},
|
|
3520
|
+
"transcribe" : {
|
|
3521
|
+
"defaults" : {
|
|
3522
|
+
"protocols" : [ "https" ]
|
|
3523
|
+
},
|
|
3524
|
+
"endpoints" : {
|
|
3525
|
+
"ap-northeast-2" : { },
|
|
3526
|
+
"ap-south-1" : { },
|
|
3527
|
+
"ap-southeast-1" : { },
|
|
3528
|
+
"ap-southeast-2" : { },
|
|
3529
|
+
"ca-central-1" : { },
|
|
3530
|
+
"eu-central-1" : { },
|
|
3531
|
+
"eu-west-1" : { },
|
|
3532
|
+
"eu-west-2" : { },
|
|
3533
|
+
"eu-west-3" : { },
|
|
3534
|
+
"sa-east-1" : { },
|
|
3535
|
+
"us-east-1" : { },
|
|
3536
|
+
"us-east-2" : { },
|
|
3537
|
+
"us-west-1" : { },
|
|
3538
|
+
"us-west-2" : { }
|
|
3539
|
+
}
|
|
3540
|
+
},
|
|
3541
|
+
"transcribestreaming" : {
|
|
3542
|
+
"endpoints" : {
|
|
3543
|
+
"ap-southeast-2" : { },
|
|
3544
|
+
"ca-central-1" : { },
|
|
3545
|
+
"eu-west-1" : { },
|
|
3546
|
+
"us-east-1" : { },
|
|
3547
|
+
"us-east-2" : { },
|
|
3548
|
+
"us-west-2" : { }
|
|
3549
|
+
}
|
|
3550
|
+
},
|
|
3500
3551
|
"transfer" : {
|
|
3501
3552
|
"endpoints" : {
|
|
3502
3553
|
"ap-northeast-1" : { },
|
|
@@ -3875,6 +3926,11 @@
|
|
|
3875
3926
|
"cn-northwest-1" : { }
|
|
3876
3927
|
}
|
|
3877
3928
|
},
|
|
3929
|
+
"glue" : {
|
|
3930
|
+
"endpoints" : {
|
|
3931
|
+
"cn-northwest-1" : { }
|
|
3932
|
+
}
|
|
3933
|
+
},
|
|
3878
3934
|
"greengrass" : {
|
|
3879
3935
|
"defaults" : {
|
|
3880
3936
|
"protocols" : [ "https" ]
|
|
@@ -4092,6 +4148,25 @@
|
|
|
4092
4148
|
"cn-north-1" : { },
|
|
4093
4149
|
"cn-northwest-1" : { }
|
|
4094
4150
|
}
|
|
4151
|
+
},
|
|
4152
|
+
"transcribe" : {
|
|
4153
|
+
"defaults" : {
|
|
4154
|
+
"protocols" : [ "https" ]
|
|
4155
|
+
},
|
|
4156
|
+
"endpoints" : {
|
|
4157
|
+
"cn-north-1" : {
|
|
4158
|
+
"credentialScope" : {
|
|
4159
|
+
"region" : "cn-north-1"
|
|
4160
|
+
},
|
|
4161
|
+
"hostname" : "cn.transcribe.cn-north-1.amazonaws.com.cn"
|
|
4162
|
+
},
|
|
4163
|
+
"cn-northwest-1" : {
|
|
4164
|
+
"credentialScope" : {
|
|
4165
|
+
"region" : "cn-northwest-1"
|
|
4166
|
+
},
|
|
4167
|
+
"hostname" : "cn.transcribe.cn-northwest-1.amazonaws.com.cn"
|
|
4168
|
+
}
|
|
4169
|
+
}
|
|
4095
4170
|
}
|
|
4096
4171
|
}
|
|
4097
4172
|
}, {
|
|
@@ -4808,6 +4883,14 @@
|
|
|
4808
4883
|
"us-gov-west-1" : { }
|
|
4809
4884
|
}
|
|
4810
4885
|
},
|
|
4886
|
+
"transcribe" : {
|
|
4887
|
+
"defaults" : {
|
|
4888
|
+
"protocols" : [ "https" ]
|
|
4889
|
+
},
|
|
4890
|
+
"endpoints" : {
|
|
4891
|
+
"us-gov-west-1" : { }
|
|
4892
|
+
}
|
|
4893
|
+
},
|
|
4811
4894
|
"translate" : {
|
|
4812
4895
|
"defaults" : {
|
|
4813
4896
|
"protocols" : [ "https" ]
|
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.230.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:
|