aws-sdk-core 3.191.5 → 3.193.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 +52 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-core/binary/decode_handler.rb +0 -5
- data/lib/aws-sdk-core/binary/event_builder.rb +34 -37
- data/lib/aws-sdk-core/event_emitter.rb +0 -16
- data/lib/aws-sdk-core/json/builder.rb +8 -1
- data/lib/aws-sdk-core/json/error_handler.rb +10 -3
- data/lib/aws-sdk-core/json/parser.rb +4 -1
- data/lib/aws-sdk-core/param_validator.rb +4 -0
- data/lib/aws-sdk-core/plugins/invocation_id.rb +1 -11
- data/lib/aws-sdk-core/plugins/protocols/rest_json.rb +3 -16
- data/lib/aws-sdk-core/plugins/protocols/rest_xml.rb +1 -2
- data/lib/aws-sdk-core/plugins/request_compression.rb +1 -1
- data/lib/aws-sdk-core/plugins/sign.rb +8 -3
- data/lib/aws-sdk-core/query/param_builder.rb +2 -2
- data/lib/aws-sdk-core/rest/request/body.rb +32 -5
- data/lib/aws-sdk-core/rest/request/content_type.rb +60 -0
- data/lib/aws-sdk-core/rest/request/endpoint.rb +22 -4
- data/lib/aws-sdk-core/rest/request/headers.rb +15 -7
- data/lib/aws-sdk-core/rest/request/querystring_builder.rb +23 -11
- data/lib/aws-sdk-core/rest/response/body.rb +15 -1
- data/lib/aws-sdk-core/rest/response/header_list_parser.rb +79 -0
- data/lib/aws-sdk-core/rest/response/headers.rb +8 -3
- data/lib/aws-sdk-core/rest.rb +1 -0
- data/lib/aws-sdk-core/util.rb +39 -0
- data/lib/aws-sdk-core/xml/builder.rb +17 -9
- data/lib/aws-sdk-core/xml/error_handler.rb +24 -8
- data/lib/aws-sdk-core/xml/parser/frame.rb +4 -20
- data/lib/aws-sdk-core/xml/parser/stack.rb +2 -0
- data/lib/aws-sdk-sso/client.rb +70 -46
- data/lib/aws-sdk-sso.rb +1 -1
- data/lib/aws-sdk-ssooidc/client.rb +70 -46
- data/lib/aws-sdk-ssooidc.rb +1 -1
- data/lib/aws-sdk-sts/client.rb +70 -46
- data/lib/aws-sdk-sts/client_api.rb +8 -8
- data/lib/aws-sdk-sts.rb +1 -1
- data/lib/seahorse/client/async_base.rb +1 -1
- data/lib/seahorse/client/async_response.rb +19 -0
- data/lib/seahorse/client/base.rb +1 -0
- data/lib/seahorse/client/h2/handler.rb +1 -0
- data/lib/seahorse/client/plugin.rb +8 -0
- data/lib/seahorse/client/plugins/net_http.rb +48 -16
- data/lib/seahorse/model/shapes.rb +1 -1
- metadata +4 -2
@@ -22,6 +22,7 @@ require 'aws-sdk-core/plugins/endpoint_pattern.rb'
|
|
22
22
|
require 'aws-sdk-core/plugins/response_paging.rb'
|
23
23
|
require 'aws-sdk-core/plugins/stub_responses.rb'
|
24
24
|
require 'aws-sdk-core/plugins/idempotency_token.rb'
|
25
|
+
require 'aws-sdk-core/plugins/invocation_id.rb'
|
25
26
|
require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
|
26
27
|
require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
|
27
28
|
require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
|
@@ -72,6 +73,7 @@ module Aws::SSOOIDC
|
|
72
73
|
add_plugin(Aws::Plugins::ResponsePaging)
|
73
74
|
add_plugin(Aws::Plugins::StubResponses)
|
74
75
|
add_plugin(Aws::Plugins::IdempotencyToken)
|
76
|
+
add_plugin(Aws::Plugins::InvocationId)
|
75
77
|
add_plugin(Aws::Plugins::JsonvalueConverter)
|
76
78
|
add_plugin(Aws::Plugins::ClientMetricsPlugin)
|
77
79
|
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
@@ -196,10 +198,17 @@ module Aws::SSOOIDC
|
|
196
198
|
# When set to 'true' the request body will not be compressed
|
197
199
|
# for supported operations.
|
198
200
|
#
|
199
|
-
# @option options [String] :endpoint
|
200
|
-
#
|
201
|
-
#
|
202
|
-
#
|
201
|
+
# @option options [String, URI::HTTPS, URI::HTTP] :endpoint
|
202
|
+
# Normally you should not configure the `:endpoint` option
|
203
|
+
# directly. This is normally constructed from the `:region`
|
204
|
+
# option. Configuring `:endpoint` is normally reserved for
|
205
|
+
# connecting to test or custom endpoints. The endpoint should
|
206
|
+
# be a URI formatted like:
|
207
|
+
#
|
208
|
+
# 'http://example.com'
|
209
|
+
# 'https://example.com'
|
210
|
+
# 'http://example.com:123'
|
211
|
+
#
|
203
212
|
#
|
204
213
|
# @option options [Integer] :endpoint_cache_max_entries (1000)
|
205
214
|
# Used for the maximum size limit of the LRU cache storing endpoints data
|
@@ -337,50 +346,65 @@ module Aws::SSOOIDC
|
|
337
346
|
# @option options [Aws::SSOOIDC::EndpointProvider] :endpoint_provider
|
338
347
|
# The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::SSOOIDC::EndpointParameters`
|
339
348
|
#
|
340
|
-
# @option options [
|
341
|
-
#
|
342
|
-
#
|
343
|
-
#
|
344
|
-
#
|
345
|
-
#
|
346
|
-
#
|
347
|
-
#
|
348
|
-
#
|
349
|
-
#
|
350
|
-
#
|
351
|
-
# @option options [Float] :
|
352
|
-
#
|
353
|
-
#
|
354
|
-
#
|
355
|
-
#
|
356
|
-
#
|
357
|
-
#
|
358
|
-
#
|
359
|
-
#
|
360
|
-
#
|
361
|
-
#
|
362
|
-
#
|
363
|
-
#
|
364
|
-
#
|
349
|
+
# @option options [Float] :http_continue_timeout (1)
|
350
|
+
# The number of seconds to wait for a 100-continue response before sending the
|
351
|
+
# request body. This option has no effect unless the request has "Expect"
|
352
|
+
# header set to "100-continue". Defaults to `nil` which disables this
|
353
|
+
# behaviour. This value can safely be set per request on the session.
|
354
|
+
#
|
355
|
+
# @option options [Float] :http_idle_timeout (5)
|
356
|
+
# The number of seconds a connection is allowed to sit idle before it
|
357
|
+
# is considered stale. Stale connections are closed and removed from the
|
358
|
+
# pool before making a request.
|
359
|
+
#
|
360
|
+
# @option options [Float] :http_open_timeout (15)
|
361
|
+
# The default number of seconds to wait for response data.
|
362
|
+
# This value can safely be set per-request on the session.
|
363
|
+
#
|
364
|
+
# @option options [URI::HTTP,String] :http_proxy
|
365
|
+
# A proxy to send requests through. Formatted like 'http://proxy.com:123'.
|
366
|
+
#
|
367
|
+
# @option options [Float] :http_read_timeout (60)
|
368
|
+
# The default number of seconds to wait for response data.
|
369
|
+
# This value can safely be set per-request on the session.
|
370
|
+
#
|
371
|
+
# @option options [Boolean] :http_wire_trace (false)
|
372
|
+
# When `true`, HTTP debug output will be sent to the `:logger`.
|
373
|
+
#
|
374
|
+
# @option options [Proc] :on_chunk_received
|
375
|
+
# When a Proc object is provided, it will be used as callback when each chunk
|
376
|
+
# of the response body is received. It provides three arguments: the chunk,
|
377
|
+
# the number of bytes received, and the total number of
|
378
|
+
# bytes in the response (or nil if the server did not send a `content-length`).
|
379
|
+
#
|
380
|
+
# @option options [Proc] :on_chunk_sent
|
381
|
+
# When a Proc object is provided, it will be used as callback when each chunk
|
382
|
+
# of the request body is sent. It provides three arguments: the chunk,
|
383
|
+
# the number of bytes read from the body, and the total number of
|
384
|
+
# bytes in the body.
|
385
|
+
#
|
386
|
+
# @option options [Boolean] :raise_response_errors (true)
|
387
|
+
# When `true`, response errors are raised.
|
388
|
+
#
|
389
|
+
# @option options [String] :ssl_ca_bundle
|
390
|
+
# Full path to the SSL certificate authority bundle file that should be used when
|
391
|
+
# verifying peer certificates. If you do not pass `:ssl_ca_bundle` or
|
392
|
+
# `:ssl_ca_directory` the the system default will be used if available.
|
393
|
+
#
|
394
|
+
# @option options [String] :ssl_ca_directory
|
395
|
+
# Full path of the directory that contains the unbundled SSL certificate
|
396
|
+
# authority files for verifying peer certificates. If you do
|
397
|
+
# not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the system
|
398
|
+
# default will be used if available.
|
365
399
|
#
|
366
|
-
# @option options [
|
367
|
-
#
|
400
|
+
# @option options [String] :ssl_ca_store
|
401
|
+
# Sets the X509::Store to verify peer certificate.
|
368
402
|
#
|
369
|
-
# @option options [
|
370
|
-
#
|
371
|
-
# connection.
|
403
|
+
# @option options [Float] :ssl_timeout
|
404
|
+
# Sets the SSL timeout in seconds
|
372
405
|
#
|
373
|
-
# @option options [
|
374
|
-
#
|
375
|
-
# verifying peer certificates. If you do not pass
|
376
|
-
# `:ssl_ca_bundle` or `:ssl_ca_directory` the the system default
|
377
|
-
# will be used if available.
|
378
|
-
#
|
379
|
-
# @option options [String] :ssl_ca_directory Full path of the
|
380
|
-
# directory that contains the unbundled SSL certificate
|
381
|
-
# authority files for verifying peer certificates. If you do
|
382
|
-
# not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the
|
383
|
-
# system default will be used if available.
|
406
|
+
# @option options [Boolean] :ssl_verify_peer (true)
|
407
|
+
# When `true`, SSL peer certificates are verified when establishing a connection.
|
384
408
|
#
|
385
409
|
def initialize(*args)
|
386
410
|
super
|
@@ -910,7 +934,7 @@ module Aws::SSOOIDC
|
|
910
934
|
params: params,
|
911
935
|
config: config)
|
912
936
|
context[:gem_name] = 'aws-sdk-core'
|
913
|
-
context[:gem_version] = '3.
|
937
|
+
context[:gem_version] = '3.193.0'
|
914
938
|
Seahorse::Client::Request.new(handlers, context)
|
915
939
|
end
|
916
940
|
|
data/lib/aws-sdk-ssooidc.rb
CHANGED
data/lib/aws-sdk-sts/client.rb
CHANGED
@@ -22,6 +22,7 @@ require 'aws-sdk-core/plugins/endpoint_pattern.rb'
|
|
22
22
|
require 'aws-sdk-core/plugins/response_paging.rb'
|
23
23
|
require 'aws-sdk-core/plugins/stub_responses.rb'
|
24
24
|
require 'aws-sdk-core/plugins/idempotency_token.rb'
|
25
|
+
require 'aws-sdk-core/plugins/invocation_id.rb'
|
25
26
|
require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
|
26
27
|
require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
|
27
28
|
require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
|
@@ -73,6 +74,7 @@ module Aws::STS
|
|
73
74
|
add_plugin(Aws::Plugins::ResponsePaging)
|
74
75
|
add_plugin(Aws::Plugins::StubResponses)
|
75
76
|
add_plugin(Aws::Plugins::IdempotencyToken)
|
77
|
+
add_plugin(Aws::Plugins::InvocationId)
|
76
78
|
add_plugin(Aws::Plugins::JsonvalueConverter)
|
77
79
|
add_plugin(Aws::Plugins::ClientMetricsPlugin)
|
78
80
|
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
@@ -198,10 +200,17 @@ module Aws::STS
|
|
198
200
|
# When set to 'true' the request body will not be compressed
|
199
201
|
# for supported operations.
|
200
202
|
#
|
201
|
-
# @option options [String] :endpoint
|
202
|
-
#
|
203
|
-
#
|
204
|
-
#
|
203
|
+
# @option options [String, URI::HTTPS, URI::HTTP] :endpoint
|
204
|
+
# Normally you should not configure the `:endpoint` option
|
205
|
+
# directly. This is normally constructed from the `:region`
|
206
|
+
# option. Configuring `:endpoint` is normally reserved for
|
207
|
+
# connecting to test or custom endpoints. The endpoint should
|
208
|
+
# be a URI formatted like:
|
209
|
+
#
|
210
|
+
# 'http://example.com'
|
211
|
+
# 'https://example.com'
|
212
|
+
# 'http://example.com:123'
|
213
|
+
#
|
205
214
|
#
|
206
215
|
# @option options [Integer] :endpoint_cache_max_entries (1000)
|
207
216
|
# Used for the maximum size limit of the LRU cache storing endpoints data
|
@@ -344,50 +353,65 @@ module Aws::STS
|
|
344
353
|
# @option options [Aws::STS::EndpointProvider] :endpoint_provider
|
345
354
|
# The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::STS::EndpointParameters`
|
346
355
|
#
|
347
|
-
# @option options [
|
348
|
-
#
|
349
|
-
#
|
350
|
-
#
|
351
|
-
#
|
352
|
-
#
|
353
|
-
#
|
354
|
-
#
|
355
|
-
#
|
356
|
-
#
|
357
|
-
#
|
358
|
-
# @option options [Float] :
|
359
|
-
#
|
360
|
-
#
|
361
|
-
#
|
362
|
-
#
|
363
|
-
#
|
364
|
-
#
|
365
|
-
#
|
366
|
-
#
|
367
|
-
#
|
368
|
-
#
|
369
|
-
#
|
370
|
-
#
|
371
|
-
#
|
356
|
+
# @option options [Float] :http_continue_timeout (1)
|
357
|
+
# The number of seconds to wait for a 100-continue response before sending the
|
358
|
+
# request body. This option has no effect unless the request has "Expect"
|
359
|
+
# header set to "100-continue". Defaults to `nil` which disables this
|
360
|
+
# behaviour. This value can safely be set per request on the session.
|
361
|
+
#
|
362
|
+
# @option options [Float] :http_idle_timeout (5)
|
363
|
+
# The number of seconds a connection is allowed to sit idle before it
|
364
|
+
# is considered stale. Stale connections are closed and removed from the
|
365
|
+
# pool before making a request.
|
366
|
+
#
|
367
|
+
# @option options [Float] :http_open_timeout (15)
|
368
|
+
# The default number of seconds to wait for response data.
|
369
|
+
# This value can safely be set per-request on the session.
|
370
|
+
#
|
371
|
+
# @option options [URI::HTTP,String] :http_proxy
|
372
|
+
# A proxy to send requests through. Formatted like 'http://proxy.com:123'.
|
373
|
+
#
|
374
|
+
# @option options [Float] :http_read_timeout (60)
|
375
|
+
# The default number of seconds to wait for response data.
|
376
|
+
# This value can safely be set per-request on the session.
|
377
|
+
#
|
378
|
+
# @option options [Boolean] :http_wire_trace (false)
|
379
|
+
# When `true`, HTTP debug output will be sent to the `:logger`.
|
380
|
+
#
|
381
|
+
# @option options [Proc] :on_chunk_received
|
382
|
+
# When a Proc object is provided, it will be used as callback when each chunk
|
383
|
+
# of the response body is received. It provides three arguments: the chunk,
|
384
|
+
# the number of bytes received, and the total number of
|
385
|
+
# bytes in the response (or nil if the server did not send a `content-length`).
|
386
|
+
#
|
387
|
+
# @option options [Proc] :on_chunk_sent
|
388
|
+
# When a Proc object is provided, it will be used as callback when each chunk
|
389
|
+
# of the request body is sent. It provides three arguments: the chunk,
|
390
|
+
# the number of bytes read from the body, and the total number of
|
391
|
+
# bytes in the body.
|
392
|
+
#
|
393
|
+
# @option options [Boolean] :raise_response_errors (true)
|
394
|
+
# When `true`, response errors are raised.
|
395
|
+
#
|
396
|
+
# @option options [String] :ssl_ca_bundle
|
397
|
+
# Full path to the SSL certificate authority bundle file that should be used when
|
398
|
+
# verifying peer certificates. If you do not pass `:ssl_ca_bundle` or
|
399
|
+
# `:ssl_ca_directory` the the system default will be used if available.
|
400
|
+
#
|
401
|
+
# @option options [String] :ssl_ca_directory
|
402
|
+
# Full path of the directory that contains the unbundled SSL certificate
|
403
|
+
# authority files for verifying peer certificates. If you do
|
404
|
+
# not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the system
|
405
|
+
# default will be used if available.
|
372
406
|
#
|
373
|
-
# @option options [
|
374
|
-
#
|
407
|
+
# @option options [String] :ssl_ca_store
|
408
|
+
# Sets the X509::Store to verify peer certificate.
|
375
409
|
#
|
376
|
-
# @option options [
|
377
|
-
#
|
378
|
-
# connection.
|
410
|
+
# @option options [Float] :ssl_timeout
|
411
|
+
# Sets the SSL timeout in seconds
|
379
412
|
#
|
380
|
-
# @option options [
|
381
|
-
#
|
382
|
-
# verifying peer certificates. If you do not pass
|
383
|
-
# `:ssl_ca_bundle` or `:ssl_ca_directory` the the system default
|
384
|
-
# will be used if available.
|
385
|
-
#
|
386
|
-
# @option options [String] :ssl_ca_directory Full path of the
|
387
|
-
# directory that contains the unbundled SSL certificate
|
388
|
-
# authority files for verifying peer certificates. If you do
|
389
|
-
# not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the
|
390
|
-
# system default will be used if available.
|
413
|
+
# @option options [Boolean] :ssl_verify_peer (true)
|
414
|
+
# When `true`, SSL peer certificates are verified when establishing a connection.
|
391
415
|
#
|
392
416
|
def initialize(*args)
|
393
417
|
super
|
@@ -2352,7 +2376,7 @@ module Aws::STS
|
|
2352
2376
|
params: params,
|
2353
2377
|
config: config)
|
2354
2378
|
context[:gem_name] = 'aws-sdk-core'
|
2355
|
-
context[:gem_version] = '3.
|
2379
|
+
context[:gem_version] = '3.193.0'
|
2356
2380
|
Seahorse::Client::Request.new(handlers, context)
|
2357
2381
|
end
|
2358
2382
|
|
@@ -24,7 +24,7 @@ module Aws::STS
|
|
24
24
|
Credentials = Shapes::StructureShape.new(name: 'Credentials')
|
25
25
|
DecodeAuthorizationMessageRequest = Shapes::StructureShape.new(name: 'DecodeAuthorizationMessageRequest')
|
26
26
|
DecodeAuthorizationMessageResponse = Shapes::StructureShape.new(name: 'DecodeAuthorizationMessageResponse')
|
27
|
-
ExpiredTokenException = Shapes::StructureShape.new(name: 'ExpiredTokenException')
|
27
|
+
ExpiredTokenException = Shapes::StructureShape.new(name: 'ExpiredTokenException', error: {"code"=>"ExpiredTokenException", "httpStatusCode"=>400, "senderFault"=>true})
|
28
28
|
FederatedUser = Shapes::StructureShape.new(name: 'FederatedUser')
|
29
29
|
GetAccessKeyInfoRequest = Shapes::StructureShape.new(name: 'GetAccessKeyInfoRequest')
|
30
30
|
GetAccessKeyInfoResponse = Shapes::StructureShape.new(name: 'GetAccessKeyInfoResponse')
|
@@ -34,18 +34,18 @@ module Aws::STS
|
|
34
34
|
GetFederationTokenResponse = Shapes::StructureShape.new(name: 'GetFederationTokenResponse')
|
35
35
|
GetSessionTokenRequest = Shapes::StructureShape.new(name: 'GetSessionTokenRequest')
|
36
36
|
GetSessionTokenResponse = Shapes::StructureShape.new(name: 'GetSessionTokenResponse')
|
37
|
-
IDPCommunicationErrorException = Shapes::StructureShape.new(name: 'IDPCommunicationErrorException')
|
38
|
-
IDPRejectedClaimException = Shapes::StructureShape.new(name: 'IDPRejectedClaimException')
|
39
|
-
InvalidAuthorizationMessageException = Shapes::StructureShape.new(name: 'InvalidAuthorizationMessageException')
|
40
|
-
InvalidIdentityTokenException = Shapes::StructureShape.new(name: 'InvalidIdentityTokenException')
|
37
|
+
IDPCommunicationErrorException = Shapes::StructureShape.new(name: 'IDPCommunicationErrorException', error: {"code"=>"IDPCommunicationError", "httpStatusCode"=>400, "senderFault"=>true})
|
38
|
+
IDPRejectedClaimException = Shapes::StructureShape.new(name: 'IDPRejectedClaimException', error: {"code"=>"IDPRejectedClaim", "httpStatusCode"=>403, "senderFault"=>true})
|
39
|
+
InvalidAuthorizationMessageException = Shapes::StructureShape.new(name: 'InvalidAuthorizationMessageException', error: {"code"=>"InvalidAuthorizationMessageException", "httpStatusCode"=>400, "senderFault"=>true})
|
40
|
+
InvalidIdentityTokenException = Shapes::StructureShape.new(name: 'InvalidIdentityTokenException', error: {"code"=>"InvalidIdentityToken", "httpStatusCode"=>400, "senderFault"=>true})
|
41
41
|
Issuer = Shapes::StringShape.new(name: 'Issuer')
|
42
|
-
MalformedPolicyDocumentException = Shapes::StructureShape.new(name: 'MalformedPolicyDocumentException')
|
42
|
+
MalformedPolicyDocumentException = Shapes::StructureShape.new(name: 'MalformedPolicyDocumentException', error: {"code"=>"MalformedPolicyDocument", "httpStatusCode"=>400, "senderFault"=>true})
|
43
43
|
NameQualifier = Shapes::StringShape.new(name: 'NameQualifier')
|
44
|
-
PackedPolicyTooLargeException = Shapes::StructureShape.new(name: 'PackedPolicyTooLargeException')
|
44
|
+
PackedPolicyTooLargeException = Shapes::StructureShape.new(name: 'PackedPolicyTooLargeException', error: {"code"=>"PackedPolicyTooLarge", "httpStatusCode"=>400, "senderFault"=>true})
|
45
45
|
PolicyDescriptorType = Shapes::StructureShape.new(name: 'PolicyDescriptorType')
|
46
46
|
ProvidedContext = Shapes::StructureShape.new(name: 'ProvidedContext')
|
47
47
|
ProvidedContextsListType = Shapes::ListShape.new(name: 'ProvidedContextsListType')
|
48
|
-
RegionDisabledException = Shapes::StructureShape.new(name: 'RegionDisabledException')
|
48
|
+
RegionDisabledException = Shapes::StructureShape.new(name: 'RegionDisabledException', error: {"code"=>"RegionDisabledException", "httpStatusCode"=>403, "senderFault"=>true})
|
49
49
|
SAMLAssertionType = Shapes::StringShape.new(name: 'SAMLAssertionType')
|
50
50
|
Subject = Shapes::StringShape.new(name: 'Subject')
|
51
51
|
SubjectType = Shapes::StringShape.new(name: 'SubjectType')
|
data/lib/aws-sdk-sts.rb
CHANGED
@@ -5,12 +5,12 @@ module Seahorse
|
|
5
5
|
class AsyncBase < Seahorse::Client::Base
|
6
6
|
|
7
7
|
# default H2 plugins
|
8
|
+
# @api private
|
8
9
|
@plugins = PluginList.new([
|
9
10
|
Plugins::Endpoint,
|
10
11
|
Plugins::H2,
|
11
12
|
Plugins::ResponseTarget
|
12
13
|
])
|
13
|
-
|
14
14
|
def initialize(plugins, options)
|
15
15
|
super
|
16
16
|
@connection = H2::Connection.new(options)
|
@@ -12,24 +12,43 @@ module Seahorse
|
|
12
12
|
@sync_queue = options[:sync_queue]
|
13
13
|
end
|
14
14
|
|
15
|
+
# @return [RequestContext]
|
15
16
|
def context
|
16
17
|
@response.context
|
17
18
|
end
|
18
19
|
|
20
|
+
# @return [StandardError, nil]
|
19
21
|
def error
|
20
22
|
@response.error
|
21
23
|
end
|
22
24
|
|
25
|
+
# @overload on(status_code, &block)
|
26
|
+
# @param [Integer] status_code The block will be
|
27
|
+
# triggered only for responses with the given status code.
|
28
|
+
#
|
29
|
+
# @overload on(status_code_range, &block)
|
30
|
+
# @param [Range<Integer>] status_code_range The block will be
|
31
|
+
# triggered only for responses with a status code that falls
|
32
|
+
# witin the given range.
|
33
|
+
#
|
34
|
+
# @return [self]
|
23
35
|
def on(range, &block)
|
24
36
|
@response.on(range, &block)
|
25
37
|
self
|
26
38
|
end
|
27
39
|
|
40
|
+
# @api private
|
28
41
|
def on_complete(&block)
|
29
42
|
@response.on_complete(&block)
|
30
43
|
self
|
31
44
|
end
|
32
45
|
|
46
|
+
# @return [Boolean] Returns `true` if the response is complete with
|
47
|
+
# no error.
|
48
|
+
def successful?
|
49
|
+
@response.error.nil?
|
50
|
+
end
|
51
|
+
|
33
52
|
def wait
|
34
53
|
if error && context.config.raise_response_errors
|
35
54
|
raise error
|
data/lib/seahorse/client/base.rb
CHANGED
@@ -126,6 +126,7 @@ module Seahorse
|
|
126
126
|
# https://http2.github.io/http2-spec/#rfc.section.8.1.2.3
|
127
127
|
def _h2_headers(req)
|
128
128
|
headers = {}
|
129
|
+
headers[':authority'] = req.endpoint.host
|
129
130
|
headers[':method'] = req.http_method.upcase
|
130
131
|
headers[':scheme'] = req.endpoint.scheme
|
131
132
|
headers[':path'] = req.endpoint.path.empty? ? '/' : req.endpoint.path
|
@@ -111,7 +111,15 @@ module Seahorse
|
|
111
111
|
|
112
112
|
def initialize(name, options = {})
|
113
113
|
@name = name
|
114
|
+
# prevent unstable object shapes by ensuring
|
115
|
+
# order and presence of instance variables
|
116
|
+
@default = nil
|
117
|
+
@default_block = nil
|
118
|
+
@required = nil
|
119
|
+
@doc_type = nil
|
114
120
|
@doc_default = nil
|
121
|
+
@docstring = nil
|
122
|
+
@rbs_type = nil
|
115
123
|
options.each_pair do |opt_name, opt_value|
|
116
124
|
self.send("#{opt_name}=", opt_value)
|
117
125
|
end
|
@@ -7,34 +7,66 @@ module Seahorse
|
|
7
7
|
module Plugins
|
8
8
|
class NetHttp < Plugin
|
9
9
|
|
10
|
-
option(:http_proxy, default: nil, doc_type: String, docstring:
|
11
|
-
|
12
|
-
|
10
|
+
option(:http_proxy, default: nil, doc_type: "URI::HTTP,String", docstring: <<-DOCS)
|
11
|
+
A proxy to send requests through. Formatted like 'http://proxy.com:123'.
|
12
|
+
DOCS
|
13
|
+
|
14
|
+
option(:http_open_timeout, default: 15, doc_type: Float, docstring: <<-DOCS) do |cfg|
|
15
|
+
The default number of seconds to wait for response data.
|
16
|
+
This value can safely be set per-request on the session.
|
17
|
+
DOCS
|
13
18
|
resolve_http_open_timeout(cfg)
|
14
19
|
end
|
15
20
|
|
16
|
-
option(:http_read_timeout, default: 60, doc_type:
|
21
|
+
option(:http_read_timeout, default: 60, doc_type: Float, docstring: <<-DOCS) do |cfg|
|
22
|
+
The default number of seconds to wait for response data.
|
23
|
+
This value can safely be set per-request on the session.
|
24
|
+
DOCS
|
17
25
|
resolve_http_read_timeout(cfg)
|
18
26
|
end
|
19
27
|
|
20
|
-
option(:http_idle_timeout, default: 5, doc_type:
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
option(:
|
27
|
-
|
28
|
-
|
28
|
+
option(:http_idle_timeout, default: 5, doc_type: Float, docstring: <<-DOCS)
|
29
|
+
The number of seconds a connection is allowed to sit idle before it
|
30
|
+
is considered stale. Stale connections are closed and removed from the
|
31
|
+
pool before making a request.
|
32
|
+
DOCS
|
33
|
+
|
34
|
+
option(:http_continue_timeout, default: 1, doc_type: Float, docstring: <<-DOCS)
|
35
|
+
The number of seconds to wait for a 100-continue response before sending the
|
36
|
+
request body. This option has no effect unless the request has "Expect"
|
37
|
+
header set to "100-continue". Defaults to `nil` which disables this
|
38
|
+
behaviour. This value can safely be set per request on the session.
|
39
|
+
DOCS
|
40
|
+
|
41
|
+
option(:http_wire_trace, default: false, doc_type: 'Boolean', docstring: <<-DOCS)
|
42
|
+
When `true`, HTTP debug output will be sent to the `:logger`.
|
43
|
+
DOCS
|
44
|
+
|
45
|
+
option(:ssl_verify_peer, default: true, doc_type: 'Boolean', docstring: <<-DOCS)
|
46
|
+
When `true`, SSL peer certificates are verified when establishing a connection.
|
47
|
+
DOCS
|
48
|
+
|
49
|
+
option(:ssl_ca_bundle, doc_type: String, docstring: <<-DOCS) do |cfg|
|
50
|
+
Full path to the SSL certificate authority bundle file that should be used when
|
51
|
+
verifying peer certificates. If you do not pass `:ssl_ca_bundle` or
|
52
|
+
`:ssl_ca_directory` the the system default will be used if available.
|
53
|
+
DOCS
|
29
54
|
ENV['AWS_CA_BUNDLE'] ||
|
30
55
|
Aws.shared_config.ca_bundle(profile: cfg.profile) if cfg.respond_to?(:profile)
|
31
56
|
end
|
32
57
|
|
33
|
-
option(:ssl_ca_directory, default: nil, doc_type: String, docstring:
|
58
|
+
option(:ssl_ca_directory, default: nil, doc_type: String, docstring: <<-DOCS)
|
59
|
+
Full path of the directory that contains the unbundled SSL certificate
|
60
|
+
authority files for verifying peer certificates. If you do
|
61
|
+
not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the system
|
62
|
+
default will be used if available.
|
63
|
+
DOCS
|
34
64
|
|
35
|
-
option(:ssl_ca_store, default: nil, doc_type: String, docstring:
|
65
|
+
option(:ssl_ca_store, default: nil, doc_type: String, docstring: <<-DOCS)
|
66
|
+
Sets the X509::Store to verify peer certificate.
|
67
|
+
DOCS
|
36
68
|
|
37
|
-
option(:ssl_timeout, default: nil, doc_type: Float, docstring: '') do |cfg|
|
69
|
+
option(:ssl_timeout, default: nil, doc_type: Float, docstring: 'Sets the SSL timeout in seconds') do |cfg|
|
38
70
|
resolve_ssl_timeout(cfg)
|
39
71
|
end
|
40
72
|
|
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.193.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-
|
11
|
+
date: 2024-04-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jmespath
|
@@ -212,10 +212,12 @@ files:
|
|
212
212
|
- lib/aws-sdk-core/rest/handler.rb
|
213
213
|
- lib/aws-sdk-core/rest/request/body.rb
|
214
214
|
- lib/aws-sdk-core/rest/request/builder.rb
|
215
|
+
- lib/aws-sdk-core/rest/request/content_type.rb
|
215
216
|
- lib/aws-sdk-core/rest/request/endpoint.rb
|
216
217
|
- lib/aws-sdk-core/rest/request/headers.rb
|
217
218
|
- lib/aws-sdk-core/rest/request/querystring_builder.rb
|
218
219
|
- lib/aws-sdk-core/rest/response/body.rb
|
220
|
+
- lib/aws-sdk-core/rest/response/header_list_parser.rb
|
219
221
|
- lib/aws-sdk-core/rest/response/headers.rb
|
220
222
|
- lib/aws-sdk-core/rest/response/parser.rb
|
221
223
|
- lib/aws-sdk-core/rest/response/status_code.rb
|