@aws-sdk/client-sagemaker-runtime 3.34.0 → 3.37.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.
Files changed (106) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/{dist/cjs → dist-cjs}/SageMakerRuntime.js +1 -5
  3. package/{dist/cjs → dist-cjs}/SageMakerRuntimeClient.js +8 -17
  4. package/dist-cjs/commands/InvokeEndpointAsyncCommand.js +36 -0
  5. package/dist-cjs/commands/InvokeEndpointCommand.js +36 -0
  6. package/{dist/cjs → dist-cjs}/endpoints.js +1 -2
  7. package/{dist/cjs → dist-cjs}/index.js +0 -1
  8. package/{dist/cjs → dist-cjs}/models/index.js +0 -1
  9. package/{dist/cjs → dist-cjs}/models/models_0.js +0 -25
  10. package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +0 -6
  11. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
  12. package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
  13. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
  14. package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
  15. package/{dist/es → dist-es}/SageMakerRuntime.js +1 -2
  16. package/{dist/es → dist-es}/SageMakerRuntimeClient.js +1 -2
  17. package/{dist/es → dist-es}/commands/InvokeEndpointAsyncCommand.js +2 -3
  18. package/{dist/es → dist-es}/commands/InvokeEndpointCommand.js +2 -3
  19. package/{dist/es → dist-es}/endpoints.js +1 -2
  20. package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
  21. package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
  22. package/{dist/es → dist-es}/models/models_0.js +0 -1
  23. package/{dist/es → dist-es}/protocols/Aws_restJson1.js +0 -1
  24. package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -2
  25. package/{dist/es → dist-es}/runtimeConfig.js +1 -2
  26. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -1
  27. package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -2
  28. package/{dist/types → dist-types}/SageMakerRuntime.d.ts +2 -2
  29. package/{dist/types → dist-types}/SageMakerRuntimeClient.d.ts +3 -3
  30. package/{dist/types → dist-types}/commands/InvokeEndpointAsyncCommand.d.ts +3 -3
  31. package/{dist/types → dist-types}/commands/InvokeEndpointCommand.d.ts +3 -3
  32. package/{dist/types → dist-types}/endpoints.d.ts +0 -0
  33. package/{index.ts → dist-types/index.d.ts} +0 -0
  34. package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
  35. package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
  36. package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +2 -2
  37. package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
  38. package/{dist/types → dist-types}/runtimeConfig.d.ts +2 -4
  39. package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
  40. package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
  41. package/dist-types/ts3.4/SageMakerRuntime.d.ts +15 -0
  42. package/dist-types/ts3.4/SageMakerRuntimeClient.d.ts +69 -0
  43. package/dist-types/ts3.4/commands/InvokeEndpointAsyncCommand.d.ts +17 -0
  44. package/dist-types/ts3.4/commands/InvokeEndpointCommand.d.ts +17 -0
  45. package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
  46. package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
  47. package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
  48. package/dist-types/ts3.4/models/models_0.d.ts +115 -0
  49. package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
  50. package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
  51. package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +3 -7
  52. package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
  53. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
  54. package/package.json +45 -42
  55. package/SageMakerRuntime.ts +0 -116
  56. package/SageMakerRuntimeClient.ts +0 -240
  57. package/commands/InvokeEndpointAsyncCommand.ts +0 -110
  58. package/commands/InvokeEndpointCommand.ts +0 -113
  59. package/dist/cjs/SageMakerRuntime.js.map +0 -1
  60. package/dist/cjs/SageMakerRuntimeClient.js.map +0 -1
  61. package/dist/cjs/commands/InvokeEndpointAsyncCommand.js +0 -77
  62. package/dist/cjs/commands/InvokeEndpointAsyncCommand.js.map +0 -1
  63. package/dist/cjs/commands/InvokeEndpointCommand.js +0 -80
  64. package/dist/cjs/commands/InvokeEndpointCommand.js.map +0 -1
  65. package/dist/cjs/endpoints.js.map +0 -1
  66. package/dist/cjs/index.js.map +0 -1
  67. package/dist/cjs/models/index.js.map +0 -1
  68. package/dist/cjs/models/models_0.js.map +0 -1
  69. package/dist/cjs/package.json +0 -91
  70. package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
  71. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  72. package/dist/cjs/runtimeConfig.js.map +0 -1
  73. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  74. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  75. package/dist/es/SageMakerRuntime.js.map +0 -1
  76. package/dist/es/SageMakerRuntimeClient.js.map +0 -1
  77. package/dist/es/commands/InvokeEndpointAsyncCommand.js.map +0 -1
  78. package/dist/es/commands/InvokeEndpointCommand.js.map +0 -1
  79. package/dist/es/endpoints.js.map +0 -1
  80. package/dist/es/index.js +0 -6
  81. package/dist/es/index.js.map +0 -1
  82. package/dist/es/models/index.js +0 -2
  83. package/dist/es/models/index.js.map +0 -1
  84. package/dist/es/models/models_0.js.map +0 -1
  85. package/dist/es/package.json +0 -91
  86. package/dist/es/protocols/Aws_restJson1.js.map +0 -1
  87. package/dist/es/runtimeConfig.browser.js.map +0 -1
  88. package/dist/es/runtimeConfig.js.map +0 -1
  89. package/dist/es/runtimeConfig.native.js.map +0 -1
  90. package/dist/es/runtimeConfig.shared.js.map +0 -1
  91. package/dist/types/ts3.4/SageMakerRuntime.d.ts +0 -56
  92. package/dist/types/ts3.4/SageMakerRuntimeClient.d.ts +0 -134
  93. package/dist/types/ts3.4/commands/InvokeEndpointAsyncCommand.d.ts +0 -51
  94. package/dist/types/ts3.4/commands/InvokeEndpointCommand.d.ts +0 -54
  95. package/dist/types/ts3.4/models/models_0.d.ts +0 -253
  96. package/endpoints.ts +0 -82
  97. package/jest.config.js +0 -4
  98. package/models/models_0.ts +0 -311
  99. package/protocols/Aws_restJson1.ts +0 -418
  100. package/runtimeConfig.browser.ts +0 -40
  101. package/runtimeConfig.native.ts +0 -16
  102. package/runtimeConfig.shared.ts +0 -16
  103. package/runtimeConfig.ts +0 -45
  104. package/tsconfig.es.json +0 -10
  105. package/tsconfig.json +0 -31
  106. package/tsconfig.types.json +0 -8
@@ -1,311 +0,0 @@
1
- import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
2
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
3
-
4
- /**
5
- * <p> An internal failure occurred. </p>
6
- */
7
- export interface InternalFailure extends __SmithyException, $MetadataBearer {
8
- name: "InternalFailure";
9
- $fault: "server";
10
- Message?: string;
11
- }
12
-
13
- export namespace InternalFailure {
14
- /**
15
- * @internal
16
- */
17
- export const filterSensitiveLog = (obj: InternalFailure): any => ({
18
- ...obj,
19
- });
20
- }
21
-
22
- export interface InvokeEndpointInput {
23
- /**
24
- * <p>The name of the endpoint that you specified when you created the endpoint using the
25
- * <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/API_CreateEndpoint.html">CreateEndpoint</a> API. </p>
26
- */
27
- EndpointName: string | undefined;
28
-
29
- /**
30
- * <p>Provides input data, in the format specified in the <code>ContentType</code>
31
- * request header. Amazon SageMaker passes all of the data in the body to the model. </p>
32
- * <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
33
- * Formats-Inference</a>.</p>
34
- */
35
- Body: Uint8Array | undefined;
36
-
37
- /**
38
- * <p>The MIME type of the input data in the request body.</p>
39
- */
40
- ContentType?: string;
41
-
42
- /**
43
- * <p>The desired MIME type of the inference in the response.</p>
44
- */
45
- Accept?: string;
46
-
47
- /**
48
- * <p>Provides additional information about a request for an inference submitted to a model
49
- * hosted at an Amazon SageMaker endpoint. The information is an opaque value that is
50
- * forwarded verbatim. You could use this value, for example, to provide an ID that you can
51
- * use to track a request or to provide other metadata that a service endpoint was
52
- * programmed to process. The value must consist of no more than 1024 visible US-ASCII
53
- * characters as specified in <a href="https://tools.ietf.org/html/rfc7230#section-3.2.6">Section 3.3.6. Field Value
54
- * Components</a> of the Hypertext Transfer Protocol (HTTP/1.1). </p>
55
- * <p>The code in your model is responsible for setting or updating any custom attributes in
56
- * the response. If your code does not set this value in the response, an empty value is
57
- * returned. For example, if a custom attribute represents the trace ID, your model can
58
- * prepend the custom attribute with <code>Trace ID:</code> in your post-processing
59
- * function.</p>
60
- *
61
- * <p>This feature is currently supported in the AWS SDKs but not in the Amazon SageMaker Python
62
- * SDK.</p>
63
- */
64
- CustomAttributes?: string;
65
-
66
- /**
67
- * <p>The model to request for inference when invoking a multi-model endpoint.</p>
68
- */
69
- TargetModel?: string;
70
-
71
- /**
72
- * <p>Specify the production variant to send the inference request to when invoking an
73
- * endpoint that is running two or more variants. Note that this parameter overrides the
74
- * default behavior for the endpoint, which is to distribute the invocation traffic based
75
- * on the variant weights.</p>
76
- * <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
77
- * production</a>
78
- * </p>
79
- */
80
- TargetVariant?: string;
81
-
82
- /**
83
- * <p>If the endpoint hosts multiple containers and is configured to use direct invocation,
84
- * this parameter specifies the host name of the container to invoke.</p>
85
- */
86
- TargetContainerHostname?: string;
87
-
88
- /**
89
- * <p>If you provide a value, it is added to the captured data when you enable data capture
90
- * 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
91
- * Data</a>.</p>
92
- */
93
- InferenceId?: string;
94
- }
95
-
96
- export namespace InvokeEndpointInput {
97
- /**
98
- * @internal
99
- */
100
- export const filterSensitiveLog = (obj: InvokeEndpointInput): any => ({
101
- ...obj,
102
- ...(obj.Body && { Body: SENSITIVE_STRING }),
103
- ...(obj.CustomAttributes && { CustomAttributes: SENSITIVE_STRING }),
104
- });
105
- }
106
-
107
- export interface InvokeEndpointOutput {
108
- /**
109
- * <p>Includes the inference provided by the model.</p>
110
- * <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
111
- * Formats-Inference</a>.</p>
112
- */
113
- Body: Uint8Array | undefined;
114
-
115
- /**
116
- * <p>The MIME type of the inference returned in the response body.</p>
117
- */
118
- ContentType?: string;
119
-
120
- /**
121
- * <p>Identifies the production variant that was invoked.</p>
122
- */
123
- InvokedProductionVariant?: string;
124
-
125
- /**
126
- * <p>Provides additional information in the response about the inference returned by a
127
- * model hosted at an Amazon SageMaker endpoint. The information is an opaque value that is
128
- * forwarded verbatim. You could use this value, for example, to return an ID received in
129
- * the <code>CustomAttributes</code> header of a request or other metadata that a service
130
- * endpoint was programmed to produce. The value must consist of no more than 1024 visible
131
- * US-ASCII characters as specified in <a href="https://tools.ietf.org/html/rfc7230#section-3.2.6">Section 3.3.6. Field Value
132
- * Components</a> of the Hypertext Transfer Protocol (HTTP/1.1). If the customer
133
- * wants the custom attribute returned, the model must set the custom attribute to be
134
- * included on the way back. </p>
135
- * <p>The code in your model is responsible for setting or updating any custom attributes in
136
- * the response. If your code does not set this value in the response, an empty value is
137
- * returned. For example, if a custom attribute represents the trace ID, your model can
138
- * prepend the custom attribute with <code>Trace ID:</code> in your post-processing
139
- * function.</p>
140
- * <p>This feature is currently supported in the AWS SDKs but not in the Amazon SageMaker Python
141
- * SDK.</p>
142
- */
143
- CustomAttributes?: string;
144
- }
145
-
146
- export namespace InvokeEndpointOutput {
147
- /**
148
- * @internal
149
- */
150
- export const filterSensitiveLog = (obj: InvokeEndpointOutput): any => ({
151
- ...obj,
152
- ...(obj.Body && { Body: SENSITIVE_STRING }),
153
- ...(obj.CustomAttributes && { CustomAttributes: SENSITIVE_STRING }),
154
- });
155
- }
156
-
157
- /**
158
- * <p> Model (owned by the customer in the container) returned 4xx or 5xx error code.
159
- * </p>
160
- */
161
- export interface ModelError extends __SmithyException, $MetadataBearer {
162
- name: "ModelError";
163
- $fault: "client";
164
- Message?: string;
165
- /**
166
- * <p> Original status code. </p>
167
- */
168
- OriginalStatusCode?: number;
169
-
170
- /**
171
- * <p> Original message. </p>
172
- */
173
- OriginalMessage?: string;
174
-
175
- /**
176
- * <p> The Amazon Resource Name (ARN) of the log stream. </p>
177
- */
178
- LogStreamArn?: string;
179
- }
180
-
181
- export namespace ModelError {
182
- /**
183
- * @internal
184
- */
185
- export const filterSensitiveLog = (obj: ModelError): any => ({
186
- ...obj,
187
- });
188
- }
189
-
190
- /**
191
- * <p> The service is unavailable. Try your call again. </p>
192
- */
193
- export interface ServiceUnavailable extends __SmithyException, $MetadataBearer {
194
- name: "ServiceUnavailable";
195
- $fault: "server";
196
- Message?: string;
197
- }
198
-
199
- export namespace ServiceUnavailable {
200
- /**
201
- * @internal
202
- */
203
- export const filterSensitiveLog = (obj: ServiceUnavailable): any => ({
204
- ...obj,
205
- });
206
- }
207
-
208
- /**
209
- * <p> Inspect your request and try again. </p>
210
- */
211
- export interface ValidationError extends __SmithyException, $MetadataBearer {
212
- name: "ValidationError";
213
- $fault: "client";
214
- Message?: string;
215
- }
216
-
217
- export namespace ValidationError {
218
- /**
219
- * @internal
220
- */
221
- export const filterSensitiveLog = (obj: ValidationError): any => ({
222
- ...obj,
223
- });
224
- }
225
-
226
- export interface InvokeEndpointAsyncInput {
227
- /**
228
- * <p>The name of the endpoint that you specified when you created the endpoint using
229
- * the <a href="https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateEndpoint.html">
230
- * <code>CreateEndpoint</code>
231
- * </a> API.</p>
232
- */
233
- EndpointName: string | undefined;
234
-
235
- /**
236
- * <p>The MIME type of the input data in the request body.</p>
237
- */
238
- ContentType?: string;
239
-
240
- /**
241
- * <p>The desired MIME type of the inference in the response.</p>
242
- */
243
- Accept?: string;
244
-
245
- /**
246
- * <p>Provides additional information about a request for an inference submitted to
247
- * a model hosted at an Amazon SageMaker endpoint. The information is an opaque value that is
248
- * forwarded verbatim. You could use this value, for example, to provide an ID that you
249
- * can use to track a request or to provide other metadata that a service endpoint was
250
- * programmed to process. The value must consist of no more than 1024
251
- * visible US-ASCII characters as specified in
252
- * <a href="https://datatracker.ietf.org/doc/html/rfc7230#section-3.2.6">Section 3.3.6.
253
- * Field Value Components</a> of the Hypertext Transfer Protocol (HTTP/1.1). </p>
254
- *
255
- * <p>The code in your model is responsible for setting or updating any custom attributes
256
- * in the response. If your code does not set this value in the response, an empty
257
- * value is returned. For example, if a custom attribute represents the trace ID,
258
- * your model can prepend the custom attribute with <code>Trace ID</code>: in your post-processing function. </p>
259
- *
260
- * <p>This feature is currently supported in the AWS SDKs but not in the Amazon SageMaker Python SDK. </p>
261
- */
262
- CustomAttributes?: string;
263
-
264
- /**
265
- * <p>The identifier for the inference request. Amazon SageMaker will generate an identifier for you
266
- * if none is specified. </p>
267
- */
268
- InferenceId?: string;
269
-
270
- /**
271
- * <p>The Amazon S3 URI where the inference request payload is stored.</p>
272
- */
273
- InputLocation: string | undefined;
274
-
275
- /**
276
- * <p>Maximum age in seconds a request can be in the queue before it is marked as expired.</p>
277
- */
278
- RequestTTLSeconds?: number;
279
- }
280
-
281
- export namespace InvokeEndpointAsyncInput {
282
- /**
283
- * @internal
284
- */
285
- export const filterSensitiveLog = (obj: InvokeEndpointAsyncInput): any => ({
286
- ...obj,
287
- ...(obj.CustomAttributes && { CustomAttributes: SENSITIVE_STRING }),
288
- });
289
- }
290
-
291
- export interface InvokeEndpointAsyncOutput {
292
- /**
293
- * <p>Identifier for an inference request. This will be the same as the <code>InferenceId</code> specified
294
- * in the input. Amazon SageMaker will generate an identifier for you if you do not specify one.</p>
295
- */
296
- InferenceId?: string;
297
-
298
- /**
299
- * <p>The Amazon S3 URI where the inference response payload is stored.</p>
300
- */
301
- OutputLocation?: string;
302
- }
303
-
304
- export namespace InvokeEndpointAsyncOutput {
305
- /**
306
- * @internal
307
- */
308
- export const filterSensitiveLog = (obj: InvokeEndpointAsyncOutput): any => ({
309
- ...obj,
310
- });
311
- }