aws-sdk-s3 1.220.0 → 1.221.0
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 +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-s3/client.rb +1 -1
- data/lib/aws-sdk-s3/endpoint_provider.rb +6 -3
- data/lib/aws-sdk-s3.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1380f7f8dde3a683f46b0d08aae6508d48b1cc711047b96471a5eaef01e33133
|
|
4
|
+
data.tar.gz: 6cc13851ef2a442b97c7f541ff77e7fce19154ff78c69d23700cfbf635582a72
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e2009b9b5470edca28977176aa438c750c0b284d8a4e7c8dfe558f3ff4f415765e8666d90fc860701f88c7c101e03d4466011d087107ec4587d7dac854dbafa6
|
|
7
|
+
data.tar.gz: f147472f747032fb22091f81adb808212e550c8fb36d13c33e7bbcd80daf24412f988c18413374c8de10270fe250077fceb973a235ef49706953420eacb58650
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.221.0
|
data/lib/aws-sdk-s3/client.rb
CHANGED
|
@@ -23402,7 +23402,7 @@ module Aws::S3
|
|
|
23402
23402
|
tracer: tracer
|
|
23403
23403
|
)
|
|
23404
23404
|
context[:gem_name] = 'aws-sdk-s3'
|
|
23405
|
-
context[:gem_version] = '1.
|
|
23405
|
+
context[:gem_version] = '1.221.0'
|
|
23406
23406
|
Seahorse::Client::Request.new(handlers, context)
|
|
23407
23407
|
end
|
|
23408
23408
|
|
|
@@ -710,10 +710,13 @@ module Aws::S3
|
|
|
710
710
|
if (outpost_type = Aws::Endpoints::Matchers.attr(bucket_arn, "resourceId[2]"))
|
|
711
711
|
if (access_point_name = Aws::Endpoints::Matchers.attr(bucket_arn, "resourceId[3]"))
|
|
712
712
|
if Aws::Endpoints::Matchers.string_equals?(outpost_type, "accesspoint")
|
|
713
|
-
if Aws::Endpoints::Matchers.
|
|
714
|
-
|
|
713
|
+
if Aws::Endpoints::Matchers.valid_host_label?(access_point_name, false)
|
|
714
|
+
if Aws::Endpoints::Matchers.set?(parameters.endpoint) && (url = Aws::Endpoints::Matchers.parse_url(parameters.endpoint))
|
|
715
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{access_point_name}-#{bucket_arn['accountId']}.#{outpost_id}.#{url['authority']}", headers: {}, properties: {"authSchemes" => [{"disableDoubleEncoding" => true, "name" => "sigv4a", "signingName" => "s3-outposts", "signingRegionSet" => ["*"]}, {"disableDoubleEncoding" => true, "name" => "sigv4", "signingName" => "s3-outposts", "signingRegion" => "#{bucket_arn['region']}"}]})
|
|
716
|
+
end
|
|
717
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{access_point_name}-#{bucket_arn['accountId']}.#{outpost_id}.s3-outposts.#{bucket_arn['region']}.#{bucket_partition['dnsSuffix']}", headers: {}, properties: {"authSchemes" => [{"disableDoubleEncoding" => true, "name" => "sigv4a", "signingName" => "s3-outposts", "signingRegionSet" => ["*"]}, {"disableDoubleEncoding" => true, "name" => "sigv4", "signingName" => "s3-outposts", "signingRegion" => "#{bucket_arn['region']}"}]})
|
|
715
718
|
end
|
|
716
|
-
|
|
719
|
+
raise ArgumentError, "Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `#{access_point_name}`"
|
|
717
720
|
end
|
|
718
721
|
raise ArgumentError, "Expected an outpost type `accesspoint`, found #{outpost_type}"
|
|
719
722
|
end
|
data/lib/aws-sdk-s3.rb
CHANGED