aws-sdk-s3 1.84.0 → 1.84.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: 6ff4352e5e70697da613eeb5eec4054645a60fd936ca0024764e5b85e0e1b8cc
4
- data.tar.gz: c557b42a3ba8ab9f83b7d33ff721e018fd00b709bd42c82d1755297374fd4601
3
+ metadata.gz: 152630b0a9acb1b213eb0793432bbf020129fa5ba436128ec2cc8bf404895c99
4
+ data.tar.gz: 32352566fbee102dd684a37205b3a90ee9a6d0736ec6a106aa112540ba7d081b
5
5
  SHA512:
6
- metadata.gz: 38c719216cb05f94ec1f238db3a6a79be523eccf8e7e0510acf1dd53f163ac462468d1e0c985579476eed7ebaca9691ab032a11495a92355b40ddf0dee2a2225
7
- data.tar.gz: 80091bcad3210f6d53656a13a5fb69afd570bc0c6e6c8dc216e92810ba9f3556b9cc67974bdef1545f2421d72ffa2ae4183c55db0a54388d88fb0271e2a9ae99
6
+ metadata.gz: 410beb9c8e6e673bda33f020f01bd6bbdb9e848d309e2ed732263b2ac09c708023591a08084bea78223aacb45f4b48980234060d6ef63778d04c261f837e862c
7
+ data.tar.gz: 9e97114d1b6044c44715744b56856678ff0509d11270fb3ebbb7a4dd9fa5af55d9e085c316af9d2bf4ca6e36be342240b9241d4352896709f8961356b88f0b5e
@@ -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.84.0'
72
+ GEM_VERSION = '1.84.1'
73
73
 
74
74
  end
@@ -13455,7 +13455,7 @@ module Aws::S3
13455
13455
  params: params,
13456
13456
  config: config)
13457
13457
  context[:gem_name] = 'aws-sdk-s3'
13458
- context[:gem_version] = '1.84.0'
13458
+ context[:gem_version] = '1.84.1'
13459
13459
  Seahorse::Client::Request.new(handlers, context)
13460
13460
  end
13461
13461
 
@@ -82,7 +82,7 @@ module Aws
82
82
 
83
83
  if arn
84
84
  S3Signer.build_v4_signer(
85
- service: arn.respond_to?(:outpost_id) ? 's3-outposts' : 's3',
85
+ service: arn.service,
86
86
  region: resolved_region,
87
87
  credentials: context.config.credentials
88
88
  )
@@ -196,7 +196,7 @@ module Aws
196
196
  req.handlers.remove(Aws::S3::Plugins::S3Signer::V4Handler)
197
197
  req.handlers.remove(Seahorse::Client::Plugins::ContentLength::Handler)
198
198
 
199
- signer = build_signer(req.context.config, unsigned_headers)
199
+ signer = build_signer(req.context, unsigned_headers)
200
200
 
201
201
  req.handle(step: :send) do |context|
202
202
  if scheme != http_req.endpoint.scheme
@@ -240,14 +240,27 @@ module Aws
240
240
  x_amz_headers
241
241
  end
242
242
 
243
- def build_signer(cfg, unsigned_headers)
244
- Aws::Sigv4::Signer.new(
243
+ def build_signer(context, unsigned_headers)
244
+ signer_opts = {
245
245
  service: 's3',
246
- region: cfg.region,
247
- credentials_provider: cfg.credentials,
246
+ region: context.config.region,
247
+ credentials_provider: context.config.credentials,
248
248
  unsigned_headers: unsigned_headers,
249
249
  uri_escape_path: false
250
+ }
251
+
252
+ resolved_region, arn = Aws::S3::Plugins::ARN.resolve_arn!(
253
+ context.params[:bucket],
254
+ context.config.sigv4_signer.region,
255
+ context.config.s3_use_arn_region
250
256
  )
257
+
258
+ if arn
259
+ signer_opts[:region] = resolved_region
260
+ signer_opts[:service] = arn.service
261
+ end
262
+
263
+ Aws::Sigv4::Signer.new(signer_opts)
251
264
  end
252
265
  end
253
266
  end
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.84.0
4
+ version: 1.84.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: 2020-11-09 00:00:00.000000000 Z
11
+ date: 2020-11-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-kms