aws-sdk-core 3.190.1 → 3.191.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4fda9f68ef0e3314ab364fb268675ded2239b81a636acd4dc54215b6e6ca7c83
4
- data.tar.gz: afe9386ae7bd49f5ada1f6e6a5fbad9ff81b07043d8ddc94bf7535f679163279
3
+ metadata.gz: dc07663afa282f94e8d7f48f837cb98da7041095d4e317435c12e78ea150ad37
4
+ data.tar.gz: 3b7de307550bb34cf2751a48ffc58015c0cdd699706cdfed8c167f28b2ff483a
5
5
  SHA512:
6
- metadata.gz: 06540b6d496653c29f7738166e2cc8c0b94ff5d68a9deb6ed0d9673c1ba15b4f6f9bf8929f37d7168535b13af2723894ff89c1a412bc2a833544363173ad6c9f
7
- data.tar.gz: b81ddf77de05fea162875f9b218878a551e6325c16faa65562b942b919d457298e19c7c2389fc9c55a8b7f8c5a953afef67a0af5d6ae08066eeccc7dbcc169cc
6
+ metadata.gz: 283d65ac79f93a3ab22b34bc488d0d1a3fb706184a6efae14246973cc44cd2a0256987d10b75da5358a1fc0ac6ca24cea223ddbb27846da47c3af7a535a5f374
7
+ data.tar.gz: 4951a75c31b534cc58a9e29a9f56e5228786f4e02f959fd74dba42079e7e86f51f9aa87947acd9d7fcb8f3efad6d8318f92f6e7eb271aa6b8c6e14af1e5a5920
data/CHANGELOG.md CHANGED
@@ -1,6 +1,27 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 3.191.0 (2024-01-26)
5
+ ------------------
6
+
7
+ * Feature - Updated Aws::STS::Client with the latest API changes.
8
+
9
+ * Feature - Updated Aws::SSOOIDC::Client with the latest API changes.
10
+
11
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
12
+
13
+ * Feature - Add RBS signature files to support static type checking.
14
+
15
+ 3.190.3 (2024-01-16)
16
+ ------------------
17
+
18
+ * Issue - Add mutex around accessing stub api_requests.
19
+
20
+ 3.190.2 (2024-01-09)
21
+ ------------------
22
+
23
+ * Issue - Minor performance optimization.
24
+
4
25
  3.190.1 (2023-12-20)
5
26
  ------------------
6
27
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.190.1
1
+ 3.191.0
@@ -24,10 +24,8 @@ module Aws
24
24
  end
25
25
 
26
26
  # When a client is stubbed allow the user to access the requests made
27
- @api_requests = []
28
-
29
- requests = @api_requests
30
- requests_mutex = Mutex.new
27
+ requests = @api_requests = []
28
+ requests_mutex = @requests_mutex = Mutex.new
31
29
  self.handle do |context|
32
30
  requests_mutex.synchronize do
33
31
  requests << {
@@ -197,10 +195,12 @@ module Aws
197
195
  # is not stubbed.
198
196
  def api_requests(options = {})
199
197
  if config.stub_responses
200
- if options[:exclude_presign]
201
- @api_requests.reject {|req| req[:context][:presigned_url] }
202
- else
203
- @api_requests
198
+ @requests_mutex.synchronize do
199
+ if options[:exclude_presign]
200
+ @api_requests.reject {|req| req[:context][:presigned_url] }
201
+ else
202
+ @api_requests
203
+ end
204
204
  end
205
205
  else
206
206
  msg = 'This method is only implemented for stubbed clients, and is '\
@@ -12,7 +12,7 @@ module Aws
12
12
  class ServiceError < RuntimeError
13
13
 
14
14
  # @param [Seahorse::Client::RequestContext] context
15
- # @param [String] message
15
+ # @param [String, nil] message
16
16
  # @param [Aws::Structure] data
17
17
  def initialize(context, message, data = Aws::EmptyStructure.new)
18
18
  @code = self.class.code
@@ -34,7 +34,7 @@ module Aws
34
34
 
35
35
  class << self
36
36
 
37
- # @return [String]
37
+ # @return [String, nil]
38
38
  attr_accessor :code
39
39
 
40
40
  end
@@ -40,6 +40,7 @@ side monitoring agent is running on, where client metrics will be published via
40
40
  option(:client_side_monitoring_publisher,
41
41
  default: ClientSideMonitoring::Publisher,
42
42
  doc_type: Aws::ClientSideMonitoring::Publisher,
43
+ rbs_type: 'untyped',
43
44
  docstring: <<-DOCS) do |cfg|
44
45
  Allows you to provide a custom client-side monitoring publisher class. By default,
45
46
  will use the Client Side Monitoring Agent Publisher.
@@ -23,6 +23,7 @@ at HOME/.aws/credentials. When not specified, 'default' is used.
23
23
  option(:credentials,
24
24
  required: true,
25
25
  doc_type: 'Aws::CredentialProvider',
26
+ rbs_type: 'untyped',
26
27
  docstring: <<-DOCS
27
28
  Your AWS credentials. This can be an instance of any one of the
28
29
  following classes:
@@ -79,6 +80,7 @@ locations will be searched for credentials:
79
80
  option(:token_provider,
80
81
  required: false,
81
82
  doc_type: 'Aws::TokenProvider',
83
+ rbs_type: 'untyped',
82
84
  docstring: <<-DOCS
83
85
  A Bearer Token Provider. This can be an instance of any one of the
84
86
  following classes:
@@ -8,6 +8,7 @@ module Aws
8
8
 
9
9
  option(:logger,
10
10
  doc_type: 'Logger',
11
+ rbs_type: 'untyped',
11
12
  docstring: <<-DOCS
12
13
  The Logger instance to send log messages to. If this option
13
14
  is not set, logging will be disabled.
@@ -22,6 +23,7 @@ is not set, logging will be disabled.
22
23
 
23
24
  option(:log_formatter,
24
25
  doc_type: 'Aws::Log::Formatter',
26
+ rbs_type: 'untyped',
25
27
  doc_default: literal('Aws::Log::Formatter.default'),
26
28
  docstring: 'The log formatter.'
27
29
  ) do |config|
@@ -73,6 +73,7 @@ is only used in the `legacy` retry mode.
73
73
  :retry_jitter,
74
74
  default: :none,
75
75
  doc_type: Symbol,
76
+ rbs_type: '(:none | :equal | :full | ^(Integer) -> Integer)',
76
77
  docstring: <<-DOCS)
77
78
  A delay randomiser function used by the default backoff function.
78
79
  Some predefined functions can be referenced by name - :none, :equal, :full,
@@ -97,6 +98,7 @@ This option is only used in the `legacy` retry mode.
97
98
  :retry_mode,
98
99
  default: 'legacy',
99
100
  doc_type: String,
101
+ rbs_type: '("legacy" | "standard" | "adaptive")',
100
102
  docstring: <<-DOCS) do |cfg|
101
103
  Specifies which retry algorithm to use. Values are:
102
104
 
@@ -8,6 +8,7 @@ module Aws
8
8
  option(:stub_responses,
9
9
  default: false,
10
10
  doc_type: 'Boolean',
11
+ rbs_type: 'untyped',
11
12
  docstring: <<-DOCS)
12
13
  Causes the client to return stubbed responses. By default
13
14
  fake responses are generated and returned. You can specify
@@ -97,7 +97,7 @@ module Aws
97
97
 
98
98
  def matches_error?(acceptor, response)
99
99
  Aws::Errors::ServiceError === response.error &&
100
- response.error.code == acceptor['expected'].gsub('.', '')
100
+ response.error.code == acceptor['expected'].delete('.')
101
101
  end
102
102
 
103
103
  def path(acceptor)
@@ -605,7 +605,7 @@ module Aws::SSO
605
605
  params: params,
606
606
  config: config)
607
607
  context[:gem_name] = 'aws-sdk-core'
608
- context[:gem_version] = '3.190.1'
608
+ context[:gem_version] = '3.191.0'
609
609
  Seahorse::Client::Request.new(handlers, context)
610
610
  end
611
611
 
@@ -14,6 +14,7 @@ module Aws::SSO
14
14
  option(
15
15
  :endpoint_provider,
16
16
  doc_type: 'Aws::SSO::EndpointProvider',
17
+ rbs_type: 'untyped',
17
18
  docstring: 'The endpoint provider used to resolve endpoints. Any '\
18
19
  'object that responds to `#resolve_endpoint(parameters)` '\
19
20
  'where `parameters` is a Struct similar to '\
data/lib/aws-sdk-sso.rb CHANGED
@@ -54,6 +54,6 @@ require_relative 'aws-sdk-sso/customizations'
54
54
  # @!group service
55
55
  module Aws::SSO
56
56
 
57
- GEM_VERSION = '3.190.1'
57
+ GEM_VERSION = '3.191.0'
58
58
 
59
59
  end
@@ -910,7 +910,7 @@ module Aws::SSOOIDC
910
910
  params: params,
911
911
  config: config)
912
912
  context[:gem_name] = 'aws-sdk-core'
913
- context[:gem_version] = '3.190.1'
913
+ context[:gem_version] = '3.191.0'
914
914
  Seahorse::Client::Request.new(handlers, context)
915
915
  end
916
916
 
@@ -14,6 +14,7 @@ module Aws::SSOOIDC
14
14
  option(
15
15
  :endpoint_provider,
16
16
  doc_type: 'Aws::SSOOIDC::EndpointProvider',
17
+ rbs_type: 'untyped',
17
18
  docstring: 'The endpoint provider used to resolve endpoints. Any '\
18
19
  'object that responds to `#resolve_endpoint(parameters)` '\
19
20
  'where `parameters` is a Struct similar to '\
@@ -54,6 +54,6 @@ require_relative 'aws-sdk-ssooidc/customizations'
54
54
  # @!group service
55
55
  module Aws::SSOOIDC
56
56
 
57
- GEM_VERSION = '3.190.1'
57
+ GEM_VERSION = '3.191.0'
58
58
 
59
59
  end
@@ -2352,7 +2352,7 @@ module Aws::STS
2352
2352
  params: params,
2353
2353
  config: config)
2354
2354
  context[:gem_name] = 'aws-sdk-core'
2355
- context[:gem_version] = '3.190.1'
2355
+ context[:gem_version] = '3.191.0'
2356
2356
  Seahorse::Client::Request.new(handlers, context)
2357
2357
  end
2358
2358
 
@@ -14,6 +14,7 @@ module Aws::STS
14
14
  option(
15
15
  :endpoint_provider,
16
16
  doc_type: 'Aws::STS::EndpointProvider',
17
+ rbs_type: 'untyped',
17
18
  docstring: 'The endpoint provider used to resolve endpoints. Any '\
18
19
  'object that responds to `#resolve_endpoint(parameters)` '\
19
20
  'where `parameters` is a Struct similar to '\
data/lib/aws-sdk-sts.rb CHANGED
@@ -54,6 +54,6 @@ require_relative 'aws-sdk-sts/customizations'
54
54
  # @!group service
55
55
  module Aws::STS
56
56
 
57
- GEM_VERSION = '3.190.1'
57
+ GEM_VERSION = '3.191.0'
58
58
 
59
59
  end
@@ -124,6 +124,7 @@ module Seahorse
124
124
  attr_accessor :doc_type
125
125
  attr_writer :doc_default
126
126
  attr_accessor :docstring
127
+ attr_accessor :rbs_type
127
128
 
128
129
  def doc_default(options)
129
130
  if @doc_default.nil? && !default.is_a?(Proc)
@@ -0,0 +1,10 @@
1
+ module Aws
2
+ module ClientStubs
3
+ def stub_responses: (Symbol operation_name, *untyped stubs) -> void
4
+
5
+ def api_requests: (?exclude_presign: bool) -> Array[{ operation_name: Symbol, params: untyped, context: untyped }]
6
+ | (?Hash[:exclude_presign, bool] options) -> Array[{ operation_name: Symbol, params: untyped, context: untyped }]
7
+
8
+ def stub_data: (Symbol operation_name, ?untyped data) -> untyped
9
+ end
10
+ end
@@ -0,0 +1,22 @@
1
+ module Aws
2
+ module Errors
3
+ class NonSupportedRubyVersionError < RuntimeError
4
+ end
5
+
6
+ # The base class for all errors returned by an Amazon Web Service.
7
+ # All ~400 level client errors and ~500 level server errors are raised
8
+ # as service errors. This indicates it was an error returned from the
9
+ # service and not one generated by the client.
10
+ class ServiceError < RuntimeError
11
+ def initialize: (untyped context, String? message, ?untyped data) -> void
12
+
13
+ attr_reader code: String
14
+
15
+ attr_reader context: untyped
16
+
17
+ attr_reader data: untyped
18
+
19
+ attr_accessor self.code: String?
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,21 @@
1
+ module Aws
2
+ module Resources
3
+ class Collection[T]
4
+ include Enumerable[T]
5
+
6
+ def initialize: (Enumerable[Enumerable[T]] batches, ?size: Integer, ?limit: Integer) -> void
7
+
8
+ def each: () -> Enumerator[T, untyped]
9
+ | () { (T) -> untyped } -> Enumerator[T, untyped]
10
+
11
+ def size: () -> Integer?
12
+
13
+ alias length size
14
+
15
+ def first: () -> T?
16
+ | (Integer) -> self
17
+
18
+ def limit: (Integer) -> self
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,4 @@
1
+ module Aws
2
+ class EmptyStructure
3
+ end
4
+ end
@@ -0,0 +1,20 @@
1
+ module Aws
2
+ module Waiters
3
+ module Errors
4
+ class WaiterFailed < StandardError
5
+ end
6
+
7
+ class FailureStateError < WaiterFailed
8
+ end
9
+
10
+ class TooManyAttemptsError < WaiterFailed
11
+ end
12
+
13
+ class UnexpectedError < WaiterFailed
14
+ end
15
+
16
+ class NoSuchWaiterError < ArgumentError
17
+ end
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,7 @@
1
+ module Aws
2
+ attr_reader self.config: Hash[Symbol, untyped]
3
+
4
+ def self.config=: (Hash[Symbol, untyped] config) -> Hash[Symbol, untyped]
5
+
6
+ def self.use_bundled_cert!: () -> String
7
+ end
@@ -0,0 +1,25 @@
1
+ module Seahorse
2
+ module Client
3
+ class Base
4
+ include HandlerBuilder
5
+
6
+ def self.new: (?untyped options) -> instance
7
+ def self.add_plugin: (untyped plugin) -> untyped
8
+ def self.remove_plugin: (untyped plugin) -> untyped
9
+ def self.clear_plugins: () -> untyped
10
+ def self.set_plugins: (Array[untyped] plugins) -> untyped
11
+ def self.plugins: () -> Array[untyped]
12
+ def self.api: () -> untyped
13
+ def self.set_api: (untyped api) -> untyped
14
+ def self.define: (?untyped options) -> untyped
15
+
16
+ attr_reader config: untyped
17
+
18
+ attr_reader handlers: untyped
19
+
20
+ def build_request: (_ToS operation_name, ?untyped params) -> untyped
21
+
22
+ def operation_names: () -> Array[Symbol]
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,16 @@
1
+ module Seahorse
2
+ module Client
3
+ # This module provides the ability to add handlers to a class or
4
+ # module. The including class or extending module must respond to
5
+ # `#handlers`, returning a {HandlerList}.
6
+ module HandlerBuilder
7
+ def handle_request: (*untyped) { (untyped context) -> void } -> untyped
8
+
9
+ def handle_response: (*untyped) { (untyped resp) -> void } -> untyped
10
+
11
+ def handle: (*untyped) ?{ (untyped context) -> void } -> untyped
12
+
13
+ alias handler handle
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,61 @@
1
+ module Seahorse
2
+ module Client
3
+ # RBS does not support Delegator.
4
+ # the behavior is mimicked `Seahorse::Client::Response` as much as possible.
5
+ interface _ResponseCommon
6
+ def context: () -> untyped
7
+
8
+ def checksum_validated: () -> ::String?
9
+
10
+ def on: (Integer) { (self) -> void } -> self
11
+ | (Range[Integer]) { (self) -> void } -> self
12
+
13
+ def on_success: () { (self) -> void } -> self
14
+
15
+ def successful?: () -> bool
16
+ end
17
+
18
+ # The interface for response success
19
+ # An interface representing response is provided for each operation,
20
+ # and _ResponseSuccess is embedded in this interface.
21
+ # @example client.rbs
22
+ #
23
+ # interface _OperationResponseSuccess
24
+ # include ::Seahorse::Client::_ResponseSuccess[Types::OperationOutput]
25
+ # def foo: () -> ::String
26
+ # def bar: () -> ::Integer
27
+ # end
28
+ # @client.operation: () -> _OperationResponseSuccess
29
+ interface _ResponseSuccess[DATA]
30
+ include _ResponseCommon
31
+
32
+ def data: () -> DATA
33
+
34
+ def data=: (DATA) -> DATA
35
+
36
+ def error: () -> nil
37
+
38
+ def error=: (nil) -> nil
39
+ end
40
+
41
+ # The interface for response error
42
+ # It is useful to use annotation on ruby code
43
+ # @example foo.rb
44
+ #
45
+ # client = Client.new(raise_response_errors: false)
46
+ # # @type var response: ::Seahorse::Client::_ResponseError
47
+ # response = client.operation()
48
+ # response.error.message
49
+ interface _ResponseError
50
+ include _ResponseCommon
51
+
52
+ def data: () -> nil
53
+
54
+ def data=: (nil) -> nil
55
+
56
+ def error: () -> StandardError
57
+
58
+ def error=: (StandardError) -> StandardError
59
+ end
60
+ end
61
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.190.1
4
+ version: 3.191.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-20 00:00:00.000000000 Z
11
+ date: 2024-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jmespath
@@ -86,7 +86,7 @@ dependencies:
86
86
  version: 1.3.0
87
87
  description: Provides API clients for AWS. This gem is part of the official AWS SDK
88
88
  for Ruby.
89
- email:
89
+ email:
90
90
  executables: []
91
91
  extensions: []
92
92
  extra_rdoc_files: []
@@ -339,13 +339,22 @@ files:
339
339
  - lib/seahorse/model/shapes.rb
340
340
  - lib/seahorse/util.rb
341
341
  - lib/seahorse/version.rb
342
+ - sig/aws-sdk-core.rbs
343
+ - sig/aws-sdk-core/client_stubs.rbs
344
+ - sig/aws-sdk-core/errors.rbs
345
+ - sig/aws-sdk-core/resources/collection.rbs
346
+ - sig/aws-sdk-core/structure.rbs
347
+ - sig/aws-sdk-core/waiters/errors.rbs
348
+ - sig/seahorse/client/base.rbs
349
+ - sig/seahorse/client/handler_builder.rbs
350
+ - sig/seahorse/client/response.rbs
342
351
  homepage: https://github.com/aws/aws-sdk-ruby
343
352
  licenses:
344
353
  - Apache-2.0
345
354
  metadata:
346
355
  source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-core
347
356
  changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-core/CHANGELOG.md
348
- post_install_message:
357
+ post_install_message:
349
358
  rdoc_options: []
350
359
  require_paths:
351
360
  - lib
@@ -360,8 +369,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
360
369
  - !ruby/object:Gem::Version
361
370
  version: '0'
362
371
  requirements: []
363
- rubygems_version: 3.1.6
364
- signing_key:
372
+ rubygems_version: 3.4.10
373
+ signing_key:
365
374
  specification_version: 4
366
375
  summary: AWS SDK for Ruby - Core
367
376
  test_files: []