aws-partitions 1.494.0 → 1.495.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 68284b79ecb6de7af1a3ddb0b0dd04b68ae911bff48195cbfa2f25b76644a9fa
4
- data.tar.gz: 4aa5f1eddbee1391acbbe35dd65201e551242dd81167501a1eaa2cb221b771b7
3
+ metadata.gz: b432e000c520cf1552f196352ef088fbc92123ae6e426f5b3c7c1222001bd45c
4
+ data.tar.gz: 45a698b0aaca97baf77a176771b76f3f05434f0769718a49b5d14db1c43a570c
5
5
  SHA512:
6
- metadata.gz: ed0393546f1dddcf96abfd4a512816f1fd2d5ae7ac164e1ac56b64c29f9e70e55a20ddc23f803f6a137b3f69b6bb7763d492ce5e0179beb8e26e26179496904e
7
- data.tar.gz: 9ea04cc65a7727bb2b5630b3174d39143097c43ed1925d2a3d698717c2ad45f808908b278d28a70ffc0958d4e590645f1ba0acbd275ca6439ec4acdd0764798b
6
+ metadata.gz: fd4388a088034b55189dc860be1cf940089ac51a1a21a9502149390c69fae283835196e3e5229dfebf04922c3dd0ecb764ed9b93e00eef54ea10da9f24d98c2a
7
+ data.tar.gz: 649e29dfba8c7b8917c77ca94ab11aabbe71f5aaa5cc184fa6277bd473c25a122249990b0001ef31d8b455d3ef4e16b4f982778d68b87c5675f1df04210f9ae2
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.495.0 (2021-09-02)
5
+ ------------------
6
+
7
+ * Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
8
+
4
9
  1.494.0 (2021-09-01)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.494.0
1
+ 1.495.0
@@ -96,9 +96,10 @@ module Aws
96
96
  .sub('{dnsSuffix}', partition['dnsSuffix'])
97
97
  end
98
98
 
99
- def get_partition(region)
100
- partition_containing_region(region) ||
101
- partition_matching_region(region) ||
99
+ def get_partition(region_or_partition)
100
+ partition_containing_region(region_or_partition) ||
101
+ partition_matching_region(region_or_partition) ||
102
+ partition_matching_name(region_or_partition) ||
102
103
  default_partition
103
104
  end
104
105
 
@@ -117,6 +118,10 @@ module Aws
117
118
  end
118
119
  end
119
120
 
121
+ def partition_matching_name(partition_name)
122
+ @rules['partitions'].find { |p| p['partition'] == partition_name }
123
+ end
124
+
120
125
  def default_partition
121
126
  @rules['partitions'].find { |p| p['partition'] == 'aws' } ||
122
127
  @rules['partitions'].first
data/partitions.json CHANGED
@@ -251,11 +251,17 @@
251
251
  "airflow" : {
252
252
  "endpoints" : {
253
253
  "ap-northeast-1" : { },
254
+ "ap-northeast-2" : { },
255
+ "ap-south-1" : { },
254
256
  "ap-southeast-1" : { },
255
257
  "ap-southeast-2" : { },
258
+ "ca-central-1" : { },
256
259
  "eu-central-1" : { },
257
260
  "eu-north-1" : { },
258
261
  "eu-west-1" : { },
262
+ "eu-west-2" : { },
263
+ "eu-west-3" : { },
264
+ "sa-east-1" : { },
259
265
  "us-east-1" : { },
260
266
  "us-east-2" : { },
261
267
  "us-west-2" : { }
@@ -1063,9 +1069,11 @@
1063
1069
  },
1064
1070
  "cloud9" : {
1065
1071
  "endpoints" : {
1072
+ "af-south-1" : { },
1066
1073
  "ap-east-1" : { },
1067
1074
  "ap-northeast-1" : { },
1068
1075
  "ap-northeast-2" : { },
1076
+ "ap-northeast-3" : { },
1069
1077
  "ap-south-1" : { },
1070
1078
  "ap-southeast-1" : { },
1071
1079
  "ap-southeast-2" : { },
@@ -5107,6 +5115,7 @@
5107
5115
  },
5108
5116
  "polly" : {
5109
5117
  "endpoints" : {
5118
+ "af-south-1" : { },
5110
5119
  "ap-east-1" : { },
5111
5120
  "ap-northeast-1" : { },
5112
5121
  "ap-northeast-2" : { },
@@ -5634,6 +5643,7 @@
5634
5643
  "ap-east-1" : { },
5635
5644
  "ap-northeast-1" : { },
5636
5645
  "ap-northeast-2" : { },
5646
+ "ap-northeast-3" : { },
5637
5647
  "ap-south-1" : { },
5638
5648
  "ap-southeast-1" : { },
5639
5649
  "ap-southeast-2" : { },
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.494.0
4
+ version: 1.495.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: 2021-09-01 00:00:00.000000000 Z
11
+ date: 2021-09-02 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Provides interfaces to enumerate AWS partitions, regions, and services.
14
14
  email: