aws-sdk-s3 1.94.0 → 1.94.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '094e61334fb27d9edd1666450c6a08902d650f172c03285254bffb967b9fa9ab'
4
- data.tar.gz: f864356a00540fac9606874ef3d754448354e9353a73ef8d337718534e218e1b
3
+ metadata.gz: 9ce5ec00762e55e690d481b9b204ed60e801ccb615a02dc75143a51c43cc4f71
4
+ data.tar.gz: 792694ad4064f09de5b5d505f46c5aeac024eb75dbfd2866294df01ff8bf2f6c
5
5
  SHA512:
6
- metadata.gz: e6355b5f02d3b3d68fbcb8c75787a767044dec23c1997ae0b3706d65faabf1a3fade04c951e042b4ae9528f4e4f9b113ba71ae0fbca3da69b09b632db5d887d0
7
- data.tar.gz: da2145f461223e7a53e15f3760a80f474add0024936798e0667b74642d57eee109e88f0fa067f7c24c8db5e31d8d3ac474cb2649ba44072523b4a1b617ce7379
6
+ metadata.gz: 9e968125f14dce1b6d3216c7429e0032a208812beb90e879be41c61b9dea09ecc9d87954d0aa81f324c7abd67facaf77b1e74b0fbe7869fcedf293a6f258c2ad
7
+ data.tar.gz: 694e1f8d67abe81aad12733d58442ff8fcca505cfce8b79941cd5d790e99c4dc23e52884984519a1c9709d0472c2301ea8ec00295bd4cb848609492937525255
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.94.1 (2021-05-05)
5
+ ------------------
6
+
7
+ * Issue - Expose presigned request status to the request handler stack #2513
8
+
4
9
  1.94.0 (2021-04-27)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.94.0
1
+ 1.94.1
data/lib/aws-sdk-s3.rb CHANGED
@@ -69,6 +69,6 @@ require_relative 'aws-sdk-s3/event_streams'
69
69
  # @!group service
70
70
  module Aws::S3
71
71
 
72
- GEM_VERSION = '1.94.0'
72
+ GEM_VERSION = '1.94.1'
73
73
 
74
74
  end
@@ -13910,7 +13910,7 @@ module Aws::S3
13910
13910
  params: params,
13911
13911
  config: config)
13912
13912
  context[:gem_name] = 'aws-sdk-s3'
13913
- context[:gem_version] = '1.94.0'
13913
+ context[:gem_version] = '1.94.1'
13914
13914
  Seahorse::Client::Request.new(handlers, context)
13915
13915
  end
13916
13916
 
@@ -138,6 +138,7 @@ module Aws
138
138
 
139
139
  req = @client.build_request(method, params)
140
140
  use_bucket_as_hostname(req) if virtual_host
141
+ handle_presigned_url_context(req)
141
142
 
142
143
  x_amz_headers = sign_but_dont_send(
143
144
  req, expires_in, scheme, time, unsigned_headers, hoist
@@ -183,6 +184,17 @@ module Aws
183
184
  end
184
185
  end
185
186
 
187
+ # Used for excluding presigned_urls from API request count.
188
+ #
189
+ # Store context information as early as possible, to allow
190
+ # handlers to perform decisions based on this flag if need.
191
+ def handle_presigned_url_context(req)
192
+ req.handle(step: :initialize, priority: 98) do |context|
193
+ context[:presigned_url] = true
194
+ @handler.call(context)
195
+ end
196
+ end
197
+
186
198
  # @param [Seahorse::Client::Request] req
187
199
  def sign_but_dont_send(
188
200
  req, expires_in, scheme, time, unsigned_headers, hoist = true
@@ -242,9 +254,6 @@ module Aws
242
254
  time: time
243
255
  ).to_s
244
256
 
245
- # Used for excluding presigned_urls from API request count
246
- context[:presigned_url] = true
247
-
248
257
  Seahorse::Client::Response.new(context: context, data: url)
249
258
  end
250
259
  # Return the headers
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-s3
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.94.0
4
+ version: 1.94.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: 2021-04-27 00:00:00.000000000 Z
11
+ date: 2021-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-kms