@aws-sdk/client-sagemaker-runtime 3.296.0 → 3.298.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.
@@ -31,7 +31,7 @@ class InvokeEndpointAsyncCommand extends smithy_client_1.Command {
31
31
  clientName,
32
32
  commandName,
33
33
  inputFilterSensitiveLog: models_0_1.InvokeEndpointAsyncInputFilterSensitiveLog,
34
- outputFilterSensitiveLog: models_0_1.InvokeEndpointAsyncOutputFilterSensitiveLog,
34
+ outputFilterSensitiveLog: (_) => _,
35
35
  };
36
36
  const { requestHandler } = configuration;
37
37
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.InvokeEndpointAsyncOutputFilterSensitiveLog = exports.InvokeEndpointAsyncInputFilterSensitiveLog = exports.InvokeEndpointOutputFilterSensitiveLog = exports.InvokeEndpointInputFilterSensitiveLog = exports.ValidationError = exports.ServiceUnavailable = exports.ModelNotReadyException = exports.ModelError = exports.InternalFailure = exports.InternalDependencyException = void 0;
3
+ exports.InvokeEndpointAsyncInputFilterSensitiveLog = exports.InvokeEndpointOutputFilterSensitiveLog = exports.InvokeEndpointInputFilterSensitiveLog = exports.ValidationError = exports.ServiceUnavailable = exports.ModelNotReadyException = exports.ModelError = exports.InternalFailure = exports.InternalDependencyException = void 0;
4
4
  const smithy_client_1 = require("@aws-sdk/smithy-client");
5
5
  const SageMakerRuntimeServiceException_1 = require("./SageMakerRuntimeServiceException");
6
6
  class InternalDependencyException extends SageMakerRuntimeServiceException_1.SageMakerRuntimeServiceException {
@@ -107,7 +107,3 @@ const InvokeEndpointAsyncInputFilterSensitiveLog = (obj) => ({
107
107
  ...(obj.CustomAttributes && { CustomAttributes: smithy_client_1.SENSITIVE_STRING }),
108
108
  });
109
109
  exports.InvokeEndpointAsyncInputFilterSensitiveLog = InvokeEndpointAsyncInputFilterSensitiveLog;
110
- const InvokeEndpointAsyncOutputFilterSensitiveLog = (obj) => ({
111
- ...obj,
112
- });
113
- exports.InvokeEndpointAsyncOutputFilterSensitiveLog = InvokeEndpointAsyncOutputFilterSensitiveLog;
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { InvokeEndpointAsyncInputFilterSensitiveLog, InvokeEndpointAsyncOutputFilterSensitiveLog, } from "../models/models_0";
4
+ import { InvokeEndpointAsyncInputFilterSensitiveLog, } from "../models/models_0";
5
5
  import { deserializeAws_restJson1InvokeEndpointAsyncCommand, serializeAws_restJson1InvokeEndpointAsyncCommand, } from "../protocols/Aws_restJson1";
6
6
  export class InvokeEndpointAsyncCommand extends $Command {
7
7
  static getEndpointParameterInstructions() {
@@ -28,7 +28,7 @@ export class InvokeEndpointAsyncCommand extends $Command {
28
28
  clientName,
29
29
  commandName,
30
30
  inputFilterSensitiveLog: InvokeEndpointAsyncInputFilterSensitiveLog,
31
- outputFilterSensitiveLog: InvokeEndpointAsyncOutputFilterSensitiveLog,
31
+ outputFilterSensitiveLog: (_) => _,
32
32
  };
33
33
  const { requestHandler } = configuration;
34
34
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -95,6 +95,3 @@ export const InvokeEndpointAsyncInputFilterSensitiveLog = (obj) => ({
95
95
  ...obj,
96
96
  ...(obj.CustomAttributes && { CustomAttributes: SENSITIVE_STRING }),
97
97
  });
98
- export const InvokeEndpointAsyncOutputFilterSensitiveLog = (obj) => ({
99
- ...obj,
100
- });
@@ -3,10 +3,12 @@ import { InvokeEndpointAsyncCommandInput, InvokeEndpointAsyncCommandOutput } fro
3
3
  import { InvokeEndpointCommandInput, InvokeEndpointCommandOutput } from "./commands/InvokeEndpointCommand";
4
4
  import { SageMakerRuntimeClient } from "./SageMakerRuntimeClient";
5
5
  /**
6
+ * @public
6
7
  * <p> The Amazon SageMaker runtime API. </p>
7
8
  */
8
9
  export declare class SageMakerRuntime extends SageMakerRuntimeClient {
9
10
  /**
11
+ * @public
10
12
  * <p>After you deploy a model into production using Amazon SageMaker hosting services, your
11
13
  * client applications use this API to get inferences from the model hosted at the
12
14
  * specified endpoint. </p>
@@ -32,6 +34,7 @@ export declare class SageMakerRuntime extends SageMakerRuntimeClient {
32
34
  invokeEndpoint(args: InvokeEndpointCommandInput, cb: (err: any, data?: InvokeEndpointCommandOutput) => void): void;
33
35
  invokeEndpoint(args: InvokeEndpointCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: InvokeEndpointCommandOutput) => void): void;
34
36
  /**
37
+ * @public
35
38
  * <p>After you deploy a model into production using Amazon SageMaker hosting services, your client
36
39
  * applications use this API to get inferences from the model hosted at the specified
37
40
  * endpoint in an asynchronous manner.</p>
@@ -10,15 +10,24 @@ import { BodyLengthCalculator as __BodyLengthCalculator, ChecksumConstructor as
10
10
  import { InvokeEndpointAsyncCommandInput, InvokeEndpointAsyncCommandOutput } from "./commands/InvokeEndpointAsyncCommand";
11
11
  import { InvokeEndpointCommandInput, InvokeEndpointCommandOutput } from "./commands/InvokeEndpointCommand";
12
12
  import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
13
+ /**
14
+ * @public
15
+ */
13
16
  export type ServiceInputTypes = InvokeEndpointAsyncCommandInput | InvokeEndpointCommandInput;
17
+ /**
18
+ * @public
19
+ */
14
20
  export type ServiceOutputTypes = InvokeEndpointAsyncCommandOutput | InvokeEndpointCommandOutput;
21
+ /**
22
+ * @public
23
+ */
15
24
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
16
25
  /**
17
26
  * The HTTP handler to use. Fetch in browser and Https in Nodejs.
18
27
  */
19
28
  requestHandler?: __HttpHandler;
20
29
  /**
21
- * A constructor for a class implementing the {@link __Checksum} interface
30
+ * A constructor for a class implementing the {@link @aws-sdk/types#ChecksumConstructor} interface
22
31
  * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
23
32
  * @internal
24
33
  */
@@ -108,23 +117,34 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
108
117
  */
109
118
  logger?: __Logger;
110
119
  /**
111
- * The {@link __DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
120
+ * The {@link @aws-sdk/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
112
121
  */
113
122
  defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
114
123
  }
124
+ /**
125
+ * @public
126
+ */
115
127
  type SageMakerRuntimeClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig & ClientInputEndpointParameters;
116
128
  /**
117
- * The configuration interface of SageMakerRuntimeClient class constructor that set the region, credentials and other options.
129
+ * @public
130
+ *
131
+ * The configuration interface of SageMakerRuntimeClient class constructor that set the region, credentials and other options.
118
132
  */
119
133
  export interface SageMakerRuntimeClientConfig extends SageMakerRuntimeClientConfigType {
120
134
  }
135
+ /**
136
+ * @public
137
+ */
121
138
  type SageMakerRuntimeClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig & ClientResolvedEndpointParameters;
122
139
  /**
123
- * The resolved configuration interface of SageMakerRuntimeClient class. This is resolved and normalized from the {@link SageMakerRuntimeClientConfig | constructor configuration interface}.
140
+ * @public
141
+ *
142
+ * The resolved configuration interface of SageMakerRuntimeClient class. This is resolved and normalized from the {@link SageMakerRuntimeClientConfig | constructor configuration interface}.
124
143
  */
125
144
  export interface SageMakerRuntimeClientResolvedConfig extends SageMakerRuntimeClientResolvedConfigType {
126
145
  }
127
146
  /**
147
+ * @public
128
148
  * <p> The Amazon SageMaker runtime API. </p>
129
149
  */
130
150
  export declare class SageMakerRuntimeClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, SageMakerRuntimeClientResolvedConfig> {
@@ -4,16 +4,21 @@ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as
4
4
  import { InvokeEndpointAsyncInput, InvokeEndpointAsyncOutput } from "../models/models_0";
5
5
  import { SageMakerRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SageMakerRuntimeClient";
6
6
  /**
7
+ * @public
8
+ *
7
9
  * The input for {@link InvokeEndpointAsyncCommand}.
8
10
  */
9
11
  export interface InvokeEndpointAsyncCommandInput extends InvokeEndpointAsyncInput {
10
12
  }
11
13
  /**
14
+ * @public
15
+ *
12
16
  * The output of {@link InvokeEndpointAsyncCommand}.
13
17
  */
14
18
  export interface InvokeEndpointAsyncCommandOutput extends InvokeEndpointAsyncOutput, __MetadataBearer {
15
19
  }
16
20
  /**
21
+ * @public
17
22
  * <p>After you deploy a model into production using Amazon SageMaker hosting services, your client
18
23
  * applications use this API to get inferences from the model hosted at the specified
19
24
  * endpoint in an asynchronous manner.</p>
@@ -36,6 +41,8 @@ export interface InvokeEndpointAsyncCommandOutput extends InvokeEndpointAsyncOut
36
41
  * const response = await client.send(command);
37
42
  * ```
38
43
  *
44
+ * @param InvokeEndpointAsyncCommandInput - {@link InvokeEndpointAsyncCommandInput}
45
+ * @returns {@link InvokeEndpointAsyncCommandOutput}
39
46
  * @see {@link InvokeEndpointAsyncCommandInput} for command's `input` shape.
40
47
  * @see {@link InvokeEndpointAsyncCommandOutput} for command's `response` shape.
41
48
  * @see {@link SageMakerRuntimeClientResolvedConfig | config} for SageMakerRuntimeClient's `config` shape.
@@ -54,11 +61,20 @@ export interface InvokeEndpointAsyncCommandOutput extends InvokeEndpointAsyncOut
54
61
  export declare class InvokeEndpointAsyncCommand extends $Command<InvokeEndpointAsyncCommandInput, InvokeEndpointAsyncCommandOutput, SageMakerRuntimeClientResolvedConfig> {
55
62
  readonly input: InvokeEndpointAsyncCommandInput;
56
63
  static getEndpointParameterInstructions(): EndpointParameterInstructions;
64
+ /**
65
+ * @public
66
+ */
57
67
  constructor(input: InvokeEndpointAsyncCommandInput);
58
68
  /**
59
69
  * @internal
60
70
  */
61
71
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SageMakerRuntimeClientResolvedConfig, options?: __HttpHandlerOptions): Handler<InvokeEndpointAsyncCommandInput, InvokeEndpointAsyncCommandOutput>;
72
+ /**
73
+ * @internal
74
+ */
62
75
  private serialize;
76
+ /**
77
+ * @internal
78
+ */
63
79
  private deserialize;
64
80
  }
@@ -4,16 +4,21 @@ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as
4
4
  import { InvokeEndpointInput, InvokeEndpointOutput } from "../models/models_0";
5
5
  import { SageMakerRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SageMakerRuntimeClient";
6
6
  /**
7
+ * @public
8
+ *
7
9
  * The input for {@link InvokeEndpointCommand}.
8
10
  */
9
11
  export interface InvokeEndpointCommandInput extends InvokeEndpointInput {
10
12
  }
11
13
  /**
14
+ * @public
15
+ *
12
16
  * The output of {@link InvokeEndpointCommand}.
13
17
  */
14
18
  export interface InvokeEndpointCommandOutput extends InvokeEndpointOutput, __MetadataBearer {
15
19
  }
16
20
  /**
21
+ * @public
17
22
  * <p>After you deploy a model into production using Amazon SageMaker hosting services, your
18
23
  * client applications use this API to get inferences from the model hosted at the
19
24
  * specified endpoint. </p>
@@ -44,6 +49,8 @@ export interface InvokeEndpointCommandOutput extends InvokeEndpointOutput, __Met
44
49
  * const response = await client.send(command);
45
50
  * ```
46
51
  *
52
+ * @param InvokeEndpointCommandInput - {@link InvokeEndpointCommandInput}
53
+ * @returns {@link InvokeEndpointCommandOutput}
47
54
  * @see {@link InvokeEndpointCommandInput} for command's `input` shape.
48
55
  * @see {@link InvokeEndpointCommandOutput} for command's `response` shape.
49
56
  * @see {@link SageMakerRuntimeClientResolvedConfig | config} for SageMakerRuntimeClient's `config` shape.
@@ -75,11 +82,20 @@ export interface InvokeEndpointCommandOutput extends InvokeEndpointOutput, __Met
75
82
  export declare class InvokeEndpointCommand extends $Command<InvokeEndpointCommandInput, InvokeEndpointCommandOutput, SageMakerRuntimeClientResolvedConfig> {
76
83
  readonly input: InvokeEndpointCommandInput;
77
84
  static getEndpointParameterInstructions(): EndpointParameterInstructions;
85
+ /**
86
+ * @public
87
+ */
78
88
  constructor(input: InvokeEndpointCommandInput);
79
89
  /**
80
90
  * @internal
81
91
  */
82
92
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SageMakerRuntimeClientResolvedConfig, options?: __HttpHandlerOptions): Handler<InvokeEndpointCommandInput, InvokeEndpointCommandOutput>;
93
+ /**
94
+ * @internal
95
+ */
83
96
  private serialize;
97
+ /**
98
+ * @internal
99
+ */
84
100
  private deserialize;
85
101
  }
@@ -1,5 +1,7 @@
1
1
  import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
2
  /**
3
+ * @public
4
+ *
3
5
  * Base exception class for all service exceptions from SageMakerRuntime service.
4
6
  */
5
7
  export declare class SageMakerRuntimeServiceException extends __ServiceException {
@@ -1,6 +1,7 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
2
  import { SageMakerRuntimeServiceException as __BaseException } from "./SageMakerRuntimeServiceException";
3
3
  /**
4
+ * @public
4
5
  * <p>Your request caused an exception with an internal dependency. Contact customer
5
6
  * support. </p>
6
7
  */
@@ -14,6 +15,7 @@ export declare class InternalDependencyException extends __BaseException {
14
15
  constructor(opts: __ExceptionOptionType<InternalDependencyException, __BaseException>);
15
16
  }
16
17
  /**
18
+ * @public
17
19
  * <p> An internal failure occurred. </p>
18
20
  */
19
21
  export declare class InternalFailure extends __BaseException {
@@ -25,6 +27,9 @@ export declare class InternalFailure extends __BaseException {
25
27
  */
26
28
  constructor(opts: __ExceptionOptionType<InternalFailure, __BaseException>);
27
29
  }
30
+ /**
31
+ * @public
32
+ */
28
33
  export interface InvokeEndpointInput {
29
34
  /**
30
35
  * <p>The name of the endpoint that you specified when you created the endpoint using the
@@ -95,6 +100,9 @@ export interface InvokeEndpointInput {
95
100
  */
96
101
  EnableExplanations?: string;
97
102
  }
103
+ /**
104
+ * @public
105
+ */
98
106
  export interface InvokeEndpointOutput {
99
107
  /**
100
108
  * <p>Includes the inference provided by the model. </p>
@@ -134,6 +142,7 @@ export interface InvokeEndpointOutput {
134
142
  CustomAttributes?: string;
135
143
  }
136
144
  /**
145
+ * @public
137
146
  * <p> Model (owned by the customer in the container) returned 4xx or 5xx error code.
138
147
  * </p>
139
148
  */
@@ -159,6 +168,7 @@ export declare class ModelError extends __BaseException {
159
168
  constructor(opts: __ExceptionOptionType<ModelError, __BaseException>);
160
169
  }
161
170
  /**
171
+ * @public
162
172
  * <p>Either a serverless endpoint variant's resources are still being provisioned, or a
163
173
  * multi-model endpoint is still downloading or loading the target model. Wait and try your
164
174
  * request again.</p>
@@ -173,6 +183,7 @@ export declare class ModelNotReadyException extends __BaseException {
173
183
  constructor(opts: __ExceptionOptionType<ModelNotReadyException, __BaseException>);
174
184
  }
175
185
  /**
186
+ * @public
176
187
  * <p> The service is unavailable. Try your call again. </p>
177
188
  */
178
189
  export declare class ServiceUnavailable extends __BaseException {
@@ -185,6 +196,7 @@ export declare class ServiceUnavailable extends __BaseException {
185
196
  constructor(opts: __ExceptionOptionType<ServiceUnavailable, __BaseException>);
186
197
  }
187
198
  /**
199
+ * @public
188
200
  * <p> Inspect your request and try again. </p>
189
201
  */
190
202
  export declare class ValidationError extends __BaseException {
@@ -196,6 +208,9 @@ export declare class ValidationError extends __BaseException {
196
208
  */
197
209
  constructor(opts: __ExceptionOptionType<ValidationError, __BaseException>);
198
210
  }
211
+ /**
212
+ * @public
213
+ */
199
214
  export interface InvokeEndpointAsyncInput {
200
215
  /**
201
216
  * <p>The name of the endpoint that you specified when you created the endpoint using the
@@ -248,6 +263,9 @@ export interface InvokeEndpointAsyncInput {
248
263
  */
249
264
  InvocationTimeoutSeconds?: number;
250
265
  }
266
+ /**
267
+ * @public
268
+ */
251
269
  export interface InvokeEndpointAsyncOutput {
252
270
  /**
253
271
  * <p>Identifier for an inference request. This will be the same as the
@@ -272,7 +290,3 @@ export declare const InvokeEndpointOutputFilterSensitiveLog: (obj: InvokeEndpoin
272
290
  * @internal
273
291
  */
274
292
  export declare const InvokeEndpointAsyncInputFilterSensitiveLog: (obj: InvokeEndpointAsyncInput) => any;
275
- /**
276
- * @internal
277
- */
278
- export declare const InvokeEndpointAsyncOutputFilterSensitiveLog: (obj: InvokeEndpointAsyncOutput) => any;
@@ -84,6 +84,3 @@ export declare const InvokeEndpointOutputFilterSensitiveLog: (
84
84
  export declare const InvokeEndpointAsyncInputFilterSensitiveLog: (
85
85
  obj: InvokeEndpointAsyncInput
86
86
  ) => any;
87
- export declare const InvokeEndpointAsyncOutputFilterSensitiveLog: (
88
- obj: InvokeEndpointAsyncOutput
89
- ) => any;
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.296.0",
4
+ "version": "3.298.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -11,6 +11,7 @@
11
11
  "build:types": "tsc -p tsconfig.types.json",
12
12
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
13
13
  "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
14
+ "extract:docs": "api-extractor run --local",
14
15
  "generate:client": "node ../../scripts/generate-clients/single-service --solo sagemaker-runtime"
15
16
  },
16
17
  "main": "./dist-cjs/index.js",
@@ -20,9 +21,9 @@
20
21
  "dependencies": {
21
22
  "@aws-crypto/sha256-browser": "3.0.0",
22
23
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.296.0",
24
+ "@aws-sdk/client-sts": "3.298.0",
24
25
  "@aws-sdk/config-resolver": "3.296.0",
25
- "@aws-sdk/credential-provider-node": "3.296.0",
26
+ "@aws-sdk/credential-provider-node": "3.298.0",
26
27
  "@aws-sdk/fetch-http-handler": "3.296.0",
27
28
  "@aws-sdk/hash-node": "3.296.0",
28
29
  "@aws-sdk/invalid-dependency": "3.296.0",