aws-sdk-s3 1.58.0 → 1.59.0

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
  SHA1:
3
- metadata.gz: d2f943e8db73ca607d75f48575b45f13660590cd
4
- data.tar.gz: adf442e23d77ae9238960934527fa83129e01123
3
+ metadata.gz: 56a084b264a62ecd413e0981f9132eda98a997a1
4
+ data.tar.gz: 78b93ead5b67220e64d60718b4d698680c29be0a
5
5
  SHA512:
6
- metadata.gz: 7ff2036eac9219d96381fd12e9b208c444ee00d848a0f6206c41af45fd6b68221ecc60a9e71f707190c9d9f515deb9d07674849a9bfd545cebc52b75b4a5b669
7
- data.tar.gz: 0d47510d1e30c70784268ddd1b98d23efdc6316b1334a479e112b8fec645af2da89aeba7afdd947ba7596ea157b881e7ffda9178df91fe74d49ad62eb0d2b868
6
+ metadata.gz: 35366f62816b3fe599b3d458d1c82d563fcc9bd8c3bb8140c3cdd0ccb3ebb6d870e2daf31cede1dc42cc44b038a16dbd18f341ae67ad4cade2bc994cbf0d4da8
7
+ data.tar.gz: 4176091e22f65685143e705277df35d981bd88bd95d281bfa0a1763547a5928e2ddf8451d2d1a40b962d71eec99a051458c8cf9b2c0e515814b2175eff28c6e4
@@ -63,6 +63,6 @@ require_relative 'aws-sdk-s3/event_streams'
63
63
  # @service
64
64
  module Aws::S3
65
65
 
66
- GEM_VERSION = '1.58.0'
66
+ GEM_VERSION = '1.59.0'
67
67
 
68
68
  end
@@ -11693,7 +11693,7 @@ module Aws::S3
11693
11693
  params: params,
11694
11694
  config: config)
11695
11695
  context[:gem_name] = 'aws-sdk-s3'
11696
- context[:gem_version] = '1.58.0'
11696
+ context[:gem_version] = '1.59.0'
11697
11697
  Seahorse::Client::Request.new(handlers, context)
11698
11698
  end
11699
11699
 
@@ -25,7 +25,7 @@ the S3 ARN.
25
25
  def call(context)
26
26
  bucket_member = _bucket_member(context.operation.input.shape)
27
27
  if bucket_member && (bucket = context.params[bucket_member])
28
- _resolved_bucket, resolved_region, arn = BucketARN.resolve_arn!(
28
+ _resolved_bucket, _resolved_region, arn = BucketARN.resolve_arn!(
29
29
  bucket,
30
30
  context.config.region,
31
31
  context.config.s3_use_arn_region
@@ -33,7 +33,6 @@ the S3 ARN.
33
33
  if arn
34
34
  if arn.resource.start_with?('accesspoint')
35
35
  validate_config!(context.config)
36
- context.config.region = resolved_region
37
36
  end
38
37
 
39
38
  dualstack = extract_dualstack_config!(context)
@@ -199,15 +199,23 @@ module Aws
199
199
  end
200
200
 
201
201
  def new_hostname(context, region)
202
- bucket = context.params[:bucket]
203
- if region == 'us-east-1'
204
- "#{bucket}.s3.amazonaws.com"
202
+ # Check to see if the bucket is actually an ARN and resolve it
203
+ # Otherwise it will retry with the ARN as the bucket name.
204
+ resolved_bucket, resolved_region, arn = BucketARN.resolve_arn!(
205
+ context.params[:bucket],
206
+ region,
207
+ context.config.s3_use_arn_region
208
+ )
209
+ uri = URI.parse(
210
+ Aws::Partitions::EndpointProvider.resolve(resolved_region, 's3')
211
+ )
212
+
213
+ if arn
214
+ BucketARN.resolve_url!(uri, arn).host
205
215
  else
206
- endpoint = Aws::Partitions::EndpointProvider.resolve(region, 's3')
207
- bucket + '.' + URI.parse(endpoint).host
216
+ resolved_bucket + '.' + uri.host
208
217
  end
209
218
  end
210
-
211
219
  end
212
220
  end
213
221
  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.58.0
4
+ version: 1.59.0
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: 2019-12-03 00:00:00.000000000 Z
11
+ date: 2019-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-kms
@@ -47,7 +47,7 @@ dependencies:
47
47
  version: '3'
48
48
  - - ">="
49
49
  - !ruby/object:Gem::Version
50
- version: 3.77.0
50
+ version: 3.83.0
51
51
  type: :runtime
52
52
  prerelease: false
53
53
  version_requirements: !ruby/object:Gem::Requirement
@@ -57,7 +57,7 @@ dependencies:
57
57
  version: '3'
58
58
  - - ">="
59
59
  - !ruby/object:Gem::Version
60
- version: 3.77.0
60
+ version: 3.83.0
61
61
  description: Official AWS Ruby gem for Amazon Simple Storage Service (Amazon S3).
62
62
  This gem is part of the AWS SDK for Ruby.
63
63
  email: