aws-sdk-s3 1.160.0 → 1.162.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-s3/client.rb +7 -1
- data/lib/aws-sdk-s3/endpoints.rb +99 -396
- data/lib/aws-sdk-s3/plugins/endpoints.rb +10 -1
- data/lib/aws-sdk-s3.rb +1 -1
- metadata +4 -4
@@ -46,11 +46,20 @@ module Aws::S3
|
|
46
46
|
context[:auth_scheme] =
|
47
47
|
Aws::Endpoints.resolve_auth_scheme(context, endpoint)
|
48
48
|
|
49
|
-
@handler.call(context)
|
49
|
+
with_metrics(context) { @handler.call(context) }
|
50
50
|
end
|
51
51
|
|
52
52
|
private
|
53
53
|
|
54
|
+
def with_metrics(context, &block)
|
55
|
+
metrics = []
|
56
|
+
metrics << 'ENDPOINT_OVERRIDE' unless context.config.regional_endpoint
|
57
|
+
if context[:auth_scheme] && context[:auth_scheme]['name'] == 'sigv4a'
|
58
|
+
metrics << 'SIGV4A_SIGNING'
|
59
|
+
end
|
60
|
+
Aws::Plugins::UserAgent.metric(*metrics, &block)
|
61
|
+
end
|
62
|
+
|
54
63
|
def apply_endpoint_headers(context, headers)
|
55
64
|
headers.each do |key, values|
|
56
65
|
value = values
|
data/lib/aws-sdk-s3.rb
CHANGED
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.162.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: 2024-09-
|
11
|
+
date: 2024-09-11 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.205.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.205.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:
|