aws-partitions 1.238.0 → 1.239.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.rb +2 -0
- data/lib/aws-partitions/endpoint_provider.rb +17 -2
- data/partitions.json +15 -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: 4c2955d254cdff4a90f5a656dd69c984b54b21d0
|
4
|
+
data.tar.gz: 4659969803d11521b729519def50eef5396c057c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 05076d220d5e6ee7412260354353c182d87772e6c4bc4be7b422543b07e3f852c20c26e6eb79a930b102158aba0e323ff53a7ce474dcbcb9ea45d0235ff90e03
|
7
|
+
data.tar.gz: 3e84be0b9621d87ab0f8fb94c61413e6ff89f4b0157a81a084a84ba1f2723323e531d3ad5dc8685f84050b601427b8f74321b5050ce4edd4985ea88eeb40236d
|
data/lib/aws-partitions.rb
CHANGED
@@ -269,6 +269,7 @@ module Aws
|
|
269
269
|
'CostandUsageReportService' => 'cur',
|
270
270
|
'DAX' => 'dax',
|
271
271
|
'DLM' => 'dlm',
|
272
|
+
'DataExchange' => 'dataexchange',
|
272
273
|
'DataPipeline' => 'datapipeline',
|
273
274
|
'DataSync' => 'datasync',
|
274
275
|
'DatabaseMigrationService' => 'dms',
|
@@ -380,6 +381,7 @@ module Aws
|
|
380
381
|
'S3' => 's3',
|
381
382
|
'S3Control' => 's3-control',
|
382
383
|
'SES' => 'email',
|
384
|
+
'SESV2' => 'email',
|
383
385
|
'SMS' => 'sms',
|
384
386
|
'SNS' => 'sns',
|
385
387
|
'SQS' => 'sqs',
|
@@ -25,6 +25,12 @@ module Aws
|
|
25
25
|
us-west-2
|
26
26
|
)
|
27
27
|
|
28
|
+
# Can be removed once S3 endpoint is updated
|
29
|
+
S3_IAD_REGIONAL = {
|
30
|
+
"hostname" => "s3.us-east-1.amazonaws.com",
|
31
|
+
"signatureVersions" => [ "s3", "s3v4" ]
|
32
|
+
}
|
33
|
+
|
28
34
|
# Intentionally marked private. The format of the endpoint rules
|
29
35
|
# is an implementation detail.
|
30
36
|
# @api private
|
@@ -39,7 +45,7 @@ module Aws
|
|
39
45
|
# legacy regions) or `regional` mode for using regional endpoint for supported regions
|
40
46
|
# except 'aws-global'
|
41
47
|
# @api private Use the static class methods instead.
|
42
|
-
def resolve(region, service, sts_regional_endpoints
|
48
|
+
def resolve(region, service, sts_regional_endpoints)
|
43
49
|
"https://" + endpoint_for(region, service, sts_regional_endpoints)
|
44
50
|
end
|
45
51
|
|
@@ -80,6 +86,11 @@ module Aws
|
|
80
86
|
region = service_cfg.fetch("partitionEndpoint", region)
|
81
87
|
end
|
82
88
|
|
89
|
+
# Can be removed once S3 endpoint is updated
|
90
|
+
if (service == 's3') && (region == "us-east-1")
|
91
|
+
service_cfg["endpoints"][region] = S3_IAD_REGIONAL
|
92
|
+
end
|
93
|
+
|
83
94
|
# Check for service/region level endpoint.
|
84
95
|
endpoint = service_cfg.fetch("endpoints", {}).
|
85
96
|
fetch(region, {}).fetch("hostname", endpoint)
|
@@ -121,7 +132,11 @@ module Aws
|
|
121
132
|
|
122
133
|
class << self
|
123
134
|
|
124
|
-
def resolve(
|
135
|
+
def resolve(
|
136
|
+
region,
|
137
|
+
service,
|
138
|
+
sts_regional_endpoints = 'legacy'
|
139
|
+
)
|
125
140
|
default_provider.resolve(region, service, sts_regional_endpoints)
|
126
141
|
end
|
127
142
|
|
data/partitions.json
CHANGED
@@ -1002,6 +1002,21 @@
|
|
1002
1002
|
"us-west-2" : { }
|
1003
1003
|
}
|
1004
1004
|
},
|
1005
|
+
"dataexchange" : {
|
1006
|
+
"endpoints" : {
|
1007
|
+
"ap-northeast-1" : { },
|
1008
|
+
"ap-northeast-2" : { },
|
1009
|
+
"ap-southeast-1" : { },
|
1010
|
+
"ap-southeast-2" : { },
|
1011
|
+
"eu-central-1" : { },
|
1012
|
+
"eu-west-1" : { },
|
1013
|
+
"eu-west-2" : { },
|
1014
|
+
"us-east-1" : { },
|
1015
|
+
"us-east-2" : { },
|
1016
|
+
"us-west-1" : { },
|
1017
|
+
"us-west-2" : { }
|
1018
|
+
}
|
1019
|
+
},
|
1005
1020
|
"datapipeline" : {
|
1006
1021
|
"endpoints" : {
|
1007
1022
|
"ap-northeast-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.239.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-11-
|
11
|
+
date: 2019-11-13 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Provides interfaces to enumerate AWS partitions, regions, and services.
|
14
14
|
email:
|