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 +4 -4
- data/lib/aws-sdk-s3.rb +1 -1
- data/lib/aws-sdk-s3/client.rb +1 -1
- data/lib/aws-sdk-s3/plugins/bucket_arn.rb +1 -2
- data/lib/aws-sdk-s3/plugins/s3_signer.rb +14 -6
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 56a084b264a62ecd413e0981f9132eda98a997a1
|
4
|
+
data.tar.gz: 78b93ead5b67220e64d60718b4d698680c29be0a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35366f62816b3fe599b3d458d1c82d563fcc9bd8c3bb8140c3cdd0ccb3ebb6d870e2daf31cede1dc42cc44b038a16dbd18f341ae67ad4cade2bc994cbf0d4da8
|
7
|
+
data.tar.gz: 4176091e22f65685143e705277df35d981bd88bd95d281bfa0a1763547a5928e2ddf8451d2d1a40b962d71eec99a051458c8cf9b2c0e515814b2175eff28c6e4
|
data/lib/aws-sdk-s3.rb
CHANGED
data/lib/aws-sdk-s3/client.rb
CHANGED
@@ -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.
|
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,
|
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
|
203
|
-
|
204
|
-
|
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
|
-
|
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.
|
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-
|
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.
|
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.
|
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:
|