aws-sdk-core 3.197.0 → 3.201.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +54 -0
  3. data/VERSION +1 -1
  4. data/lib/aws-sdk-core/binary/decode_handler.rb +3 -4
  5. data/lib/aws-sdk-core/binary/encode_handler.rb +1 -1
  6. data/lib/aws-sdk-core/binary/event_stream_decoder.rb +1 -0
  7. data/lib/aws-sdk-core/binary/event_stream_encoder.rb +4 -3
  8. data/lib/aws-sdk-core/cbor/cbor_engine.rb +19 -0
  9. data/lib/aws-sdk-core/cbor/decoder.rb +310 -0
  10. data/lib/aws-sdk-core/cbor/encoder.rb +243 -0
  11. data/lib/aws-sdk-core/cbor.rb +106 -0
  12. data/lib/aws-sdk-core/client_stubs.rb +3 -2
  13. data/lib/aws-sdk-core/endpoints/matchers.rb +5 -1
  14. data/lib/aws-sdk-core/endpoints.rb +64 -18
  15. data/lib/aws-sdk-core/error_handler.rb +41 -0
  16. data/lib/aws-sdk-core/errors.rb +9 -0
  17. data/lib/aws-sdk-core/json/error_handler.rb +6 -8
  18. data/lib/aws-sdk-core/json/handler.rb +5 -6
  19. data/lib/aws-sdk-core/json/json_engine.rb +3 -1
  20. data/lib/aws-sdk-core/json/oj_engine.rb +7 -1
  21. data/lib/aws-sdk-core/json/parser.rb +2 -0
  22. data/lib/aws-sdk-core/json.rb +43 -14
  23. data/lib/aws-sdk-core/plugins/bearer_authorization.rb +2 -0
  24. data/lib/aws-sdk-core/plugins/checksum_algorithm.rb +2 -1
  25. data/lib/aws-sdk-core/plugins/global_configuration.rb +8 -9
  26. data/lib/aws-sdk-core/plugins/protocols/api_gateway.rb +3 -1
  27. data/lib/aws-sdk-core/plugins/protocols/ec2.rb +2 -24
  28. data/lib/aws-sdk-core/plugins/protocols/json_rpc.rb +6 -8
  29. data/lib/aws-sdk-core/plugins/protocols/query.rb +4 -2
  30. data/lib/aws-sdk-core/plugins/protocols/rest_json.rb +4 -3
  31. data/lib/aws-sdk-core/plugins/protocols/rest_xml.rb +5 -1
  32. data/lib/aws-sdk-core/plugins/protocols/rpc_v2.rb +17 -0
  33. data/lib/aws-sdk-core/plugins/regional_endpoint.rb +32 -3
  34. data/lib/aws-sdk-core/plugins/retry_errors.rb +0 -1
  35. data/lib/aws-sdk-core/plugins/sign.rb +10 -7
  36. data/lib/aws-sdk-core/plugins/signature_v2.rb +2 -1
  37. data/lib/aws-sdk-core/plugins/signature_v4.rb +2 -1
  38. data/lib/aws-sdk-core/plugins/transfer_encoding.rb +16 -9
  39. data/lib/aws-sdk-core/process_credentials.rb +45 -27
  40. data/lib/aws-sdk-core/query/ec2_handler.rb +27 -0
  41. data/lib/aws-sdk-core/query/handler.rb +4 -4
  42. data/lib/aws-sdk-core/query.rb +2 -1
  43. data/lib/aws-sdk-core/rest/{request/content_type.rb → content_type_handler.rb} +1 -1
  44. data/lib/aws-sdk-core/rest/handler.rb +3 -4
  45. data/lib/aws-sdk-core/rest/request/endpoint.rb +3 -1
  46. data/lib/aws-sdk-core/rest.rb +1 -1
  47. data/lib/aws-sdk-core/rpc_v2/builder.rb +62 -0
  48. data/lib/aws-sdk-core/rpc_v2/content_type_handler.rb +45 -0
  49. data/lib/aws-sdk-core/rpc_v2/error_handler.rb +84 -0
  50. data/lib/aws-sdk-core/rpc_v2/handler.rb +74 -0
  51. data/lib/aws-sdk-core/rpc_v2/parser.rb +90 -0
  52. data/lib/aws-sdk-core/rpc_v2.rb +6 -0
  53. data/lib/aws-sdk-core/shared_config.rb +1 -0
  54. data/lib/aws-sdk-core/stubbing/protocols/rpc_v2.rb +41 -0
  55. data/lib/aws-sdk-core/xml/error_handler.rb +11 -37
  56. data/lib/aws-sdk-core/xml/parser.rb +2 -6
  57. data/lib/aws-sdk-core.rb +6 -2
  58. data/lib/aws-sdk-sso/client.rb +15 -3
  59. data/lib/aws-sdk-sso/client_api.rb +6 -0
  60. data/lib/aws-sdk-sso.rb +1 -1
  61. data/lib/aws-sdk-ssooidc/client.rb +15 -3
  62. data/lib/aws-sdk-ssooidc/client_api.rb +4 -0
  63. data/lib/aws-sdk-ssooidc.rb +1 -1
  64. data/lib/aws-sdk-sts/client.rb +15 -3
  65. data/lib/aws-sdk-sts/client_api.rb +4 -2
  66. data/lib/aws-sdk-sts.rb +1 -1
  67. data/lib/seahorse/client/base.rb +17 -7
  68. data/lib/seahorse/client/handler.rb +1 -1
  69. data/lib/seahorse/client/plugins/endpoint.rb +0 -1
  70. metadata +22 -8
  71. /data/lib/aws-sdk-core/xml/parser/{engines/libxml.rb → libxml_engine.rb} +0 -0
  72. /data/lib/aws-sdk-core/xml/parser/{engines/nokogiri.rb → nokogiri_engine.rb} +0 -0
  73. /data/lib/aws-sdk-core/xml/parser/{engines/oga.rb → oga_engine.rb} +0 -0
  74. /data/lib/aws-sdk-core/xml/parser/{engines/ox.rb → ox_engine.rb} +0 -0
  75. /data/lib/aws-sdk-core/xml/parser/{engines/rexml.rb → rexml_engine.rb} +0 -0
@@ -0,0 +1,74 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Aws
4
+ module RpcV2
5
+ class Handler < Seahorse::Client::Handler
6
+ # @param [Seahorse::Client::RequestContext] context
7
+ # @return [Seahorse::Client::Response]
8
+ def call(context)
9
+ build_request(context)
10
+ response = @handler.call(context)
11
+ response.on(200..299) { |resp| resp.data = parse_body(context) }
12
+ response.on(200..599) { |_resp| apply_request_id(context) }
13
+ response
14
+ end
15
+
16
+ private
17
+
18
+ def build_request(context)
19
+ context.http_request.headers['smithy-protocol'] = 'rpc-v2-cbor'
20
+ context.http_request.http_method = 'POST'
21
+ context.http_request.body = build_body(context)
22
+ build_url(context)
23
+ end
24
+
25
+ def build_url(context)
26
+ base = context.http_request.endpoint
27
+ service_name = context.config.api.metadata['targetPrefix']
28
+ base.path += "/service/#{service_name}/operation/#{context.operation.name}"
29
+ end
30
+
31
+ def build_body(context)
32
+ Builder.new(context.operation.input).serialize(context.params)
33
+ end
34
+
35
+ def parse_body(context)
36
+ cbor = context.http_response.body_contents
37
+ if (rules = context.operation.output)
38
+ if cbor.is_a?(Array)
39
+ # an array of emitted events
40
+ if cbor[0].respond_to?(:response)
41
+ # initial response exists
42
+ # it must be the first event arrived
43
+ resp_struct = cbor.shift.response
44
+ else
45
+ resp_struct = context.operation.output.shape.struct_class.new
46
+ end
47
+
48
+ rules.shape.members.each do |name, ref|
49
+ if ref.eventstream
50
+ resp_struct.send("#{name}=", cbor.to_enum)
51
+ end
52
+ end
53
+ resp_struct
54
+ else
55
+ Parser.new(
56
+ rules,
57
+ query_compatible: query_compatible?(context)
58
+ ).parse(cbor)
59
+ end
60
+ else
61
+ EmptyStructure.new
62
+ end
63
+ end
64
+
65
+ def apply_request_id(context)
66
+ context[:request_id] = context.http_response.headers['x-amzn-requestid']
67
+ end
68
+
69
+ def query_compatible?(context)
70
+ context.config.api.metadata.key?('awsQueryCompatible')
71
+ end
72
+ end
73
+ end
74
+ end
@@ -0,0 +1,90 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'time'
4
+
5
+ module Aws
6
+ module RpcV2
7
+ class Parser
8
+ include Seahorse::Model::Shapes
9
+
10
+ # @param [Seahorse::Model::ShapeRef] rules
11
+ def initialize(rules, query_compatible: false)
12
+ @rules = rules
13
+ @query_compatible = query_compatible
14
+ end
15
+
16
+ def parse(cbor, target = nil)
17
+ return {} if cbor.empty?
18
+
19
+ parse_ref(@rules, Cbor.decode(cbor), target)
20
+ end
21
+
22
+ private
23
+
24
+ def structure(ref, values, target = nil)
25
+ shape = ref.shape
26
+ target = ref.shape.struct_class.new if target.nil?
27
+ values.each do |key, value|
28
+ member_name, member_ref = shape.member_by_location_name(key)
29
+ if member_ref
30
+ target[member_name] = parse_ref(member_ref, value)
31
+ elsif shape.union && key != '__type'
32
+ target[:unknown] = { 'name' => key, 'value' => value }
33
+ end
34
+ end
35
+ # In services that were previously Query/XML, members that were
36
+ # "flattened" defaulted to empty lists. In JSON, these values are nil,
37
+ # which is backwards incompatible. To preserve backwards compatibility,
38
+ # we set a default value of [] for these members.
39
+ if @query_compatible
40
+ ref.shape.members.each do |member_name, member_target|
41
+ next unless target[member_name].nil?
42
+
43
+ if flattened_list?(member_target.shape)
44
+ target[member_name] = []
45
+ elsif flattened_map?(member_target.shape)
46
+ target[member_name] = {}
47
+ end
48
+ end
49
+ end
50
+
51
+ if shape.union
52
+ # convert to subclass
53
+ member_subclass = shape.member_subclass(target.member).new
54
+ member_subclass[target.member] = target.value
55
+ target = member_subclass
56
+ end
57
+ target
58
+ end
59
+
60
+ def list(ref, values, target = nil)
61
+ target = [] if target.nil?
62
+ values.each do |value|
63
+ target << parse_ref(ref.shape.member, value)
64
+ end
65
+ target
66
+ end
67
+
68
+ def map(ref, values, target = nil)
69
+ target = {} if target.nil?
70
+ values.each do |key, value|
71
+ target[key] = parse_ref(ref.shape.value, value) unless value.nil?
72
+ end
73
+ target
74
+ end
75
+
76
+ def parse_ref(ref, value, target = nil)
77
+ if value.nil?
78
+ nil
79
+ else
80
+ case ref.shape
81
+ when StructureShape then structure(ref, value, target)
82
+ when ListShape then list(ref, value, target)
83
+ when MapShape then map(ref, value, target)
84
+ else value
85
+ end
86
+ end
87
+ end
88
+ end
89
+ end
90
+ end
@@ -0,0 +1,6 @@
1
+ require_relative 'cbor'
2
+ require_relative 'rpc_v2/handler'
3
+ require_relative 'rpc_v2/content_type_handler'
4
+ require_relative 'rpc_v2/error_handler'
5
+ require_relative 'rpc_v2/builder'
6
+ require_relative 'rpc_v2/parser'
@@ -198,6 +198,7 @@ module Aws
198
198
 
199
199
  config_reader(
200
200
  :region,
201
+ :sigv4a_signing_region_set,
201
202
  :ca_bundle,
202
203
  :credential_process,
203
204
  :endpoint_discovery_enabled,
@@ -0,0 +1,41 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Aws
4
+ module Stubbing
5
+ module Protocols
6
+ class RpcV2
7
+
8
+ def stub_data(api, operation, data)
9
+ resp = Seahorse::Client::Http::Response.new
10
+ resp.status_code = 200
11
+ resp.headers['Content-Type'] = content_type(api)
12
+ resp.headers['x-amzn-RequestId'] = 'stubbed-request-id'
13
+ resp.body = build_body(operation, data)
14
+ resp
15
+ end
16
+
17
+ def stub_error(error_code)
18
+ http_resp = Seahorse::Client::Http::Response.new
19
+ http_resp.status_code = 400
20
+ http_resp.body = <<-JSON.strip
21
+ {
22
+ "code": #{error_code.inspect},
23
+ "message": "stubbed-response-error-message"
24
+ }
25
+ JSON
26
+ http_resp
27
+ end
28
+
29
+ private
30
+
31
+ def content_type(api)
32
+ 'application/cbor'
33
+ end
34
+
35
+ def build_body(operation, data)
36
+ Aws::RpcV2::Builder.new(operation.output).serialize(data)
37
+ end
38
+ end
39
+ end
40
+ end
41
+ end
@@ -4,7 +4,7 @@ require 'cgi'
4
4
 
5
5
  module Aws
6
6
  module Xml
7
- class ErrorHandler < Seahorse::Client::Handler
7
+ class ErrorHandler < Aws::ErrorHandler
8
8
 
9
9
  def call(context)
10
10
  @handler.call(context).on(300..599) do |response|
@@ -15,32 +15,19 @@ 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
- errors_module.error_class(code).new(context, message, data)
30
- end
31
-
32
18
  def extract_error(body, context)
19
+ context[:request_id] = request_id(body)
33
20
  code = error_code(body, context)
34
21
  [
35
22
  code,
36
23
  error_message(body),
37
- error_data(context, code)
24
+ error_data(context, body, code)
38
25
  ]
39
26
  end
40
27
 
41
- def error_data(context, code)
28
+ def error_data(context, body, code)
42
29
  data = EmptyStructure.new
43
- if error_rules = context.operation.errors
30
+ if (error_rules = context.operation.errors)
44
31
  error_rules.each do |rule|
45
32
  # query protocol may have custom error code
46
33
  # reference: https://smithy.io/2.0/aws/protocols/aws-query-protocol.html#error-code-resolution
@@ -48,7 +35,7 @@ module Aws
48
35
  match = (code == error_shape_code || code == rule.shape.name)
49
36
  next unless match && rule.shape.members.any?
50
37
 
51
- data = parse_error_data(rule, context.http_response.body_contents)
38
+ data = parse_error_data(rule, body)
52
39
  # supporting HTTP bindings
53
40
  apply_error_headers(rule, context, data)
54
41
  end
@@ -62,7 +49,7 @@ module Aws
62
49
  # errors may nested under <Errors><Error>structure_data</Error></Errors>
63
50
  # Or may be flat and under <Error>structure_data</Error>
64
51
  body = body.tr("\n", '')
65
- if matches = body.match(/<Error>(.+?)<\/Error>/)
52
+ if (matches = body.match(/<Error>(.+?)<\/Error>/))
66
53
  Parser.new(rule).parse("<#{rule.shape.name}>#{matches[1]}</#{rule.shape.name}>")
67
54
  else
68
55
  EmptyStructure.new
@@ -75,28 +62,15 @@ module Aws
75
62
  end
76
63
 
77
64
  def error_code(body, context)
78
- if matches = body.match(/<Code>(.+?)<\/Code>/)
65
+ if (matches = body.match(/<Code>(.+?)<\/Code>/))
79
66
  remove_prefix(unescape(matches[1]), context)
80
67
  else
81
68
  http_status_error_code(context)
82
69
  end
83
70
  end
84
71
 
85
- def http_status_error_code(context)
86
- status_code = context.http_response.status_code
87
- {
88
- 302 => 'MovedTemporarily',
89
- 304 => 'NotModified',
90
- 400 => 'BadRequest',
91
- 403 => 'Forbidden',
92
- 404 => 'NotFound',
93
- 412 => 'PreconditionFailed',
94
- 413 => 'RequestEntityTooLarge',
95
- }[status_code] || "Http#{status_code}Error"
96
- end
97
-
98
72
  def remove_prefix(error_code, context)
99
- if prefix = context.config.api.metadata['errorPrefix']
73
+ if (prefix = context.config.api.metadata['errorPrefix'])
100
74
  error_code.sub(/^#{prefix}/, '')
101
75
  else
102
76
  error_code
@@ -104,7 +78,7 @@ module Aws
104
78
  end
105
79
 
106
80
  def error_message(body)
107
- if matches = body.match(/<Message>(.+?)<\/Message>/m)
81
+ if (matches = body.match(/<Message>(.+?)<\/Message>/m))
108
82
  unescape(matches[1])
109
83
  else
110
84
  ''
@@ -112,7 +86,7 @@ module Aws
112
86
  end
113
87
 
114
88
  def request_id(body)
115
- if matches = body.match(/<RequestId>(.+?)<\/RequestId>/m)
89
+ if (matches = body.match(/<RequestId>(.+?)<\/RequestId>/m))
116
90
  matches[1]
117
91
  end
118
92
  end
@@ -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/engines/#{name}"
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
 
@@ -89,6 +89,11 @@ module Aws::SSO
89
89
 
90
90
  # @overload initialize(options)
91
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
+ #
92
97
  # @option options [required, Aws::CredentialProvider] :credentials
93
98
  # Your AWS credentials. This can be an instance of any one of the
94
99
  # following classes:
@@ -209,7 +214,6 @@ module Aws::SSO
209
214
  # 'https://example.com'
210
215
  # 'http://example.com:123'
211
216
  #
212
- #
213
217
  # @option options [Integer] :endpoint_cache_max_entries (1000)
214
218
  # Used for the maximum size limit of the LRU cache storing endpoints data
215
219
  # for endpoint discovery enabled operations. Defaults to 1000.
@@ -298,7 +302,6 @@ module Aws::SSO
298
302
  # throttling. This is a provisional mode that may change behavior
299
303
  # in the future.
300
304
  #
301
- #
302
305
  # @option options [String] :sdk_ua_app_id
303
306
  # A unique and opaque application ID that is appended to the
304
307
  # User-Agent header as app/sdk_ua_app_id. It should have a
@@ -309,6 +312,15 @@ module Aws::SSO
309
312
  #
310
313
  # @option options [String] :session_token
311
314
  #
315
+ # @option options [Array] :sigv4a_signing_region_set
316
+ # A list of regions that should be signed with SigV4a signing. When
317
+ # not passed, a default `:sigv4a_signing_region_set` is searched for
318
+ # in the following locations:
319
+ #
320
+ # * `Aws.config[:sigv4a_signing_region_set]`
321
+ # * `ENV['AWS_SIGV4A_SIGNING_REGION_SET']`
322
+ # * `~/.aws/config`
323
+ #
312
324
  # @option options [Boolean] :stub_responses (false)
313
325
  # Causes the client to return stubbed responses. By default
314
326
  # fake responses are generated and returned. You can specify
@@ -630,7 +642,7 @@ module Aws::SSO
630
642
  params: params,
631
643
  config: config)
632
644
  context[:gem_name] = 'aws-sdk-core'
633
- context[:gem_version] = '3.197.0'
645
+ context[:gem_version] = '3.201.0'
634
646
  Seahorse::Client::Request.new(handlers, context)
635
647
  end
636
648
 
@@ -111,9 +111,11 @@ module Aws::SSO
111
111
 
112
112
  api.metadata = {
113
113
  "apiVersion" => "2019-06-10",
114
+ "auth" => ["aws.auth#sigv4"],
114
115
  "endpointPrefix" => "portal.sso",
115
116
  "jsonVersion" => "1.1",
116
117
  "protocol" => "rest-json",
118
+ "protocols" => ["rest-json"],
117
119
  "serviceAbbreviation" => "SSO",
118
120
  "serviceFullName" => "AWS Single Sign-On",
119
121
  "serviceId" => "SSO",
@@ -127,6 +129,7 @@ module Aws::SSO
127
129
  o.http_method = "GET"
128
130
  o.http_request_uri = "/federation/credentials"
129
131
  o['authtype'] = "none"
132
+ o['auth'] = ["smithy.api#noAuth"]
130
133
  o.input = Shapes::ShapeRef.new(shape: GetRoleCredentialsRequest)
131
134
  o.output = Shapes::ShapeRef.new(shape: GetRoleCredentialsResponse)
132
135
  o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
@@ -140,6 +143,7 @@ module Aws::SSO
140
143
  o.http_method = "GET"
141
144
  o.http_request_uri = "/assignment/roles"
142
145
  o['authtype'] = "none"
146
+ o['auth'] = ["smithy.api#noAuth"]
143
147
  o.input = Shapes::ShapeRef.new(shape: ListAccountRolesRequest)
144
148
  o.output = Shapes::ShapeRef.new(shape: ListAccountRolesResponse)
145
149
  o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
@@ -159,6 +163,7 @@ module Aws::SSO
159
163
  o.http_method = "GET"
160
164
  o.http_request_uri = "/assignment/accounts"
161
165
  o['authtype'] = "none"
166
+ o['auth'] = ["smithy.api#noAuth"]
162
167
  o.input = Shapes::ShapeRef.new(shape: ListAccountsRequest)
163
168
  o.output = Shapes::ShapeRef.new(shape: ListAccountsResponse)
164
169
  o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
@@ -178,6 +183,7 @@ module Aws::SSO
178
183
  o.http_method = "POST"
179
184
  o.http_request_uri = "/logout"
180
185
  o['authtype'] = "none"
186
+ o['auth'] = ["smithy.api#noAuth"]
181
187
  o.input = Shapes::ShapeRef.new(shape: LogoutRequest)
182
188
  o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
183
189
  o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
data/lib/aws-sdk-sso.rb CHANGED
@@ -54,6 +54,6 @@ require_relative 'aws-sdk-sso/customizations'
54
54
  # @!group service
55
55
  module Aws::SSO
56
56
 
57
- GEM_VERSION = '3.197.0'
57
+ GEM_VERSION = '3.201.0'
58
58
 
59
59
  end
@@ -89,6 +89,11 @@ module Aws::SSOOIDC
89
89
 
90
90
  # @overload initialize(options)
91
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
+ #
92
97
  # @option options [required, Aws::CredentialProvider] :credentials
93
98
  # Your AWS credentials. This can be an instance of any one of the
94
99
  # following classes:
@@ -209,7 +214,6 @@ module Aws::SSOOIDC
209
214
  # 'https://example.com'
210
215
  # 'http://example.com:123'
211
216
  #
212
- #
213
217
  # @option options [Integer] :endpoint_cache_max_entries (1000)
214
218
  # Used for the maximum size limit of the LRU cache storing endpoints data
215
219
  # for endpoint discovery enabled operations. Defaults to 1000.
@@ -298,7 +302,6 @@ module Aws::SSOOIDC
298
302
  # throttling. This is a provisional mode that may change behavior
299
303
  # in the future.
300
304
  #
301
- #
302
305
  # @option options [String] :sdk_ua_app_id
303
306
  # A unique and opaque application ID that is appended to the
304
307
  # User-Agent header as app/sdk_ua_app_id. It should have a
@@ -309,6 +312,15 @@ module Aws::SSOOIDC
309
312
  #
310
313
  # @option options [String] :session_token
311
314
  #
315
+ # @option options [Array] :sigv4a_signing_region_set
316
+ # A list of regions that should be signed with SigV4a signing. When
317
+ # not passed, a default `:sigv4a_signing_region_set` is searched for
318
+ # in the following locations:
319
+ #
320
+ # * `Aws.config[:sigv4a_signing_region_set]`
321
+ # * `ENV['AWS_SIGV4A_SIGNING_REGION_SET']`
322
+ # * `~/.aws/config`
323
+ #
312
324
  # @option options [Boolean] :stub_responses (false)
313
325
  # Causes the client to return stubbed responses. By default
314
326
  # fake responses are generated and returned. You can specify
@@ -983,7 +995,7 @@ module Aws::SSOOIDC
983
995
  params: params,
984
996
  config: config)
985
997
  context[:gem_name] = 'aws-sdk-core'
986
- context[:gem_version] = '3.197.0'
998
+ context[:gem_version] = '3.201.0'
987
999
  Seahorse::Client::Request.new(handlers, context)
988
1000
  end
989
1001
 
@@ -207,6 +207,7 @@ module Aws::SSOOIDC
207
207
 
208
208
  api.metadata = {
209
209
  "apiVersion" => "2019-06-10",
210
+ "auth" => ["aws.auth#sigv4"],
210
211
  "endpointPrefix" => "oidc",
211
212
  "jsonVersion" => "1.1",
212
213
  "protocol" => "rest-json",
@@ -224,6 +225,7 @@ module Aws::SSOOIDC
224
225
  o.http_method = "POST"
225
226
  o.http_request_uri = "/token"
226
227
  o['authtype'] = "none"
228
+ o['auth'] = ["smithy.api#noAuth"]
227
229
  o.input = Shapes::ShapeRef.new(shape: CreateTokenRequest)
228
230
  o.output = Shapes::ShapeRef.new(shape: CreateTokenResponse)
229
231
  o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
@@ -264,6 +266,7 @@ module Aws::SSOOIDC
264
266
  o.http_method = "POST"
265
267
  o.http_request_uri = "/client/register"
266
268
  o['authtype'] = "none"
269
+ o['auth'] = ["smithy.api#noAuth"]
267
270
  o.input = Shapes::ShapeRef.new(shape: RegisterClientRequest)
268
271
  o.output = Shapes::ShapeRef.new(shape: RegisterClientResponse)
269
272
  o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
@@ -279,6 +282,7 @@ module Aws::SSOOIDC
279
282
  o.http_method = "POST"
280
283
  o.http_request_uri = "/device_authorization"
281
284
  o['authtype'] = "none"
285
+ o['auth'] = ["smithy.api#noAuth"]
282
286
  o.input = Shapes::ShapeRef.new(shape: StartDeviceAuthorizationRequest)
283
287
  o.output = Shapes::ShapeRef.new(shape: StartDeviceAuthorizationResponse)
284
288
  o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
@@ -54,6 +54,6 @@ require_relative 'aws-sdk-ssooidc/customizations'
54
54
  # @!group service
55
55
  module Aws::SSOOIDC
56
56
 
57
- GEM_VERSION = '3.197.0'
57
+ GEM_VERSION = '3.201.0'
58
58
 
59
59
  end
@@ -91,6 +91,11 @@ module Aws::STS
91
91
 
92
92
  # @overload initialize(options)
93
93
  # @param [Hash] options
94
+ #
95
+ # @option options [Array<Seahorse::Client::Plugin>] :plugins ([]])
96
+ # A list of plugins to apply to the client. Each plugin is either a
97
+ # class name or an instance of a plugin class.
98
+ #
94
99
  # @option options [required, Aws::CredentialProvider] :credentials
95
100
  # Your AWS credentials. This can be an instance of any one of the
96
101
  # following classes:
@@ -211,7 +216,6 @@ module Aws::STS
211
216
  # 'https://example.com'
212
217
  # 'http://example.com:123'
213
218
  #
214
- #
215
219
  # @option options [Integer] :endpoint_cache_max_entries (1000)
216
220
  # Used for the maximum size limit of the LRU cache storing endpoints data
217
221
  # for endpoint discovery enabled operations. Defaults to 1000.
@@ -300,7 +304,6 @@ module Aws::STS
300
304
  # throttling. This is a provisional mode that may change behavior
301
305
  # in the future.
302
306
  #
303
- #
304
307
  # @option options [String] :sdk_ua_app_id
305
308
  # A unique and opaque application ID that is appended to the
306
309
  # User-Agent header as app/sdk_ua_app_id. It should have a
@@ -311,6 +314,15 @@ module Aws::STS
311
314
  #
312
315
  # @option options [String] :session_token
313
316
  #
317
+ # @option options [Array] :sigv4a_signing_region_set
318
+ # A list of regions that should be signed with SigV4a signing. When
319
+ # not passed, a default `:sigv4a_signing_region_set` is searched for
320
+ # in the following locations:
321
+ #
322
+ # * `Aws.config[:sigv4a_signing_region_set]`
323
+ # * `ENV['AWS_SIGV4A_SIGNING_REGION_SET']`
324
+ # * `~/.aws/config`
325
+ #
314
326
  # @option options [String] :sts_regional_endpoints ("regional")
315
327
  # Passing in 'regional' to enable regional endpoint for STS for all supported
316
328
  # regions (except 'aws-global'). Using 'legacy' mode will force all legacy
@@ -2377,7 +2389,7 @@ module Aws::STS
2377
2389
  params: params,
2378
2390
  config: config)
2379
2391
  context[:gem_name] = 'aws-sdk-core'
2380
- context[:gem_version] = '3.197.0'
2392
+ context[:gem_version] = '3.201.0'
2381
2393
  Seahorse::Client::Request.new(handlers, context)
2382
2394
  end
2383
2395
 
@@ -251,9 +251,11 @@ module Aws::STS
251
251
 
252
252
  api.metadata = {
253
253
  "apiVersion" => "2011-06-15",
254
+ "auth" => ["aws.auth#sigv4"],
254
255
  "endpointPrefix" => "sts",
255
256
  "globalEndpoint" => "sts.amazonaws.com",
256
257
  "protocol" => "query",
258
+ "protocols" => ["query"],
257
259
  "serviceAbbreviation" => "AWS STS",
258
260
  "serviceFullName" => "AWS Security Token Service",
259
261
  "serviceId" => "STS",
@@ -278,7 +280,7 @@ module Aws::STS
278
280
  o.name = "AssumeRoleWithSAML"
279
281
  o.http_method = "POST"
280
282
  o.http_request_uri = "/"
281
- o['authtype'] = "none"
283
+ o['auth'] = ["smithy.api#noAuth"]
282
284
  o.input = Shapes::ShapeRef.new(shape: AssumeRoleWithSAMLRequest)
283
285
  o.output = Shapes::ShapeRef.new(shape: AssumeRoleWithSAMLResponse)
284
286
  o.errors << Shapes::ShapeRef.new(shape: MalformedPolicyDocumentException)
@@ -293,7 +295,7 @@ module Aws::STS
293
295
  o.name = "AssumeRoleWithWebIdentity"
294
296
  o.http_method = "POST"
295
297
  o.http_request_uri = "/"
296
- o['authtype'] = "none"
298
+ o['auth'] = ["smithy.api#noAuth"]
297
299
  o.input = Shapes::ShapeRef.new(shape: AssumeRoleWithWebIdentityRequest)
298
300
  o.output = Shapes::ShapeRef.new(shape: AssumeRoleWithWebIdentityResponse)
299
301
  o.errors << Shapes::ShapeRef.new(shape: MalformedPolicyDocumentException)