aws-sdk-core 3.110.0 → 3.112.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1061 -0
- data/LICENSE.txt +202 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-core.rb +5 -3
- data/lib/aws-sdk-core/ec2_metadata.rb +218 -0
- data/lib/aws-sdk-core/log/formatter.rb +1 -1
- data/lib/aws-sdk-core/plugins/endpoint_pattern.rb +1 -2
- data/lib/aws-sdk-core/plugins/retry_errors.rb +4 -3
- data/lib/aws-sdk-core/xml/parser.rb +5 -0
- data/lib/aws-sdk-core/xml/parser/engines/rexml.rb +8 -0
- data/lib/aws-sdk-sso.rb +1 -1
- data/lib/aws-sdk-sso/client.rb +1 -1
- data/lib/aws-sdk-sso/plugins/content_type.rb +1 -1
- data/lib/aws-sdk-sts.rb +1 -1
- data/lib/aws-sdk-sts/client.rb +1 -1
- data/lib/seahorse/client/h2/connection.rb +1 -2
- metadata +5 -2
@@ -97,7 +97,7 @@ module Aws
|
|
97
97
|
# @return [String]
|
98
98
|
attr_reader :pattern
|
99
99
|
|
100
|
-
# Given a
|
100
|
+
# Given a response, this will format a log message and return it as a
|
101
101
|
# string according to {#pattern}.
|
102
102
|
# @param [Seahorse::Client::Response] response
|
103
103
|
# @return [String]
|
@@ -21,8 +21,7 @@ to default service endpoint when available.
|
|
21
21
|
class Handler < Seahorse::Client::Handler
|
22
22
|
|
23
23
|
def call(context)
|
24
|
-
if context.config.
|
25
|
-
!context.config.disable_host_prefix_injection
|
24
|
+
if !context.config.disable_host_prefix_injection
|
26
25
|
endpoint_trait = context.operation.endpoint_pattern
|
27
26
|
if endpoint_trait && !endpoint_trait.empty?
|
28
27
|
_apply_endpoint_trait(context, endpoint_trait)
|
@@ -176,11 +176,12 @@ a clock skew correction and retry requests with skewed client clocks.
|
|
176
176
|
end
|
177
177
|
|
178
178
|
def self.resolve_max_attempts(cfg)
|
179
|
-
value = (ENV['AWS_MAX_ATTEMPTS']
|
179
|
+
value = (ENV['AWS_MAX_ATTEMPTS']) ||
|
180
180
|
Aws.shared_config.max_attempts(profile: cfg.profile) ||
|
181
|
-
3
|
181
|
+
'3'
|
182
|
+
value = value.to_i
|
182
183
|
# Raise if provided value is not a positive integer
|
183
|
-
if
|
184
|
+
if value <= 0
|
184
185
|
raise ArgumentError,
|
185
186
|
'Must provide a positive integer for max_attempts profile '\
|
186
187
|
'option or for ENV[\'AWS_MAX_ATTEMPTS\']'
|
@@ -70,6 +70,11 @@ module Aws
|
|
70
70
|
[:ox, :oga, :libxml, :nokogiri, :rexml].each do |name|
|
71
71
|
@engine ||= try_load_engine(name)
|
72
72
|
end
|
73
|
+
unless @engine
|
74
|
+
raise 'Unable to find a compatible xml library. ' \
|
75
|
+
'Ensure that you have installed or added to your Gemfile one of ' \
|
76
|
+
'ox, oga, libxml, nokogiri or rexml'
|
77
|
+
end
|
73
78
|
end
|
74
79
|
|
75
80
|
private
|
@@ -1,8 +1,16 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
use_system_rexml = ((RUBY_VERSION <=> "2.0.0") < 0)
|
4
|
+
if use_system_rexml
|
5
|
+
require "rbconfig"
|
6
|
+
$LOAD_PATH.unshift(RbConfig::CONFIG["rubylibdir"])
|
7
|
+
end
|
8
|
+
|
3
9
|
require 'rexml/document'
|
4
10
|
require 'rexml/streamlistener'
|
5
11
|
|
12
|
+
$LOAD_PATH.shift if use_system_rexml
|
13
|
+
|
6
14
|
module Aws
|
7
15
|
module Xml
|
8
16
|
class Parser
|
data/lib/aws-sdk-sso.rb
CHANGED
data/lib/aws-sdk-sso/client.rb
CHANGED
@@ -11,7 +11,7 @@ module Aws
|
|
11
11
|
|
12
12
|
class Handler < Seahorse::Client::Handler
|
13
13
|
def call(context)
|
14
|
-
# Some
|
14
|
+
# Some operations break when given an empty content-type header.
|
15
15
|
# The SDK adds this blank content-type header
|
16
16
|
# since Net::HTTP provides a default that can break services.
|
17
17
|
# We're setting one here even though it's not used or necessary.
|
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.112.1'
|
2208
2208
|
Seahorse::Client::Request.new(handlers, context)
|
2209
2209
|
end
|
2210
2210
|
|
@@ -75,7 +75,7 @@ module Seahorse
|
|
75
75
|
def connect(endpoint)
|
76
76
|
@mutex.synchronize {
|
77
77
|
if @status == :ready
|
78
|
-
tcp, addr = _tcp_socket(endpoint)
|
78
|
+
tcp, addr = _tcp_socket(endpoint)
|
79
79
|
debug_output("opening connection to #{endpoint.host}:#{endpoint.port} ...")
|
80
80
|
_nonblocking_connect(tcp, addr)
|
81
81
|
debug_output('opened')
|
@@ -245,4 +245,3 @@ module Seahorse
|
|
245
245
|
end
|
246
246
|
end
|
247
247
|
end
|
248
|
-
|
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.112.1
|
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:
|
11
|
+
date: 2021-03-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jmespath
|
@@ -85,6 +85,8 @@ executables: []
|
|
85
85
|
extensions: []
|
86
86
|
extra_rdoc_files: []
|
87
87
|
files:
|
88
|
+
- CHANGELOG.md
|
89
|
+
- LICENSE.txt
|
88
90
|
- VERSION
|
89
91
|
- ca-bundle.crt
|
90
92
|
- lib/aws-sdk-core.rb
|
@@ -108,6 +110,7 @@ files:
|
|
108
110
|
- lib/aws-sdk-core/credentials.rb
|
109
111
|
- lib/aws-sdk-core/deprecations.rb
|
110
112
|
- lib/aws-sdk-core/eager_loader.rb
|
113
|
+
- lib/aws-sdk-core/ec2_metadata.rb
|
111
114
|
- lib/aws-sdk-core/ecs_credentials.rb
|
112
115
|
- lib/aws-sdk-core/endpoint_cache.rb
|
113
116
|
- lib/aws-sdk-core/errors.rb
|