aws-partitions 1.990.0 → 1.992.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/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-partitions/metadata.rb +32 -0
- data/lib/aws-partitions.rb +1 -1
- data/partitions.json +80 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f9a8e68db01ed71555c4736cc1ca7e244eb608f1c127657150e0cd45fc76998
|
4
|
+
data.tar.gz: e5e71dab518bd834fe266ca426f08989ae5338054c6b712a312f15c050767ea9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d21251b52baaf82d422a865542e6f950f9836a8b1b53725c0dd3528d9b5ce3553f28fd7c2d614001944db39545f8c48024b417d206fbd7c40d8bf7470f8ba719
|
7
|
+
data.tar.gz: bee52a350c4cbcad8153ea74f78790ce6928ffdacf264c5fdcc64ff67d170b7f274f2f0e460c597f3ea3a8b4edeaac1b438556a742ef916769059dad02ceffc5
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.992.0 (2024-10-18)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Add partition metadata module, allowing access without loading entire partitions.json.
|
8
|
+
|
9
|
+
1.991.0 (2024-10-15)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Updated the partitions source data the determines the AWS service regions and endpoints.
|
13
|
+
|
4
14
|
1.990.0 (2024-10-14)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.992.0
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Aws
|
4
|
+
module Partitions
|
5
|
+
# @api private
|
6
|
+
module Metadata
|
7
|
+
class << self
|
8
|
+
|
9
|
+
# aws.partition(region: string) Option<Partition>
|
10
|
+
def partition(region)
|
11
|
+
partition =
|
12
|
+
partitions.find { |p| p['regions']&.fetch(region, nil) } ||
|
13
|
+
partitions.find { |p| region.match(p['regionRegex']) } ||
|
14
|
+
partitions.find { |p| p['id'] == 'aws' }
|
15
|
+
|
16
|
+
return nil unless partition
|
17
|
+
|
18
|
+
partition['outputs']
|
19
|
+
end
|
20
|
+
|
21
|
+
def partitions
|
22
|
+
@partitions ||= default_partition_metadata
|
23
|
+
end
|
24
|
+
|
25
|
+
def default_partition_metadata
|
26
|
+
path = File.expand_path('../../../partitions-metadata.json', __FILE__)
|
27
|
+
JSON.parse(File.read(path), freeze: true)['partitions']
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
data/lib/aws-partitions.rb
CHANGED
@@ -5,6 +5,7 @@ require_relative 'aws-partitions/partition'
|
|
5
5
|
require_relative 'aws-partitions/partition_list'
|
6
6
|
require_relative 'aws-partitions/region'
|
7
7
|
require_relative 'aws-partitions/service'
|
8
|
+
require_relative 'aws-partitions/metadata'
|
8
9
|
|
9
10
|
require 'json'
|
10
11
|
|
@@ -501,7 +502,6 @@ module Aws
|
|
501
502
|
'NetworkFirewall' => 'network-firewall',
|
502
503
|
'NetworkManager' => 'networkmanager',
|
503
504
|
'NetworkMonitor' => 'networkmonitor',
|
504
|
-
'NimbleStudio' => 'nimble',
|
505
505
|
'OAM' => 'oam',
|
506
506
|
'OSIS' => 'osis',
|
507
507
|
'Omics' => 'omics',
|
data/partitions.json
CHANGED
@@ -19844,6 +19844,86 @@
|
|
19844
19844
|
}
|
19845
19845
|
}
|
19846
19846
|
},
|
19847
|
+
"ssm-quicksetup" : {
|
19848
|
+
"endpoints" : {
|
19849
|
+
"ap-northeast-1" : { },
|
19850
|
+
"ap-northeast-2" : { },
|
19851
|
+
"ap-south-1" : { },
|
19852
|
+
"ap-southeast-1" : { },
|
19853
|
+
"ap-southeast-2" : { },
|
19854
|
+
"ca-central-1" : {
|
19855
|
+
"variants" : [ {
|
19856
|
+
"hostname" : "ssm-quicksetup-fips.ca-central-1.amazonaws.com",
|
19857
|
+
"tags" : [ "fips" ]
|
19858
|
+
} ]
|
19859
|
+
},
|
19860
|
+
"eu-central-1" : { },
|
19861
|
+
"eu-north-1" : { },
|
19862
|
+
"eu-west-1" : { },
|
19863
|
+
"eu-west-2" : { },
|
19864
|
+
"eu-west-3" : { },
|
19865
|
+
"fips-ca-central-1" : {
|
19866
|
+
"credentialScope" : {
|
19867
|
+
"region" : "ca-central-1"
|
19868
|
+
},
|
19869
|
+
"deprecated" : true,
|
19870
|
+
"hostname" : "ssm-quicksetup-fips.ca-central-1.amazonaws.com"
|
19871
|
+
},
|
19872
|
+
"fips-us-east-1" : {
|
19873
|
+
"credentialScope" : {
|
19874
|
+
"region" : "us-east-1"
|
19875
|
+
},
|
19876
|
+
"deprecated" : true,
|
19877
|
+
"hostname" : "ssm-quicksetup-fips.us-east-1.amazonaws.com"
|
19878
|
+
},
|
19879
|
+
"fips-us-east-2" : {
|
19880
|
+
"credentialScope" : {
|
19881
|
+
"region" : "us-east-2"
|
19882
|
+
},
|
19883
|
+
"deprecated" : true,
|
19884
|
+
"hostname" : "ssm-quicksetup-fips.us-east-2.amazonaws.com"
|
19885
|
+
},
|
19886
|
+
"fips-us-west-1" : {
|
19887
|
+
"credentialScope" : {
|
19888
|
+
"region" : "us-west-1"
|
19889
|
+
},
|
19890
|
+
"deprecated" : true,
|
19891
|
+
"hostname" : "ssm-quicksetup-fips.us-west-1.amazonaws.com"
|
19892
|
+
},
|
19893
|
+
"fips-us-west-2" : {
|
19894
|
+
"credentialScope" : {
|
19895
|
+
"region" : "us-west-2"
|
19896
|
+
},
|
19897
|
+
"deprecated" : true,
|
19898
|
+
"hostname" : "ssm-quicksetup-fips.us-west-2.amazonaws.com"
|
19899
|
+
},
|
19900
|
+
"sa-east-1" : { },
|
19901
|
+
"us-east-1" : {
|
19902
|
+
"variants" : [ {
|
19903
|
+
"hostname" : "ssm-quicksetup-fips.us-east-1.amazonaws.com",
|
19904
|
+
"tags" : [ "fips" ]
|
19905
|
+
} ]
|
19906
|
+
},
|
19907
|
+
"us-east-2" : {
|
19908
|
+
"variants" : [ {
|
19909
|
+
"hostname" : "ssm-quicksetup-fips.us-east-2.amazonaws.com",
|
19910
|
+
"tags" : [ "fips" ]
|
19911
|
+
} ]
|
19912
|
+
},
|
19913
|
+
"us-west-1" : {
|
19914
|
+
"variants" : [ {
|
19915
|
+
"hostname" : "ssm-quicksetup-fips.us-west-1.amazonaws.com",
|
19916
|
+
"tags" : [ "fips" ]
|
19917
|
+
} ]
|
19918
|
+
},
|
19919
|
+
"us-west-2" : {
|
19920
|
+
"variants" : [ {
|
19921
|
+
"hostname" : "ssm-quicksetup-fips.us-west-2.amazonaws.com",
|
19922
|
+
"tags" : [ "fips" ]
|
19923
|
+
} ]
|
19924
|
+
}
|
19925
|
+
}
|
19926
|
+
},
|
19847
19927
|
"ssm-sap" : {
|
19848
19928
|
"endpoints" : {
|
19849
19929
|
"af-south-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.992.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: 2024-10-
|
11
|
+
date: 2024-10-18 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Provides interfaces to enumerate AWS partitions, regions, and services.
|
14
14
|
email:
|
@@ -21,6 +21,7 @@ files:
|
|
21
21
|
- VERSION
|
22
22
|
- lib/aws-partitions.rb
|
23
23
|
- lib/aws-partitions/endpoint_provider.rb
|
24
|
+
- lib/aws-partitions/metadata.rb
|
24
25
|
- lib/aws-partitions/partition.rb
|
25
26
|
- lib/aws-partitions/partition_list.rb
|
26
27
|
- lib/aws-partitions/region.rb
|