aws-sdk-core 3.108.0 → 3.109.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/VERSION +1 -1
- data/lib/aws-sdk-core/arn.rb +13 -0
- data/lib/aws-sdk-core/plugins/endpoint_pattern.rb +7 -6
- data/lib/aws-sdk-core/plugins/regional_endpoint.rb +1 -1
- data/lib/aws-sdk-sso.rb +1 -1
- data/lib/aws-sdk-sso/client.rb +1 -1
- data/lib/aws-sdk-sts.rb +1 -1
- data/lib/aws-sdk-sts/client.rb +1 -1
- data/lib/seahorse/util.rb +6 -1
- 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: 9be12fd3781d8257feb49c005af422cc726da47592e55368ebc3ce4d8032e21b
|
4
|
+
data.tar.gz: 28b66904da66dc5ab09acfb20fd37dd250cc6e83c54d6735b6b3e8b15ea22f72
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb1a6fb1b39908e6627b4fae6331fd3574d34e10c413ddc55927460af5a7d8ac11abe1b7ecb7313c6faa141ddaf81c9173b76d33588cefc9e8c563573dc96682
|
7
|
+
data.tar.gz: ca41b1a8705dd842e72d147e4c8ba0c1aa167942f5db16ca456922604cc6a6582a498329e0178fc1b8880189587d4aa204f460c0fc7edc7c8930be2d97c650d2
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.
|
1
|
+
3.109.0
|
data/lib/aws-sdk-core/arn.rb
CHANGED
@@ -75,5 +75,18 @@ module Aws
|
|
75
75
|
def to_s
|
76
76
|
"arn:#{partition}:#{service}:#{region}:#{account_id}:#{resource}"
|
77
77
|
end
|
78
|
+
|
79
|
+
# Return the ARN as a hash
|
80
|
+
#
|
81
|
+
# @return [Hash]
|
82
|
+
def to_h
|
83
|
+
{
|
84
|
+
partition: @partition,
|
85
|
+
service: @service,
|
86
|
+
region: @region,
|
87
|
+
account_id: @account_id,
|
88
|
+
resource: @resource
|
89
|
+
}
|
90
|
+
end
|
78
91
|
end
|
79
92
|
end
|
@@ -15,17 +15,18 @@ to default service endpoint when available.
|
|
15
15
|
)
|
16
16
|
|
17
17
|
def add_handlers(handlers, config)
|
18
|
-
|
19
|
-
handlers.add(Handler, priority: 90)
|
20
|
-
end
|
18
|
+
handlers.add(Handler, priority: 10)
|
21
19
|
end
|
22
20
|
|
23
21
|
class Handler < Seahorse::Client::Handler
|
24
22
|
|
25
23
|
def call(context)
|
26
|
-
|
27
|
-
|
28
|
-
|
24
|
+
if context.config.regional_endpoint &&
|
25
|
+
!context.config.disable_host_prefix_injection
|
26
|
+
endpoint_trait = context.operation.endpoint_pattern
|
27
|
+
if endpoint_trait && !endpoint_trait.empty?
|
28
|
+
_apply_endpoint_trait(context, endpoint_trait)
|
29
|
+
end
|
29
30
|
end
|
30
31
|
@handler.call(context)
|
31
32
|
end
|
@@ -38,7 +38,7 @@ to test or custom endpoints. This should be a valid HTTP(S) URI.
|
|
38
38
|
end
|
39
39
|
|
40
40
|
# check region is a valid RFC host label
|
41
|
-
unless cfg.region
|
41
|
+
unless Seahorse::Util.host_label?(cfg.region)
|
42
42
|
raise Errors::InvalidRegionError
|
43
43
|
end
|
44
44
|
|
data/lib/aws-sdk-sso.rb
CHANGED
data/lib/aws-sdk-sso/client.rb
CHANGED
data/lib/aws-sdk-sts.rb
CHANGED
data/lib/aws-sdk-sts/client.rb
CHANGED
@@ -2204,7 +2204,7 @@ module Aws::STS
|
|
2204
2204
|
params: params,
|
2205
2205
|
config: config)
|
2206
2206
|
context[:gem_name] = 'aws-sdk-core'
|
2207
|
-
context[:gem_version] = '3.
|
2207
|
+
context[:gem_version] = '3.109.0'
|
2208
2208
|
Seahorse::Client::Request.new(handlers, context)
|
2209
2209
|
end
|
2210
2210
|
|
data/lib/seahorse/util.rb
CHANGED
@@ -6,7 +6,6 @@ module Seahorse
|
|
6
6
|
# @api private
|
7
7
|
module Util
|
8
8
|
class << self
|
9
|
-
|
10
9
|
def uri_escape(string)
|
11
10
|
CGI.escape(string.to_s.encode('UTF-8')).gsub('+', '%20').gsub('%7E', '~')
|
12
11
|
end
|
@@ -15,6 +14,12 @@ module Seahorse
|
|
15
14
|
path.gsub(/[^\/]+/) { |part| uri_escape(part) }
|
16
15
|
end
|
17
16
|
|
17
|
+
# Checks for a valid host label
|
18
|
+
# @see https://tools.ietf.org/html/rfc3986#section-3.2.2
|
19
|
+
# @see https://tools.ietf.org/html/rfc1123#page-13
|
20
|
+
def host_label?(str)
|
21
|
+
str =~ /^(?!-)[a-zA-Z0-9-]{1,63}(?<!-)$/
|
22
|
+
end
|
18
23
|
end
|
19
24
|
end
|
20
25
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.109.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: 2020-09-
|
11
|
+
date: 2020-09-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jmespath
|