aws-sdk-core 3.87.0 → 3.89.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/aws-sdk-core/log/param_filter.rb +1 -1
- data/lib/aws-sdk-sts.rb +1 -1
- data/lib/aws-sdk-sts/client.rb +1 -1
- data/lib/seahorse/client/net_http/connection_pool.rb +17 -16
- data/lib/seahorse/client/net_http/handler.rb +4 -4
- 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: 1276b6391ee9efb2f5431b60dc9dd4da4a81e339
|
4
|
+
data.tar.gz: be1514be183e08a3c01d7a8f4ef0d859981adcfc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f43b95c970d6956c688d815ae409a64123a0b332c70cd138733c3a0704c823e9fc9f846dd523e3e6a8ccbd7095ede57e537cbc99a8f9fdb56e089d099a848a2
|
7
|
+
data.tar.gz: 8edd46ef45895d8e898b58533629e092eac359f8180952f79a996b23238872cc3f8da702a1345a45d68e3b44129520857180b3f6cc9ec16696c0f2738ace7ac3
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.
|
1
|
+
3.89.1
|
@@ -11,7 +11,7 @@ module Aws
|
|
11
11
|
#
|
12
12
|
# @api private
|
13
13
|
# begin
|
14
|
-
SENSITIVE = [:access_token, :account_name, :account_password, :address, :admin_contact, :admin_password, :artifact_credentials, :auth_code, :authentication_token, :authorization_result, :backup_plan_tags, :backup_vault_tags, :base_32_string_seed, :block, :block_address, :block_data, :blocks, :body, :bot_configuration, :bot_email, :calling_name, :cause, :client_id, :client_request_token, :client_secret, :comment, :configuration, :copy_source_sse_customer_key, :credentials, :current_password, :custom_attributes, :custom_private_key, :db_password, :default_phone_number, :definition, :description, :destination_access_token, :digest_tip_address, :display_name, :domain_signing_private_key, :e164_phone_number, :email, :email_address, :email_message, :embed_url, :error, :external_model_endpoint_data_blobs, :external_user_id, :feedback_token, :file, :first_name, :full_name, :host_key, :id, :id_token, :input, :input_text, :ion_text, :join_token, :key_id, :key_material, :key_store_password, :kms_key_id, :kms_master_key_id, :lambda_function_arn, :last_name, :local_console_password, :master_account_email, :master_user_password, :meeting_host_id, :message, :name, :new_password, :next_password, :notes, :number, :old_password, :outbound_events_https_endpoint, :output, :owner_information, :parameters, :passphrase, :password, :payload, :phone_number, :plaintext, :previous_password, :primary_email, :primary_provisioned_number, :private_key, :private_key_plaintext, :proof, :proposed_password, :public_key, :qr_code_png, :query, :random_password, :recovery_point_tags, :refresh_token, :registrant_contact, :request_attributes, :revision, :search_query, :secret_access_key, :secret_binary, :secret_code, :secret_hash, :secret_string, :secret_to_authenticate_initiator, :secret_to_authenticate_target, :security_token, :service_password, :session_attributes, :session_token, :share_notes, :shared_secret, :slots, :sns_topic_arn, :source_access_token, :sqs_queue_arn, :sse_customer_key, :ssekms_encryption_context, :ssekms_key_id, :status_message, :tag_key_list, :tags, :target_address, :task_parameters, :tech_contact, :temporary_password, :text, :token, :trust_password, :type, :upload_credentials, :upload_url, :uri, :user_data, :user_email, :user_name, :user_password, :username, :value, :values, :variables, :vpn_psk, :zip_file]
|
14
|
+
SENSITIVE = [:access_token, :account_name, :account_password, :address, :admin_contact, :admin_password, :alexa_for_business_room_arn, :artifact_credentials, :auth_code, :authentication_token, :authorization_result, :backup_plan_tags, :backup_vault_tags, :base_32_string_seed, :block, :block_address, :block_data, :blocks, :body, :bot_configuration, :bot_email, :calling_name, :cause, :client_id, :client_request_token, :client_secret, :comment, :configuration, :copy_source_sse_customer_key, :credentials, :current_password, :custom_attributes, :custom_private_key, :db_password, :default_phone_number, :definition, :description, :destination_access_token, :digest_tip_address, :display_name, :domain_signing_private_key, :e164_phone_number, :email, :email_address, :email_message, :embed_url, :error, :external_model_endpoint_data_blobs, :external_user_id, :feedback_token, :file, :first_name, :full_name, :host_key, :id, :id_token, :input, :input_text, :ion_text, :join_token, :key_id, :key_material, :key_store_password, :kms_key_id, :kms_master_key_id, :lambda_function_arn, :last_name, :local_console_password, :master_account_email, :master_user_password, :meeting_host_id, :message, :metadata, :name, :new_password, :next_password, :notes, :number, :old_password, :outbound_events_https_endpoint, :output, :owner_information, :parameters, :passphrase, :password, :payload, :phone_number, :plaintext, :previous_password, :primary_email, :primary_provisioned_number, :private_key, :private_key_plaintext, :proof, :proposed_password, :public_key, :qr_code_png, :query, :random_password, :recovery_point_tags, :refresh_token, :registrant_contact, :request_attributes, :restore_metadata, :revision, :search_query, :secret_access_key, :secret_binary, :secret_code, :secret_hash, :secret_string, :secret_to_authenticate_initiator, :secret_to_authenticate_target, :security_token, :service_password, :session_attributes, :session_token, :share_notes, :shared_secret, :slots, :sns_topic_arn, :source_access_token, :sqs_queue_arn, :sse_customer_key, :ssekms_encryption_context, :ssekms_key_id, :status_message, :tag_key_list, :tags, :target_address, :task_parameters, :tech_contact, :temporary_password, :text, :token, :trust_password, :type, :upload_credentials, :upload_url, :uri, :user_data, :user_email, :user_name, :user_password, :username, :value, :values, :variables, :vpn_psk, :zip_file]
|
15
15
|
# end
|
16
16
|
|
17
17
|
def initialize(options = {})
|
data/lib/aws-sdk-sts.rb
CHANGED
data/lib/aws-sdk-sts/client.rb
CHANGED
@@ -53,14 +53,14 @@ module Seahorse
|
|
53
53
|
|
54
54
|
# Makes an HTTP request, yielding a Net::HTTPResponse object.
|
55
55
|
#
|
56
|
-
# pool.request('http://domain', Net::HTTP::Get.new('/')) do |resp|
|
56
|
+
# pool.request(URI.parse('http://domain'), Net::HTTP::Get.new('/')) do |resp|
|
57
57
|
# puts resp.code # status code
|
58
58
|
# puts resp.to_h.inspect # dump the headers
|
59
59
|
# puts resp.body
|
60
60
|
# end
|
61
61
|
#
|
62
|
-
# @param [
|
63
|
-
# connect to (e.g. 'https://domain.com').
|
62
|
+
# @param [URI::HTTP, URI::HTTPS] endpoint The HTTP(S) endpoint
|
63
|
+
# to connect to (e.g. 'https://domain.com').
|
64
64
|
#
|
65
65
|
# @param [Net::HTTPRequest] request The request to make. This can be
|
66
66
|
# any request object from Net::HTTP (e.g. Net::HTTP::Get,
|
@@ -132,7 +132,7 @@ module Seahorse
|
|
132
132
|
nil
|
133
133
|
end
|
134
134
|
|
135
|
-
# Closes and removes
|
135
|
+
# Closes and removes all sessions from the pool.
|
136
136
|
# If empty! is called while there are outstanding requests they may
|
137
137
|
# get checked back into the pool, leaving the pool in a non-empty
|
138
138
|
# state.
|
@@ -166,16 +166,16 @@ module Seahorse
|
|
166
166
|
# requests through. Formatted like 'http://proxy.com:123'.
|
167
167
|
#
|
168
168
|
# @option options [Float] :http_open_timeout (15) The number of
|
169
|
-
# seconds to wait when opening
|
169
|
+
# seconds to wait when opening an HTTP session before raising a
|
170
170
|
# `Timeout::Error`.
|
171
171
|
#
|
172
172
|
# @option options [Integer] :http_read_timeout (60) The default
|
173
173
|
# number of seconds to wait for response data. This value can
|
174
174
|
# safely be set
|
175
|
-
# per-request on the session
|
175
|
+
# per-request on the session yielded by {#session_for}.
|
176
176
|
#
|
177
177
|
# @option options [Float] :http_idle_timeout (5) The number of
|
178
|
-
# seconds a connection is allowed to sit
|
178
|
+
# seconds a connection is allowed to sit idle before it is
|
179
179
|
# considered stale. Stale connections are closed and removed
|
180
180
|
# from the pool before making a request.
|
181
181
|
#
|
@@ -184,7 +184,7 @@ module Seahorse
|
|
184
184
|
# request body. This option has no effect unless the request has
|
185
185
|
# "Expect" header set to "100-continue". Defaults to `nil` which
|
186
186
|
# disables this behaviour. This value can safely be set per
|
187
|
-
# request on the session
|
187
|
+
# request on the session yielded by {#session_for}.
|
188
188
|
#
|
189
189
|
# @option options [Boolean] :http_wire_trace (false) When `true`,
|
190
190
|
# HTTP debug output will be sent to the `:logger`.
|
@@ -201,13 +201,13 @@ module Seahorse
|
|
201
201
|
# @option options [String] :ssl_ca_bundle Full path to the SSL
|
202
202
|
# certificate authority bundle file that should be used when
|
203
203
|
# verifying peer certificates. If you do not pass
|
204
|
-
# `:ssl_ca_bundle` or `:ssl_ca_directory` the
|
204
|
+
# `:ssl_ca_bundle` or `:ssl_ca_directory` the system default
|
205
205
|
# will be used if available.
|
206
206
|
#
|
207
207
|
# @option options [String] :ssl_ca_directory Full path of the
|
208
208
|
# directory that contains the unbundled SSL certificate
|
209
209
|
# authority files for verifying peer certificates. If you do
|
210
|
-
# not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the
|
210
|
+
# not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the
|
211
211
|
# system default will be used if available.
|
212
212
|
#
|
213
213
|
# @return [ConnectionPool]
|
@@ -218,7 +218,7 @@ module Seahorse
|
|
218
218
|
end
|
219
219
|
end
|
220
220
|
|
221
|
-
# @return [Array<ConnectionPool>] Returns a list of
|
221
|
+
# @return [Array<ConnectionPool>] Returns a list of the
|
222
222
|
# constructed connection pools.
|
223
223
|
def pools
|
224
224
|
@pools_mutex.synchronize do
|
@@ -280,6 +280,7 @@ module Seahorse
|
|
280
280
|
http = ExtendedSession.new(Net::HTTP.new(*args.compact))
|
281
281
|
http.set_debug_output(logger) if http_wire_trace?
|
282
282
|
http.open_timeout = http_open_timeout
|
283
|
+
http.keep_alive_timeout = http_idle_timeout if http.respond_to?(:keep_alive_timeout=)
|
283
284
|
|
284
285
|
if endpoint.scheme == 'https'
|
285
286
|
http.use_ssl = true
|
@@ -302,12 +303,12 @@ module Seahorse
|
|
302
303
|
# Removes stale sessions from the pool. This method *must* be called
|
303
304
|
# @note **Must** be called behind a `@pool_mutex` synchronize block.
|
304
305
|
def _clean
|
305
|
-
now =
|
306
|
+
now = Aws::Util.monotonic_milliseconds
|
306
307
|
@pool.each_pair do |endpoint,sessions|
|
307
308
|
sessions.delete_if do |session|
|
308
309
|
if
|
309
310
|
session.last_used.nil? or
|
310
|
-
now - session.last_used > http_idle_timeout
|
311
|
+
now - session.last_used > http_idle_timeout * 1000
|
311
312
|
then
|
312
313
|
session.finish
|
313
314
|
true
|
@@ -316,7 +317,7 @@ module Seahorse
|
|
316
317
|
end
|
317
318
|
end
|
318
319
|
|
319
|
-
# Helper methods extended onto Net::HTTPSession objects
|
320
|
+
# Helper methods extended onto Net::HTTPSession objects opened by the
|
320
321
|
# connection pool.
|
321
322
|
# @api private
|
322
323
|
class ExtendedSession < Delegator
|
@@ -326,7 +327,7 @@ module Seahorse
|
|
326
327
|
@http = http
|
327
328
|
end
|
328
329
|
|
329
|
-
# @return [
|
330
|
+
# @return [Integer,nil]
|
330
331
|
attr_reader :last_used
|
331
332
|
|
332
333
|
def __getobj__
|
@@ -339,8 +340,8 @@ module Seahorse
|
|
339
340
|
|
340
341
|
# Sends the request and tracks that this session has been used.
|
341
342
|
def request(*args, &block)
|
342
|
-
@last_used = Time.now
|
343
343
|
@http.request(*args, &block)
|
344
|
+
@last_used = Aws::Util.monotonic_milliseconds
|
344
345
|
end
|
345
346
|
|
346
347
|
# Attempts to close/finish the session without raising an error.
|
@@ -163,11 +163,11 @@ module Seahorse
|
|
163
163
|
# @return [Hash] Returns a vanilla hash of headers to send with the
|
164
164
|
# HTTP request.
|
165
165
|
def headers(request)
|
166
|
-
# Net::HTTP adds
|
167
|
-
#
|
168
|
-
#
|
166
|
+
# Net::HTTP adds default headers for content-type to POSTs (1.8.7+)
|
167
|
+
# and accept-encoding (2.0.0+). Setting a default empty value defeats
|
168
|
+
# this.
|
169
169
|
#
|
170
|
-
# Removing these are necessary for most services to
|
170
|
+
# Removing these are necessary for most services to not break request
|
171
171
|
# signatures as well as dynamodb crc32 checks (these fail if the
|
172
172
|
# response is gzipped).
|
173
173
|
headers = { 'content-type' => '', 'accept-encoding' => '' }
|
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.89.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: 2020-01-
|
11
|
+
date: 2020-01-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jmespath
|