aws-partitions 1.26.0 → 1.27.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-partitions/endpoint_provider.rb +1 -1
- data/lib/aws-partitions/region.rb +1 -1
- data/lib/aws-partitions/service.rb +2 -1
- data/partitions.json +11 -0
- 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: 30fee9051b992a8eb823d8daef8d7ce3865889e9
|
4
|
+
data.tar.gz: f35b485ebbb447b8e13e633a3260c64580a1e1b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78657553bcad5d2a54a5b79e8612e95cdceb8dc20e54e9b1419b4832f17bd5f699b68a916fad279ea07156df25b561ab892c6707a0ed21ff394df0a7ce076d91
|
7
|
+
data.tar.gz: ff4ff5e81ae975206ba41c6e458a4dee7a5494296dfcd2ca8ed3e0a49fc0e79a890685ab57bbe49a430e169a7413797961df439fb3da1724af31bbaffb544e0c
|
@@ -80,7 +80,7 @@ module Aws
|
|
80
80
|
def partition_matching_region(region)
|
81
81
|
@rules['partitions'].find do |p|
|
82
82
|
region.match(p["regionRegex"]) ||
|
83
|
-
p['services'].values.find { |svc| svc['endpoints'].key?(region) }
|
83
|
+
p['services'].values.find { |svc| svc['endpoints'].key?(region) if svc.key? 'endpoints' }
|
84
84
|
end
|
85
85
|
end
|
86
86
|
|
@@ -60,7 +60,8 @@ module Aws
|
|
60
60
|
private
|
61
61
|
|
62
62
|
def regions(service, partition)
|
63
|
-
|
63
|
+
svc_endpoints = service.key?('endpoints') ? service['endpoints'].keys : []
|
64
|
+
names = Set.new(partition['regions'].keys & svc_endpoints)
|
64
65
|
names - ["#{partition['partition']}-global"]
|
65
66
|
end
|
66
67
|
|
data/partitions.json
CHANGED
@@ -133,6 +133,8 @@
|
|
133
133
|
"endpoints" : {
|
134
134
|
"ap-northeast-1" : { },
|
135
135
|
"ap-southeast-1" : { },
|
136
|
+
"ap-southeast-2" : { },
|
137
|
+
"eu-central-1" : { },
|
136
138
|
"eu-west-1" : { },
|
137
139
|
"us-east-1" : { },
|
138
140
|
"us-east-2" : { },
|
@@ -243,10 +245,16 @@
|
|
243
245
|
},
|
244
246
|
"cloudhsmv2" : {
|
245
247
|
"endpoints" : {
|
248
|
+
"ap-northeast-1" : { },
|
249
|
+
"ap-south-1" : { },
|
246
250
|
"ap-southeast-1" : { },
|
251
|
+
"ap-southeast-2" : { },
|
252
|
+
"ca-central-1" : { },
|
253
|
+
"eu-central-1" : { },
|
247
254
|
"eu-west-1" : { },
|
248
255
|
"us-east-1" : { },
|
249
256
|
"us-east-2" : { },
|
257
|
+
"us-west-1" : { },
|
250
258
|
"us-west-2" : { }
|
251
259
|
}
|
252
260
|
},
|
@@ -518,6 +526,7 @@
|
|
518
526
|
"sa-east-1" : { },
|
519
527
|
"us-east-1" : { },
|
520
528
|
"us-east-2" : { },
|
529
|
+
"us-west-1" : { },
|
521
530
|
"us-west-2" : { }
|
522
531
|
}
|
523
532
|
},
|
@@ -589,6 +598,7 @@
|
|
589
598
|
"ecs" : {
|
590
599
|
"endpoints" : {
|
591
600
|
"ap-northeast-1" : { },
|
601
|
+
"ap-northeast-2" : { },
|
592
602
|
"ap-southeast-1" : { },
|
593
603
|
"ap-southeast-2" : { },
|
594
604
|
"ca-central-1" : { },
|
@@ -1713,6 +1723,7 @@
|
|
1713
1723
|
"cn-north-1" : { }
|
1714
1724
|
}
|
1715
1725
|
},
|
1726
|
+
"es" : { },
|
1716
1727
|
"events" : {
|
1717
1728
|
"endpoints" : {
|
1718
1729
|
"cn-north-1" : { }
|
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.27.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: 2017-10-
|
11
|
+
date: 2017-10-26 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Provides interfaces to enumerate AWS partitions, regions, and services.
|
14
14
|
email:
|