aws-sdk-sagemakertrainingsessionruntime 1.0.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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 323f0072ab0b957a3e25bb02a4d875b486b55e6b8a3d0d1630030cfa112c553a
4
+ data.tar.gz: 98fab225d591919b50d4b7a456a9643d1466b18cdba11ebca41c1831b87a4f2d
5
+ SHA512:
6
+ metadata.gz: 8a4ab1b9310f3ee030258037ac4ed64cac15119a0f756dbcbe3d4a3672552709dcf4501a38a83d95c96669477128ce0311dc2749c6bd30cbece02916898e6abb
7
+ data.tar.gz: 6e2d8fc88a230c3c990e554bbb5d41a8ca79942c3e98c97f72dc018c83bb65b821ea6dedc7937c046c85e299d4a5b09d09f9a7956cd07a0aabeb9a999efebf80
data/CHANGELOG.md ADDED
@@ -0,0 +1,8 @@
1
+ Unreleased Changes
2
+ ------------------
3
+
4
+ 1.0.0 (2026-10-12)
5
+ ------------------
6
+
7
+ * Feature - Initial release of `aws-sdk-sagemakertrainingsessionruntime`.
8
+
data/LICENSE.txt ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.0.0
@@ -0,0 +1,451 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ begin
11
+ require 'http/2'
12
+ rescue LoadError; end
13
+ require 'aws-sdk-core/plugins/credentials_configuration'
14
+ require 'aws-sdk-core/plugins/logging'
15
+ require 'aws-sdk-core/plugins/param_converter'
16
+ require 'aws-sdk-core/plugins/param_validator'
17
+ require 'aws-sdk-core/plugins/user_agent'
18
+ require 'aws-sdk-core/plugins/helpful_socket_errors'
19
+ require 'aws-sdk-core/plugins/retry_errors'
20
+ require 'aws-sdk-core/plugins/global_configuration'
21
+ require 'aws-sdk-core/plugins/regional_endpoint'
22
+ require 'aws-sdk-core/plugins/stub_responses'
23
+ require 'aws-sdk-core/plugins/idempotency_token'
24
+ require 'aws-sdk-core/plugins/invocation_id'
25
+ require 'aws-sdk-core/plugins/jsonvalue_converter'
26
+ require 'aws-sdk-core/plugins/http_checksum'
27
+ require 'aws-sdk-core/plugins/checksum_algorithm'
28
+ require 'aws-sdk-core/plugins/request_compression'
29
+ require 'aws-sdk-core/plugins/defaults_mode'
30
+ require 'aws-sdk-core/plugins/recursion_detection'
31
+ require 'aws-sdk-core/plugins/telemetry'
32
+ require 'aws-sdk-core/plugins/sign'
33
+ require 'aws-sdk-core/plugins/protocols/rest_json'
34
+
35
+ Aws::Plugins::GlobalConfiguration.add_identifier(:sagemakertrainingsessionruntime)
36
+
37
+ module Aws::SageMakerTrainingSessionRuntime
38
+ # An API async client for SageMakerTrainingSessionRuntime. To construct an async client, you need to configure a `:region` and `:credentials`.
39
+ #
40
+ # async_client = Aws::SageMakerTrainingSessionRuntime::AsyncClient.new(
41
+ # region: region_name,
42
+ # credentials: credentials,
43
+ # # ...
44
+ # )
45
+ #
46
+ # For details on configuring region and credentials see
47
+ # the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
48
+ #
49
+ # See {#initialize} for a full list of supported configuration options.
50
+ class AsyncClient < Seahorse::Client::AsyncBase
51
+
52
+ include Aws::AsyncClientStubs
53
+
54
+ @identifier = :sagemakertrainingsessionruntime
55
+
56
+ set_api(ClientApi::API)
57
+
58
+ add_plugin(Aws::Plugins::CredentialsConfiguration)
59
+ add_plugin(Aws::Plugins::Logging)
60
+ add_plugin(Aws::Plugins::ParamConverter)
61
+ add_plugin(Aws::Plugins::ParamValidator)
62
+ add_plugin(Aws::Plugins::UserAgent)
63
+ add_plugin(Aws::Plugins::HelpfulSocketErrors)
64
+ add_plugin(Aws::Plugins::RetryErrors)
65
+ add_plugin(Aws::Plugins::GlobalConfiguration)
66
+ add_plugin(Aws::Plugins::RegionalEndpoint)
67
+ add_plugin(Aws::Plugins::StubResponses)
68
+ add_plugin(Aws::Plugins::IdempotencyToken)
69
+ add_plugin(Aws::Plugins::InvocationId)
70
+ add_plugin(Aws::Plugins::JsonvalueConverter)
71
+ add_plugin(Aws::Plugins::HttpChecksum)
72
+ add_plugin(Aws::Plugins::ChecksumAlgorithm)
73
+ add_plugin(Aws::Plugins::RequestCompression)
74
+ add_plugin(Aws::Plugins::DefaultsMode)
75
+ add_plugin(Aws::Plugins::RecursionDetection)
76
+ add_plugin(Aws::Plugins::Telemetry)
77
+ add_plugin(Aws::Plugins::Sign)
78
+ add_plugin(Aws::Plugins::Protocols::RestJson)
79
+ add_plugin(Aws::SageMakerTrainingSessionRuntime::Plugins::Endpoints)
80
+
81
+ # @overload initialize(options)
82
+ # @param [Hash] options
83
+ #
84
+ # @option options [Array<Seahorse::Client::Plugin>] :plugins ([]])
85
+ # A list of plugins to apply to the client. Each plugin is either a
86
+ # class name or an instance of a plugin class.
87
+ #
88
+ # @option options [required, Aws::CredentialProvider] :credentials
89
+ # Your AWS credentials used for authentication. This can be any class that includes and implements
90
+ # `Aws::CredentialProvider`, or instance of any one of the following classes:
91
+ #
92
+ # * `Aws::Credentials` - Used for configuring static, non-refreshing
93
+ # credentials.
94
+ #
95
+ # * `Aws::SharedCredentials` - Used for loading static credentials from a
96
+ # shared file, such as `~/.aws/config`.
97
+ #
98
+ # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
99
+ #
100
+ # * `Aws::AssumeRoleWebIdentityCredentials` - Used when you need to
101
+ # assume a role after providing credentials via the web.
102
+ #
103
+ # * `Aws::SSOCredentials` - Used for loading credentials from AWS SSO using an
104
+ # access token generated from `aws login`.
105
+ #
106
+ # * `Aws::ProcessCredentials` - Used for loading credentials from a
107
+ # process that outputs to stdout.
108
+ #
109
+ # * `Aws::InstanceProfileCredentials` - Used for loading credentials
110
+ # from an EC2 IMDS on an EC2 instance.
111
+ #
112
+ # * `Aws::ECSCredentials` - Used for loading credentials from
113
+ # instances running in ECS.
114
+ #
115
+ # * `Aws::CognitoIdentityCredentials` - Used for loading credentials
116
+ # from the Cognito Identity service.
117
+ #
118
+ # When `:credentials` are not configured directly, the following locations will be searched for credentials:
119
+ #
120
+ # * `Aws.config[:credentials]`
121
+ #
122
+ # * The `:access_key_id`, `:secret_access_key`, `:session_token`, and
123
+ # `:account_id` options.
124
+ #
125
+ # * `ENV['AWS_ACCESS_KEY_ID']`, `ENV['AWS_SECRET_ACCESS_KEY']`,
126
+ # `ENV['AWS_SESSION_TOKEN']`, and `ENV['AWS_ACCOUNT_ID']`.
127
+ #
128
+ # * `~/.aws/credentials`
129
+ #
130
+ # * `~/.aws/config`
131
+ #
132
+ # * EC2/ECS IMDS instance profile - When used by default, the timeouts are very aggressive.
133
+ # Construct and pass an instance of `Aws::InstanceProfileCredentials` or `Aws::ECSCredentials` to
134
+ # enable retries and extended timeouts. Instance profile credential fetching can be disabled by
135
+ # setting `ENV['AWS_EC2_METADATA_DISABLED']` to `true`.
136
+ #
137
+ # @option options [required, String] :region
138
+ # The AWS region to connect to. The configured `:region` is
139
+ # used to determine the service `:endpoint`. When not passed,
140
+ # a default `:region` is searched for in the following locations:
141
+ #
142
+ # * `Aws.config[:region]`
143
+ # * `ENV['AWS_REGION']`
144
+ # * `ENV['AMAZON_REGION']`
145
+ # * `ENV['AWS_DEFAULT_REGION']`
146
+ # * `~/.aws/credentials`
147
+ # * `~/.aws/config`
148
+ #
149
+ # @option options [String] :access_key_id
150
+ #
151
+ # @option options [String] :account_id
152
+ #
153
+ # @option options [Boolean] :adaptive_retry_wait_to_fill (true)
154
+ # Used only in `adaptive` retry mode. When true, the request will sleep
155
+ # until there is sufficent client side capacity to retry the request.
156
+ # When false, the request will raise a `RetryCapacityNotAvailableError` and will
157
+ # not retry instead of sleeping.
158
+ #
159
+ # @option options [Array<String>] :auth_scheme_preference
160
+ # A list of preferred authentication schemes to use when making a request. Supported values are:
161
+ # `sigv4`, `sigv4a`, `httpBearerAuth`, and `noAuth`. When set using `ENV['AWS_AUTH_SCHEME_PREFERENCE']` or in
162
+ # shared config as `auth_scheme_preference`, the value should be a comma-separated list.
163
+ #
164
+ # @option options [Boolean] :convert_params (true)
165
+ # When `true`, an attempt is made to coerce request parameters into
166
+ # the required types.
167
+ #
168
+ # @option options [Boolean] :correct_clock_skew (true)
169
+ # Used only in `standard` and `adaptive` retry modes. Specifies whether to apply
170
+ # a clock skew correction and retry requests with skewed client clocks.
171
+ #
172
+ # @option options [String] :defaults_mode ("legacy")
173
+ # See {Aws::DefaultsModeConfiguration} for a list of the
174
+ # accepted modes and the configuration defaults that are included.
175
+ #
176
+ # @option options [Boolean] :disable_request_compression (false)
177
+ # When set to 'true' the request body will not be compressed
178
+ # for supported operations.
179
+ #
180
+ # @option options [String, URI::HTTPS, URI::HTTP] :endpoint
181
+ # Normally you should not configure the `:endpoint` option
182
+ # directly. This is normally constructed from the `:region`
183
+ # option. Configuring `:endpoint` is normally reserved for
184
+ # connecting to test or custom endpoints. The endpoint should
185
+ # be a URI formatted like:
186
+ #
187
+ # 'http://example.com'
188
+ # 'https://example.com'
189
+ # 'http://example.com:123'
190
+ #
191
+ # @option options [Boolean] :ignore_configured_endpoint_urls
192
+ # Setting to true disables use of endpoint URLs provided via environment
193
+ # variables and the shared configuration file.
194
+ #
195
+ # @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
196
+ # The log formatter.
197
+ #
198
+ # @option options [Symbol] :log_level (:info)
199
+ # The log level to send messages to the `:logger` at.
200
+ #
201
+ # @option options [Logger] :logger
202
+ # The Logger instance to send log messages to. If this option
203
+ # is not set, logging will be disabled.
204
+ #
205
+ # @option options [Integer] :max_attempts (3)
206
+ # An integer representing the maximum number attempts that will be made for
207
+ # a single request, including the initial attempt. For example,
208
+ # setting this value to 5 will result in a request being retried up to
209
+ # 4 times. Used in `standard` and `adaptive` retry modes.
210
+ #
211
+ # @option options [String] :profile ("default")
212
+ # Used when loading credentials from the shared credentials file at `HOME/.aws/credentials`.
213
+ # When not specified, 'default' is used.
214
+ #
215
+ # @option options [String] :request_checksum_calculation ("when_supported")
216
+ # Determines when a checksum will be calculated for request payloads. Values are:
217
+ #
218
+ # * `when_supported` - (default) When set, a checksum will be
219
+ # calculated for all request payloads of operations modeled with the
220
+ # `httpChecksum` trait where `requestChecksumRequired` is `true` and/or a
221
+ # `requestAlgorithmMember` is modeled.
222
+ # * `when_required` - When set, a checksum will only be calculated for
223
+ # request payloads of operations modeled with the `httpChecksum` trait where
224
+ # `requestChecksumRequired` is `true` or where a `requestAlgorithmMember`
225
+ # is modeled and supplied.
226
+ #
227
+ # @option options [Integer] :request_min_compression_size_bytes (10240)
228
+ # The minimum size in bytes that triggers compression for request
229
+ # bodies. The value must be non-negative integer value between 0
230
+ # and 10485780 bytes inclusive.
231
+ #
232
+ # @option options [String] :response_checksum_validation ("when_supported")
233
+ # Determines when checksum validation will be performed on response payloads. Values are:
234
+ #
235
+ # * `when_supported` - (default) When set, checksum validation is performed on all
236
+ # response payloads of operations modeled with the `httpChecksum` trait where
237
+ # `responseAlgorithms` is modeled, except when no modeled checksum algorithms
238
+ # are supported.
239
+ # * `when_required` - When set, checksum validation is not performed on
240
+ # response payloads of operations unless the checksum algorithm is supported and
241
+ # the `requestValidationModeMember` member is set to `ENABLED`.
242
+ #
243
+ # @option options [Proc] :retry_backoff
244
+ # A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
245
+ # This option is only used in the `legacy` retry mode.
246
+ #
247
+ # @option options [Float] :retry_base_delay (0.3)
248
+ # The base delay in seconds used by the default backoff function. This option
249
+ # is only used in the `legacy` retry mode.
250
+ #
251
+ # @option options [Symbol] :retry_jitter (:none)
252
+ # A delay randomiser function used by the default backoff function.
253
+ # Some predefined functions can be referenced by name - :none, :equal, :full,
254
+ # otherwise a Proc that takes and returns a number. This option is only used
255
+ # in the `legacy` retry mode.
256
+ #
257
+ # @see https://www.awsarchitectureblog.com/2015/03/backoff.html
258
+ #
259
+ # @option options [Integer] :retry_limit (3)
260
+ # The maximum number of times to retry failed requests. Only
261
+ # ~ 500 level server errors and certain ~ 400 level client errors
262
+ # are retried. Generally, these are throttling errors, data
263
+ # checksum errors, networking errors, timeout errors, auth errors,
264
+ # endpoint discovery, and errors from expired credentials.
265
+ # This option is only used in the `legacy` retry mode.
266
+ #
267
+ # @option options [Integer] :retry_max_delay (0)
268
+ # The maximum number of seconds to delay between retries (0 for no limit)
269
+ # used by the default backoff function. This option is only used in the
270
+ # `legacy` retry mode.
271
+ #
272
+ # @option options [String] :retry_mode ("legacy")
273
+ # Specifies which retry algorithm to use. Values are:
274
+ #
275
+ # * `legacy` - The pre-existing retry behavior. This is the default
276
+ # value if no retry mode is provided.
277
+ #
278
+ # * `standard` - A standardized set of retry rules across the AWS SDKs.
279
+ # This includes support for retry quotas, which limit the number of
280
+ # unsuccessful retries a client can make.
281
+ #
282
+ # * `adaptive` - A retry mode that includes all the functionality of
283
+ # `standard` mode along with automatic client side throttling.
284
+ #
285
+ # @option options [String] :sdk_ua_app_id
286
+ # A unique and opaque application ID that is appended to the
287
+ # User-Agent header as app/sdk_ua_app_id. It should have a
288
+ # maximum length of 50. This variable is sourced from environment
289
+ # variable AWS_SDK_UA_APP_ID or the shared config profile attribute sdk_ua_app_id.
290
+ #
291
+ # @option options [String] :secret_access_key
292
+ #
293
+ # @option options [String] :session_token
294
+ #
295
+ # @option options [Array] :sigv4a_signing_region_set
296
+ # A list of regions that should be signed with SigV4a signing. When
297
+ # not passed, a default `:sigv4a_signing_region_set` is searched for
298
+ # in the following locations:
299
+ #
300
+ # * `Aws.config[:sigv4a_signing_region_set]`
301
+ # * `ENV['AWS_SIGV4A_SIGNING_REGION_SET']`
302
+ # * `~/.aws/config`
303
+ #
304
+ # @option options [Boolean] :stub_responses (false)
305
+ # Causes the client to return stubbed responses. By default
306
+ # fake responses are generated and returned. You can specify
307
+ # the response data to return or errors to raise by calling
308
+ # {ClientStubs#stub_responses}. See {ClientStubs} for more information.
309
+ #
310
+ # ** Please note ** When response stubbing is enabled, no HTTP
311
+ # requests are made, and retries are disabled.
312
+ #
313
+ # @option options [Aws::Telemetry::TelemetryProviderBase] :telemetry_provider (Aws::Telemetry::NoOpTelemetryProvider)
314
+ # Allows you to provide a telemetry provider, which is used to
315
+ # emit telemetry data. By default, uses `NoOpTelemetryProvider` which
316
+ # will not record or emit any telemetry data. The SDK supports the
317
+ # following telemetry providers:
318
+ #
319
+ # * OpenTelemetry (OTel) - To use the OTel provider, install and require the
320
+ # `opentelemetry-sdk` gem and then, pass in an instance of a
321
+ # `Aws::Telemetry::OTelProvider` for telemetry provider.
322
+ #
323
+ # @option options [Aws::TokenProvider] :token_provider
324
+ # Your Bearer token used for authentication. This can be any class that includes and implements
325
+ # `Aws::TokenProvider`, or instance of any one of the following classes:
326
+ #
327
+ # * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
328
+ # tokens.
329
+ #
330
+ # * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
331
+ # access token generated from `aws login`.
332
+ #
333
+ # When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
334
+ # will be used to search for tokens configured for your profile in shared configuration files.
335
+ #
336
+ # @option options [Boolean] :use_dualstack_endpoint
337
+ # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
338
+ # will be used if available.
339
+ #
340
+ # @option options [Boolean] :use_fips_endpoint
341
+ # When set to `true`, fips compatible endpoints will be used if available.
342
+ # When a `fips` region is used, the region is normalized and this config
343
+ # is set to `true`.
344
+ #
345
+ # @option options [Boolean] :validate_params (true)
346
+ # When `true`, request parameters are validated before
347
+ # sending the request.
348
+ #
349
+ # @option options [Aws::SageMakerTrainingSessionRuntime::EndpointProvider] :endpoint_provider
350
+ # The endpoint provider used to resolve endpoints. Any object that responds to
351
+ # `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to
352
+ # `Aws::SageMakerTrainingSessionRuntime::EndpointParameters`.
353
+ #
354
+ # @option options [Integer] :connection_read_timeout (60)
355
+ # Connection read timeout in seconds, defaults to 60 sec.
356
+ #
357
+ # @option options [Integer] :connection_timeout (60)
358
+ # Connection timeout in seconds, defaults to 60 sec.
359
+ #
360
+ # @option options [Boolean] :enable_alpn (true)
361
+ # Set to `false` to disable ALPN in HTTP2 over TLS. ALPN requires Openssl version >= 1.0.2.
362
+ # Note: RFC7540 requires HTTP2 to use ALPN over TLS but some
363
+ # services may not fully support ALPN and require setting this to `false`.
364
+ #
365
+ # @option options [Boolean] :http_wire_trace (false)
366
+ # When `true`, HTTP2 debug output will be sent to the `:logger`.
367
+ #
368
+ # @option options [Integer] :max_concurrent_streams (100)
369
+ # Maximum concurrent streams used in HTTP2 connection, defaults to 100. Note that server may send back
370
+ # :settings_max_concurrent_streams value which will take priority when initializing new streams.
371
+ #
372
+ # @option options [Boolean] :raise_response_errors (true)
373
+ # Defaults to `true`, raises errors if exist when #wait or #join! is called upon async response.
374
+ #
375
+ # @option options [Integer] :read_chunk_size (1024)
376
+ #
377
+ # @option options [String] :ssl_ca_bundle
378
+ # Full path to the SSL certificate authority bundle file that should be used when
379
+ # verifying peer certificates. If you do not pass `:ssl_ca_directory` or `:ssl_ca_bundle`
380
+ # the system default will be used if available.
381
+ #
382
+ # @option options [String] :ssl_ca_directory
383
+ # Full path of the directory that contains the unbundled SSL certificate authority
384
+ # files for verifying peer certificates. If you do not pass `:ssl_ca_bundle` or
385
+ # `:ssl_ca_directory` the system default will be used if available.
386
+ #
387
+ # @option options [String] :ssl_ca_store
388
+ #
389
+ # @option options [Boolean] :ssl_verify_peer (true)
390
+ # When `true`, SSL peer certificates are verified when establishing a connection.
391
+ #
392
+ def initialize(*args)
393
+ unless Kernel.const_defined?("HTTP2")
394
+ raise "Must include http/2 gem to use AsyncClient instances."
395
+ end
396
+ super
397
+ end
398
+
399
+ # @!group API Operations
400
+
401
+ # @!endgroup
402
+
403
+ # @param params ({})
404
+ # @api private
405
+ def build_request(operation_name, params = {})
406
+ handlers = @handlers.for(operation_name)
407
+ tracer = config.telemetry_provider.tracer_provider.tracer(
408
+ Aws::Telemetry.module_to_tracer_name('Aws::SageMakerTrainingSessionRuntime')
409
+ )
410
+ context = Seahorse::Client::RequestContext.new(
411
+ operation_name: operation_name,
412
+ operation: config.api.operation(operation_name),
413
+ client: self,
414
+ params: params,
415
+ http_response: Seahorse::Client::Http::AsyncResponse.new,
416
+ config: config,
417
+ tracer: tracer
418
+ )
419
+ context[:gem_name] = 'aws-sdk-sagemakertrainingsessionruntime'
420
+ context[:gem_version] = '1.0.0'
421
+ Seahorse::Client::Request.new(handlers, context)
422
+ end
423
+
424
+ private
425
+
426
+ def _event_stream_handler(type, handler, event_stream_class)
427
+ case handler
428
+ when event_stream_class then handler
429
+ when Proc then event_stream_class.new.tap(&handler)
430
+ when nil then event_stream_class.new
431
+ else
432
+ msg = "expected #{type}_event_stream_handler to be a block or "\
433
+ "instance of Aws::SageMakerTrainingSessionRuntime::#{event_stream_class}"\
434
+ ", got `#{handler.inspect}` instead"
435
+ raise ArgumentError, msg
436
+ end
437
+ end
438
+
439
+ class << self
440
+
441
+ # @api private
442
+ attr_reader :identifier
443
+
444
+ # @api private
445
+ def errors_module
446
+ Errors
447
+ end
448
+
449
+ end
450
+ end
451
+ end