@aws-sdk/client-sagemaker-runtime-http2 3.938.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.
- package/LICENSE +201 -0
- package/README.md +219 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
- package/dist-cjs/endpoint/endpointResolver.js +18 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/index.js +537 -0
- package/dist-cjs/runtimeConfig.browser.js +43 -0
- package/dist-cjs/runtimeConfig.js +60 -0
- package/dist-cjs/runtimeConfig.native.js +18 -0
- package/dist-cjs/runtimeConfig.shared.js +36 -0
- package/dist-es/SageMakerRuntimeHTTP2.js +9 -0
- package/dist-es/SageMakerRuntimeHTTP2Client.js +54 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
- package/dist-es/commands/InvokeEndpointWithBidirectionalStreamCommand.js +22 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/endpoint/EndpointParameters.js +13 -0
- package/dist-es/endpoint/endpointResolver.js +14 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +5 -0
- package/dist-es/models/SageMakerRuntimeHTTP2ServiceException.js +8 -0
- package/dist-es/models/errors.js +101 -0
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/runtimeConfig.browser.js +38 -0
- package/dist-es/runtimeConfig.js +55 -0
- package/dist-es/runtimeConfig.native.js +14 -0
- package/dist-es/runtimeConfig.shared.js +32 -0
- package/dist-es/runtimeExtensions.js +9 -0
- package/dist-es/schemas/schemas_0.js +273 -0
- package/dist-types/SageMakerRuntimeHTTP2.d.ts +17 -0
- package/dist-types/SageMakerRuntimeHTTP2Client.d.ts +209 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
- package/dist-types/commands/InvokeEndpointWithBidirectionalStreamCommand.d.ts +118 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +38 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +14 -0
- package/dist-types/models/SageMakerRuntimeHTTP2ServiceException.d.ts +14 -0
- package/dist-types/models/errors.d.ts +144 -0
- package/dist-types/models/models_0.d.ts +190 -0
- package/dist-types/runtimeConfig.browser.d.ts +53 -0
- package/dist-types/runtimeConfig.d.ts +53 -0
- package/dist-types/runtimeConfig.native.d.ts +52 -0
- package/dist-types/runtimeConfig.shared.d.ts +22 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/schemas/schemas_0.d.ts +16 -0
- package/dist-types/ts3.4/SageMakerRuntimeHTTP2.d.ts +30 -0
- package/dist-types/ts3.4/SageMakerRuntimeHTTP2Client.d.ts +148 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +47 -0
- package/dist-types/ts3.4/commands/InvokeEndpointWithBidirectionalStreamCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
- package/dist-types/ts3.4/index.d.ts +9 -0
- package/dist-types/ts3.4/models/SageMakerRuntimeHTTP2ServiceException.d.ts +9 -0
- package/dist-types/ts3.4/models/errors.d.ts +54 -0
- package/dist-types/ts3.4/models/models_0.d.ts +78 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +100 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +95 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +104 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +27 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +13 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +21 -0
- package/package.json +104 -0
|
@@ -0,0 +1,537 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var middlewareEventstream = require('@aws-sdk/middleware-eventstream');
|
|
4
|
+
var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
|
|
5
|
+
var middlewareLogger = require('@aws-sdk/middleware-logger');
|
|
6
|
+
var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
|
|
7
|
+
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
8
|
+
var configResolver = require('@smithy/config-resolver');
|
|
9
|
+
var core = require('@smithy/core');
|
|
10
|
+
var schema = require('@smithy/core/schema');
|
|
11
|
+
var eventstreamSerdeConfigResolver = require('@smithy/eventstream-serde-config-resolver');
|
|
12
|
+
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
13
|
+
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
14
|
+
var middlewareRetry = require('@smithy/middleware-retry');
|
|
15
|
+
var smithyClient = require('@smithy/smithy-client');
|
|
16
|
+
var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
17
|
+
var runtimeConfig = require('./runtimeConfig');
|
|
18
|
+
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
19
|
+
var protocolHttp = require('@smithy/protocol-http');
|
|
20
|
+
|
|
21
|
+
const resolveClientEndpointParameters = (options) => {
|
|
22
|
+
return Object.assign(options, {
|
|
23
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
24
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
25
|
+
defaultSigningName: "sagemaker",
|
|
26
|
+
});
|
|
27
|
+
};
|
|
28
|
+
const commonParams = {
|
|
29
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
30
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
31
|
+
Region: { type: "builtInParams", name: "region" },
|
|
32
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
36
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
37
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
38
|
+
let _credentials = runtimeConfig.credentials;
|
|
39
|
+
return {
|
|
40
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
41
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
42
|
+
if (index === -1) {
|
|
43
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
httpAuthSchemes() {
|
|
50
|
+
return _httpAuthSchemes;
|
|
51
|
+
},
|
|
52
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
53
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
54
|
+
},
|
|
55
|
+
httpAuthSchemeProvider() {
|
|
56
|
+
return _httpAuthSchemeProvider;
|
|
57
|
+
},
|
|
58
|
+
setCredentials(credentials) {
|
|
59
|
+
_credentials = credentials;
|
|
60
|
+
},
|
|
61
|
+
credentials() {
|
|
62
|
+
return _credentials;
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
67
|
+
return {
|
|
68
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
69
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
70
|
+
credentials: config.credentials(),
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
75
|
+
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
76
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
77
|
+
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
class SageMakerRuntimeHTTP2Client extends smithyClient.Client {
|
|
81
|
+
config;
|
|
82
|
+
constructor(...[configuration]) {
|
|
83
|
+
const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
|
|
84
|
+
super(_config_0);
|
|
85
|
+
this.initConfig = _config_0;
|
|
86
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
87
|
+
const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
|
|
88
|
+
const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
|
|
89
|
+
const _config_4 = configResolver.resolveRegionConfig(_config_3);
|
|
90
|
+
const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
|
|
91
|
+
const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
|
|
92
|
+
const _config_7 = eventstreamSerdeConfigResolver.resolveEventStreamSerdeConfig(_config_6);
|
|
93
|
+
const _config_8 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_7);
|
|
94
|
+
const _config_9 = middlewareEventstream.resolveEventStreamConfig(_config_8);
|
|
95
|
+
const _config_10 = resolveRuntimeExtensions(_config_9, configuration?.extensions || []);
|
|
96
|
+
this.config = _config_10;
|
|
97
|
+
this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
99
|
+
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
100
|
+
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
101
|
+
this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
|
|
102
|
+
this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
|
|
103
|
+
this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
|
|
104
|
+
this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
105
|
+
httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultSageMakerRuntimeHTTP2HttpAuthSchemeParametersProvider,
|
|
106
|
+
identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
|
|
107
|
+
"aws.auth#sigv4": config.credentials,
|
|
108
|
+
}),
|
|
109
|
+
}));
|
|
110
|
+
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
|
|
111
|
+
}
|
|
112
|
+
destroy() {
|
|
113
|
+
super.destroy();
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
let SageMakerRuntimeHTTP2ServiceException$1 = class SageMakerRuntimeHTTP2ServiceException extends smithyClient.ServiceException {
|
|
118
|
+
constructor(options) {
|
|
119
|
+
super(options);
|
|
120
|
+
Object.setPrototypeOf(this, SageMakerRuntimeHTTP2ServiceException.prototype);
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
let InputValidationError$1 = class InputValidationError extends SageMakerRuntimeHTTP2ServiceException$1 {
|
|
125
|
+
name = "InputValidationError";
|
|
126
|
+
$fault = "client";
|
|
127
|
+
Message;
|
|
128
|
+
ErrorCode;
|
|
129
|
+
constructor(opts) {
|
|
130
|
+
super({
|
|
131
|
+
name: "InputValidationError",
|
|
132
|
+
$fault: "client",
|
|
133
|
+
...opts,
|
|
134
|
+
});
|
|
135
|
+
Object.setPrototypeOf(this, InputValidationError.prototype);
|
|
136
|
+
this.Message = opts.Message;
|
|
137
|
+
this.ErrorCode = opts.ErrorCode;
|
|
138
|
+
}
|
|
139
|
+
};
|
|
140
|
+
let InternalServerError$1 = class InternalServerError extends SageMakerRuntimeHTTP2ServiceException$1 {
|
|
141
|
+
name = "InternalServerError";
|
|
142
|
+
$fault = "server";
|
|
143
|
+
Message;
|
|
144
|
+
ErrorCode;
|
|
145
|
+
constructor(opts) {
|
|
146
|
+
super({
|
|
147
|
+
name: "InternalServerError",
|
|
148
|
+
$fault: "server",
|
|
149
|
+
...opts,
|
|
150
|
+
});
|
|
151
|
+
Object.setPrototypeOf(this, InternalServerError.prototype);
|
|
152
|
+
this.Message = opts.Message;
|
|
153
|
+
this.ErrorCode = opts.ErrorCode;
|
|
154
|
+
}
|
|
155
|
+
};
|
|
156
|
+
let InternalStreamFailure$1 = class InternalStreamFailure extends SageMakerRuntimeHTTP2ServiceException$1 {
|
|
157
|
+
name = "InternalStreamFailure";
|
|
158
|
+
$fault = "server";
|
|
159
|
+
Message;
|
|
160
|
+
constructor(opts) {
|
|
161
|
+
super({
|
|
162
|
+
name: "InternalStreamFailure",
|
|
163
|
+
$fault: "server",
|
|
164
|
+
...opts,
|
|
165
|
+
});
|
|
166
|
+
Object.setPrototypeOf(this, InternalStreamFailure.prototype);
|
|
167
|
+
this.Message = opts.Message;
|
|
168
|
+
}
|
|
169
|
+
};
|
|
170
|
+
let ModelStreamError$1 = class ModelStreamError extends SageMakerRuntimeHTTP2ServiceException$1 {
|
|
171
|
+
name = "ModelStreamError";
|
|
172
|
+
$fault = "client";
|
|
173
|
+
Message;
|
|
174
|
+
ErrorCode;
|
|
175
|
+
constructor(opts) {
|
|
176
|
+
super({
|
|
177
|
+
name: "ModelStreamError",
|
|
178
|
+
$fault: "client",
|
|
179
|
+
...opts,
|
|
180
|
+
});
|
|
181
|
+
Object.setPrototypeOf(this, ModelStreamError.prototype);
|
|
182
|
+
this.Message = opts.Message;
|
|
183
|
+
this.ErrorCode = opts.ErrorCode;
|
|
184
|
+
}
|
|
185
|
+
};
|
|
186
|
+
let ModelError$1 = class ModelError extends SageMakerRuntimeHTTP2ServiceException$1 {
|
|
187
|
+
name = "ModelError";
|
|
188
|
+
$fault = "client";
|
|
189
|
+
Message;
|
|
190
|
+
OriginalStatusCode;
|
|
191
|
+
OriginalMessage;
|
|
192
|
+
LogStreamArn;
|
|
193
|
+
ErrorCode;
|
|
194
|
+
constructor(opts) {
|
|
195
|
+
super({
|
|
196
|
+
name: "ModelError",
|
|
197
|
+
$fault: "client",
|
|
198
|
+
...opts,
|
|
199
|
+
});
|
|
200
|
+
Object.setPrototypeOf(this, ModelError.prototype);
|
|
201
|
+
this.Message = opts.Message;
|
|
202
|
+
this.OriginalStatusCode = opts.OriginalStatusCode;
|
|
203
|
+
this.OriginalMessage = opts.OriginalMessage;
|
|
204
|
+
this.LogStreamArn = opts.LogStreamArn;
|
|
205
|
+
this.ErrorCode = opts.ErrorCode;
|
|
206
|
+
}
|
|
207
|
+
};
|
|
208
|
+
let ServiceUnavailableError$1 = class ServiceUnavailableError extends SageMakerRuntimeHTTP2ServiceException$1 {
|
|
209
|
+
name = "ServiceUnavailableError";
|
|
210
|
+
$fault = "server";
|
|
211
|
+
Message;
|
|
212
|
+
ErrorCode;
|
|
213
|
+
constructor(opts) {
|
|
214
|
+
super({
|
|
215
|
+
name: "ServiceUnavailableError",
|
|
216
|
+
$fault: "server",
|
|
217
|
+
...opts,
|
|
218
|
+
});
|
|
219
|
+
Object.setPrototypeOf(this, ServiceUnavailableError.prototype);
|
|
220
|
+
this.Message = opts.Message;
|
|
221
|
+
this.ErrorCode = opts.ErrorCode;
|
|
222
|
+
}
|
|
223
|
+
};
|
|
224
|
+
|
|
225
|
+
const _B = "Body";
|
|
226
|
+
const _By = "Bytes";
|
|
227
|
+
const _CS = "CompletionState";
|
|
228
|
+
const _DT = "DataType";
|
|
229
|
+
const _EC = "ErrorCode";
|
|
230
|
+
const _EN = "EndpointName";
|
|
231
|
+
const _IEWBS = "InvokeEndpointWithBidirectionalStream";
|
|
232
|
+
const _IEWBSI = "InvokeEndpointWithBidirectionalStreamInput";
|
|
233
|
+
const _IEWBSO = "InvokeEndpointWithBidirectionalStreamOutput";
|
|
234
|
+
const _IPV = "InvokedProductionVariant";
|
|
235
|
+
const _ISE = "InternalServerError";
|
|
236
|
+
const _ISF = "InternalStreamFailure";
|
|
237
|
+
const _IVE = "InputValidationError";
|
|
238
|
+
const _LSA = "LogStreamArn";
|
|
239
|
+
const _M = "Message";
|
|
240
|
+
const _ME = "ModelError";
|
|
241
|
+
const _MIP = "ModelInvocationPath";
|
|
242
|
+
const _MQS = "ModelQueryString";
|
|
243
|
+
const _MSE = "ModelStreamError";
|
|
244
|
+
const _OM = "OriginalMessage";
|
|
245
|
+
const _OSC = "OriginalStatusCode";
|
|
246
|
+
const _P = "P";
|
|
247
|
+
const _PP = "PayloadPart";
|
|
248
|
+
const _RPP = "RequestPayloadPart";
|
|
249
|
+
const _RPPe = "ResponsePayloadPart";
|
|
250
|
+
const _RSE = "RequestStreamEvent";
|
|
251
|
+
const _RSEe = "ResponseStreamEvent";
|
|
252
|
+
const _SB = "SensitiveBlob";
|
|
253
|
+
const _SUE = "ServiceUnavailableError";
|
|
254
|
+
const _TV = "TargetVariant";
|
|
255
|
+
const _XAIPV = "X-Amzn-Invoked-Production-Variant";
|
|
256
|
+
const _XASMIP = "X-Amzn-SageMaker-Model-Invocation-Path";
|
|
257
|
+
const _XASMQS = "X-Amzn-SageMaker-Model-Query-String";
|
|
258
|
+
const _XASTV = "X-Amzn-SageMaker-Target-Variant";
|
|
259
|
+
const _c = "client";
|
|
260
|
+
const _e = "error";
|
|
261
|
+
const _eH = "eventHeader";
|
|
262
|
+
const _eP = "eventPayload";
|
|
263
|
+
const _h = "http";
|
|
264
|
+
const _hE = "httpError";
|
|
265
|
+
const _hH = "httpHeader";
|
|
266
|
+
const _s = "server";
|
|
267
|
+
const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.sagemakerruntimehttp2";
|
|
268
|
+
const _st = "streaming";
|
|
269
|
+
const n0 = "com.amazonaws.sagemakerruntimehttp2";
|
|
270
|
+
var SensitiveBlob = [0, n0, _SB, 8, 21];
|
|
271
|
+
var InputValidationError = [
|
|
272
|
+
-3,
|
|
273
|
+
n0,
|
|
274
|
+
_IVE,
|
|
275
|
+
{
|
|
276
|
+
[_e]: _c,
|
|
277
|
+
[_hE]: 400,
|
|
278
|
+
},
|
|
279
|
+
[_M, _EC],
|
|
280
|
+
[0, 0],
|
|
281
|
+
];
|
|
282
|
+
schema.TypeRegistry.for(n0).registerError(InputValidationError, InputValidationError$1);
|
|
283
|
+
var InternalServerError = [
|
|
284
|
+
-3,
|
|
285
|
+
n0,
|
|
286
|
+
_ISE,
|
|
287
|
+
{
|
|
288
|
+
[_e]: _s,
|
|
289
|
+
[_hE]: 500,
|
|
290
|
+
},
|
|
291
|
+
[_M, _EC],
|
|
292
|
+
[0, 0],
|
|
293
|
+
];
|
|
294
|
+
schema.TypeRegistry.for(n0).registerError(InternalServerError, InternalServerError$1);
|
|
295
|
+
var InternalStreamFailure = [
|
|
296
|
+
-3,
|
|
297
|
+
n0,
|
|
298
|
+
_ISF,
|
|
299
|
+
{
|
|
300
|
+
[_e]: _s,
|
|
301
|
+
},
|
|
302
|
+
[_M],
|
|
303
|
+
[0],
|
|
304
|
+
];
|
|
305
|
+
schema.TypeRegistry.for(n0).registerError(InternalStreamFailure, InternalStreamFailure$1);
|
|
306
|
+
var InvokeEndpointWithBidirectionalStreamInput = [
|
|
307
|
+
3,
|
|
308
|
+
n0,
|
|
309
|
+
_IEWBSI,
|
|
310
|
+
0,
|
|
311
|
+
[_EN, _B, _TV, _MIP, _MQS],
|
|
312
|
+
[
|
|
313
|
+
[0, 1],
|
|
314
|
+
[() => RequestStreamEvent, 16],
|
|
315
|
+
[
|
|
316
|
+
0,
|
|
317
|
+
{
|
|
318
|
+
[_hH]: _XASTV,
|
|
319
|
+
},
|
|
320
|
+
],
|
|
321
|
+
[
|
|
322
|
+
0,
|
|
323
|
+
{
|
|
324
|
+
[_hH]: _XASMIP,
|
|
325
|
+
},
|
|
326
|
+
],
|
|
327
|
+
[
|
|
328
|
+
0,
|
|
329
|
+
{
|
|
330
|
+
[_hH]: _XASMQS,
|
|
331
|
+
},
|
|
332
|
+
],
|
|
333
|
+
],
|
|
334
|
+
];
|
|
335
|
+
var InvokeEndpointWithBidirectionalStreamOutput = [
|
|
336
|
+
3,
|
|
337
|
+
n0,
|
|
338
|
+
_IEWBSO,
|
|
339
|
+
0,
|
|
340
|
+
[_B, _IPV],
|
|
341
|
+
[
|
|
342
|
+
[() => ResponseStreamEvent, 16],
|
|
343
|
+
[
|
|
344
|
+
0,
|
|
345
|
+
{
|
|
346
|
+
[_hH]: _XAIPV,
|
|
347
|
+
},
|
|
348
|
+
],
|
|
349
|
+
],
|
|
350
|
+
];
|
|
351
|
+
var ModelError = [
|
|
352
|
+
-3,
|
|
353
|
+
n0,
|
|
354
|
+
_ME,
|
|
355
|
+
{
|
|
356
|
+
[_e]: _c,
|
|
357
|
+
[_hE]: 424,
|
|
358
|
+
},
|
|
359
|
+
[_M, _OSC, _OM, _LSA, _EC],
|
|
360
|
+
[0, 1, 0, 0, 0],
|
|
361
|
+
];
|
|
362
|
+
schema.TypeRegistry.for(n0).registerError(ModelError, ModelError$1);
|
|
363
|
+
var ModelStreamError = [
|
|
364
|
+
-3,
|
|
365
|
+
n0,
|
|
366
|
+
_MSE,
|
|
367
|
+
{
|
|
368
|
+
[_e]: _c,
|
|
369
|
+
},
|
|
370
|
+
[_M, _EC],
|
|
371
|
+
[0, 0],
|
|
372
|
+
];
|
|
373
|
+
schema.TypeRegistry.for(n0).registerError(ModelStreamError, ModelStreamError$1);
|
|
374
|
+
var RequestPayloadPart = [
|
|
375
|
+
3,
|
|
376
|
+
n0,
|
|
377
|
+
_RPP,
|
|
378
|
+
0,
|
|
379
|
+
[_By, _DT, _CS, _P],
|
|
380
|
+
[
|
|
381
|
+
[
|
|
382
|
+
() => SensitiveBlob,
|
|
383
|
+
{
|
|
384
|
+
[_eP]: 1,
|
|
385
|
+
},
|
|
386
|
+
],
|
|
387
|
+
[
|
|
388
|
+
0,
|
|
389
|
+
{
|
|
390
|
+
[_eH]: 1,
|
|
391
|
+
},
|
|
392
|
+
],
|
|
393
|
+
[
|
|
394
|
+
0,
|
|
395
|
+
{
|
|
396
|
+
[_eH]: 1,
|
|
397
|
+
},
|
|
398
|
+
],
|
|
399
|
+
[
|
|
400
|
+
0,
|
|
401
|
+
{
|
|
402
|
+
[_eH]: 1,
|
|
403
|
+
},
|
|
404
|
+
],
|
|
405
|
+
],
|
|
406
|
+
];
|
|
407
|
+
var ResponsePayloadPart = [
|
|
408
|
+
3,
|
|
409
|
+
n0,
|
|
410
|
+
_RPPe,
|
|
411
|
+
0,
|
|
412
|
+
[_By, _DT, _CS, _P],
|
|
413
|
+
[
|
|
414
|
+
[
|
|
415
|
+
() => SensitiveBlob,
|
|
416
|
+
{
|
|
417
|
+
[_eP]: 1,
|
|
418
|
+
},
|
|
419
|
+
],
|
|
420
|
+
[
|
|
421
|
+
0,
|
|
422
|
+
{
|
|
423
|
+
[_eH]: 1,
|
|
424
|
+
},
|
|
425
|
+
],
|
|
426
|
+
[
|
|
427
|
+
0,
|
|
428
|
+
{
|
|
429
|
+
[_eH]: 1,
|
|
430
|
+
},
|
|
431
|
+
],
|
|
432
|
+
[
|
|
433
|
+
0,
|
|
434
|
+
{
|
|
435
|
+
[_eH]: 1,
|
|
436
|
+
},
|
|
437
|
+
],
|
|
438
|
+
],
|
|
439
|
+
];
|
|
440
|
+
var ServiceUnavailableError = [
|
|
441
|
+
-3,
|
|
442
|
+
n0,
|
|
443
|
+
_SUE,
|
|
444
|
+
{
|
|
445
|
+
[_e]: _s,
|
|
446
|
+
[_hE]: 503,
|
|
447
|
+
},
|
|
448
|
+
[_M, _EC],
|
|
449
|
+
[0, 0],
|
|
450
|
+
];
|
|
451
|
+
schema.TypeRegistry.for(n0).registerError(ServiceUnavailableError, ServiceUnavailableError$1);
|
|
452
|
+
var SageMakerRuntimeHTTP2ServiceException = [
|
|
453
|
+
-3,
|
|
454
|
+
_sm,
|
|
455
|
+
"SageMakerRuntimeHTTP2ServiceException",
|
|
456
|
+
0,
|
|
457
|
+
[],
|
|
458
|
+
[],
|
|
459
|
+
];
|
|
460
|
+
schema.TypeRegistry.for(_sm).registerError(SageMakerRuntimeHTTP2ServiceException, SageMakerRuntimeHTTP2ServiceException$1);
|
|
461
|
+
var RequestStreamEvent = [
|
|
462
|
+
3,
|
|
463
|
+
n0,
|
|
464
|
+
_RSE,
|
|
465
|
+
{
|
|
466
|
+
[_st]: 1,
|
|
467
|
+
},
|
|
468
|
+
[_PP],
|
|
469
|
+
[[() => RequestPayloadPart, 0]],
|
|
470
|
+
];
|
|
471
|
+
var ResponseStreamEvent = [
|
|
472
|
+
3,
|
|
473
|
+
n0,
|
|
474
|
+
_RSEe,
|
|
475
|
+
{
|
|
476
|
+
[_st]: 1,
|
|
477
|
+
},
|
|
478
|
+
[_PP, _MSE, _ISF],
|
|
479
|
+
[
|
|
480
|
+
[() => ResponsePayloadPart, 0],
|
|
481
|
+
[() => ModelStreamError, 0],
|
|
482
|
+
[() => InternalStreamFailure, 0],
|
|
483
|
+
],
|
|
484
|
+
];
|
|
485
|
+
var InvokeEndpointWithBidirectionalStream = [
|
|
486
|
+
9,
|
|
487
|
+
n0,
|
|
488
|
+
_IEWBS,
|
|
489
|
+
{
|
|
490
|
+
[_h]: ["POST", "/endpoints/{EndpointName}/invocations-bidirectional-stream", 200],
|
|
491
|
+
},
|
|
492
|
+
() => InvokeEndpointWithBidirectionalStreamInput,
|
|
493
|
+
() => InvokeEndpointWithBidirectionalStreamOutput,
|
|
494
|
+
];
|
|
495
|
+
|
|
496
|
+
class InvokeEndpointWithBidirectionalStreamCommand extends smithyClient.Command
|
|
497
|
+
.classBuilder()
|
|
498
|
+
.ep(commonParams)
|
|
499
|
+
.m(function (Command, cs, config, o) {
|
|
500
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()), middlewareEventstream.getEventStreamPlugin(config)];
|
|
501
|
+
})
|
|
502
|
+
.s("AmazonSageMakerRuntimeHttp2", "InvokeEndpointWithBidirectionalStream", {
|
|
503
|
+
eventStream: {
|
|
504
|
+
input: true,
|
|
505
|
+
output: true,
|
|
506
|
+
},
|
|
507
|
+
})
|
|
508
|
+
.n("SageMakerRuntimeHTTP2Client", "InvokeEndpointWithBidirectionalStreamCommand")
|
|
509
|
+
.sc(InvokeEndpointWithBidirectionalStream)
|
|
510
|
+
.build() {
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
const commands = {
|
|
514
|
+
InvokeEndpointWithBidirectionalStreamCommand,
|
|
515
|
+
};
|
|
516
|
+
class SageMakerRuntimeHTTP2 extends SageMakerRuntimeHTTP2Client {
|
|
517
|
+
}
|
|
518
|
+
smithyClient.createAggregatedClient(commands, SageMakerRuntimeHTTP2);
|
|
519
|
+
|
|
520
|
+
Object.defineProperty(exports, "$Command", {
|
|
521
|
+
enumerable: true,
|
|
522
|
+
get: function () { return smithyClient.Command; }
|
|
523
|
+
});
|
|
524
|
+
Object.defineProperty(exports, "__Client", {
|
|
525
|
+
enumerable: true,
|
|
526
|
+
get: function () { return smithyClient.Client; }
|
|
527
|
+
});
|
|
528
|
+
exports.InputValidationError = InputValidationError$1;
|
|
529
|
+
exports.InternalServerError = InternalServerError$1;
|
|
530
|
+
exports.InternalStreamFailure = InternalStreamFailure$1;
|
|
531
|
+
exports.InvokeEndpointWithBidirectionalStreamCommand = InvokeEndpointWithBidirectionalStreamCommand;
|
|
532
|
+
exports.ModelError = ModelError$1;
|
|
533
|
+
exports.ModelStreamError = ModelStreamError$1;
|
|
534
|
+
exports.SageMakerRuntimeHTTP2 = SageMakerRuntimeHTTP2;
|
|
535
|
+
exports.SageMakerRuntimeHTTP2Client = SageMakerRuntimeHTTP2Client;
|
|
536
|
+
exports.SageMakerRuntimeHTTP2ServiceException = SageMakerRuntimeHTTP2ServiceException$1;
|
|
537
|
+
exports.ServiceUnavailableError = ServiceUnavailableError$1;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
6
|
+
const sha256_browser_1 = require("@aws-crypto/sha256-browser");
|
|
7
|
+
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
8
|
+
const config_resolver_1 = require("@smithy/config-resolver");
|
|
9
|
+
const eventstream_serde_browser_1 = require("@smithy/eventstream-serde-browser");
|
|
10
|
+
const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
|
|
11
|
+
const invalid_dependency_1 = require("@smithy/invalid-dependency");
|
|
12
|
+
const util_body_length_browser_1 = require("@smithy/util-body-length-browser");
|
|
13
|
+
const util_retry_1 = require("@smithy/util-retry");
|
|
14
|
+
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
15
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
16
|
+
const util_defaults_mode_browser_1 = require("@smithy/util-defaults-mode-browser");
|
|
17
|
+
const getRuntimeConfig = (config) => {
|
|
18
|
+
const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
|
|
19
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
20
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
21
|
+
return {
|
|
22
|
+
...clientSharedValues,
|
|
23
|
+
...config,
|
|
24
|
+
runtime: "browser",
|
|
25
|
+
defaultsMode,
|
|
26
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
|
|
27
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
28
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
29
|
+
(0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
30
|
+
eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ??
|
|
31
|
+
(() => ({ handle: (0, invalid_dependency_1.invalidFunction)("event stream request is not supported in browser.") })),
|
|
32
|
+
eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventstream_serde_browser_1.eventStreamSerdeProvider,
|
|
33
|
+
maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
34
|
+
region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
|
35
|
+
requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
36
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE),
|
|
37
|
+
sha256: config?.sha256 ?? sha256_browser_1.Sha256,
|
|
38
|
+
streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
|
|
39
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
40
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
6
|
+
const core_1 = require("@aws-sdk/core");
|
|
7
|
+
const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
|
|
8
|
+
const eventstream_handler_node_1 = require("@aws-sdk/eventstream-handler-node");
|
|
9
|
+
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
10
|
+
const config_resolver_1 = require("@smithy/config-resolver");
|
|
11
|
+
const eventstream_serde_node_1 = require("@smithy/eventstream-serde-node");
|
|
12
|
+
const hash_node_1 = require("@smithy/hash-node");
|
|
13
|
+
const middleware_retry_1 = require("@smithy/middleware-retry");
|
|
14
|
+
const node_config_provider_1 = require("@smithy/node-config-provider");
|
|
15
|
+
const node_http_handler_1 = require("@smithy/node-http-handler");
|
|
16
|
+
const util_body_length_node_1 = require("@smithy/util-body-length-node");
|
|
17
|
+
const util_retry_1 = require("@smithy/util-retry");
|
|
18
|
+
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
19
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
20
|
+
const util_defaults_mode_node_1 = require("@smithy/util-defaults-mode-node");
|
|
21
|
+
const smithy_client_2 = require("@smithy/smithy-client");
|
|
22
|
+
const getRuntimeConfig = (config) => {
|
|
23
|
+
(0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
|
|
24
|
+
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
25
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
26
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
27
|
+
(0, core_1.emitWarningIfUnsupportedVersion)(process.version);
|
|
28
|
+
const loaderConfig = {
|
|
29
|
+
profile: config?.profile,
|
|
30
|
+
logger: clientSharedValues.logger,
|
|
31
|
+
};
|
|
32
|
+
return {
|
|
33
|
+
...clientSharedValues,
|
|
34
|
+
...config,
|
|
35
|
+
runtime: "node",
|
|
36
|
+
defaultsMode,
|
|
37
|
+
authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
38
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
|
|
39
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
|
|
40
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
41
|
+
(0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
42
|
+
eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ?? eventstream_handler_node_1.eventStreamPayloadHandlerProvider,
|
|
43
|
+
eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventstream_serde_node_1.eventStreamSerdeProvider,
|
|
44
|
+
maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
45
|
+
region: config?.region ??
|
|
46
|
+
(0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
47
|
+
requestHandler: node_http_handler_1.NodeHttp2Handler.create(config?.requestHandler ?? (async () => ({ ...(await defaultConfigProvider()), disableConcurrentStreams: true }))),
|
|
48
|
+
retryMode: config?.retryMode ??
|
|
49
|
+
(0, node_config_provider_1.loadConfig)({
|
|
50
|
+
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
51
|
+
default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,
|
|
52
|
+
}, config),
|
|
53
|
+
sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
|
|
54
|
+
streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
|
|
55
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
56
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
57
|
+
userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
5
|
+
const invalid_dependency_1 = require("@smithy/invalid-dependency");
|
|
6
|
+
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
7
|
+
const getRuntimeConfig = (config) => {
|
|
8
|
+
const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
|
|
9
|
+
return {
|
|
10
|
+
...browserDefaults,
|
|
11
|
+
...config,
|
|
12
|
+
runtime: "react-native",
|
|
13
|
+
eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ??
|
|
14
|
+
(() => ({ handle: (0, invalid_dependency_1.invalidFunction)("event stream request is not supported in ReactNative.") })),
|
|
15
|
+
sha256: config?.sha256 ?? sha256_js_1.Sha256,
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const core_1 = require("@aws-sdk/core");
|
|
5
|
+
const protocols_1 = require("@aws-sdk/core/protocols");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
const url_parser_1 = require("@smithy/url-parser");
|
|
8
|
+
const util_base64_1 = require("@smithy/util-base64");
|
|
9
|
+
const util_utf8_1 = require("@smithy/util-utf8");
|
|
10
|
+
const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
|
|
11
|
+
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
12
|
+
const getRuntimeConfig = (config) => {
|
|
13
|
+
return {
|
|
14
|
+
apiVersion: "2025-10-01",
|
|
15
|
+
base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
|
|
16
|
+
base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
|
|
17
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
18
|
+
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
|
|
19
|
+
extensions: config?.extensions ?? [],
|
|
20
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultSageMakerRuntimeHTTP2HttpAuthSchemeProvider,
|
|
21
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
22
|
+
{
|
|
23
|
+
schemeId: "aws.auth#sigv4",
|
|
24
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
25
|
+
signer: new core_1.AwsSdkSigV4Signer(),
|
|
26
|
+
},
|
|
27
|
+
],
|
|
28
|
+
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
29
|
+
protocol: config?.protocol ?? new protocols_1.AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.sagemakerruntimehttp2" }),
|
|
30
|
+
serviceId: config?.serviceId ?? "SageMaker Runtime HTTP2",
|
|
31
|
+
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
32
|
+
utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
|
|
33
|
+
utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|