@aws-sdk/client-sagemaker-runtime 3.533.0 → 3.540.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.
@@ -1,12 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.defaultEndpointResolver = void 0;
4
- const util_endpoints_1 = require("@smithy/util-endpoints");
4
+ const util_endpoints_1 = require("@aws-sdk/util-endpoints");
5
+ const util_endpoints_2 = require("@smithy/util-endpoints");
5
6
  const ruleset_1 = require("./ruleset");
6
7
  const defaultEndpointResolver = (endpointParams, context = {}) => {
7
- return (0, util_endpoints_1.resolveEndpoint)(ruleset_1.ruleSet, {
8
+ return (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
8
9
  endpointParams: endpointParams,
9
10
  logger: context.logger,
10
11
  });
11
12
  };
12
13
  exports.defaultEndpointResolver = defaultEndpointResolver;
14
+ util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
package/dist-cjs/index.js CHANGED
@@ -818,9 +818,6 @@ var _SageMakerRuntime = class _SageMakerRuntime extends SageMakerRuntimeClient {
818
818
  __name(_SageMakerRuntime, "SageMakerRuntime");
819
819
  var SageMakerRuntime = _SageMakerRuntime;
820
820
  (0, import_smithy_client.createAggregatedClient)(commands, SageMakerRuntime);
821
-
822
- // src/index.ts
823
- var import_util_endpoints = require("@aws-sdk/util-endpoints");
824
821
  // Annotate the CommonJS export names for ESM import in node:
825
822
 
826
823
  0 && (module.exports = {
@@ -1,4 +1,5 @@
1
- import { resolveEndpoint } from "@smithy/util-endpoints";
1
+ import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";
2
+ import { customEndpointFunctions, resolveEndpoint } from "@smithy/util-endpoints";
2
3
  import { ruleSet } from "./ruleset";
3
4
  export const defaultEndpointResolver = (endpointParams, context = {}) => {
4
5
  return resolveEndpoint(ruleSet, {
@@ -6,3 +7,4 @@ export const defaultEndpointResolver = (endpointParams, context = {}) => {
6
7
  logger: context.logger,
7
8
  });
8
9
  };
10
+ customEndpointFunctions.aws = awsEndpointFunctions;
package/dist-es/index.js CHANGED
@@ -2,5 +2,4 @@ export * from "./SageMakerRuntimeClient";
2
2
  export * from "./SageMakerRuntime";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
- import "@aws-sdk/util-endpoints";
6
5
  export { SageMakerRuntimeServiceException } from "./models/SageMakerRuntimeServiceException";
@@ -24,8 +24,8 @@ export interface SageMakerRuntime {
24
24
  invokeEndpointWithResponseStream(args: InvokeEndpointWithResponseStreamCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: InvokeEndpointWithResponseStreamCommandOutput) => void): void;
25
25
  }
26
26
  /**
27
- * @public
28
27
  * <p> The Amazon SageMaker runtime API. </p>
28
+ * @public
29
29
  */
30
30
  export declare class SageMakerRuntime extends SageMakerRuntimeClient implements SageMakerRuntime {
31
31
  }
@@ -159,8 +159,8 @@ export type SageMakerRuntimeClientResolvedConfigType = __SmithyResolvedConfigura
159
159
  export interface SageMakerRuntimeClientResolvedConfig extends SageMakerRuntimeClientResolvedConfigType {
160
160
  }
161
161
  /**
162
- * @public
163
162
  * <p> The Amazon SageMaker runtime API. </p>
163
+ * @public
164
164
  */
165
165
  export declare class SageMakerRuntimeClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, SageMakerRuntimeClientResolvedConfig> {
166
166
  /**
@@ -22,10 +22,10 @@ export interface InvokeEndpointAsyncCommandOutput extends InvokeEndpointAsyncOut
22
22
  }
23
23
  declare const InvokeEndpointAsyncCommand_base: {
24
24
  new (input: InvokeEndpointAsyncCommandInput): import("@smithy/smithy-client").CommandImpl<InvokeEndpointAsyncCommandInput, InvokeEndpointAsyncCommandOutput, SageMakerRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: InvokeEndpointAsyncCommandInput): import("@smithy/smithy-client").CommandImpl<InvokeEndpointAsyncCommandInput, InvokeEndpointAsyncCommandOutput, SageMakerRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
26
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
27
  };
27
28
  /**
28
- * @public
29
29
  * <p>After you deploy a model into production using Amazon SageMaker hosting services,
30
30
  * your client applications use this API to get inferences from the model hosted at the
31
31
  * specified endpoint in an asynchronous manner.</p>
@@ -82,6 +82,7 @@ declare const InvokeEndpointAsyncCommand_base: {
82
82
  * @throws {@link SageMakerRuntimeServiceException}
83
83
  * <p>Base exception class for all service exceptions from SageMakerRuntime service.</p>
84
84
  *
85
+ * @public
85
86
  */
86
87
  export declare class InvokeEndpointAsyncCommand extends InvokeEndpointAsyncCommand_base {
87
88
  }
@@ -35,10 +35,10 @@ export interface InvokeEndpointCommandOutput extends InvokeEndpointCommandOutput
35
35
  }
36
36
  declare const InvokeEndpointCommand_base: {
37
37
  new (input: InvokeEndpointCommandInput): import("@smithy/smithy-client").CommandImpl<InvokeEndpointCommandInput, InvokeEndpointCommandOutput, SageMakerRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
38
+ new (__0_0: InvokeEndpointCommandInput): import("@smithy/smithy-client").CommandImpl<InvokeEndpointCommandInput, InvokeEndpointCommandOutput, SageMakerRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
38
39
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
39
40
  };
40
41
  /**
41
- * @public
42
42
  * <p>After you deploy a model into production using Amazon SageMaker hosting services,
43
43
  * your client applications use this API to get inferences from the model hosted at the
44
44
  * specified endpoint. </p>
@@ -119,6 +119,7 @@ declare const InvokeEndpointCommand_base: {
119
119
  * @throws {@link SageMakerRuntimeServiceException}
120
120
  * <p>Base exception class for all service exceptions from SageMakerRuntime service.</p>
121
121
  *
122
+ * @public
122
123
  */
123
124
  export declare class InvokeEndpointCommand extends InvokeEndpointCommand_base {
124
125
  }
@@ -28,10 +28,10 @@ export interface InvokeEndpointWithResponseStreamCommandOutput extends InvokeEnd
28
28
  }
29
29
  declare const InvokeEndpointWithResponseStreamCommand_base: {
30
30
  new (input: InvokeEndpointWithResponseStreamCommandInput): import("@smithy/smithy-client").CommandImpl<InvokeEndpointWithResponseStreamCommandInput, InvokeEndpointWithResponseStreamCommandOutput, SageMakerRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
31
+ new (__0_0: InvokeEndpointWithResponseStreamCommandInput): import("@smithy/smithy-client").CommandImpl<InvokeEndpointWithResponseStreamCommandInput, InvokeEndpointWithResponseStreamCommandOutput, SageMakerRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
31
32
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
32
33
  };
33
34
  /**
34
- * @public
35
35
  * <p>Invokes a model at the specified endpoint to return the inference response as a
36
36
  * stream. The inference stream provides the response payload incrementally as a series of
37
37
  * parts. Before you can get an inference stream, you must have access to a model that's
@@ -135,6 +135,7 @@ declare const InvokeEndpointWithResponseStreamCommand_base: {
135
135
  * @throws {@link SageMakerRuntimeServiceException}
136
136
  * <p>Base exception class for all service exceptions from SageMakerRuntime service.</p>
137
137
  *
138
+ * @public
138
139
  */
139
140
  export declare class InvokeEndpointWithResponseStreamCommand extends InvokeEndpointWithResponseStreamCommand_base {
140
141
  }
@@ -10,5 +10,4 @@ export { RuntimeExtension } from "./runtimeExtensions";
10
10
  export { SageMakerRuntimeExtensionConfiguration } from "./extensionConfiguration";
11
11
  export * from "./commands";
12
12
  export * from "./models";
13
- import "@aws-sdk/util-endpoints";
14
13
  export { SageMakerRuntimeServiceException } from "./models/SageMakerRuntimeServiceException";
@@ -1,9 +1,9 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
2
  import { SageMakerRuntimeServiceException as __BaseException } from "./SageMakerRuntimeServiceException";
3
3
  /**
4
- * @public
5
4
  * <p>Your request caused an exception with an internal dependency. Contact customer
6
5
  * support. </p>
6
+ * @public
7
7
  */
8
8
  export declare class InternalDependencyException extends __BaseException {
9
9
  readonly name: "InternalDependencyException";
@@ -15,8 +15,8 @@ export declare class InternalDependencyException extends __BaseException {
15
15
  constructor(opts: __ExceptionOptionType<InternalDependencyException, __BaseException>);
16
16
  }
17
17
  /**
18
- * @public
19
18
  * <p> An internal failure occurred. </p>
19
+ * @public
20
20
  */
21
21
  export declare class InternalFailure extends __BaseException {
22
22
  readonly name: "InternalFailure";
@@ -32,31 +32,30 @@ export declare class InternalFailure extends __BaseException {
32
32
  */
33
33
  export interface InvokeEndpointInput {
34
34
  /**
35
- * @public
36
35
  * <p>The name of the endpoint that you specified when you created the endpoint using the
37
36
  * <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/API_CreateEndpoint.html">CreateEndpoint</a> API.</p>
37
+ * @public
38
38
  */
39
39
  EndpointName: string | undefined;
40
40
  /**
41
- * @public
42
41
  * <p>Provides input data, in the format specified in the <code>ContentType</code>
43
42
  * request header. Amazon SageMaker passes all of the data in the body to the model. </p>
44
43
  * <p>For information about the format of the request body, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-inference.html">Common Data
45
44
  * Formats-Inference</a>.</p>
45
+ * @public
46
46
  */
47
47
  Body: Uint8Array | undefined;
48
48
  /**
49
- * @public
50
49
  * <p>The MIME type of the input data in the request body.</p>
50
+ * @public
51
51
  */
52
52
  ContentType?: string;
53
53
  /**
54
- * @public
55
54
  * <p>The desired MIME type of the inference response from the model container.</p>
55
+ * @public
56
56
  */
57
57
  Accept?: string;
58
58
  /**
59
- * @public
60
59
  * <p>Provides additional information about a request for an inference submitted to a model
61
60
  * hosted at an Amazon SageMaker endpoint. The information is an opaque value that is forwarded
62
61
  * verbatim. You could use this value, for example, to provide an ID that you can use to
@@ -71,15 +70,15 @@ export interface InvokeEndpointInput {
71
70
  * function. </p>
72
71
  * <p>This feature is currently supported in the Amazon Web Services SDKs but not in the Amazon SageMaker
73
72
  * Python SDK. </p>
73
+ * @public
74
74
  */
75
75
  CustomAttributes?: string;
76
76
  /**
77
- * @public
78
77
  * <p>The model to request for inference when invoking a multi-model endpoint.</p>
78
+ * @public
79
79
  */
80
80
  TargetModel?: string;
81
81
  /**
82
- * @public
83
82
  * <p>Specify the production variant to send the inference request to when invoking an
84
83
  * endpoint that is running two or more variants. Note that this parameter overrides the
85
84
  * default behavior for the endpoint, which is to distribute the invocation traffic based
@@ -87,32 +86,33 @@ export interface InvokeEndpointInput {
87
86
  * <p>For information about how to use variant targeting to perform a/b testing, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/model-ab-testing.html">Test models in
88
87
  * production</a>
89
88
  * </p>
89
+ * @public
90
90
  */
91
91
  TargetVariant?: string;
92
92
  /**
93
- * @public
94
93
  * <p>If the endpoint hosts multiple containers and is configured to use direct invocation,
95
94
  * this parameter specifies the host name of the container to invoke.</p>
95
+ * @public
96
96
  */
97
97
  TargetContainerHostname?: string;
98
98
  /**
99
- * @public
100
99
  * <p>If you provide a value, it is added to the captured data when you enable data capture
101
100
  * on the endpoint. For information about data capture, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/model-monitor-data-capture.html">Capture
102
101
  * Data</a>.</p>
102
+ * @public
103
103
  */
104
104
  InferenceId?: string;
105
105
  /**
106
- * @public
107
106
  * <p>An optional JMESPath expression used to override the <code>EnableExplanations</code>
108
107
  * parameter of the <code>ClarifyExplainerConfig</code> API. See the <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/clarify-online-explainability-create-endpoint.html#clarify-online-explainability-create-endpoint-enable">EnableExplanations</a> section in the developer guide for more information.
109
108
  * </p>
109
+ * @public
110
110
  */
111
111
  EnableExplanations?: string;
112
112
  /**
113
- * @public
114
113
  * <p>If the endpoint hosts one or more inference components, this parameter specifies the
115
114
  * name of inference component to invoke.</p>
115
+ * @public
116
116
  */
117
117
  InferenceComponentName?: string;
118
118
  }
@@ -121,27 +121,26 @@ export interface InvokeEndpointInput {
121
121
  */
122
122
  export interface InvokeEndpointOutput {
123
123
  /**
124
- * @public
125
124
  * <p>Includes the inference provided by the model. </p>
126
125
  * <p>For information about the format of the response body, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-inference.html">Common Data
127
126
  * Formats-Inference</a>.</p>
128
127
  * <p>If the explainer is activated, the body includes the explanations provided by the
129
128
  * model. For more information, see the <b>Response section</b>
130
129
  * under <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/clarify-online-explainability-invoke-endpoint.html#clarify-online-explainability-response">Invoke the Endpoint</a> in the Developer Guide.</p>
130
+ * @public
131
131
  */
132
132
  Body: Uint8Array | undefined;
133
133
  /**
134
- * @public
135
134
  * <p>The MIME type of the inference returned from the model container.</p>
135
+ * @public
136
136
  */
137
137
  ContentType?: string;
138
138
  /**
139
- * @public
140
139
  * <p>Identifies the production variant that was invoked.</p>
140
+ * @public
141
141
  */
142
142
  InvokedProductionVariant?: string;
143
143
  /**
144
- * @public
145
144
  * <p>Provides additional information in the response about the inference returned by a
146
145
  * model hosted at an Amazon SageMaker endpoint. The information is an opaque value that is
147
146
  * forwarded verbatim. You could use this value, for example, to return an ID received in
@@ -158,31 +157,32 @@ export interface InvokeEndpointOutput {
158
157
  * function.</p>
159
158
  * <p>This feature is currently supported in the Amazon Web Services SDKs but not in the Amazon SageMaker
160
159
  * Python SDK.</p>
160
+ * @public
161
161
  */
162
162
  CustomAttributes?: string;
163
163
  }
164
164
  /**
165
- * @public
166
165
  * <p> Model (owned by the customer in the container) returned 4xx or 5xx error code.
167
166
  * </p>
167
+ * @public
168
168
  */
169
169
  export declare class ModelError extends __BaseException {
170
170
  readonly name: "ModelError";
171
171
  readonly $fault: "client";
172
172
  Message?: string;
173
173
  /**
174
- * @public
175
174
  * <p> Original status code. </p>
175
+ * @public
176
176
  */
177
177
  OriginalStatusCode?: number;
178
178
  /**
179
- * @public
180
179
  * <p> Original message. </p>
180
+ * @public
181
181
  */
182
182
  OriginalMessage?: string;
183
183
  /**
184
- * @public
185
184
  * <p> The Amazon Resource Name (ARN) of the log stream. </p>
185
+ * @public
186
186
  */
187
187
  LogStreamArn?: string;
188
188
  /**
@@ -191,10 +191,10 @@ export declare class ModelError extends __BaseException {
191
191
  constructor(opts: __ExceptionOptionType<ModelError, __BaseException>);
192
192
  }
193
193
  /**
194
- * @public
195
194
  * <p>Either a serverless endpoint variant's resources are still being provisioned, or a
196
195
  * multi-model endpoint is still downloading or loading the target model. Wait and try your
197
196
  * request again.</p>
197
+ * @public
198
198
  */
199
199
  export declare class ModelNotReadyException extends __BaseException {
200
200
  readonly name: "ModelNotReadyException";
@@ -206,8 +206,8 @@ export declare class ModelNotReadyException extends __BaseException {
206
206
  constructor(opts: __ExceptionOptionType<ModelNotReadyException, __BaseException>);
207
207
  }
208
208
  /**
209
- * @public
210
209
  * <p> The service is unavailable. Try your call again. </p>
210
+ * @public
211
211
  */
212
212
  export declare class ServiceUnavailable extends __BaseException {
213
213
  readonly name: "ServiceUnavailable";
@@ -219,8 +219,8 @@ export declare class ServiceUnavailable extends __BaseException {
219
219
  constructor(opts: __ExceptionOptionType<ServiceUnavailable, __BaseException>);
220
220
  }
221
221
  /**
222
- * @public
223
222
  * <p> Inspect your request and try again. </p>
223
+ * @public
224
224
  */
225
225
  export declare class ValidationError extends __BaseException {
226
226
  readonly name: "ValidationError";
@@ -236,23 +236,22 @@ export declare class ValidationError extends __BaseException {
236
236
  */
237
237
  export interface InvokeEndpointAsyncInput {
238
238
  /**
239
- * @public
240
239
  * <p>The name of the endpoint that you specified when you created the endpoint using the
241
240
  * <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/API_CreateEndpoint.html">CreateEndpoint</a> API.</p>
241
+ * @public
242
242
  */
243
243
  EndpointName: string | undefined;
244
244
  /**
245
- * @public
246
245
  * <p>The MIME type of the input data in the request body.</p>
246
+ * @public
247
247
  */
248
248
  ContentType?: string;
249
249
  /**
250
- * @public
251
250
  * <p>The desired MIME type of the inference response from the model container.</p>
251
+ * @public
252
252
  */
253
253
  Accept?: string;
254
254
  /**
255
- * @public
256
255
  * <p>Provides additional information about a request for an inference submitted to a model
257
256
  * hosted at an Amazon SageMaker endpoint. The information is an opaque value that is forwarded
258
257
  * verbatim. You could use this value, for example, to provide an ID that you can use to
@@ -267,29 +266,30 @@ export interface InvokeEndpointAsyncInput {
267
266
  * function. </p>
268
267
  * <p>This feature is currently supported in the Amazon Web Services SDKs but not in the Amazon SageMaker
269
268
  * Python SDK. </p>
269
+ * @public
270
270
  */
271
271
  CustomAttributes?: string;
272
272
  /**
273
- * @public
274
273
  * <p>The identifier for the inference request. Amazon SageMaker will generate an
275
274
  * identifier for you if none is specified. </p>
275
+ * @public
276
276
  */
277
277
  InferenceId?: string;
278
278
  /**
279
- * @public
280
279
  * <p>The Amazon S3 URI where the inference request payload is stored.</p>
280
+ * @public
281
281
  */
282
282
  InputLocation: string | undefined;
283
283
  /**
284
- * @public
285
284
  * <p>Maximum age in seconds a request can be in the queue before it is marked as expired.
286
285
  * The default is 6 hours, or 21,600 seconds.</p>
286
+ * @public
287
287
  */
288
288
  RequestTTLSeconds?: number;
289
289
  /**
290
- * @public
291
290
  * <p>Maximum amount of time in seconds a request can be processed before it is marked as
292
291
  * expired. The default is 15 minutes, or 900 seconds.</p>
292
+ * @public
293
293
  */
294
294
  InvocationTimeoutSeconds?: number;
295
295
  }
@@ -298,27 +298,27 @@ export interface InvokeEndpointAsyncInput {
298
298
  */
299
299
  export interface InvokeEndpointAsyncOutput {
300
300
  /**
301
- * @public
302
301
  * <p>Identifier for an inference request. This will be the same as the
303
302
  * <code>InferenceId</code> specified in the input. Amazon SageMaker will generate
304
303
  * an identifier for you if you do not specify one.</p>
304
+ * @public
305
305
  */
306
306
  InferenceId?: string;
307
307
  /**
308
- * @public
309
308
  * <p>The Amazon S3 URI where the inference response payload is stored.</p>
309
+ * @public
310
310
  */
311
311
  OutputLocation?: string;
312
312
  /**
313
- * @public
314
313
  * <p>The Amazon S3 URI where the inference failure response payload is
315
314
  * stored.</p>
315
+ * @public
316
316
  */
317
317
  FailureLocation?: string;
318
318
  }
319
319
  /**
320
- * @public
321
320
  * <p>The stream processing failed because of an unknown error, exception or failure. Try your request again.</p>
321
+ * @public
322
322
  */
323
323
  export declare class InternalStreamFailure extends __BaseException {
324
324
  readonly name: "InternalStreamFailure";
@@ -334,31 +334,30 @@ export declare class InternalStreamFailure extends __BaseException {
334
334
  */
335
335
  export interface InvokeEndpointWithResponseStreamInput {
336
336
  /**
337
- * @public
338
337
  * <p>The name of the endpoint that you specified when you created the endpoint using the
339
338
  * <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/API_CreateEndpoint.html">CreateEndpoint</a> API.</p>
339
+ * @public
340
340
  */
341
341
  EndpointName: string | undefined;
342
342
  /**
343
- * @public
344
343
  * <p>Provides input data, in the format specified in the <code>ContentType</code>
345
344
  * request header. Amazon SageMaker passes all of the data in the body to the model. </p>
346
345
  * <p>For information about the format of the request body, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-inference.html">Common Data
347
346
  * Formats-Inference</a>.</p>
347
+ * @public
348
348
  */
349
349
  Body: Uint8Array | undefined;
350
350
  /**
351
- * @public
352
351
  * <p>The MIME type of the input data in the request body.</p>
352
+ * @public
353
353
  */
354
354
  ContentType?: string;
355
355
  /**
356
- * @public
357
356
  * <p>The desired MIME type of the inference response from the model container.</p>
357
+ * @public
358
358
  */
359
359
  Accept?: string;
360
360
  /**
361
- * @public
362
361
  * <p>Provides additional information about a request for an inference submitted to a model
363
362
  * hosted at an Amazon SageMaker endpoint. The information is an opaque value that is forwarded
364
363
  * verbatim. You could use this value, for example, to provide an ID that you can use to
@@ -373,10 +372,10 @@ export interface InvokeEndpointWithResponseStreamInput {
373
372
  * function. </p>
374
373
  * <p>This feature is currently supported in the Amazon Web Services SDKs but not in the Amazon SageMaker
375
374
  * Python SDK. </p>
375
+ * @public
376
376
  */
377
377
  CustomAttributes?: string;
378
378
  /**
379
- * @public
380
379
  * <p>Specify the production variant to send the inference request to when invoking an
381
380
  * endpoint that is running two or more variants. Note that this parameter overrides the
382
381
  * default behavior for the endpoint, which is to distribute the invocation traffic based
@@ -384,28 +383,28 @@ export interface InvokeEndpointWithResponseStreamInput {
384
383
  * <p>For information about how to use variant targeting to perform a/b testing, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/model-ab-testing.html">Test models in
385
384
  * production</a>
386
385
  * </p>
386
+ * @public
387
387
  */
388
388
  TargetVariant?: string;
389
389
  /**
390
- * @public
391
390
  * <p>If the endpoint hosts multiple containers and is configured to use direct invocation,
392
391
  * this parameter specifies the host name of the container to invoke.</p>
392
+ * @public
393
393
  */
394
394
  TargetContainerHostname?: string;
395
395
  /**
396
- * @public
397
396
  * <p>An identifier that you assign to your request.</p>
397
+ * @public
398
398
  */
399
399
  InferenceId?: string;
400
400
  /**
401
- * @public
402
401
  * <p>If the endpoint hosts one or more inference components, this parameter specifies the
403
402
  * name of inference component to invoke for a streaming response.</p>
403
+ * @public
404
404
  */
405
405
  InferenceComponentName?: string;
406
406
  }
407
407
  /**
408
- * @public
409
408
  * <p> An error occurred while streaming the response body. This error can have the
410
409
  * following error codes:</p>
411
410
  * <dl>
@@ -419,13 +418,13 @@ export interface InvokeEndpointWithResponseStreamInput {
419
418
  * the model was reset or closed.</p>
420
419
  * </dd>
421
420
  * </dl>
421
+ * @public
422
422
  */
423
423
  export declare class ModelStreamError extends __BaseException {
424
424
  readonly name: "ModelStreamError";
425
425
  readonly $fault: "client";
426
426
  Message?: string;
427
427
  /**
428
- * @public
429
428
  * <p>This error can have the following error codes:</p>
430
429
  * <dl>
431
430
  * <dt>ModelInvocationTimeExceeded</dt>
@@ -439,6 +438,7 @@ export declare class ModelStreamError extends __BaseException {
439
438
  * the model was reset or closed.</p>
440
439
  * </dd>
441
440
  * </dl>
441
+ * @public
442
442
  */
443
443
  ErrorCode?: string;
444
444
  /**
@@ -447,22 +447,22 @@ export declare class ModelStreamError extends __BaseException {
447
447
  constructor(opts: __ExceptionOptionType<ModelStreamError, __BaseException>);
448
448
  }
449
449
  /**
450
- * @public
451
450
  * <p>A wrapper for pieces of the payload that's returned in response to a streaming
452
451
  * inference request. A streaming inference response consists of one or more payload parts.
453
452
  * </p>
453
+ * @public
454
454
  */
455
455
  export interface PayloadPart {
456
456
  /**
457
- * @public
458
457
  * <p>A blob that contains part of the response for your streaming inference request.</p>
458
+ * @public
459
459
  */
460
460
  Bytes?: Uint8Array;
461
461
  }
462
462
  /**
463
- * @public
464
463
  * <p>A stream of payload parts. Each part contains a portion of the response for a
465
464
  * streaming inference request.</p>
465
+ * @public
466
466
  */
467
467
  export type ResponseStream = ResponseStream.InternalStreamFailureMember | ResponseStream.ModelStreamErrorMember | ResponseStream.PayloadPartMember | ResponseStream.$UnknownMember;
468
468
  /**
@@ -470,10 +470,10 @@ export type ResponseStream = ResponseStream.InternalStreamFailureMember | Respon
470
470
  */
471
471
  export declare namespace ResponseStream {
472
472
  /**
473
- * @public
474
473
  * <p>A wrapper for pieces of the payload that's returned in response to a streaming
475
474
  * inference request. A streaming inference response consists of one or more payload parts.
476
475
  * </p>
476
+ * @public
477
477
  */
478
478
  interface PayloadPartMember {
479
479
  PayloadPart: PayloadPart;
@@ -482,7 +482,6 @@ export declare namespace ResponseStream {
482
482
  $unknown?: never;
483
483
  }
484
484
  /**
485
- * @public
486
485
  * <p> An error occurred while streaming the response body. This error can have the
487
486
  * following error codes:</p>
488
487
  * <dl>
@@ -496,6 +495,7 @@ export declare namespace ResponseStream {
496
495
  * the model was reset or closed.</p>
497
496
  * </dd>
498
497
  * </dl>
498
+ * @public
499
499
  */
500
500
  interface ModelStreamErrorMember {
501
501
  PayloadPart?: never;
@@ -504,8 +504,8 @@ export declare namespace ResponseStream {
504
504
  $unknown?: never;
505
505
  }
506
506
  /**
507
- * @public
508
507
  * <p>The stream processing failed because of an unknown error, exception or failure. Try your request again.</p>
508
+ * @public
509
509
  */
510
510
  interface InternalStreamFailureMember {
511
511
  PayloadPart?: never;
@@ -535,23 +535,22 @@ export declare namespace ResponseStream {
535
535
  */
536
536
  export interface InvokeEndpointWithResponseStreamOutput {
537
537
  /**
538
- * @public
539
538
  * <p>A stream of payload parts. Each part contains a portion of the response for a
540
539
  * streaming inference request.</p>
540
+ * @public
541
541
  */
542
542
  Body: AsyncIterable<ResponseStream> | undefined;
543
543
  /**
544
- * @public
545
544
  * <p>The MIME type of the inference returned from the model container.</p>
545
+ * @public
546
546
  */
547
547
  ContentType?: string;
548
548
  /**
549
- * @public
550
549
  * <p>Identifies the production variant that was invoked.</p>
550
+ * @public
551
551
  */
552
552
  InvokedProductionVariant?: string;
553
553
  /**
554
- * @public
555
554
  * <p>Provides additional information in the response about the inference returned by a
556
555
  * model hosted at an Amazon SageMaker endpoint. The information is an opaque value that is
557
556
  * forwarded verbatim. You could use this value, for example, to return an ID received in
@@ -568,6 +567,7 @@ export interface InvokeEndpointWithResponseStreamOutput {
568
567
  * function.</p>
569
568
  * <p>This feature is currently supported in the Amazon Web Services SDKs but not in the Amazon SageMaker
570
569
  * Python SDK.</p>
570
+ * @public
571
571
  */
572
572
  CustomAttributes?: string;
573
573
  }
@@ -25,6 +25,15 @@ declare const InvokeEndpointAsyncCommand_base: {
25
25
  ServiceInputTypes,
26
26
  ServiceOutputTypes
27
27
  >;
28
+ new (
29
+ __0_0: InvokeEndpointAsyncCommandInput
30
+ ): import("@smithy/smithy-client").CommandImpl<
31
+ InvokeEndpointAsyncCommandInput,
32
+ InvokeEndpointAsyncCommandOutput,
33
+ SageMakerRuntimeClientResolvedConfig,
34
+ ServiceInputTypes,
35
+ ServiceOutputTypes
36
+ >;
28
37
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
29
38
  };
30
39
  export declare class InvokeEndpointAsyncCommand extends InvokeEndpointAsyncCommand_base {}
@@ -38,6 +38,15 @@ declare const InvokeEndpointCommand_base: {
38
38
  ServiceInputTypes,
39
39
  ServiceOutputTypes
40
40
  >;
41
+ new (
42
+ __0_0: InvokeEndpointCommandInput
43
+ ): import("@smithy/smithy-client").CommandImpl<
44
+ InvokeEndpointCommandInput,
45
+ InvokeEndpointCommandOutput,
46
+ SageMakerRuntimeClientResolvedConfig,
47
+ ServiceInputTypes,
48
+ ServiceOutputTypes
49
+ >;
41
50
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
42
51
  };
43
52
  export declare class InvokeEndpointCommand extends InvokeEndpointCommand_base {}
@@ -34,6 +34,15 @@ declare const InvokeEndpointWithResponseStreamCommand_base: {
34
34
  ServiceInputTypes,
35
35
  ServiceOutputTypes
36
36
  >;
37
+ new (
38
+ __0_0: InvokeEndpointWithResponseStreamCommandInput
39
+ ): import("@smithy/smithy-client").CommandImpl<
40
+ InvokeEndpointWithResponseStreamCommandInput,
41
+ InvokeEndpointWithResponseStreamCommandOutput,
42
+ SageMakerRuntimeClientResolvedConfig,
43
+ ServiceInputTypes,
44
+ ServiceOutputTypes
45
+ >;
37
46
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
38
47
  };
39
48
  export declare class InvokeEndpointWithResponseStreamCommand extends InvokeEndpointWithResponseStreamCommand_base {}
@@ -5,5 +5,4 @@ export { RuntimeExtension } from "./runtimeExtensions";
5
5
  export { SageMakerRuntimeExtensionConfiguration } from "./extensionConfiguration";
6
6
  export * from "./commands";
7
7
  export * from "./models";
8
- import "@aws-sdk/util-endpoints";
9
8
  export { SageMakerRuntimeServiceException } from "./models/SageMakerRuntimeServiceException";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sagemaker-runtime",
3
3
  "description": "AWS SDK for JavaScript Sagemaker Runtime Client for Node.js, Browser and React Native",
4
- "version": "3.533.0",
4
+ "version": "3.540.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-sagemaker-runtime",
@@ -20,51 +20,51 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.533.0",
24
- "@aws-sdk/core": "3.533.0",
25
- "@aws-sdk/credential-provider-node": "3.533.0",
26
- "@aws-sdk/middleware-host-header": "3.533.0",
27
- "@aws-sdk/middleware-logger": "3.533.0",
28
- "@aws-sdk/middleware-recursion-detection": "3.533.0",
29
- "@aws-sdk/middleware-user-agent": "3.533.0",
30
- "@aws-sdk/region-config-resolver": "3.533.0",
31
- "@aws-sdk/types": "3.533.0",
32
- "@aws-sdk/util-endpoints": "3.533.0",
33
- "@aws-sdk/util-user-agent-browser": "3.533.0",
34
- "@aws-sdk/util-user-agent-node": "3.533.0",
35
- "@smithy/config-resolver": "^2.1.5",
36
- "@smithy/core": "^1.3.8",
37
- "@smithy/eventstream-serde-browser": "^2.1.4",
38
- "@smithy/eventstream-serde-config-resolver": "^2.1.4",
39
- "@smithy/eventstream-serde-node": "^2.1.4",
40
- "@smithy/fetch-http-handler": "^2.4.5",
41
- "@smithy/hash-node": "^2.1.4",
42
- "@smithy/invalid-dependency": "^2.1.4",
43
- "@smithy/middleware-content-length": "^2.1.4",
44
- "@smithy/middleware-endpoint": "^2.4.6",
45
- "@smithy/middleware-retry": "^2.1.7",
46
- "@smithy/middleware-serde": "^2.2.1",
47
- "@smithy/middleware-stack": "^2.1.4",
48
- "@smithy/node-config-provider": "^2.2.5",
49
- "@smithy/node-http-handler": "^2.4.3",
50
- "@smithy/protocol-http": "^3.2.2",
51
- "@smithy/smithy-client": "^2.4.5",
52
- "@smithy/types": "^2.11.0",
53
- "@smithy/url-parser": "^2.1.4",
54
- "@smithy/util-base64": "^2.2.1",
55
- "@smithy/util-body-length-browser": "^2.1.1",
56
- "@smithy/util-body-length-node": "^2.2.2",
57
- "@smithy/util-defaults-mode-browser": "^2.1.7",
58
- "@smithy/util-defaults-mode-node": "^2.2.7",
59
- "@smithy/util-endpoints": "^1.1.5",
60
- "@smithy/util-middleware": "^2.1.4",
61
- "@smithy/util-retry": "^2.1.4",
62
- "@smithy/util-stream": "^2.1.5",
63
- "@smithy/util-utf8": "^2.2.0",
64
- "tslib": "^2.5.0"
23
+ "@aws-sdk/client-sts": "3.540.0",
24
+ "@aws-sdk/core": "3.535.0",
25
+ "@aws-sdk/credential-provider-node": "3.540.0",
26
+ "@aws-sdk/middleware-host-header": "3.535.0",
27
+ "@aws-sdk/middleware-logger": "3.535.0",
28
+ "@aws-sdk/middleware-recursion-detection": "3.535.0",
29
+ "@aws-sdk/middleware-user-agent": "3.540.0",
30
+ "@aws-sdk/region-config-resolver": "3.535.0",
31
+ "@aws-sdk/types": "3.535.0",
32
+ "@aws-sdk/util-endpoints": "3.540.0",
33
+ "@aws-sdk/util-user-agent-browser": "3.535.0",
34
+ "@aws-sdk/util-user-agent-node": "3.535.0",
35
+ "@smithy/config-resolver": "^2.2.0",
36
+ "@smithy/core": "^1.4.0",
37
+ "@smithy/eventstream-serde-browser": "^2.2.0",
38
+ "@smithy/eventstream-serde-config-resolver": "^2.2.0",
39
+ "@smithy/eventstream-serde-node": "^2.2.0",
40
+ "@smithy/fetch-http-handler": "^2.5.0",
41
+ "@smithy/hash-node": "^2.2.0",
42
+ "@smithy/invalid-dependency": "^2.2.0",
43
+ "@smithy/middleware-content-length": "^2.2.0",
44
+ "@smithy/middleware-endpoint": "^2.5.0",
45
+ "@smithy/middleware-retry": "^2.2.0",
46
+ "@smithy/middleware-serde": "^2.3.0",
47
+ "@smithy/middleware-stack": "^2.2.0",
48
+ "@smithy/node-config-provider": "^2.3.0",
49
+ "@smithy/node-http-handler": "^2.5.0",
50
+ "@smithy/protocol-http": "^3.3.0",
51
+ "@smithy/smithy-client": "^2.5.0",
52
+ "@smithy/types": "^2.12.0",
53
+ "@smithy/url-parser": "^2.2.0",
54
+ "@smithy/util-base64": "^2.3.0",
55
+ "@smithy/util-body-length-browser": "^2.2.0",
56
+ "@smithy/util-body-length-node": "^2.3.0",
57
+ "@smithy/util-defaults-mode-browser": "^2.2.0",
58
+ "@smithy/util-defaults-mode-node": "^2.3.0",
59
+ "@smithy/util-endpoints": "^1.2.0",
60
+ "@smithy/util-middleware": "^2.2.0",
61
+ "@smithy/util-retry": "^2.2.0",
62
+ "@smithy/util-stream": "^2.2.0",
63
+ "@smithy/util-utf8": "^2.3.0",
64
+ "tslib": "^2.6.2"
65
65
  },
66
66
  "devDependencies": {
67
- "@smithy/service-client-documentation-generator": "^2.1.1",
67
+ "@smithy/service-client-documentation-generator": "^2.2.0",
68
68
  "@tsconfig/node14": "1.0.3",
69
69
  "@types/node": "^14.14.31",
70
70
  "concurrently": "7.0.0",