aws-sdk-core 3.190.3 → 3.191.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-core/credential_provider.rb +1 -1
- data/lib/aws-sdk-core/ecs_credentials.rb +2 -1
- data/lib/aws-sdk-core/errors.rb +2 -2
- data/lib/aws-sdk-core/instance_profile_credentials.rb +2 -1
- data/lib/aws-sdk-core/plugins/client_metrics_plugin.rb +1 -0
- data/lib/aws-sdk-core/plugins/credentials_configuration.rb +2 -0
- data/lib/aws-sdk-core/plugins/logging.rb +2 -0
- data/lib/aws-sdk-core/plugins/retry_errors.rb +2 -0
- data/lib/aws-sdk-core/plugins/stub_responses.rb +1 -0
- data/lib/aws-sdk-sso/client.rb +1 -1
- data/lib/aws-sdk-sso/plugins/endpoints.rb +1 -0
- data/lib/aws-sdk-sso.rb +1 -1
- data/lib/aws-sdk-ssooidc/client.rb +1 -1
- data/lib/aws-sdk-ssooidc/plugins/endpoints.rb +1 -0
- data/lib/aws-sdk-ssooidc.rb +1 -1
- data/lib/aws-sdk-sts/client.rb +1 -1
- data/lib/aws-sdk-sts/plugins/endpoints.rb +1 -0
- data/lib/aws-sdk-sts.rb +1 -1
- data/lib/seahorse/client/plugin.rb +1 -0
- data/sig/aws-sdk-core/client_stubs.rbs +10 -0
- data/sig/aws-sdk-core/errors.rbs +22 -0
- data/sig/aws-sdk-core/resources/collection.rbs +21 -0
- data/sig/aws-sdk-core/structure.rbs +4 -0
- data/sig/aws-sdk-core/waiters/errors.rbs +20 -0
- data/sig/aws-sdk-core.rbs +7 -0
- data/sig/seahorse/client/base.rbs +25 -0
- data/sig/seahorse/client/handler_builder.rbs +16 -0
- data/sig/seahorse/client/response.rbs +61 -0
- metadata +11 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4fba83e64be6d833ebbde5a6b21464e168ee7237fa96a07e648c69d57da77c37
|
4
|
+
data.tar.gz: 84a013c1b2ba6d1d562cbffd33748273fbc520c353f4ae1876cba59256da5e6c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2105ff1d72329e3880cf366a804df12a1e1902a7ccf95c22fe94d9df87dfe60e144b066b91d94a1d2d48f39690aa43fb0efb5cf669c48a59701e654e6c9dc9d3
|
7
|
+
data.tar.gz: 90eebbd2fbc6b4c6cbf94eaa8008ef9686772750b8f8f78d8ff9ac399b9708e918d01cbd63778b1f6c27a04875bb49251834efae2ec5bdaf8e698855ac37dad0
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,22 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
3.191.1 (2024-02-07)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Issue - Warn on previously silent credential failures (#2981).
|
8
|
+
|
9
|
+
3.191.0 (2024-01-26)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Updated Aws::STS::Client with the latest API changes.
|
13
|
+
|
14
|
+
* Feature - Updated Aws::SSOOIDC::Client with the latest API changes.
|
15
|
+
|
16
|
+
* Feature - Updated Aws::SSO::Client with the latest API changes.
|
17
|
+
|
18
|
+
* Feature - Add RBS signature files to support static type checking.
|
19
|
+
|
4
20
|
3.190.3 (2024-01-16)
|
5
21
|
------------------
|
6
22
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.
|
1
|
+
3.191.1
|
data/lib/aws-sdk-core/errors.rb
CHANGED
@@ -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
|
|
data/lib/aws-sdk-sso/client.rb
CHANGED
@@ -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
@@ -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 '\
|
data/lib/aws-sdk-ssooidc.rb
CHANGED
data/lib/aws-sdk-sts/client.rb
CHANGED
@@ -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.
|
2355
|
+
context[:gem_version] = '3.191.1'
|
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
@@ -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,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,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.
|
4
|
+
version: 3.191.1
|
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-
|
11
|
+
date: 2024-02-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jmespath
|
@@ -339,6 +339,15 @@ 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
|