aws-partitions 1.518.0 → 1.520.1
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/CHANGELOG.md +15 -0
- data/VERSION +1 -1
- data/lib/aws-partitions/endpoint_provider.rb +46 -9
- data/partitions.json +63 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ad0ca6633bde35625dd9de9971669715bf3fdc4f36d8aa0249f5f7ac9186df61
|
|
4
|
+
data.tar.gz: d3d71445cd9454cf77c42c26ab9d3e0a7eae96e9d50699ca1b690561583024b9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c8c7a650c7a35b966e4005e47781f57d2d42165c5b82b942006316bba51f3a8e2eb60f30f4b33fe280922dce6298ff72618749b6d953a4ce9c10191889674dae
|
|
7
|
+
data.tar.gz: 4d09122ba7add69bf5846687b9c82b7058356d60db6cac4a2e87dbce77fb51db46b853ff2a16a04a7ccfb321d7a91c574ca537266120c7befbcc37adbfc8697d
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,21 @@
|
|
|
1
1
|
Unreleased Changes
|
|
2
2
|
------------------
|
|
3
3
|
|
|
4
|
+
1.520.1 (2021-10-28)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
* Issue - Add `signing_service` method and resolve `credentialScope` correctly for global services/service defaults.
|
|
8
|
+
|
|
9
|
+
1.520.0 (2021-10-27)
|
|
10
|
+
------------------
|
|
11
|
+
|
|
12
|
+
* Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
|
|
13
|
+
|
|
14
|
+
1.519.0 (2021-10-25)
|
|
15
|
+
------------------
|
|
16
|
+
|
|
17
|
+
* Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
|
|
18
|
+
|
|
4
19
|
1.518.0 (2021-10-21)
|
|
5
20
|
------------------
|
|
6
21
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.520.1
|
|
@@ -44,16 +44,49 @@ module Aws
|
|
|
44
44
|
end
|
|
45
45
|
|
|
46
46
|
# @api private Use the static class methods instead.
|
|
47
|
-
def signing_region(region, service)
|
|
48
|
-
|
|
49
|
-
.fetch('services', {})
|
|
50
|
-
.fetch(service, {})
|
|
51
|
-
.fetch('endpoints', {})
|
|
52
|
-
.fetch(region, {})
|
|
53
|
-
.fetch('credentialScope', {})
|
|
47
|
+
def signing_region(region, service, sts_regional_endpoints)
|
|
48
|
+
credential_scope(region, service, sts_regional_endpoints)
|
|
54
49
|
.fetch('region', region)
|
|
55
50
|
end
|
|
56
51
|
|
|
52
|
+
# @api private Use the static class methods instead.
|
|
53
|
+
def signing_service(region, service)
|
|
54
|
+
# don't default to the service name
|
|
55
|
+
# signers should prefer the api metadata's signingName
|
|
56
|
+
# if no service is set in the credentialScope
|
|
57
|
+
credential_scope(region, service, 'regional')
|
|
58
|
+
.fetch('service', nil)
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# @api private Use the static class methods instead.
|
|
62
|
+
def credential_scope(region, service, sts_regional_endpoints)
|
|
63
|
+
partition = get_partition(region)
|
|
64
|
+
service_cfg = partition.fetch('services', {})
|
|
65
|
+
.fetch(service, {})
|
|
66
|
+
endpoints = service_cfg.fetch('endpoints', {})
|
|
67
|
+
|
|
68
|
+
# Check for sts legacy behavior
|
|
69
|
+
sts_legacy = service == 'sts' &&
|
|
70
|
+
sts_regional_endpoints == 'legacy' &&
|
|
71
|
+
STS_LEGACY_REGIONS.include?(region)
|
|
72
|
+
|
|
73
|
+
is_global = !endpoints.key?(region) &&
|
|
74
|
+
service_cfg['isRegionalized'] == false
|
|
75
|
+
|
|
76
|
+
# Check for global endpoint.
|
|
77
|
+
if sts_legacy || is_global
|
|
78
|
+
region = service_cfg.fetch('partitionEndpoint', region)
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
default_credential_scope = service_cfg
|
|
82
|
+
.fetch('defaults', {})
|
|
83
|
+
.fetch('credentialScope', {})
|
|
84
|
+
|
|
85
|
+
endpoints
|
|
86
|
+
.fetch(region, {})
|
|
87
|
+
.fetch('credentialScope', default_credential_scope)
|
|
88
|
+
end
|
|
89
|
+
|
|
57
90
|
# @api private Use the static class methods instead.
|
|
58
91
|
def dns_suffix_for(region)
|
|
59
92
|
get_partition(region)['dnsSuffix']
|
|
@@ -132,8 +165,12 @@ module Aws
|
|
|
132
165
|
default_provider.resolve(region, service, sts_regional_endpoints)
|
|
133
166
|
end
|
|
134
167
|
|
|
135
|
-
def signing_region(region, service)
|
|
136
|
-
default_provider.signing_region(region, service)
|
|
168
|
+
def signing_region(region, service, sts_regional_endpoints = 'regional')
|
|
169
|
+
default_provider.signing_region(region, service, sts_regional_endpoints)
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
def signing_service(region, service)
|
|
173
|
+
default_provider.signing_service(region, service)
|
|
137
174
|
end
|
|
138
175
|
|
|
139
176
|
def dns_suffix_for(region)
|
data/partitions.json
CHANGED
|
@@ -4119,6 +4119,19 @@
|
|
|
4119
4119
|
"us-west-2" : { }
|
|
4120
4120
|
}
|
|
4121
4121
|
},
|
|
4122
|
+
"iotsitewise" : {
|
|
4123
|
+
"endpoints" : {
|
|
4124
|
+
"ap-northeast-1" : { },
|
|
4125
|
+
"ap-northeast-2" : { },
|
|
4126
|
+
"ap-south-1" : { },
|
|
4127
|
+
"ap-southeast-1" : { },
|
|
4128
|
+
"ap-southeast-2" : { },
|
|
4129
|
+
"eu-central-1" : { },
|
|
4130
|
+
"eu-west-1" : { },
|
|
4131
|
+
"us-east-1" : { },
|
|
4132
|
+
"us-west-2" : { }
|
|
4133
|
+
}
|
|
4134
|
+
},
|
|
4122
4135
|
"iotthingsgraph" : {
|
|
4123
4136
|
"defaults" : {
|
|
4124
4137
|
"credentialScope" : {
|
|
@@ -4892,6 +4905,27 @@
|
|
|
4892
4905
|
"us-west-2" : { }
|
|
4893
4906
|
}
|
|
4894
4907
|
},
|
|
4908
|
+
"mgn" : {
|
|
4909
|
+
"endpoints" : {
|
|
4910
|
+
"ap-east-1" : { },
|
|
4911
|
+
"ap-northeast-1" : { },
|
|
4912
|
+
"ap-northeast-2" : { },
|
|
4913
|
+
"ap-northeast-3" : { },
|
|
4914
|
+
"ap-south-1" : { },
|
|
4915
|
+
"ap-southeast-1" : { },
|
|
4916
|
+
"ap-southeast-2" : { },
|
|
4917
|
+
"ca-central-1" : { },
|
|
4918
|
+
"eu-central-1" : { },
|
|
4919
|
+
"eu-north-1" : { },
|
|
4920
|
+
"eu-west-1" : { },
|
|
4921
|
+
"eu-west-2" : { },
|
|
4922
|
+
"sa-east-1" : { },
|
|
4923
|
+
"us-east-1" : { },
|
|
4924
|
+
"us-east-2" : { },
|
|
4925
|
+
"us-west-1" : { },
|
|
4926
|
+
"us-west-2" : { }
|
|
4927
|
+
}
|
|
4928
|
+
},
|
|
4895
4929
|
"mobileanalytics" : {
|
|
4896
4930
|
"endpoints" : {
|
|
4897
4931
|
"us-east-1" : { }
|
|
@@ -5217,6 +5251,15 @@
|
|
|
5217
5251
|
"us-west-2" : { }
|
|
5218
5252
|
}
|
|
5219
5253
|
},
|
|
5254
|
+
"nimble" : {
|
|
5255
|
+
"endpoints" : {
|
|
5256
|
+
"ap-southeast-2" : { },
|
|
5257
|
+
"ca-central-1" : { },
|
|
5258
|
+
"eu-west-2" : { },
|
|
5259
|
+
"us-east-1" : { },
|
|
5260
|
+
"us-west-2" : { }
|
|
5261
|
+
}
|
|
5262
|
+
},
|
|
5220
5263
|
"oidc" : {
|
|
5221
5264
|
"endpoints" : {
|
|
5222
5265
|
"ap-northeast-1" : {
|
|
@@ -8597,6 +8640,11 @@
|
|
|
8597
8640
|
"cn-northwest-1" : { }
|
|
8598
8641
|
}
|
|
8599
8642
|
},
|
|
8643
|
+
"iotsitewise" : {
|
|
8644
|
+
"endpoints" : {
|
|
8645
|
+
"cn-north-1" : { }
|
|
8646
|
+
}
|
|
8647
|
+
},
|
|
8600
8648
|
"kafka" : {
|
|
8601
8649
|
"endpoints" : {
|
|
8602
8650
|
"cn-north-1" : { },
|
|
@@ -10066,6 +10114,11 @@
|
|
|
10066
10114
|
"us-gov-west-1" : { }
|
|
10067
10115
|
}
|
|
10068
10116
|
},
|
|
10117
|
+
"iotsitewise" : {
|
|
10118
|
+
"endpoints" : {
|
|
10119
|
+
"us-gov-west-1" : { }
|
|
10120
|
+
}
|
|
10121
|
+
},
|
|
10069
10122
|
"kafka" : {
|
|
10070
10123
|
"endpoints" : {
|
|
10071
10124
|
"us-gov-east-1" : { },
|
|
@@ -11155,6 +11208,11 @@
|
|
|
11155
11208
|
"us-iso-west-1" : { }
|
|
11156
11209
|
}
|
|
11157
11210
|
},
|
|
11211
|
+
"ebs" : {
|
|
11212
|
+
"endpoints" : {
|
|
11213
|
+
"us-iso-east-1" : { }
|
|
11214
|
+
}
|
|
11215
|
+
},
|
|
11158
11216
|
"ec2" : {
|
|
11159
11217
|
"endpoints" : {
|
|
11160
11218
|
"us-iso-east-1" : { },
|
|
@@ -11538,6 +11596,11 @@
|
|
|
11538
11596
|
"us-isob-east-1" : { }
|
|
11539
11597
|
}
|
|
11540
11598
|
},
|
|
11599
|
+
"ebs" : {
|
|
11600
|
+
"endpoints" : {
|
|
11601
|
+
"us-isob-east-1" : { }
|
|
11602
|
+
}
|
|
11603
|
+
},
|
|
11541
11604
|
"ec2" : {
|
|
11542
11605
|
"defaults" : {
|
|
11543
11606
|
"protocols" : [ "http", "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.520.1
|
|
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: 2021-10-
|
|
11
|
+
date: 2021-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:
|