aws-sdk-core 3.214.1 → 3.220.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 99d23d77dd74ca639579a7a2b7aab408659ad813b8e767b0ab0b6a5e43aed50d
4
- data.tar.gz: ea6ada6b8cf80e872f985fc5e289b2cb1a17ab49e34d373f764d01da490af825
3
+ metadata.gz: 5588a014909c08a1e078b71e8fd2040352bb8027fd12e8adcc51307da9b34dd0
4
+ data.tar.gz: '08ac91ce9d5da41d39286d475b8ec046ee1e3979b111e588413ec5dd903856b1'
5
5
  SHA512:
6
- metadata.gz: 5d22bc46279b4f56fc95750e3dc771b5dea133a358a3b2750a4216969ec5e93ae7c9c134107eba6a2f496a1b59f9c2f020bcf58770eb9cc96e6046b9bd17f4d7
7
- data.tar.gz: f678aa56840d77c47824e38e633763a9a94697750c395aeaa9220987ce852adbc32684f213e68230f3e3e9320b4d444f2179ea13965de8b70f1387ef0bd26aac
6
+ metadata.gz: d0dffd7227a6d5e89b07b1599ff087dbcb3dafc893675f29ca536908ce89d3aec9e3e0ed316bee786cb2dbc0aa9afc659ae711ae720351334dc8a3ed94c5b6df
7
+ data.tar.gz: d3643e605e3be3267d30d13a6a7531da0966c86dabb3387b0f5538793cac29c1774d9c6e3cb66e1e71b2bcb9219b68706691e11a0fe932dd1d9c1a37bd01df3f
data/CHANGELOG.md CHANGED
@@ -1,6 +1,90 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 3.220.2 (2025-03-20)
5
+ ------------------
6
+
7
+ * Issue - Enable ALPN over TLS for H2 by default.
8
+
9
+ 3.220.1 (2025-03-06)
10
+ ------------------
11
+
12
+ * Issue - Convert stubs at request time.
13
+
14
+ 3.220.0 (2025-03-04)
15
+ ------------------
16
+
17
+ * Feature - Updated Aws::STS::Client with the latest API changes.
18
+
19
+ 3.219.0 (2025-02-18)
20
+ ------------------
21
+
22
+ * Feature - Updated Aws::STS::Client with the latest API changes.
23
+
24
+ * Feature - Updated Aws::SSOOIDC::Client with the latest API changes.
25
+
26
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
27
+
28
+ 3.218.1 (2025-02-07)
29
+ ------------------
30
+
31
+ * Issue - Add handling of block in ExtendedSession delegation (#3178).
32
+
33
+ 3.218.0 (2025-02-06)
34
+ ------------------
35
+
36
+ * Feature - Updated Aws::STS::Client with the latest API changes.
37
+
38
+ * Feature - Updated Aws::SSOOIDC::Client with the latest API changes.
39
+
40
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
41
+
42
+ 3.217.1 (2025-01-30)
43
+ ------------------
44
+
45
+ * Issue - Add `transfer-encoding` and `connection` to list of unsigned sigv4 headers.
46
+
47
+ 3.217.0 (2025-01-24)
48
+ ------------------
49
+
50
+ * Feature - Updated Aws::SSOOIDC::Client with the latest API changes.
51
+
52
+ * Feature - Fixed typos in the descriptions.
53
+
54
+ 3.216.1 (2025-01-22)
55
+ ------------------
56
+
57
+ * Issue - Use epoch seconds instead of milliseconds in cbor encode/decode.
58
+
59
+ * Issue - Add handling of block in response delegation (#3169).
60
+
61
+ 3.216.0 (2025-01-15)
62
+ ------------------
63
+
64
+ * Feature - Updated Aws::STS::Client with the latest API changes.
65
+
66
+ * Feature - Updated Aws::SSOOIDC::Client with the latest API changes.
67
+
68
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
69
+
70
+ * Feature - Always calculate request checksums for operations that support or require it. Supported config options are `when_supported` and `when_required`. The default value is `when_supported`. This option is configured in code with `:request_checksum_calculation`, in the shared config file as `request_checksum_calculation`, and in the ENV as `ENV['AWS_REQUEST_CHECKSUM_CALCULATION']`.
71
+
72
+ * Feature - Always validate response checksums for operations that support or require it. Supported config options are `when_supported` and `when_required`. The default value is `when_supported`. This option is configured in code with `:response_checksum_validation`, in the shared config file as `response_checksum_validation`, and in the ENV as `ENV['AWS_RESPONSE_CHECKSUM_VALIDATION']`.
73
+
74
+ * Feature - Support CRC64NVME checksums through the `aws-crt` gem.
75
+
76
+ 3.215.1 (2025-01-14)
77
+ ------------------
78
+
79
+ * Issue - Fixed error when attempting to log an unlinked tempfile.
80
+
81
+ 3.215.0 (2025-01-10)
82
+ ------------------
83
+
84
+ * Feature - Updated Aws::STS::Client with the latest API changes.
85
+
86
+ * Feature - Fixed typos in the descriptions.
87
+
4
88
  3.214.1 (2024-12-28)
5
89
  ------------------
6
90
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.214.1
1
+ 3.220.2
@@ -61,9 +61,7 @@ module Aws
61
61
  when :tag
62
62
  case (tag = read_tag)
63
63
  when TAG_TYPE_EPOCH
64
- type = peek_type
65
64
  item = decode_item
66
- item /= 1000.0 if type == :integer
67
65
  Time.at(item)
68
66
  when TAG_TYPE_BIGNUM, TAG_TYPE_NEG_BIGNUM
69
67
  read_bignum(tag)
@@ -226,8 +226,8 @@ module Aws
226
226
 
227
227
  def add_time(value)
228
228
  head(MAJOR_TYPE_TAG, TAG_TYPE_EPOCH)
229
- epoch_ms = (value.to_f * 1000).to_i
230
- add_integer(epoch_ms)
229
+ epoch = value.to_f
230
+ add_double(epoch)
231
231
  end
232
232
 
233
233
  def bignum_to_bytes(value)
@@ -15,27 +15,11 @@ module Aws
15
15
 
16
16
  # @api private
17
17
  def setup_stubbing
18
- @stubs = {}
19
- @stub_mutex = Mutex.new
20
18
  if Hash === @config.stub_responses
21
19
  @config.stub_responses.each do |operation_name, stubs|
22
20
  apply_stubs(operation_name, Array === stubs ? stubs : [stubs])
23
21
  end
24
22
  end
25
-
26
- # When a client is stubbed allow the user to access the requests made
27
- requests = @api_requests = []
28
- requests_mutex = @requests_mutex = Mutex.new
29
- self.handle do |context|
30
- requests_mutex.synchronize do
31
- requests << {
32
- operation_name: context.operation_name,
33
- params: context.params,
34
- context: context
35
- }
36
- end
37
- @handler.call(context)
38
- end
39
23
  end
40
24
 
41
25
  # Configures what data / errors should be returned from the named operation
@@ -175,7 +159,7 @@ module Aws
175
159
  # on a client that has not enabled response stubbing via
176
160
  # `:stub_responses => true`.
177
161
  def stub_responses(operation_name, *stubs)
178
- if config.stub_responses
162
+ if @config.stub_responses
179
163
  apply_stubs(operation_name, stubs.flatten)
180
164
  else
181
165
  msg = 'stubbing is not enabled; enable stubbing in the constructor '\
@@ -194,12 +178,12 @@ module Aws
194
178
  # @raise [NotImplementedError] Raises `NotImplementedError` when the client
195
179
  # is not stubbed.
196
180
  def api_requests(options = {})
197
- if config.stub_responses
198
- @requests_mutex.synchronize do
181
+ if @config.stub_responses
182
+ @config.api_requests_mutex.synchronize do
199
183
  if options[:exclude_presign]
200
- @api_requests.reject {|req| req[:context][:presigned_url] }
184
+ @config.api_requests.reject {|req| req[:context][:presigned_url] }
201
185
  else
202
- @api_requests
186
+ @config.api_requests
203
187
  end
204
188
  end
205
189
  else
@@ -228,54 +212,44 @@ module Aws
228
212
  # @return [Structure] Returns a stubbed response data structure. The
229
213
  # actual class returned will depend on the given `operation_name`.
230
214
  def stub_data(operation_name, data = {})
231
- Stubbing::StubData.new(config.api.operation(operation_name)).stub(data)
215
+ Stubbing::StubData.new(@config.api.operation(operation_name)).stub(data)
232
216
  end
233
217
 
234
218
  # @api private
235
219
  def next_stub(context)
236
220
  operation_name = context.operation_name.to_sym
237
- stub = @stub_mutex.synchronize do
238
- stubs = @stubs[operation_name] || []
221
+ stub = @config.stubs_mutex.synchronize do
222
+ stubs = @config.stubs[operation_name] || []
239
223
  case stubs.length
240
- when 0 then default_stub(operation_name)
224
+ when 0 then stub_data(operation_name)
241
225
  when 1 then stubs.first
242
226
  else stubs.shift
243
227
  end
244
228
  end
245
- Proc === stub ? convert_stub(operation_name, stub.call(context)) : stub
229
+ stub = convert_stub(operation_name, stub, context)
230
+ stub[:mutex] = Mutex.new
231
+ stub
246
232
  end
247
233
 
248
234
  private
249
235
 
250
- def default_stub(operation_name)
251
- stub = stub_data(operation_name)
252
- http_response_stub(operation_name, stub)
236
+ def apply_stubs(operation_name, stubs)
237
+ @config.stubs_mutex.synchronize do
238
+ @config.stubs[operation_name.to_sym] = stubs
239
+ end
253
240
  end
254
241
 
255
242
  # This method converts the given stub data and converts it to a
256
243
  # HTTP response (when possible). This enables the response stubbing
257
244
  # plugin to provide a HTTP response that triggers all normal events
258
245
  # during response handling.
259
- def apply_stubs(operation_name, stubs)
260
- @stub_mutex.synchronize do
261
- @stubs[operation_name.to_sym] = stubs.map do |stub|
262
- convert_stub(operation_name, stub)
263
- end
264
- end
265
- end
266
-
267
- def convert_stub(operation_name, stub)
268
- stub = case stub
269
- when Proc then stub
246
+ def convert_stub(operation_name, stub, context)
247
+ case stub
248
+ when Proc then convert_stub(operation_name, stub.call(context), context)
270
249
  when Exception, Class then { error: stub }
271
250
  when String then service_error_stub(stub)
272
- when Hash then http_response_stub(operation_name, stub)
273
- else { data: stub }
274
- end
275
- if Hash === stub
276
- stub[:mutex] = Mutex.new
251
+ else http_response_stub(operation_name, stub)
277
252
  end
278
- stub
279
253
  end
280
254
 
281
255
  def service_error_stub(error_code)
@@ -299,14 +273,14 @@ module Aws
299
273
  end
300
274
 
301
275
  def data_to_http_resp(operation_name, data)
302
- api = config.api
276
+ api = @config.api
303
277
  operation = api.operation(operation_name)
304
278
  ParamValidator.new(operation.output, input: false).validate!(data)
305
279
  protocol_helper.stub_data(api, operation, data)
306
280
  end
307
281
 
308
282
  def protocol_helper
309
- case config.api.metadata['protocol']
283
+ case @config.api.metadata['protocol']
310
284
  when 'json' then Stubbing::Protocols::Json
311
285
  when 'rest-json' then Stubbing::Protocols::RestJson
312
286
  when 'rest-xml' then Stubbing::Protocols::RestXml
@@ -51,13 +51,17 @@ module Aws
51
51
  when String then summarize_string(value)
52
52
  when Hash then '{' + summarize_hash(value) + '}'
53
53
  when Array then summarize_array(value)
54
- when File then summarize_file(value.path)
55
- when Pathname then summarize_file(value)
54
+ when File then summarize_file(value)
55
+ when Pathname then summarize_filepath(value)
56
56
  else value.inspect
57
57
  end
58
58
  end
59
59
 
60
- def summarize_file(path)
60
+ def summarize_file(file)
61
+ "#<File:#{file.path} (#{file.size} bytes)>"
62
+ end
63
+
64
+ def summarize_filepath(path)
61
65
  "#<File:#{path} (#{File.size(path)} bytes)>"
62
66
  end
63
67