aws-sdk-core 3.191.0 → 3.199.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 +153 -1
- data/VERSION +1 -1
- data/lib/aws-sdk-core/binary/decode_handler.rb +3 -9
- data/lib/aws-sdk-core/binary/encode_handler.rb +1 -1
- data/lib/aws-sdk-core/binary/event_builder.rb +34 -37
- data/lib/aws-sdk-core/binary/event_stream_decoder.rb +1 -0
- data/lib/aws-sdk-core/binary/event_stream_encoder.rb +4 -3
- data/lib/aws-sdk-core/cbor/cbor_engine.rb +19 -0
- data/lib/aws-sdk-core/cbor/decoder.rb +310 -0
- data/lib/aws-sdk-core/cbor/encoder.rb +243 -0
- data/lib/aws-sdk-core/cbor.rb +106 -0
- data/lib/aws-sdk-core/client_stubs.rb +3 -2
- data/lib/aws-sdk-core/credential_provider.rb +1 -1
- data/lib/aws-sdk-core/ec2_metadata.rb +1 -1
- data/lib/aws-sdk-core/ecs_credentials.rb +2 -1
- data/lib/aws-sdk-core/endpoints/matchers.rb +5 -1
- data/lib/aws-sdk-core/error_handler.rb +41 -0
- data/lib/aws-sdk-core/event_emitter.rb +0 -16
- data/lib/aws-sdk-core/instance_profile_credentials.rb +3 -2
- data/lib/aws-sdk-core/json/builder.rb +8 -1
- data/lib/aws-sdk-core/json/error_handler.rb +15 -10
- data/lib/aws-sdk-core/json/handler.rb +5 -6
- data/lib/aws-sdk-core/json/json_engine.rb +3 -1
- data/lib/aws-sdk-core/json/oj_engine.rb +7 -1
- data/lib/aws-sdk-core/json/parser.rb +6 -1
- data/lib/aws-sdk-core/json.rb +43 -14
- data/lib/aws-sdk-core/lru_cache.rb +75 -0
- data/lib/aws-sdk-core/pageable_response.rb +1 -1
- data/lib/aws-sdk-core/param_validator.rb +7 -2
- data/lib/aws-sdk-core/plugins/client_metrics_send_plugin.rb +14 -2
- data/lib/aws-sdk-core/plugins/global_configuration.rb +8 -9
- data/lib/aws-sdk-core/plugins/invocation_id.rb +1 -11
- data/lib/aws-sdk-core/plugins/protocols/api_gateway.rb +3 -1
- data/lib/aws-sdk-core/plugins/protocols/ec2.rb +2 -24
- data/lib/aws-sdk-core/plugins/protocols/json_rpc.rb +6 -8
- data/lib/aws-sdk-core/plugins/protocols/query.rb +4 -2
- data/lib/aws-sdk-core/plugins/protocols/rest_json.rb +3 -15
- data/lib/aws-sdk-core/plugins/protocols/rest_xml.rb +3 -0
- data/lib/aws-sdk-core/plugins/protocols/rpc_v2.rb +17 -0
- data/lib/aws-sdk-core/plugins/request_compression.rb +11 -2
- data/lib/aws-sdk-core/plugins/retry_errors.rb +10 -3
- data/lib/aws-sdk-core/plugins/sign.rb +8 -3
- data/lib/aws-sdk-core/plugins/user_agent.rb +61 -26
- data/lib/aws-sdk-core/process_credentials.rb +45 -27
- data/lib/aws-sdk-core/query/ec2_handler.rb +27 -0
- data/lib/aws-sdk-core/query/ec2_param_builder.rb +5 -7
- data/lib/aws-sdk-core/query/handler.rb +4 -4
- data/lib/aws-sdk-core/query/param_builder.rb +2 -2
- data/lib/aws-sdk-core/query.rb +2 -1
- data/lib/aws-sdk-core/rest/content_type_handler.rb +60 -0
- data/lib/aws-sdk-core/rest/handler.rb +3 -4
- data/lib/aws-sdk-core/rest/request/body.rb +32 -5
- data/lib/aws-sdk-core/rest/request/endpoint.rb +24 -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/rpc_v2/builder.rb +62 -0
- data/lib/aws-sdk-core/rpc_v2/content_type_handler.rb +45 -0
- data/lib/aws-sdk-core/rpc_v2/error_handler.rb +84 -0
- data/lib/aws-sdk-core/rpc_v2/handler.rb +74 -0
- data/lib/aws-sdk-core/rpc_v2/parser.rb +90 -0
- data/lib/aws-sdk-core/rpc_v2.rb +6 -0
- data/lib/aws-sdk-core/stubbing/protocols/rpc_v2.rb +41 -0
- data/lib/aws-sdk-core/util.rb +39 -0
- data/lib/aws-sdk-core/waiters/poller.rb +1 -1
- data/lib/aws-sdk-core/xml/builder.rb +17 -9
- data/lib/aws-sdk-core/xml/error_handler.rb +32 -42
- 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-core/xml/parser.rb +2 -6
- data/lib/aws-sdk-core.rb +7 -2
- data/lib/aws-sdk-sso/client.rb +77 -49
- data/lib/aws-sdk-sso.rb +1 -1
- data/lib/aws-sdk-ssooidc/client.rb +127 -51
- data/lib/aws-sdk-ssooidc/client_api.rb +22 -0
- data/lib/aws-sdk-ssooidc/errors.rb +21 -0
- data/lib/aws-sdk-ssooidc/types.rb +77 -9
- data/lib/aws-sdk-ssooidc.rb +1 -1
- data/lib/aws-sdk-sts/client.rb +77 -49
- 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 +18 -7
- data/lib/seahorse/client/h2/handler.rb +1 -0
- data/lib/seahorse/client/handler.rb +1 -1
- data/lib/seahorse/client/net_http/connection_pool.rb +3 -9
- data/lib/seahorse/client/plugin.rb +8 -0
- data/lib/seahorse/client/plugins/endpoint.rb +0 -1
- data/lib/seahorse/client/plugins/net_http.rb +48 -16
- data/lib/seahorse/model/shapes.rb +2 -2
- metadata +24 -7
- /data/lib/aws-sdk-core/xml/parser/{engines/libxml.rb → libxml_engine.rb} +0 -0
- /data/lib/aws-sdk-core/xml/parser/{engines/nokogiri.rb → nokogiri_engine.rb} +0 -0
- /data/lib/aws-sdk-core/xml/parser/{engines/oga.rb → oga_engine.rb} +0 -0
- /data/lib/aws-sdk-core/xml/parser/{engines/ox.rb → ox_engine.rb} +0 -0
- /data/lib/aws-sdk-core/xml/parser/{engines/rexml.rb → rexml_engine.rb} +0 -0
|
@@ -4,7 +4,7 @@ require 'cgi'
|
|
|
4
4
|
|
|
5
5
|
module Aws
|
|
6
6
|
module Xml
|
|
7
|
-
class ErrorHandler <
|
|
7
|
+
class ErrorHandler < Aws::ErrorHandler
|
|
8
8
|
|
|
9
9
|
def call(context)
|
|
10
10
|
@handler.call(context).on(300..599) do |response|
|
|
@@ -15,42 +15,29 @@ module Aws
|
|
|
15
15
|
|
|
16
16
|
private
|
|
17
17
|
|
|
18
|
-
def error(context)
|
|
19
|
-
body = context.http_response.body_contents
|
|
20
|
-
if body.empty?
|
|
21
|
-
code = http_status_error_code(context)
|
|
22
|
-
message = ''
|
|
23
|
-
data = EmptyStructure.new
|
|
24
|
-
else
|
|
25
|
-
code, message, data = extract_error(body, context)
|
|
26
|
-
end
|
|
27
|
-
context[:request_id] = request_id(body)
|
|
28
|
-
errors_module = context.client.class.errors_module
|
|
29
|
-
error_class = errors_module.error_class(code).new(context, message, data)
|
|
30
|
-
error_class
|
|
31
|
-
end
|
|
32
|
-
|
|
33
18
|
def extract_error(body, context)
|
|
19
|
+
context[:request_id] = request_id(body)
|
|
34
20
|
code = error_code(body, context)
|
|
35
21
|
[
|
|
36
22
|
code,
|
|
37
23
|
error_message(body),
|
|
38
|
-
error_data(context, code)
|
|
24
|
+
error_data(context, body, code)
|
|
39
25
|
]
|
|
40
26
|
end
|
|
41
27
|
|
|
42
|
-
def error_data(context, code)
|
|
28
|
+
def error_data(context, body, code)
|
|
43
29
|
data = EmptyStructure.new
|
|
44
|
-
if error_rules = context.operation.errors
|
|
30
|
+
if (error_rules = context.operation.errors)
|
|
45
31
|
error_rules.each do |rule|
|
|
46
|
-
#
|
|
47
|
-
#
|
|
48
|
-
# match modeled shape name
|
|
32
|
+
# query protocol may have custom error code
|
|
33
|
+
# reference: https://smithy.io/2.0/aws/protocols/aws-query-protocol.html#error-code-resolution
|
|
49
34
|
error_shape_code = rule.shape['error']['code'] if rule.shape['error']
|
|
50
35
|
match = (code == error_shape_code || code == rule.shape.name)
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
36
|
+
next unless match && rule.shape.members.any?
|
|
37
|
+
|
|
38
|
+
data = parse_error_data(rule, body)
|
|
39
|
+
# supporting HTTP bindings
|
|
40
|
+
apply_error_headers(rule, context, data)
|
|
54
41
|
end
|
|
55
42
|
end
|
|
56
43
|
data
|
|
@@ -58,29 +45,32 @@ module Aws
|
|
|
58
45
|
EmptyStructure.new
|
|
59
46
|
end
|
|
60
47
|
|
|
48
|
+
def parse_error_data(rule, body)
|
|
49
|
+
# errors may nested under <Errors><Error>structure_data</Error></Errors>
|
|
50
|
+
# Or may be flat and under <Error>structure_data</Error>
|
|
51
|
+
body = body.tr("\n", '')
|
|
52
|
+
if (matches = body.match(/<Error>(.+?)<\/Error>/))
|
|
53
|
+
Parser.new(rule).parse("<#{rule.shape.name}>#{matches[1]}</#{rule.shape.name}>")
|
|
54
|
+
else
|
|
55
|
+
EmptyStructure.new
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
def apply_error_headers(rule, context, data)
|
|
60
|
+
headers = Aws::Rest::Response::Headers.new(rule)
|
|
61
|
+
headers.apply(context.http_response, data)
|
|
62
|
+
end
|
|
63
|
+
|
|
61
64
|
def error_code(body, context)
|
|
62
|
-
if matches = body.match(/<Code>(.+?)<\/Code>/)
|
|
65
|
+
if (matches = body.match(/<Code>(.+?)<\/Code>/))
|
|
63
66
|
remove_prefix(unescape(matches[1]), context)
|
|
64
67
|
else
|
|
65
68
|
http_status_error_code(context)
|
|
66
69
|
end
|
|
67
70
|
end
|
|
68
71
|
|
|
69
|
-
def http_status_error_code(context)
|
|
70
|
-
status_code = context.http_response.status_code
|
|
71
|
-
{
|
|
72
|
-
302 => 'MovedTemporarily',
|
|
73
|
-
304 => 'NotModified',
|
|
74
|
-
400 => 'BadRequest',
|
|
75
|
-
403 => 'Forbidden',
|
|
76
|
-
404 => 'NotFound',
|
|
77
|
-
412 => 'PreconditionFailed',
|
|
78
|
-
413 => 'RequestEntityTooLarge',
|
|
79
|
-
}[status_code] || "Http#{status_code}Error"
|
|
80
|
-
end
|
|
81
|
-
|
|
82
72
|
def remove_prefix(error_code, context)
|
|
83
|
-
if prefix = context.config.api.metadata['errorPrefix']
|
|
73
|
+
if (prefix = context.config.api.metadata['errorPrefix'])
|
|
84
74
|
error_code.sub(/^#{prefix}/, '')
|
|
85
75
|
else
|
|
86
76
|
error_code
|
|
@@ -88,7 +78,7 @@ module Aws
|
|
|
88
78
|
end
|
|
89
79
|
|
|
90
80
|
def error_message(body)
|
|
91
|
-
if matches = body.match(/<Message>(.+?)<\/Message>/m)
|
|
81
|
+
if (matches = body.match(/<Message>(.+?)<\/Message>/m))
|
|
92
82
|
unescape(matches[1])
|
|
93
83
|
else
|
|
94
84
|
''
|
|
@@ -96,7 +86,7 @@ module Aws
|
|
|
96
86
|
end
|
|
97
87
|
|
|
98
88
|
def request_id(body)
|
|
99
|
-
if matches = body.match(/<RequestId>(.+?)<\/RequestId>/m)
|
|
89
|
+
if (matches = body.match(/<RequestId>(.+?)<\/RequestId>/m))
|
|
100
90
|
matches[1]
|
|
101
91
|
end
|
|
102
92
|
end
|
|
@@ -138,11 +138,7 @@ module Aws
|
|
|
138
138
|
end
|
|
139
139
|
|
|
140
140
|
def xml_name(ref)
|
|
141
|
-
|
|
142
|
-
ref.shape.member.location_name || ref.location_name
|
|
143
|
-
else
|
|
144
|
-
ref.location_name
|
|
145
|
-
end
|
|
141
|
+
ref.location_name
|
|
146
142
|
end
|
|
147
143
|
|
|
148
144
|
def flattened_list?(ref)
|
|
@@ -266,7 +262,7 @@ module Aws
|
|
|
266
262
|
|
|
267
263
|
class BlobFrame < Frame
|
|
268
264
|
def result
|
|
269
|
-
@text.empty? ?
|
|
265
|
+
@text.empty? ? '' : Base64.decode64(@text.join)
|
|
270
266
|
end
|
|
271
267
|
end
|
|
272
268
|
|
|
@@ -278,7 +274,7 @@ module Aws
|
|
|
278
274
|
|
|
279
275
|
class FloatFrame < Frame
|
|
280
276
|
def result
|
|
281
|
-
@text.empty? ? nil : @text.join
|
|
277
|
+
@text.empty? ? nil : Aws::Util.deserialize_number(@text.join)
|
|
282
278
|
end
|
|
283
279
|
end
|
|
284
280
|
|
|
@@ -296,19 +292,7 @@ module Aws
|
|
|
296
292
|
|
|
297
293
|
class TimestampFrame < Frame
|
|
298
294
|
def result
|
|
299
|
-
@text.empty? ? nil :
|
|
300
|
-
end
|
|
301
|
-
def parse(value)
|
|
302
|
-
case value
|
|
303
|
-
when nil then nil
|
|
304
|
-
when /^\d+$/ then Time.at(value.to_i)
|
|
305
|
-
else
|
|
306
|
-
begin
|
|
307
|
-
Time.parse(value).utc
|
|
308
|
-
rescue ArgumentError
|
|
309
|
-
raise "unhandled timestamp format `#{value}'"
|
|
310
|
-
end
|
|
311
|
-
end
|
|
295
|
+
@text.empty? ? nil : Aws::Util.deserialize_time(@text.join)
|
|
312
296
|
end
|
|
313
297
|
end
|
|
314
298
|
|
|
@@ -24,6 +24,8 @@ module Aws
|
|
|
24
24
|
if name.to_s == 'encoding' && value.to_s == 'base64'
|
|
25
25
|
@frame = BlobFrame.new(name, @frame.parent, @frame.ref)
|
|
26
26
|
else
|
|
27
|
+
# don't try to parse shapes from xml namespace
|
|
28
|
+
return if name.to_s == 'xmlns'
|
|
27
29
|
start_element(name)
|
|
28
30
|
text(value)
|
|
29
31
|
end_element(name)
|
|
@@ -5,7 +5,6 @@ module Aws
|
|
|
5
5
|
module Xml
|
|
6
6
|
# A SAX-style XML parser that uses a shape context to handle types.
|
|
7
7
|
class Parser
|
|
8
|
-
|
|
9
8
|
# @param [Seahorse::Model::ShapeRef] rules
|
|
10
9
|
def initialize(rules, options = {})
|
|
11
10
|
@rules = rules
|
|
@@ -47,8 +46,7 @@ module Aws
|
|
|
47
46
|
# * :libxml
|
|
48
47
|
# * :nokogiri
|
|
49
48
|
# * :rexml
|
|
50
|
-
|
|
51
|
-
def engine= engine
|
|
49
|
+
def engine=(engine)
|
|
52
50
|
@engine = Class === engine ? engine : load_engine(engine)
|
|
53
51
|
end
|
|
54
52
|
|
|
@@ -60,7 +58,6 @@ module Aws
|
|
|
60
58
|
# * {LibxmlEngine}
|
|
61
59
|
# * {NokogiriEngine}
|
|
62
60
|
# * {RexmlEngine}
|
|
63
|
-
#
|
|
64
61
|
def engine
|
|
65
62
|
set_default_engine unless @engine
|
|
66
63
|
@engine
|
|
@@ -80,7 +77,7 @@ module Aws
|
|
|
80
77
|
private
|
|
81
78
|
|
|
82
79
|
def load_engine(name)
|
|
83
|
-
require "aws-sdk-core/xml/parser
|
|
80
|
+
require "aws-sdk-core/xml/parser/#{name}_engine"
|
|
84
81
|
const_name = name[0].upcase + name[1..-1] + 'Engine'
|
|
85
82
|
const_get(const_name)
|
|
86
83
|
end
|
|
@@ -94,7 +91,6 @@ module Aws
|
|
|
94
91
|
end
|
|
95
92
|
|
|
96
93
|
set_default_engine
|
|
97
|
-
|
|
98
94
|
end
|
|
99
95
|
end
|
|
100
96
|
end
|
data/lib/aws-sdk-core.rb
CHANGED
|
@@ -63,19 +63,23 @@ require_relative 'aws-sdk-core/stubbing/xml_error'
|
|
|
63
63
|
|
|
64
64
|
# stubbing protocols
|
|
65
65
|
|
|
66
|
-
require_relative 'aws-sdk-core/stubbing/protocols/ec2'
|
|
67
66
|
require_relative 'aws-sdk-core/stubbing/protocols/json'
|
|
68
|
-
require_relative 'aws-sdk-core/stubbing/protocols/query'
|
|
69
67
|
require_relative 'aws-sdk-core/stubbing/protocols/rest'
|
|
70
68
|
require_relative 'aws-sdk-core/stubbing/protocols/rest_json'
|
|
71
69
|
require_relative 'aws-sdk-core/stubbing/protocols/rest_xml'
|
|
70
|
+
require_relative 'aws-sdk-core/stubbing/protocols/query'
|
|
71
|
+
require_relative 'aws-sdk-core/stubbing/protocols/ec2'
|
|
72
|
+
require_relative 'aws-sdk-core/stubbing/protocols/rpc_v2'
|
|
72
73
|
require_relative 'aws-sdk-core/stubbing/protocols/api_gateway'
|
|
73
74
|
|
|
74
75
|
# protocols
|
|
75
76
|
|
|
77
|
+
require_relative 'aws-sdk-core/error_handler'
|
|
76
78
|
require_relative 'aws-sdk-core/rest'
|
|
77
79
|
require_relative 'aws-sdk-core/xml'
|
|
78
80
|
require_relative 'aws-sdk-core/json'
|
|
81
|
+
require_relative 'aws-sdk-core/query'
|
|
82
|
+
require_relative 'aws-sdk-core/rpc_v2'
|
|
79
83
|
|
|
80
84
|
# event stream
|
|
81
85
|
|
|
@@ -96,6 +100,7 @@ require_relative 'aws-sdk-core/client_side_monitoring/publisher'
|
|
|
96
100
|
require_relative 'aws-sdk-core/arn'
|
|
97
101
|
require_relative 'aws-sdk-core/arn_parser'
|
|
98
102
|
require_relative 'aws-sdk-core/ec2_metadata'
|
|
103
|
+
require_relative 'aws-sdk-core/lru_cache'
|
|
99
104
|
|
|
100
105
|
# dynamic endpoints
|
|
101
106
|
require_relative 'aws-sdk-core/endpoints'
|
data/lib/aws-sdk-sso/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'
|
|
@@ -72,6 +73,7 @@ module Aws::SSO
|
|
|
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)
|
|
@@ -87,6 +89,11 @@ module Aws::SSO
|
|
|
87
89
|
|
|
88
90
|
# @overload initialize(options)
|
|
89
91
|
# @param [Hash] options
|
|
92
|
+
#
|
|
93
|
+
# @option options [Array<Seahorse::Client::Plugin>] :plugins ([]])
|
|
94
|
+
# A list of plugins to apply to the client. Each plugin is either a
|
|
95
|
+
# class name or an instance of a plugin class.
|
|
96
|
+
#
|
|
90
97
|
# @option options [required, Aws::CredentialProvider] :credentials
|
|
91
98
|
# Your AWS credentials. This can be an instance of any one of the
|
|
92
99
|
# following classes:
|
|
@@ -196,10 +203,16 @@ module Aws::SSO
|
|
|
196
203
|
# When set to 'true' the request body will not be compressed
|
|
197
204
|
# for supported operations.
|
|
198
205
|
#
|
|
199
|
-
# @option options [String] :endpoint
|
|
200
|
-
#
|
|
201
|
-
#
|
|
202
|
-
#
|
|
206
|
+
# @option options [String, URI::HTTPS, URI::HTTP] :endpoint
|
|
207
|
+
# Normally you should not configure the `:endpoint` option
|
|
208
|
+
# directly. This is normally constructed from the `:region`
|
|
209
|
+
# option. Configuring `:endpoint` is normally reserved for
|
|
210
|
+
# connecting to test or custom endpoints. The endpoint should
|
|
211
|
+
# be a URI formatted like:
|
|
212
|
+
#
|
|
213
|
+
# 'http://example.com'
|
|
214
|
+
# 'https://example.com'
|
|
215
|
+
# 'http://example.com:123'
|
|
203
216
|
#
|
|
204
217
|
# @option options [Integer] :endpoint_cache_max_entries (1000)
|
|
205
218
|
# Used for the maximum size limit of the LRU cache storing endpoints data
|
|
@@ -289,11 +302,11 @@ module Aws::SSO
|
|
|
289
302
|
# throttling. This is a provisional mode that may change behavior
|
|
290
303
|
# in the future.
|
|
291
304
|
#
|
|
292
|
-
#
|
|
293
305
|
# @option options [String] :sdk_ua_app_id
|
|
294
306
|
# A unique and opaque application ID that is appended to the
|
|
295
|
-
# User-Agent header as app
|
|
296
|
-
# maximum length of 50.
|
|
307
|
+
# User-Agent header as app/sdk_ua_app_id. It should have a
|
|
308
|
+
# maximum length of 50. This variable is sourced from environment
|
|
309
|
+
# variable AWS_SDK_UA_APP_ID or the shared config profile attribute sdk_ua_app_id.
|
|
297
310
|
#
|
|
298
311
|
# @option options [String] :secret_access_key
|
|
299
312
|
#
|
|
@@ -337,50 +350,65 @@ module Aws::SSO
|
|
|
337
350
|
# @option options [Aws::SSO::EndpointProvider] :endpoint_provider
|
|
338
351
|
# The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::SSO::EndpointParameters`
|
|
339
352
|
#
|
|
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
|
-
#
|
|
365
|
-
#
|
|
366
|
-
#
|
|
367
|
-
#
|
|
353
|
+
# @option options [Float] :http_continue_timeout (1)
|
|
354
|
+
# The number of seconds to wait for a 100-continue response before sending the
|
|
355
|
+
# request body. This option has no effect unless the request has "Expect"
|
|
356
|
+
# header set to "100-continue". Defaults to `nil` which disables this
|
|
357
|
+
# behaviour. This value can safely be set per request on the session.
|
|
358
|
+
#
|
|
359
|
+
# @option options [Float] :http_idle_timeout (5)
|
|
360
|
+
# The number of seconds a connection is allowed to sit idle before it
|
|
361
|
+
# is considered stale. Stale connections are closed and removed from the
|
|
362
|
+
# pool before making a request.
|
|
363
|
+
#
|
|
364
|
+
# @option options [Float] :http_open_timeout (15)
|
|
365
|
+
# The default number of seconds to wait for response data.
|
|
366
|
+
# This value can safely be set per-request on the session.
|
|
367
|
+
#
|
|
368
|
+
# @option options [URI::HTTP,String] :http_proxy
|
|
369
|
+
# A proxy to send requests through. Formatted like 'http://proxy.com:123'.
|
|
370
|
+
#
|
|
371
|
+
# @option options [Float] :http_read_timeout (60)
|
|
372
|
+
# The default number of seconds to wait for response data.
|
|
373
|
+
# This value can safely be set per-request on the session.
|
|
374
|
+
#
|
|
375
|
+
# @option options [Boolean] :http_wire_trace (false)
|
|
376
|
+
# When `true`, HTTP debug output will be sent to the `:logger`.
|
|
377
|
+
#
|
|
378
|
+
# @option options [Proc] :on_chunk_received
|
|
379
|
+
# When a Proc object is provided, it will be used as callback when each chunk
|
|
380
|
+
# of the response body is received. It provides three arguments: the chunk,
|
|
381
|
+
# the number of bytes received, and the total number of
|
|
382
|
+
# bytes in the response (or nil if the server did not send a `content-length`).
|
|
383
|
+
#
|
|
384
|
+
# @option options [Proc] :on_chunk_sent
|
|
385
|
+
# When a Proc object is provided, it will be used as callback when each chunk
|
|
386
|
+
# of the request body is sent. It provides three arguments: the chunk,
|
|
387
|
+
# the number of bytes read from the body, and the total number of
|
|
388
|
+
# bytes in the body.
|
|
389
|
+
#
|
|
390
|
+
# @option options [Boolean] :raise_response_errors (true)
|
|
391
|
+
# When `true`, response errors are raised.
|
|
392
|
+
#
|
|
393
|
+
# @option options [String] :ssl_ca_bundle
|
|
394
|
+
# Full path to the SSL certificate authority bundle file that should be used when
|
|
395
|
+
# verifying peer certificates. If you do not pass `:ssl_ca_bundle` or
|
|
396
|
+
# `:ssl_ca_directory` the the system default will be used if available.
|
|
397
|
+
#
|
|
398
|
+
# @option options [String] :ssl_ca_directory
|
|
399
|
+
# Full path of the directory that contains the unbundled SSL certificate
|
|
400
|
+
# authority files for verifying peer certificates. If you do
|
|
401
|
+
# not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the system
|
|
402
|
+
# default will be used if available.
|
|
368
403
|
#
|
|
369
|
-
# @option options [
|
|
370
|
-
#
|
|
371
|
-
# connection.
|
|
404
|
+
# @option options [String] :ssl_ca_store
|
|
405
|
+
# Sets the X509::Store to verify peer certificate.
|
|
372
406
|
#
|
|
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.
|
|
407
|
+
# @option options [Float] :ssl_timeout
|
|
408
|
+
# Sets the SSL timeout in seconds
|
|
378
409
|
#
|
|
379
|
-
# @option options [
|
|
380
|
-
#
|
|
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.
|
|
410
|
+
# @option options [Boolean] :ssl_verify_peer (true)
|
|
411
|
+
# When `true`, SSL peer certificates are verified when establishing a connection.
|
|
384
412
|
#
|
|
385
413
|
def initialize(*args)
|
|
386
414
|
super
|
|
@@ -605,7 +633,7 @@ module Aws::SSO
|
|
|
605
633
|
params: params,
|
|
606
634
|
config: config)
|
|
607
635
|
context[:gem_name] = 'aws-sdk-core'
|
|
608
|
-
context[:gem_version] = '3.
|
|
636
|
+
context[:gem_version] = '3.199.0'
|
|
609
637
|
Seahorse::Client::Request.new(handlers, context)
|
|
610
638
|
end
|
|
611
639
|
|