@aws-sdk/client-sagemaker-inference-router-runtime 0.0.0-stage → 3.1171.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 +194 -2
- package/dist-cjs/index.js +643 -0
- package/dist-es/SageMakerInferenceRouterRuntime.js +11 -0
- package/dist-es/SageMakerInferenceRouterRuntimeClient.js +47 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +40 -0
- package/dist-es/commandBuilder.js +6 -0
- package/dist-es/commands/InvokeInferenceRouterAsyncCommand.js +4 -0
- package/dist-es/commands/InvokeInferenceRouterCommand.js +4 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/endpoint/EndpointParameters.js +13 -0
- package/dist-es/endpoint/bdd.js +48 -0
- package/dist-es/endpoint/endpointResolver.js +14 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +8 -0
- package/dist-es/models/SageMakerInferenceRouterRuntimeServiceException.js +9 -0
- package/dist-es/models/errors.js +149 -0
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/runtimeConfig.browser.js +29 -0
- package/dist-es/runtimeConfig.js +44 -0
- package/dist-es/runtimeConfig.native.js +9 -0
- package/dist-es/runtimeConfig.shared.js +40 -0
- package/dist-es/runtimeExtensions.js +9 -0
- package/dist-es/schemas/schemas_0.js +157 -0
- package/dist-types/SageMakerInferenceRouterRuntime.d.ts +30 -0
- package/dist-types/SageMakerInferenceRouterRuntimeClient.d.ts +189 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
- package/dist-types/commandBuilder.d.ts +18 -0
- package/dist-types/commands/InvokeInferenceRouterAsyncCommand.d.ts +101 -0
- package/dist-types/commands/InvokeInferenceRouterCommand.d.ts +142 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +50 -0
- package/dist-types/endpoint/bdd.d.ts +2 -0
- package/dist-types/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +16 -0
- package/dist-types/models/SageMakerInferenceRouterRuntimeServiceException.d.ts +15 -0
- package/dist-types/models/errors.d.ts +186 -0
- package/dist-types/models/models_0.d.ts +160 -0
- package/dist-types/runtimeConfig.browser.d.ts +57 -0
- package/dist-types/runtimeConfig.d.ts +58 -0
- package/dist-types/runtimeConfig.native.d.ts +56 -0
- package/dist-types/runtimeConfig.shared.d.ts +28 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/schemas/schemas_0.d.ts +24 -0
- package/dist-types/ts3.4/SageMakerInferenceRouterRuntime.d.ts +47 -0
- package/dist-types/ts3.4/SageMakerInferenceRouterRuntimeClient.d.ts +117 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +27 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +43 -0
- package/dist-types/ts3.4/commandBuilder.d.ts +40 -0
- package/dist-types/ts3.4/commands/InvokeInferenceRouterAsyncCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/InvokeInferenceRouterCommand.d.ts +52 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
- package/dist-types/ts3.4/endpoint/bdd.d.ts +2 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +10 -0
- package/dist-types/ts3.4/index.d.ts +11 -0
- package/dist-types/ts3.4/models/SageMakerInferenceRouterRuntimeServiceException.d.ts +10 -0
- package/dist-types/ts3.4/models/errors.d.ts +75 -0
- package/dist-types/ts3.4/models/models_0.d.ts +36 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +93 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +96 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +97 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +31 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +19 -0
- package/package.json +67 -4
|
@@ -0,0 +1,643 @@
|
|
|
1
|
+
const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, getDefaultSocketTimeout, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
2
|
+
const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin } = require("@smithy/core");
|
|
3
|
+
const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createAggregatedClient } = require("@smithy/core/client");
|
|
4
|
+
const { Command: $Command } = require("@smithy/core/client");
|
|
5
|
+
exports.$Command = $Command;
|
|
6
|
+
exports.__Client = Client;
|
|
7
|
+
const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
|
|
8
|
+
const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
9
|
+
const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
|
|
10
|
+
const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
|
|
11
|
+
const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
12
|
+
const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
|
|
13
|
+
const { defaultProvider } = require("@aws-sdk/credential-provider-node");
|
|
14
|
+
const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
|
|
15
|
+
const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
|
|
16
|
+
const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
|
|
17
|
+
const { Sha256 } = require("@smithy/core/checksum");
|
|
18
|
+
|
|
19
|
+
const defaultSageMakerInferenceRouterRuntimeHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
20
|
+
return {
|
|
21
|
+
operation: getSmithyContext(context).operation,
|
|
22
|
+
region: await normalizeProvider(config.region)() || (() => {
|
|
23
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
24
|
+
})(),
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
28
|
+
return {
|
|
29
|
+
schemeId: "aws.auth#sigv4",
|
|
30
|
+
signingProperties: {
|
|
31
|
+
name: "sagemaker",
|
|
32
|
+
region: authParameters.region,
|
|
33
|
+
},
|
|
34
|
+
propertiesExtractor: (config, context) => ({
|
|
35
|
+
signingProperties: {
|
|
36
|
+
config,
|
|
37
|
+
context,
|
|
38
|
+
},
|
|
39
|
+
}),
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
const defaultSageMakerInferenceRouterRuntimeHttpAuthSchemeProvider = (authParameters) => {
|
|
43
|
+
const options = [];
|
|
44
|
+
switch (authParameters.operation) {
|
|
45
|
+
default: {
|
|
46
|
+
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
return options;
|
|
50
|
+
};
|
|
51
|
+
const resolveHttpAuthSchemeConfig = (config) => {
|
|
52
|
+
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
53
|
+
return Object.assign(config_0, {
|
|
54
|
+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
55
|
+
});
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
const resolveClientEndpointParameters = (options) => {
|
|
59
|
+
return Object.assign(options, {
|
|
60
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
61
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
62
|
+
defaultSigningName: "sagemaker",
|
|
63
|
+
});
|
|
64
|
+
};
|
|
65
|
+
const commonParams = {
|
|
66
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
67
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
68
|
+
Region: { type: "builtInParams", name: "region" },
|
|
69
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
var version = "3.1170.0";
|
|
73
|
+
var packageInfo = {
|
|
74
|
+
version: version};
|
|
75
|
+
|
|
76
|
+
const k = "ref";
|
|
77
|
+
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
|
|
78
|
+
const _data = {
|
|
79
|
+
conditions: [
|
|
80
|
+
[c, [g]],
|
|
81
|
+
[c, j],
|
|
82
|
+
["aws.partition", j, d],
|
|
83
|
+
[e, [{ [k]: "UseFIPS" }, b]],
|
|
84
|
+
[e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]],
|
|
85
|
+
[e, [{ [k]: "UseDualStack" }, b]],
|
|
86
|
+
[e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
|
|
87
|
+
["stringEquals", [{ fn: f, argv: [h, "name"] }, "aws"]]
|
|
88
|
+
],
|
|
89
|
+
results: [
|
|
90
|
+
[a],
|
|
91
|
+
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
92
|
+
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
|
|
93
|
+
[g, i],
|
|
94
|
+
["https://inferencerouter-runtime.sagemaker.{Region}.{PartitionResult#dnsSuffix}", i],
|
|
95
|
+
["https://inferencerouter-runtime.sagemaker.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
|
|
96
|
+
["https://inferencerouter-runtime.sagemaker-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
|
|
97
|
+
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
|
|
98
|
+
["https://inferencerouter-runtime.sagemaker-fips.{Region}.{PartitionResult#dnsSuffix}", i],
|
|
99
|
+
[a, "FIPS is enabled but this partition does not support FIPS"],
|
|
100
|
+
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
101
|
+
[a, "Invalid Configuration: Missing Region"]
|
|
102
|
+
]
|
|
103
|
+
};
|
|
104
|
+
const root = 2;
|
|
105
|
+
const r = 100_000_000;
|
|
106
|
+
const nodes = new Int32Array([
|
|
107
|
+
-1, 1, -1,
|
|
108
|
+
0, 13, 3,
|
|
109
|
+
1, 4, r + 11,
|
|
110
|
+
2, 5, r + 11,
|
|
111
|
+
3, 9, 6,
|
|
112
|
+
5, 7, r + 4,
|
|
113
|
+
6, r + 5, 8,
|
|
114
|
+
7, r + 5, r + 10,
|
|
115
|
+
4, 11, 10,
|
|
116
|
+
5, r + 7, r + 9,
|
|
117
|
+
5, 12, r + 8,
|
|
118
|
+
6, r + 6, r + 7,
|
|
119
|
+
3, r + 1, 14,
|
|
120
|
+
5, r + 2, r + 3,
|
|
121
|
+
]);
|
|
122
|
+
const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
123
|
+
|
|
124
|
+
const cache = new EndpointCache({
|
|
125
|
+
size: 50,
|
|
126
|
+
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
127
|
+
});
|
|
128
|
+
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
129
|
+
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
130
|
+
endpointParams: endpointParams,
|
|
131
|
+
logger: context.logger,
|
|
132
|
+
}));
|
|
133
|
+
};
|
|
134
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
135
|
+
|
|
136
|
+
class SageMakerInferenceRouterRuntimeServiceException extends ServiceException {
|
|
137
|
+
static shapeId = "smithy.ts.sdk.synthetic.com.amazonaws.sagemakerinferencerouterruntime#SageMakerInferenceRouterRuntimeServiceException";
|
|
138
|
+
constructor(options) {
|
|
139
|
+
super(options);
|
|
140
|
+
Object.setPrototypeOf(this, SageMakerInferenceRouterRuntimeServiceException.prototype);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
class AccessDeniedException extends SageMakerInferenceRouterRuntimeServiceException {
|
|
145
|
+
static shapeId = "com.amazonaws.sagemakerinferencerouterruntime#AccessDeniedException";
|
|
146
|
+
name = "AccessDeniedException";
|
|
147
|
+
$fault = "client";
|
|
148
|
+
Message;
|
|
149
|
+
constructor(opts) {
|
|
150
|
+
super({
|
|
151
|
+
name: "AccessDeniedException",
|
|
152
|
+
$fault: "client",
|
|
153
|
+
...opts,
|
|
154
|
+
});
|
|
155
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
156
|
+
this.Message = opts.Message;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
class InternalDependencyException extends SageMakerInferenceRouterRuntimeServiceException {
|
|
160
|
+
static shapeId = "com.amazonaws.sagemakerinferencerouterruntime#InternalDependencyException";
|
|
161
|
+
name = "InternalDependencyException";
|
|
162
|
+
$fault = "server";
|
|
163
|
+
Message;
|
|
164
|
+
constructor(opts) {
|
|
165
|
+
super({
|
|
166
|
+
name: "InternalDependencyException",
|
|
167
|
+
$fault: "server",
|
|
168
|
+
...opts,
|
|
169
|
+
});
|
|
170
|
+
Object.setPrototypeOf(this, InternalDependencyException.prototype);
|
|
171
|
+
this.Message = opts.Message;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
class InternalFailure extends SageMakerInferenceRouterRuntimeServiceException {
|
|
175
|
+
static shapeId = "com.amazonaws.sagemakerinferencerouterruntime#InternalFailure";
|
|
176
|
+
name = "InternalFailure";
|
|
177
|
+
$fault = "server";
|
|
178
|
+
Message;
|
|
179
|
+
constructor(opts) {
|
|
180
|
+
super({
|
|
181
|
+
name: "InternalFailure",
|
|
182
|
+
$fault: "server",
|
|
183
|
+
...opts,
|
|
184
|
+
});
|
|
185
|
+
Object.setPrototypeOf(this, InternalFailure.prototype);
|
|
186
|
+
this.Message = opts.Message;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
class ModelError extends SageMakerInferenceRouterRuntimeServiceException {
|
|
190
|
+
static shapeId = "com.amazonaws.sagemakerinferencerouterruntime#ModelError";
|
|
191
|
+
name = "ModelError";
|
|
192
|
+
$fault = "client";
|
|
193
|
+
Message;
|
|
194
|
+
OriginalStatusCode;
|
|
195
|
+
OriginalMessage;
|
|
196
|
+
LogStreamArn;
|
|
197
|
+
constructor(opts) {
|
|
198
|
+
super({
|
|
199
|
+
name: "ModelError",
|
|
200
|
+
$fault: "client",
|
|
201
|
+
...opts,
|
|
202
|
+
});
|
|
203
|
+
Object.setPrototypeOf(this, ModelError.prototype);
|
|
204
|
+
this.Message = opts.Message;
|
|
205
|
+
this.OriginalStatusCode = opts.OriginalStatusCode;
|
|
206
|
+
this.OriginalMessage = opts.OriginalMessage;
|
|
207
|
+
this.LogStreamArn = opts.LogStreamArn;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
class ModelNotReadyException extends SageMakerInferenceRouterRuntimeServiceException {
|
|
211
|
+
static shapeId = "com.amazonaws.sagemakerinferencerouterruntime#ModelNotReadyException";
|
|
212
|
+
name = "ModelNotReadyException";
|
|
213
|
+
$fault = "client";
|
|
214
|
+
$retryable = {
|
|
215
|
+
throttling: true,
|
|
216
|
+
};
|
|
217
|
+
Message;
|
|
218
|
+
constructor(opts) {
|
|
219
|
+
super({
|
|
220
|
+
name: "ModelNotReadyException",
|
|
221
|
+
$fault: "client",
|
|
222
|
+
...opts,
|
|
223
|
+
});
|
|
224
|
+
Object.setPrototypeOf(this, ModelNotReadyException.prototype);
|
|
225
|
+
this.Message = opts.Message;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
class RequestTimeoutException extends SageMakerInferenceRouterRuntimeServiceException {
|
|
229
|
+
static shapeId = "com.amazonaws.sagemakerinferencerouterruntime#RequestTimeoutException";
|
|
230
|
+
name = "RequestTimeoutException";
|
|
231
|
+
$fault = "client";
|
|
232
|
+
$retryable = {};
|
|
233
|
+
Message;
|
|
234
|
+
constructor(opts) {
|
|
235
|
+
super({
|
|
236
|
+
name: "RequestTimeoutException",
|
|
237
|
+
$fault: "client",
|
|
238
|
+
...opts,
|
|
239
|
+
});
|
|
240
|
+
Object.setPrototypeOf(this, RequestTimeoutException.prototype);
|
|
241
|
+
this.Message = opts.Message;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
class ServiceUnavailableException extends SageMakerInferenceRouterRuntimeServiceException {
|
|
245
|
+
static shapeId = "com.amazonaws.sagemakerinferencerouterruntime#ServiceUnavailableException";
|
|
246
|
+
name = "ServiceUnavailableException";
|
|
247
|
+
$fault = "server";
|
|
248
|
+
Message;
|
|
249
|
+
constructor(opts) {
|
|
250
|
+
super({
|
|
251
|
+
name: "ServiceUnavailableException",
|
|
252
|
+
$fault: "server",
|
|
253
|
+
...opts,
|
|
254
|
+
});
|
|
255
|
+
Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
|
|
256
|
+
this.Message = opts.Message;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
class ThrottlingException extends SageMakerInferenceRouterRuntimeServiceException {
|
|
260
|
+
static shapeId = "com.amazonaws.sagemakerinferencerouterruntime#ThrottlingException";
|
|
261
|
+
name = "ThrottlingException";
|
|
262
|
+
$fault = "client";
|
|
263
|
+
$retryable = {
|
|
264
|
+
throttling: true,
|
|
265
|
+
};
|
|
266
|
+
Message;
|
|
267
|
+
constructor(opts) {
|
|
268
|
+
super({
|
|
269
|
+
name: "ThrottlingException",
|
|
270
|
+
$fault: "client",
|
|
271
|
+
...opts,
|
|
272
|
+
});
|
|
273
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
274
|
+
this.Message = opts.Message;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
class ValidationException extends SageMakerInferenceRouterRuntimeServiceException {
|
|
278
|
+
static shapeId = "com.amazonaws.sagemakerinferencerouterruntime#ValidationException";
|
|
279
|
+
name = "ValidationException";
|
|
280
|
+
$fault = "client";
|
|
281
|
+
Message;
|
|
282
|
+
constructor(opts) {
|
|
283
|
+
super({
|
|
284
|
+
name: "ValidationException",
|
|
285
|
+
$fault: "client",
|
|
286
|
+
...opts,
|
|
287
|
+
});
|
|
288
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
289
|
+
this.Message = opts.Message;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
const _A = "Accept";
|
|
294
|
+
const _ADE = "AccessDeniedException";
|
|
295
|
+
const _B = "Body";
|
|
296
|
+
const _CA = "CustomAttributes";
|
|
297
|
+
const _CAH = "CustomAttributesHeader";
|
|
298
|
+
const _CT = "ContentType";
|
|
299
|
+
const _CT_ = "Content-Type";
|
|
300
|
+
const _F = "Filename";
|
|
301
|
+
const _FL = "FailureLocation";
|
|
302
|
+
const _IDE = "InternalDependencyException";
|
|
303
|
+
const _IF = "InternalFailure";
|
|
304
|
+
const _II = "InferenceId";
|
|
305
|
+
const _IIR = "InvokeInferenceRouter";
|
|
306
|
+
const _IIRA = "InvokeInferenceRouterAsync";
|
|
307
|
+
const _IIRAI = "InvokeInferenceRouterAsyncInput";
|
|
308
|
+
const _IIRAO = "InvokeInferenceRouterAsyncOutput";
|
|
309
|
+
const _IIRI = "InvokeInferenceRouterInput";
|
|
310
|
+
const _IIRO = "InvokeInferenceRouterOutput";
|
|
311
|
+
const _IL = "InputLocation";
|
|
312
|
+
const _IPV = "InvokedProductionVariant";
|
|
313
|
+
const _IRBB = "InferenceRouterBodyBlob";
|
|
314
|
+
const _IRN = "InferenceRouterName";
|
|
315
|
+
const _IRRA = "InvokedRoutedResourceArn";
|
|
316
|
+
const _ITS = "InvocationTimeoutSeconds";
|
|
317
|
+
const _LSA = "LogStreamArn";
|
|
318
|
+
const _M = "Message";
|
|
319
|
+
const _ME = "ModelError";
|
|
320
|
+
const _MNRE = "ModelNotReadyException";
|
|
321
|
+
const _OL = "OutputLocation";
|
|
322
|
+
const _OM = "OriginalMessage";
|
|
323
|
+
const _OSC = "OriginalStatusCode";
|
|
324
|
+
const _PAI = "PrefixAwareId";
|
|
325
|
+
const _RR = "RoutingReason";
|
|
326
|
+
const _RTE = "RequestTimeoutException";
|
|
327
|
+
const _RTN = "RoutingTargetName";
|
|
328
|
+
const _RTTLS = "RequestTTLSeconds";
|
|
329
|
+
const _SOPE = "S3OutputPathExtension";
|
|
330
|
+
const _SUE = "ServiceUnavailableException";
|
|
331
|
+
const _TE = "ThrottlingException";
|
|
332
|
+
const _VE = "ValidationException";
|
|
333
|
+
const _XAIPV = "X-Amzn-Invoked-Production-Variant";
|
|
334
|
+
const _XASA = "X-Amzn-SageMaker-Accept";
|
|
335
|
+
const _XASCA = "X-Amzn-SageMaker-Custom-Attributes";
|
|
336
|
+
const _XASCT = "X-Amzn-SageMaker-Content-Type";
|
|
337
|
+
const _XASF = "X-Amzn-SageMaker-Filename";
|
|
338
|
+
const _XASF_ = "X-Amzn-SageMaker-FailureLocation";
|
|
339
|
+
const _XASI = "X-Amzn-SageMaker-InputLocation";
|
|
340
|
+
const _XASII = "X-Amzn-SageMaker-Inference-Id";
|
|
341
|
+
const _XASIRR = "X-Amzn-SageMaker-Invoked-Routing-Reason";
|
|
342
|
+
const _XASIRRA = "X-Amzn-SageMaker-Invoked-Routed-Resource-Arn";
|
|
343
|
+
const _XASI_ = "X-Amzn-SageMaker-InvocationTimeoutSeconds";
|
|
344
|
+
const _XASO = "X-Amzn-SageMaker-OutputLocation";
|
|
345
|
+
const _XASPAI = "X-Amzn-SageMaker-Prefix-Aware-Id";
|
|
346
|
+
const _XASR = "X-Amzn-SageMaker-RequestTTLSeconds";
|
|
347
|
+
const _XASRTN = "X-Amzn-SageMaker-Routing-Target-Name";
|
|
348
|
+
const _XASS = "X-Amzn-SageMaker-S3OutputPathExtension";
|
|
349
|
+
const _c = "client";
|
|
350
|
+
const _e = "error";
|
|
351
|
+
const _h = "http";
|
|
352
|
+
const _hE = "httpError";
|
|
353
|
+
const _hH = "httpHeader";
|
|
354
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.sagemakerinferencerouterruntime";
|
|
355
|
+
const _se = "server";
|
|
356
|
+
const n0 = "com.amazonaws.sagemakerinferencerouterruntime";
|
|
357
|
+
const _s_registry = new TypeRegistry(_s);
|
|
358
|
+
var SageMakerInferenceRouterRuntimeServiceException$ = [-3, _s, "SageMakerInferenceRouterRuntimeServiceException", 0, [], []];
|
|
359
|
+
_s_registry.registerError(SageMakerInferenceRouterRuntimeServiceException$, SageMakerInferenceRouterRuntimeServiceException);
|
|
360
|
+
const n0_registry = new TypeRegistry(n0);
|
|
361
|
+
var AccessDeniedException$ = [-3, n0, _ADE,
|
|
362
|
+
{ [_e]: _c, [_hE]: 403 },
|
|
363
|
+
[_M],
|
|
364
|
+
[0]
|
|
365
|
+
];
|
|
366
|
+
n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
|
|
367
|
+
var InternalDependencyException$ = [-3, n0, _IDE,
|
|
368
|
+
{ [_e]: _se, [_hE]: 530 },
|
|
369
|
+
[_M],
|
|
370
|
+
[0]
|
|
371
|
+
];
|
|
372
|
+
n0_registry.registerError(InternalDependencyException$, InternalDependencyException);
|
|
373
|
+
var InternalFailure$ = [-3, n0, _IF,
|
|
374
|
+
{ [_e]: _se, [_hE]: 500 },
|
|
375
|
+
[_M],
|
|
376
|
+
[0]
|
|
377
|
+
];
|
|
378
|
+
n0_registry.registerError(InternalFailure$, InternalFailure);
|
|
379
|
+
var ModelError$ = [-3, n0, _ME,
|
|
380
|
+
{ [_e]: _c, [_hE]: 424 },
|
|
381
|
+
[_M, _OSC, _OM, _LSA],
|
|
382
|
+
[0, 1, 0, 0]
|
|
383
|
+
];
|
|
384
|
+
n0_registry.registerError(ModelError$, ModelError);
|
|
385
|
+
var ModelNotReadyException$ = [-3, n0, _MNRE,
|
|
386
|
+
{ [_e]: _c, [_hE]: 429 },
|
|
387
|
+
[_M],
|
|
388
|
+
[0]
|
|
389
|
+
];
|
|
390
|
+
n0_registry.registerError(ModelNotReadyException$, ModelNotReadyException);
|
|
391
|
+
var RequestTimeoutException$ = [-3, n0, _RTE,
|
|
392
|
+
{ [_e]: _c, [_hE]: 408 },
|
|
393
|
+
[_M],
|
|
394
|
+
[0]
|
|
395
|
+
];
|
|
396
|
+
n0_registry.registerError(RequestTimeoutException$, RequestTimeoutException);
|
|
397
|
+
var ServiceUnavailableException$ = [-3, n0, _SUE,
|
|
398
|
+
{ [_e]: _se, [_hE]: 503 },
|
|
399
|
+
[_M],
|
|
400
|
+
[0]
|
|
401
|
+
];
|
|
402
|
+
n0_registry.registerError(ServiceUnavailableException$, ServiceUnavailableException);
|
|
403
|
+
var ThrottlingException$ = [-3, n0, _TE,
|
|
404
|
+
{ [_e]: _c, [_hE]: 429 },
|
|
405
|
+
[_M],
|
|
406
|
+
[0]
|
|
407
|
+
];
|
|
408
|
+
n0_registry.registerError(ThrottlingException$, ThrottlingException);
|
|
409
|
+
var ValidationException$ = [-3, n0, _VE,
|
|
410
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
411
|
+
[_M],
|
|
412
|
+
[0]
|
|
413
|
+
];
|
|
414
|
+
n0_registry.registerError(ValidationException$, ValidationException);
|
|
415
|
+
const errorTypeRegistries = [
|
|
416
|
+
_s_registry,
|
|
417
|
+
n0_registry,
|
|
418
|
+
];
|
|
419
|
+
var CustomAttributesHeader = [0, n0, _CAH, 8, 0];
|
|
420
|
+
var InferenceRouterBodyBlob = [0, n0, _IRBB, 8, 21];
|
|
421
|
+
var InvokeInferenceRouterAsyncInput$ = [3, n0, _IIRAI,
|
|
422
|
+
0,
|
|
423
|
+
[_IRN, _RTN, _IL, _CT, _A, _CA, _II, _SOPE, _F, _RTTLS, _ITS],
|
|
424
|
+
[[0, 1], [0, { [_hH]: _XASRTN }], [0, { [_hH]: _XASI }], [0, { [_hH]: _XASCT }], [0, { [_hH]: _XASA }], [() => CustomAttributesHeader, { [_hH]: _XASCA }], [0, { [_hH]: _XASII }], [0, { [_hH]: _XASS }], [0, { [_hH]: _XASF }], [1, { [_hH]: _XASR }], [1, { [_hH]: _XASI_ }]], 3
|
|
425
|
+
];
|
|
426
|
+
var InvokeInferenceRouterAsyncOutput$ = [3, n0, _IIRAO,
|
|
427
|
+
0,
|
|
428
|
+
[_II, _OL, _FL],
|
|
429
|
+
[0, [0, { [_hH]: _XASO }], [0, { [_hH]: _XASF_ }]]
|
|
430
|
+
];
|
|
431
|
+
var InvokeInferenceRouterInput$ = [3, n0, _IIRI,
|
|
432
|
+
0,
|
|
433
|
+
[_IRN, _RTN, _B, _CT, _A, _II, _PAI, _CA],
|
|
434
|
+
[[0, 1], [0, { [_hH]: _XASRTN }], [() => InferenceRouterBodyBlob, 16], [0, { [_hH]: _CT_ }], [0, { [_hH]: _A }], [0, { [_hH]: _XASII }], [0, { [_hH]: _XASPAI }], [() => CustomAttributesHeader, { [_hH]: _XASCA }]], 3
|
|
435
|
+
];
|
|
436
|
+
var InvokeInferenceRouterOutput$ = [3, n0, _IIRO,
|
|
437
|
+
0,
|
|
438
|
+
[_B, _CT, _IRRA, _RR, _IPV, _CA],
|
|
439
|
+
[[() => InferenceRouterBodyBlob, 16], [0, { [_hH]: _CT_ }], [0, { [_hH]: _XASIRRA }], [0, { [_hH]: _XASIRR }], [0, { [_hH]: _XAIPV }], [() => CustomAttributesHeader, { [_hH]: _XASCA }]]
|
|
440
|
+
];
|
|
441
|
+
var InvokeInferenceRouter$ = [9, n0, _IIR,
|
|
442
|
+
{ [_h]: ["POST", "/inference-routers/{InferenceRouterName}/invocations", 200] }, () => InvokeInferenceRouterInput$, () => InvokeInferenceRouterOutput$
|
|
443
|
+
];
|
|
444
|
+
var InvokeInferenceRouterAsync$ = [9, n0, _IIRA,
|
|
445
|
+
{ [_h]: ["POST", "/inference-routers/{InferenceRouterName}/async-invocations", 202] }, () => InvokeInferenceRouterAsyncInput$, () => InvokeInferenceRouterAsyncOutput$
|
|
446
|
+
];
|
|
447
|
+
|
|
448
|
+
const getRuntimeConfig$1 = (config) => {
|
|
449
|
+
return {
|
|
450
|
+
apiVersion: "2026-01-01",
|
|
451
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
452
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
453
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
454
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
455
|
+
extensions: config?.extensions ?? [],
|
|
456
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSageMakerInferenceRouterRuntimeHttpAuthSchemeProvider,
|
|
457
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
458
|
+
{
|
|
459
|
+
schemeId: "aws.auth#sigv4",
|
|
460
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
461
|
+
signer: new AwsSdkSigV4Signer(),
|
|
462
|
+
},
|
|
463
|
+
],
|
|
464
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
465
|
+
protocol: config?.protocol ?? AwsRestJsonProtocol,
|
|
466
|
+
protocolSettings: config?.protocolSettings ?? {
|
|
467
|
+
defaultNamespace: "com.amazonaws.sagemakerinferencerouterruntime",
|
|
468
|
+
errorTypeRegistries,
|
|
469
|
+
version: "2026-01-01",
|
|
470
|
+
serviceTarget: "SageMakerInferenceRouterRuntime",
|
|
471
|
+
},
|
|
472
|
+
serviceId: config?.serviceId ?? "SageMaker Inference Router Runtime",
|
|
473
|
+
sha256: config?.sha256 ?? Sha256,
|
|
474
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
475
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
476
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
477
|
+
};
|
|
478
|
+
};
|
|
479
|
+
|
|
480
|
+
const getRuntimeConfig = (config) => {
|
|
481
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
482
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
483
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
484
|
+
const clientSharedValues = getRuntimeConfig$1(config);
|
|
485
|
+
emitWarningIfUnsupportedVersion$1(process.version);
|
|
486
|
+
const loaderConfig = {
|
|
487
|
+
profile: config?.profile,
|
|
488
|
+
logger: clientSharedValues.logger,
|
|
489
|
+
};
|
|
490
|
+
return {
|
|
491
|
+
...clientSharedValues,
|
|
492
|
+
...config,
|
|
493
|
+
runtime: "node",
|
|
494
|
+
defaultsMode,
|
|
495
|
+
authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
496
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
497
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
|
|
498
|
+
defaultSocketTimeout: getDefaultSocketTimeout(config?.requestHandler, 300_000),
|
|
499
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
500
|
+
maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
501
|
+
region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
502
|
+
requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
503
|
+
retryMode: config?.retryMode ??
|
|
504
|
+
loadConfig({
|
|
505
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
506
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
507
|
+
}, config),
|
|
508
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
509
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
510
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
511
|
+
userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
512
|
+
};
|
|
513
|
+
};
|
|
514
|
+
|
|
515
|
+
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
516
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
517
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
518
|
+
let _credentials = runtimeConfig.credentials;
|
|
519
|
+
return {
|
|
520
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
521
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
522
|
+
if (index === -1) {
|
|
523
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
524
|
+
}
|
|
525
|
+
else {
|
|
526
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
527
|
+
}
|
|
528
|
+
},
|
|
529
|
+
httpAuthSchemes() {
|
|
530
|
+
return _httpAuthSchemes;
|
|
531
|
+
},
|
|
532
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
533
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
534
|
+
},
|
|
535
|
+
httpAuthSchemeProvider() {
|
|
536
|
+
return _httpAuthSchemeProvider;
|
|
537
|
+
},
|
|
538
|
+
setCredentials(credentials) {
|
|
539
|
+
_credentials = credentials;
|
|
540
|
+
},
|
|
541
|
+
credentials() {
|
|
542
|
+
return _credentials;
|
|
543
|
+
},
|
|
544
|
+
};
|
|
545
|
+
};
|
|
546
|
+
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
547
|
+
return {
|
|
548
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
549
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
550
|
+
credentials: config.credentials(),
|
|
551
|
+
};
|
|
552
|
+
};
|
|
553
|
+
|
|
554
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
555
|
+
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
556
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
557
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
558
|
+
};
|
|
559
|
+
|
|
560
|
+
class SageMakerInferenceRouterRuntimeClient extends Client {
|
|
561
|
+
config;
|
|
562
|
+
constructor(...[configuration]) {
|
|
563
|
+
const _config_0 = getRuntimeConfig(configuration || {});
|
|
564
|
+
super(_config_0);
|
|
565
|
+
this.initConfig = _config_0;
|
|
566
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
567
|
+
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
568
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
569
|
+
const _config_4 = resolveRegionConfig(_config_3);
|
|
570
|
+
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
571
|
+
const _config_6 = resolveEndpointConfig(_config_5);
|
|
572
|
+
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
573
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
574
|
+
this.config = _config_8;
|
|
575
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
576
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
577
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
578
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
579
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
580
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
581
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
582
|
+
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
583
|
+
httpAuthSchemeParametersProvider: defaultSageMakerInferenceRouterRuntimeHttpAuthSchemeParametersProvider,
|
|
584
|
+
identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
|
|
585
|
+
"aws.auth#sigv4": config.credentials,
|
|
586
|
+
}),
|
|
587
|
+
}));
|
|
588
|
+
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
589
|
+
}
|
|
590
|
+
destroy() {
|
|
591
|
+
super.destroy();
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
const command = makeBuilder(commonParams, "SageMakerInferenceRouterRuntime", "SageMakerInferenceRouterRuntimeClient", getEndpointPlugin);
|
|
596
|
+
const _ep0 = {};
|
|
597
|
+
const _mw0 = (Command, cs, config, o) => [];
|
|
598
|
+
|
|
599
|
+
class InvokeInferenceRouterAsyncCommand extends command(_ep0, _mw0, "InvokeInferenceRouterAsync", InvokeInferenceRouterAsync$) {
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
class InvokeInferenceRouterCommand extends command(_ep0, _mw0, "InvokeInferenceRouter", InvokeInferenceRouter$) {
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
const commands = {
|
|
606
|
+
InvokeInferenceRouterCommand,
|
|
607
|
+
InvokeInferenceRouterAsyncCommand,
|
|
608
|
+
};
|
|
609
|
+
class SageMakerInferenceRouterRuntime extends SageMakerInferenceRouterRuntimeClient {
|
|
610
|
+
}
|
|
611
|
+
createAggregatedClient(commands, SageMakerInferenceRouterRuntime);
|
|
612
|
+
|
|
613
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
614
|
+
exports.AccessDeniedException$ = AccessDeniedException$;
|
|
615
|
+
exports.InternalDependencyException = InternalDependencyException;
|
|
616
|
+
exports.InternalDependencyException$ = InternalDependencyException$;
|
|
617
|
+
exports.InternalFailure = InternalFailure;
|
|
618
|
+
exports.InternalFailure$ = InternalFailure$;
|
|
619
|
+
exports.InvokeInferenceRouter$ = InvokeInferenceRouter$;
|
|
620
|
+
exports.InvokeInferenceRouterAsync$ = InvokeInferenceRouterAsync$;
|
|
621
|
+
exports.InvokeInferenceRouterAsyncCommand = InvokeInferenceRouterAsyncCommand;
|
|
622
|
+
exports.InvokeInferenceRouterAsyncInput$ = InvokeInferenceRouterAsyncInput$;
|
|
623
|
+
exports.InvokeInferenceRouterAsyncOutput$ = InvokeInferenceRouterAsyncOutput$;
|
|
624
|
+
exports.InvokeInferenceRouterCommand = InvokeInferenceRouterCommand;
|
|
625
|
+
exports.InvokeInferenceRouterInput$ = InvokeInferenceRouterInput$;
|
|
626
|
+
exports.InvokeInferenceRouterOutput$ = InvokeInferenceRouterOutput$;
|
|
627
|
+
exports.ModelError = ModelError;
|
|
628
|
+
exports.ModelError$ = ModelError$;
|
|
629
|
+
exports.ModelNotReadyException = ModelNotReadyException;
|
|
630
|
+
exports.ModelNotReadyException$ = ModelNotReadyException$;
|
|
631
|
+
exports.RequestTimeoutException = RequestTimeoutException;
|
|
632
|
+
exports.RequestTimeoutException$ = RequestTimeoutException$;
|
|
633
|
+
exports.SageMakerInferenceRouterRuntime = SageMakerInferenceRouterRuntime;
|
|
634
|
+
exports.SageMakerInferenceRouterRuntimeClient = SageMakerInferenceRouterRuntimeClient;
|
|
635
|
+
exports.SageMakerInferenceRouterRuntimeServiceException = SageMakerInferenceRouterRuntimeServiceException;
|
|
636
|
+
exports.SageMakerInferenceRouterRuntimeServiceException$ = SageMakerInferenceRouterRuntimeServiceException$;
|
|
637
|
+
exports.ServiceUnavailableException = ServiceUnavailableException;
|
|
638
|
+
exports.ServiceUnavailableException$ = ServiceUnavailableException$;
|
|
639
|
+
exports.ThrottlingException = ThrottlingException;
|
|
640
|
+
exports.ThrottlingException$ = ThrottlingException$;
|
|
641
|
+
exports.ValidationException = ValidationException;
|
|
642
|
+
exports.ValidationException$ = ValidationException$;
|
|
643
|
+
exports.errorTypeRegistries = errorTypeRegistries;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { createAggregatedClient } from "@smithy/core/client";
|
|
2
|
+
import { InvokeInferenceRouterAsyncCommand, } from "./commands/InvokeInferenceRouterAsyncCommand";
|
|
3
|
+
import { InvokeInferenceRouterCommand, } from "./commands/InvokeInferenceRouterCommand";
|
|
4
|
+
import { SageMakerInferenceRouterRuntimeClient } from "./SageMakerInferenceRouterRuntimeClient";
|
|
5
|
+
const commands = {
|
|
6
|
+
InvokeInferenceRouterCommand,
|
|
7
|
+
InvokeInferenceRouterAsyncCommand,
|
|
8
|
+
};
|
|
9
|
+
export class SageMakerInferenceRouterRuntime extends SageMakerInferenceRouterRuntimeClient {
|
|
10
|
+
}
|
|
11
|
+
createAggregatedClient(commands, SageMakerInferenceRouterRuntime);
|