aws-sdk-s3 1.159.0 → 1.162.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
@@ -73,6 +73,6 @@ require_relative 'aws-sdk-s3/event_streams'
73
73
  # @!group service
74
74
  module Aws::S3
75
75
 
76
- GEM_VERSION = '1.159.0'
76
+ GEM_VERSION = '1.162.0'
77
77
 
78
78
  end
data/sig/client.rbs CHANGED
@@ -64,6 +64,7 @@ module Aws
64
64
  ?session_token: String,
65
65
  ?sigv4a_signing_region_set: Array[String],
66
66
  ?stub_responses: untyped,
67
+ ?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
67
68
  ?token_provider: untyped,
68
69
  ?use_accelerate_endpoint: bool,
69
70
  ?use_dualstack_endpoint: bool,
data/sig/resource.rbs CHANGED
@@ -64,6 +64,7 @@ module Aws
64
64
  ?session_token: String,
65
65
  ?sigv4a_signing_region_set: Array[String],
66
66
  ?stub_responses: untyped,
67
+ ?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
67
68
  ?token_provider: untyped,
68
69
  ?use_accelerate_endpoint: bool,
69
70
  ?use_dualstack_endpoint: bool,
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.159.0
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-08-20 00:00:00.000000000 Z
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.201.0
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.201.0
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: