@aws-sdk/client-sagemaker-runtime 3.478.0 → 3.484.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.
@@ -5,48 +5,25 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const models_0_1 = require("../models/models_0");
10
10
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
11
- class InvokeEndpointAsyncCommand extends smithy_client_1.Command {
12
- static getEndpointParameterInstructions() {
13
- return {
14
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
15
- Endpoint: { type: "builtInParams", name: "endpoint" },
16
- Region: { type: "builtInParams", name: "region" },
17
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
18
- };
19
- }
20
- constructor(input) {
21
- super();
22
- this.input = input;
23
- }
24
- resolveMiddleware(clientStack, configuration, options) {
25
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
26
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, InvokeEndpointAsyncCommand.getEndpointParameterInstructions()));
27
- const stack = clientStack.concat(this.middlewareStack);
28
- const { logger } = configuration;
29
- const clientName = "SageMakerRuntimeClient";
30
- const commandName = "InvokeEndpointAsyncCommand";
31
- const handlerExecutionContext = {
32
- logger,
33
- clientName,
34
- commandName,
35
- inputFilterSensitiveLog: models_0_1.InvokeEndpointAsyncInputFilterSensitiveLog,
36
- outputFilterSensitiveLog: (_) => _,
37
- [types_1.SMITHY_CONTEXT_KEY]: {
38
- service: "AmazonSageMakerRuntime",
39
- operation: "InvokeEndpointAsync",
40
- },
41
- };
42
- const { requestHandler } = configuration;
43
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
44
- }
45
- serialize(input, context) {
46
- return (0, Aws_restJson1_1.se_InvokeEndpointAsyncCommand)(input, context);
47
- }
48
- deserialize(output, context) {
49
- return (0, Aws_restJson1_1.de_InvokeEndpointAsyncCommand)(output, context);
50
- }
11
+ class InvokeEndpointAsyncCommand extends smithy_client_1.Command
12
+ .classBuilder()
13
+ .ep({
14
+ ...EndpointParameters_1.commonParams,
15
+ })
16
+ .m(function (Command, cs, config, o) {
17
+ return [
18
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
19
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
20
+ ];
21
+ })
22
+ .s("AmazonSageMakerRuntime", "InvokeEndpointAsync", {})
23
+ .n("SageMakerRuntimeClient", "InvokeEndpointAsyncCommand")
24
+ .f(models_0_1.InvokeEndpointAsyncInputFilterSensitiveLog, void 0)
25
+ .ser(Aws_restJson1_1.se_InvokeEndpointAsyncCommand)
26
+ .de(Aws_restJson1_1.de_InvokeEndpointAsyncCommand)
27
+ .build() {
51
28
  }
52
29
  exports.InvokeEndpointAsyncCommand = InvokeEndpointAsyncCommand;
@@ -5,48 +5,25 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const models_0_1 = require("../models/models_0");
10
10
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
11
- class InvokeEndpointCommand extends smithy_client_1.Command {
12
- static getEndpointParameterInstructions() {
13
- return {
14
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
15
- Endpoint: { type: "builtInParams", name: "endpoint" },
16
- Region: { type: "builtInParams", name: "region" },
17
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
18
- };
19
- }
20
- constructor(input) {
21
- super();
22
- this.input = input;
23
- }
24
- resolveMiddleware(clientStack, configuration, options) {
25
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
26
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, InvokeEndpointCommand.getEndpointParameterInstructions()));
27
- const stack = clientStack.concat(this.middlewareStack);
28
- const { logger } = configuration;
29
- const clientName = "SageMakerRuntimeClient";
30
- const commandName = "InvokeEndpointCommand";
31
- const handlerExecutionContext = {
32
- logger,
33
- clientName,
34
- commandName,
35
- inputFilterSensitiveLog: models_0_1.InvokeEndpointInputFilterSensitiveLog,
36
- outputFilterSensitiveLog: models_0_1.InvokeEndpointOutputFilterSensitiveLog,
37
- [types_1.SMITHY_CONTEXT_KEY]: {
38
- service: "AmazonSageMakerRuntime",
39
- operation: "InvokeEndpoint",
40
- },
41
- };
42
- const { requestHandler } = configuration;
43
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
44
- }
45
- serialize(input, context) {
46
- return (0, Aws_restJson1_1.se_InvokeEndpointCommand)(input, context);
47
- }
48
- deserialize(output, context) {
49
- return (0, Aws_restJson1_1.de_InvokeEndpointCommand)(output, context);
50
- }
11
+ class InvokeEndpointCommand extends smithy_client_1.Command
12
+ .classBuilder()
13
+ .ep({
14
+ ...EndpointParameters_1.commonParams,
15
+ })
16
+ .m(function (Command, cs, config, o) {
17
+ return [
18
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
19
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
20
+ ];
21
+ })
22
+ .s("AmazonSageMakerRuntime", "InvokeEndpoint", {})
23
+ .n("SageMakerRuntimeClient", "InvokeEndpointCommand")
24
+ .f(models_0_1.InvokeEndpointInputFilterSensitiveLog, models_0_1.InvokeEndpointOutputFilterSensitiveLog)
25
+ .ser(Aws_restJson1_1.se_InvokeEndpointCommand)
26
+ .de(Aws_restJson1_1.de_InvokeEndpointCommand)
27
+ .build() {
51
28
  }
52
29
  exports.InvokeEndpointCommand = InvokeEndpointCommand;
@@ -5,51 +5,29 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const models_0_1 = require("../models/models_0");
10
10
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
11
- class InvokeEndpointWithResponseStreamCommand extends smithy_client_1.Command {
12
- static getEndpointParameterInstructions() {
13
- return {
14
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
15
- Endpoint: { type: "builtInParams", name: "endpoint" },
16
- Region: { type: "builtInParams", name: "region" },
17
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
18
- };
19
- }
20
- constructor(input) {
21
- super();
22
- this.input = input;
23
- }
24
- resolveMiddleware(clientStack, configuration, options) {
25
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
26
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, InvokeEndpointWithResponseStreamCommand.getEndpointParameterInstructions()));
27
- const stack = clientStack.concat(this.middlewareStack);
28
- const { logger } = configuration;
29
- const clientName = "SageMakerRuntimeClient";
30
- const commandName = "InvokeEndpointWithResponseStreamCommand";
31
- const handlerExecutionContext = {
32
- logger,
33
- clientName,
34
- commandName,
35
- inputFilterSensitiveLog: models_0_1.InvokeEndpointWithResponseStreamInputFilterSensitiveLog,
36
- outputFilterSensitiveLog: models_0_1.InvokeEndpointWithResponseStreamOutputFilterSensitiveLog,
37
- [types_1.SMITHY_CONTEXT_KEY]: {
38
- service: "AmazonSageMakerRuntime",
39
- operation: "InvokeEndpointWithResponseStream",
40
- eventStream: {
41
- output: true,
42
- },
43
- },
44
- };
45
- const { requestHandler } = configuration;
46
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
47
- }
48
- serialize(input, context) {
49
- return (0, Aws_restJson1_1.se_InvokeEndpointWithResponseStreamCommand)(input, context);
50
- }
51
- deserialize(output, context) {
52
- return (0, Aws_restJson1_1.de_InvokeEndpointWithResponseStreamCommand)(output, context);
53
- }
11
+ class InvokeEndpointWithResponseStreamCommand extends smithy_client_1.Command
12
+ .classBuilder()
13
+ .ep({
14
+ ...EndpointParameters_1.commonParams,
15
+ })
16
+ .m(function (Command, cs, config, o) {
17
+ return [
18
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
19
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
20
+ ];
21
+ })
22
+ .s("AmazonSageMakerRuntime", "InvokeEndpointWithResponseStream", {
23
+ eventStream: {
24
+ output: true,
25
+ },
26
+ })
27
+ .n("SageMakerRuntimeClient", "InvokeEndpointWithResponseStreamCommand")
28
+ .f(models_0_1.InvokeEndpointWithResponseStreamInputFilterSensitiveLog, models_0_1.InvokeEndpointWithResponseStreamOutputFilterSensitiveLog)
29
+ .ser(Aws_restJson1_1.se_InvokeEndpointWithResponseStreamCommand)
30
+ .de(Aws_restJson1_1.de_InvokeEndpointWithResponseStreamCommand)
31
+ .build() {
54
32
  }
55
33
  exports.InvokeEndpointWithResponseStreamCommand = InvokeEndpointWithResponseStreamCommand;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resolveClientEndpointParameters = void 0;
3
+ exports.commonParams = exports.resolveClientEndpointParameters = void 0;
4
4
  const resolveClientEndpointParameters = (options) => {
5
5
  return {
6
6
  ...options,
@@ -10,3 +10,9 @@ const resolveClientEndpointParameters = (options) => {
10
10
  };
11
11
  };
12
12
  exports.resolveClientEndpointParameters = resolveClientEndpointParameters;
13
+ exports.commonParams = {
14
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
15
+ Endpoint: { type: "builtInParams", name: "endpoint" },
16
+ Region: { type: "builtInParams", name: "region" },
17
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
18
+ };
@@ -1,48 +1,25 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { InvokeEndpointAsyncInputFilterSensitiveLog, } from "../models/models_0";
6
6
  import { de_InvokeEndpointAsyncCommand, se_InvokeEndpointAsyncCommand } from "../protocols/Aws_restJson1";
7
7
  export { $Command };
8
- export class InvokeEndpointAsyncCommand extends $Command {
9
- static getEndpointParameterInstructions() {
10
- return {
11
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
- Endpoint: { type: "builtInParams", name: "endpoint" },
13
- Region: { type: "builtInParams", name: "region" },
14
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
- };
16
- }
17
- constructor(input) {
18
- super();
19
- this.input = input;
20
- }
21
- resolveMiddleware(clientStack, configuration, options) {
22
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
- this.middlewareStack.use(getEndpointPlugin(configuration, InvokeEndpointAsyncCommand.getEndpointParameterInstructions()));
24
- const stack = clientStack.concat(this.middlewareStack);
25
- const { logger } = configuration;
26
- const clientName = "SageMakerRuntimeClient";
27
- const commandName = "InvokeEndpointAsyncCommand";
28
- const handlerExecutionContext = {
29
- logger,
30
- clientName,
31
- commandName,
32
- inputFilterSensitiveLog: InvokeEndpointAsyncInputFilterSensitiveLog,
33
- outputFilterSensitiveLog: (_) => _,
34
- [SMITHY_CONTEXT_KEY]: {
35
- service: "AmazonSageMakerRuntime",
36
- operation: "InvokeEndpointAsync",
37
- },
38
- };
39
- const { requestHandler } = configuration;
40
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
41
- }
42
- serialize(input, context) {
43
- return se_InvokeEndpointAsyncCommand(input, context);
44
- }
45
- deserialize(output, context) {
46
- return de_InvokeEndpointAsyncCommand(output, context);
47
- }
8
+ export class InvokeEndpointAsyncCommand extends $Command
9
+ .classBuilder()
10
+ .ep({
11
+ ...commonParams,
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ ];
18
+ })
19
+ .s("AmazonSageMakerRuntime", "InvokeEndpointAsync", {})
20
+ .n("SageMakerRuntimeClient", "InvokeEndpointAsyncCommand")
21
+ .f(InvokeEndpointAsyncInputFilterSensitiveLog, void 0)
22
+ .ser(se_InvokeEndpointAsyncCommand)
23
+ .de(de_InvokeEndpointAsyncCommand)
24
+ .build() {
48
25
  }
@@ -1,48 +1,25 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { InvokeEndpointInputFilterSensitiveLog, InvokeEndpointOutputFilterSensitiveLog, } from "../models/models_0";
6
6
  import { de_InvokeEndpointCommand, se_InvokeEndpointCommand } from "../protocols/Aws_restJson1";
7
7
  export { $Command };
8
- export class InvokeEndpointCommand extends $Command {
9
- static getEndpointParameterInstructions() {
10
- return {
11
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
- Endpoint: { type: "builtInParams", name: "endpoint" },
13
- Region: { type: "builtInParams", name: "region" },
14
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
- };
16
- }
17
- constructor(input) {
18
- super();
19
- this.input = input;
20
- }
21
- resolveMiddleware(clientStack, configuration, options) {
22
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
- this.middlewareStack.use(getEndpointPlugin(configuration, InvokeEndpointCommand.getEndpointParameterInstructions()));
24
- const stack = clientStack.concat(this.middlewareStack);
25
- const { logger } = configuration;
26
- const clientName = "SageMakerRuntimeClient";
27
- const commandName = "InvokeEndpointCommand";
28
- const handlerExecutionContext = {
29
- logger,
30
- clientName,
31
- commandName,
32
- inputFilterSensitiveLog: InvokeEndpointInputFilterSensitiveLog,
33
- outputFilterSensitiveLog: InvokeEndpointOutputFilterSensitiveLog,
34
- [SMITHY_CONTEXT_KEY]: {
35
- service: "AmazonSageMakerRuntime",
36
- operation: "InvokeEndpoint",
37
- },
38
- };
39
- const { requestHandler } = configuration;
40
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
41
- }
42
- serialize(input, context) {
43
- return se_InvokeEndpointCommand(input, context);
44
- }
45
- deserialize(output, context) {
46
- return de_InvokeEndpointCommand(output, context);
47
- }
8
+ export class InvokeEndpointCommand extends $Command
9
+ .classBuilder()
10
+ .ep({
11
+ ...commonParams,
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ ];
18
+ })
19
+ .s("AmazonSageMakerRuntime", "InvokeEndpoint", {})
20
+ .n("SageMakerRuntimeClient", "InvokeEndpointCommand")
21
+ .f(InvokeEndpointInputFilterSensitiveLog, InvokeEndpointOutputFilterSensitiveLog)
22
+ .ser(se_InvokeEndpointCommand)
23
+ .de(de_InvokeEndpointCommand)
24
+ .build() {
48
25
  }
@@ -1,51 +1,29 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { InvokeEndpointWithResponseStreamInputFilterSensitiveLog, InvokeEndpointWithResponseStreamOutputFilterSensitiveLog, } from "../models/models_0";
6
6
  import { de_InvokeEndpointWithResponseStreamCommand, se_InvokeEndpointWithResponseStreamCommand, } from "../protocols/Aws_restJson1";
7
7
  export { $Command };
8
- export class InvokeEndpointWithResponseStreamCommand extends $Command {
9
- static getEndpointParameterInstructions() {
10
- return {
11
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
- Endpoint: { type: "builtInParams", name: "endpoint" },
13
- Region: { type: "builtInParams", name: "region" },
14
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
- };
16
- }
17
- constructor(input) {
18
- super();
19
- this.input = input;
20
- }
21
- resolveMiddleware(clientStack, configuration, options) {
22
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
- this.middlewareStack.use(getEndpointPlugin(configuration, InvokeEndpointWithResponseStreamCommand.getEndpointParameterInstructions()));
24
- const stack = clientStack.concat(this.middlewareStack);
25
- const { logger } = configuration;
26
- const clientName = "SageMakerRuntimeClient";
27
- const commandName = "InvokeEndpointWithResponseStreamCommand";
28
- const handlerExecutionContext = {
29
- logger,
30
- clientName,
31
- commandName,
32
- inputFilterSensitiveLog: InvokeEndpointWithResponseStreamInputFilterSensitiveLog,
33
- outputFilterSensitiveLog: InvokeEndpointWithResponseStreamOutputFilterSensitiveLog,
34
- [SMITHY_CONTEXT_KEY]: {
35
- service: "AmazonSageMakerRuntime",
36
- operation: "InvokeEndpointWithResponseStream",
37
- eventStream: {
38
- output: true,
39
- },
40
- },
41
- };
42
- const { requestHandler } = configuration;
43
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
44
- }
45
- serialize(input, context) {
46
- return se_InvokeEndpointWithResponseStreamCommand(input, context);
47
- }
48
- deserialize(output, context) {
49
- return de_InvokeEndpointWithResponseStreamCommand(output, context);
50
- }
8
+ export class InvokeEndpointWithResponseStreamCommand extends $Command
9
+ .classBuilder()
10
+ .ep({
11
+ ...commonParams,
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ ];
18
+ })
19
+ .s("AmazonSageMakerRuntime", "InvokeEndpointWithResponseStream", {
20
+ eventStream: {
21
+ output: true,
22
+ },
23
+ })
24
+ .n("SageMakerRuntimeClient", "InvokeEndpointWithResponseStreamCommand")
25
+ .f(InvokeEndpointWithResponseStreamInputFilterSensitiveLog, InvokeEndpointWithResponseStreamOutputFilterSensitiveLog)
26
+ .ser(se_InvokeEndpointWithResponseStreamCommand)
27
+ .de(de_InvokeEndpointWithResponseStreamCommand)
28
+ .build() {
51
29
  }
@@ -6,3 +6,9 @@ export const resolveClientEndpointParameters = (options) => {
6
6
  defaultSigningName: "sagemaker",
7
7
  };
8
8
  };
9
+ export const commonParams = {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { InvokeEndpointAsyncInput, InvokeEndpointAsyncOutput } from "../models/models_0";
5
4
  import { SageMakerRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SageMakerRuntimeClient";
6
5
  /**
@@ -21,6 +20,10 @@ export interface InvokeEndpointAsyncCommandInput extends InvokeEndpointAsyncInpu
21
20
  */
22
21
  export interface InvokeEndpointAsyncCommandOutput extends InvokeEndpointAsyncOutput, __MetadataBearer {
23
22
  }
23
+ declare const InvokeEndpointAsyncCommand_base: {
24
+ new (input: InvokeEndpointAsyncCommandInput): import("@smithy/smithy-client").CommandImpl<InvokeEndpointAsyncCommandInput, InvokeEndpointAsyncCommandOutput, SageMakerRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>After you deploy a model into production using Amazon SageMaker hosting services,
@@ -80,23 +83,5 @@ export interface InvokeEndpointAsyncCommandOutput extends InvokeEndpointAsyncOut
80
83
  * <p>Base exception class for all service exceptions from SageMakerRuntime service.</p>
81
84
  *
82
85
  */
83
- export declare class InvokeEndpointAsyncCommand extends $Command<InvokeEndpointAsyncCommandInput, InvokeEndpointAsyncCommandOutput, SageMakerRuntimeClientResolvedConfig> {
84
- readonly input: InvokeEndpointAsyncCommandInput;
85
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
86
- /**
87
- * @public
88
- */
89
- constructor(input: InvokeEndpointAsyncCommandInput);
90
- /**
91
- * @internal
92
- */
93
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SageMakerRuntimeClientResolvedConfig, options?: __HttpHandlerOptions): Handler<InvokeEndpointAsyncCommandInput, InvokeEndpointAsyncCommandOutput>;
94
- /**
95
- * @internal
96
- */
97
- private serialize;
98
- /**
99
- * @internal
100
- */
101
- private deserialize;
86
+ export declare class InvokeEndpointAsyncCommand extends InvokeEndpointAsyncCommand_base {
102
87
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { BlobPayloadInputTypes, Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { BlobPayloadInputTypes, MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { Uint8ArrayBlobAdapter } from "@smithy/util-stream";
5
4
  import { InvokeEndpointInput, InvokeEndpointOutput } from "../models/models_0";
6
5
  import { SageMakerRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SageMakerRuntimeClient";
@@ -34,6 +33,10 @@ export type InvokeEndpointCommandOutputType = Omit<InvokeEndpointOutput, "Body">
34
33
  */
35
34
  export interface InvokeEndpointCommandOutput extends InvokeEndpointCommandOutputType, __MetadataBearer {
36
35
  }
36
+ declare const InvokeEndpointCommand_base: {
37
+ new (input: InvokeEndpointCommandInput): import("@smithy/smithy-client").CommandImpl<InvokeEndpointCommandInput, InvokeEndpointCommandOutput, SageMakerRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
38
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
39
+ };
37
40
  /**
38
41
  * @public
39
42
  * <p>After you deploy a model into production using Amazon SageMaker hosting services,
@@ -117,23 +120,5 @@ export interface InvokeEndpointCommandOutput extends InvokeEndpointCommandOutput
117
120
  * <p>Base exception class for all service exceptions from SageMakerRuntime service.</p>
118
121
  *
119
122
  */
120
- export declare class InvokeEndpointCommand extends $Command<InvokeEndpointCommandInput, InvokeEndpointCommandOutput, SageMakerRuntimeClientResolvedConfig> {
121
- readonly input: InvokeEndpointCommandInput;
122
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
123
- /**
124
- * @public
125
- */
126
- constructor(input: InvokeEndpointCommandInput);
127
- /**
128
- * @internal
129
- */
130
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SageMakerRuntimeClientResolvedConfig, options?: __HttpHandlerOptions): Handler<InvokeEndpointCommandInput, InvokeEndpointCommandOutput>;
131
- /**
132
- * @internal
133
- */
134
- private serialize;
135
- /**
136
- * @internal
137
- */
138
- private deserialize;
123
+ export declare class InvokeEndpointCommand extends InvokeEndpointCommand_base {
139
124
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { BlobPayloadInputTypes, Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { BlobPayloadInputTypes, MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { InvokeEndpointWithResponseStreamInput, InvokeEndpointWithResponseStreamOutput } from "../models/models_0";
5
4
  import { SageMakerRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SageMakerRuntimeClient";
6
5
  /**
@@ -27,6 +26,10 @@ export interface InvokeEndpointWithResponseStreamCommandInput extends InvokeEndp
27
26
  */
28
27
  export interface InvokeEndpointWithResponseStreamCommandOutput extends InvokeEndpointWithResponseStreamOutput, __MetadataBearer {
29
28
  }
29
+ declare const InvokeEndpointWithResponseStreamCommand_base: {
30
+ new (input: InvokeEndpointWithResponseStreamCommandInput): import("@smithy/smithy-client").CommandImpl<InvokeEndpointWithResponseStreamCommandInput, InvokeEndpointWithResponseStreamCommandOutput, SageMakerRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
31
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
32
+ };
30
33
  /**
31
34
  * @public
32
35
  * <p>Invokes a model at the specified endpoint to return the inference response as a
@@ -133,23 +136,5 @@ export interface InvokeEndpointWithResponseStreamCommandOutput extends InvokeEnd
133
136
  * <p>Base exception class for all service exceptions from SageMakerRuntime service.</p>
134
137
  *
135
138
  */
136
- export declare class InvokeEndpointWithResponseStreamCommand extends $Command<InvokeEndpointWithResponseStreamCommandInput, InvokeEndpointWithResponseStreamCommandOutput, SageMakerRuntimeClientResolvedConfig> {
137
- readonly input: InvokeEndpointWithResponseStreamCommandInput;
138
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
139
- /**
140
- * @public
141
- */
142
- constructor(input: InvokeEndpointWithResponseStreamCommandInput);
143
- /**
144
- * @internal
145
- */
146
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SageMakerRuntimeClientResolvedConfig, options?: __HttpHandlerOptions): Handler<InvokeEndpointWithResponseStreamCommandInput, InvokeEndpointWithResponseStreamCommandOutput>;
147
- /**
148
- * @internal
149
- */
150
- private serialize;
151
- /**
152
- * @internal
153
- */
154
- private deserialize;
139
+ export declare class InvokeEndpointWithResponseStreamCommand extends InvokeEndpointWithResponseStreamCommand_base {
155
140
  }
@@ -14,6 +14,24 @@ export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
14
14
  export declare const resolveClientEndpointParameters: <T>(options: T & ClientInputEndpointParameters) => T & ClientInputEndpointParameters & {
15
15
  defaultSigningName: string;
16
16
  };
17
+ export declare const commonParams: {
18
+ readonly UseFIPS: {
19
+ readonly type: "builtInParams";
20
+ readonly name: "useFipsEndpoint";
21
+ };
22
+ readonly Endpoint: {
23
+ readonly type: "builtInParams";
24
+ readonly name: "endpoint";
25
+ };
26
+ readonly Region: {
27
+ readonly type: "builtInParams";
28
+ readonly name: "region";
29
+ };
30
+ readonly UseDualStack: {
31
+ readonly type: "builtInParams";
32
+ readonly name: "useDualstackEndpoint";
33
+ };
34
+ };
17
35
  export interface EndpointParameters extends __EndpointParameters {
18
36
  Region?: string;
19
37
  UseDualStack?: boolean;
@@ -1,11 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import {
4
- Handler,
5
- HttpHandlerOptions as __HttpHandlerOptions,
6
- MetadataBearer as __MetadataBearer,
7
- MiddlewareStack,
8
- } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
9
3
  import {
10
4
  InvokeEndpointAsyncInput,
11
5
  InvokeEndpointAsyncOutput,
@@ -21,19 +15,16 @@ export interface InvokeEndpointAsyncCommandInput
21
15
  export interface InvokeEndpointAsyncCommandOutput
22
16
  extends InvokeEndpointAsyncOutput,
23
17
  __MetadataBearer {}
24
- export declare class InvokeEndpointAsyncCommand extends $Command<
25
- InvokeEndpointAsyncCommandInput,
26
- InvokeEndpointAsyncCommandOutput,
27
- SageMakerRuntimeClientResolvedConfig
28
- > {
29
- readonly input: InvokeEndpointAsyncCommandInput;
30
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
31
- constructor(input: InvokeEndpointAsyncCommandInput);
32
- resolveMiddleware(
33
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
34
- configuration: SageMakerRuntimeClientResolvedConfig,
35
- options?: __HttpHandlerOptions
36
- ): Handler<InvokeEndpointAsyncCommandInput, InvokeEndpointAsyncCommandOutput>;
37
- private serialize;
38
- private deserialize;
39
- }
18
+ declare const InvokeEndpointAsyncCommand_base: {
19
+ new (
20
+ input: InvokeEndpointAsyncCommandInput
21
+ ): import("@smithy/smithy-client").CommandImpl<
22
+ InvokeEndpointAsyncCommandInput,
23
+ InvokeEndpointAsyncCommandOutput,
24
+ SageMakerRuntimeClientResolvedConfig,
25
+ ServiceInputTypes,
26
+ ServiceOutputTypes
27
+ >;
28
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
29
+ };
30
+ export declare class InvokeEndpointAsyncCommand extends InvokeEndpointAsyncCommand_base {}
@@ -1,11 +1,7 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
2
  import {
4
3
  BlobPayloadInputTypes,
5
- Handler,
6
- HttpHandlerOptions as __HttpHandlerOptions,
7
4
  MetadataBearer as __MetadataBearer,
8
- MiddlewareStack,
9
5
  } from "@smithy/types";
10
6
  import { Uint8ArrayBlobAdapter } from "@smithy/util-stream";
11
7
  import { InvokeEndpointInput, InvokeEndpointOutput } from "../models/models_0";
@@ -32,19 +28,16 @@ export type InvokeEndpointCommandOutputType = Pick<
32
28
  export interface InvokeEndpointCommandOutput
33
29
  extends InvokeEndpointCommandOutputType,
34
30
  __MetadataBearer {}
35
- export declare class InvokeEndpointCommand extends $Command<
36
- InvokeEndpointCommandInput,
37
- InvokeEndpointCommandOutput,
38
- SageMakerRuntimeClientResolvedConfig
39
- > {
40
- readonly input: InvokeEndpointCommandInput;
41
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
42
- constructor(input: InvokeEndpointCommandInput);
43
- resolveMiddleware(
44
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
45
- configuration: SageMakerRuntimeClientResolvedConfig,
46
- options?: __HttpHandlerOptions
47
- ): Handler<InvokeEndpointCommandInput, InvokeEndpointCommandOutput>;
48
- private serialize;
49
- private deserialize;
50
- }
31
+ declare const InvokeEndpointCommand_base: {
32
+ new (
33
+ input: InvokeEndpointCommandInput
34
+ ): import("@smithy/smithy-client").CommandImpl<
35
+ InvokeEndpointCommandInput,
36
+ InvokeEndpointCommandOutput,
37
+ SageMakerRuntimeClientResolvedConfig,
38
+ ServiceInputTypes,
39
+ ServiceOutputTypes
40
+ >;
41
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
42
+ };
43
+ export declare class InvokeEndpointCommand extends InvokeEndpointCommand_base {}
@@ -1,11 +1,7 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
2
  import {
4
3
  BlobPayloadInputTypes,
5
- Handler,
6
- HttpHandlerOptions as __HttpHandlerOptions,
7
4
  MetadataBearer as __MetadataBearer,
8
- MiddlewareStack,
9
5
  } from "@smithy/types";
10
6
  import {
11
7
  InvokeEndpointWithResponseStreamInput,
@@ -28,22 +24,16 @@ export interface InvokeEndpointWithResponseStreamCommandInput
28
24
  export interface InvokeEndpointWithResponseStreamCommandOutput
29
25
  extends InvokeEndpointWithResponseStreamOutput,
30
26
  __MetadataBearer {}
31
- export declare class InvokeEndpointWithResponseStreamCommand extends $Command<
32
- InvokeEndpointWithResponseStreamCommandInput,
33
- InvokeEndpointWithResponseStreamCommandOutput,
34
- SageMakerRuntimeClientResolvedConfig
35
- > {
36
- readonly input: InvokeEndpointWithResponseStreamCommandInput;
37
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
38
- constructor(input: InvokeEndpointWithResponseStreamCommandInput);
39
- resolveMiddleware(
40
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
41
- configuration: SageMakerRuntimeClientResolvedConfig,
42
- options?: __HttpHandlerOptions
43
- ): Handler<
27
+ declare const InvokeEndpointWithResponseStreamCommand_base: {
28
+ new (
29
+ input: InvokeEndpointWithResponseStreamCommandInput
30
+ ): import("@smithy/smithy-client").CommandImpl<
44
31
  InvokeEndpointWithResponseStreamCommandInput,
45
- InvokeEndpointWithResponseStreamCommandOutput
32
+ InvokeEndpointWithResponseStreamCommandOutput,
33
+ SageMakerRuntimeClientResolvedConfig,
34
+ ServiceInputTypes,
35
+ ServiceOutputTypes
46
36
  >;
47
- private serialize;
48
- private deserialize;
49
- }
37
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
38
+ };
39
+ export declare class InvokeEndpointWithResponseStreamCommand extends InvokeEndpointWithResponseStreamCommand_base {}
@@ -25,6 +25,24 @@ export declare const resolveClientEndpointParameters: <T>(
25
25
  ClientInputEndpointParameters & {
26
26
  defaultSigningName: string;
27
27
  };
28
+ export declare const commonParams: {
29
+ readonly UseFIPS: {
30
+ readonly type: "builtInParams";
31
+ readonly name: "useFipsEndpoint";
32
+ };
33
+ readonly Endpoint: {
34
+ readonly type: "builtInParams";
35
+ readonly name: "endpoint";
36
+ };
37
+ readonly Region: {
38
+ readonly type: "builtInParams";
39
+ readonly name: "region";
40
+ };
41
+ readonly UseDualStack: {
42
+ readonly type: "builtInParams";
43
+ readonly name: "useDualstackEndpoint";
44
+ };
45
+ };
28
46
  export interface EndpointParameters extends __EndpointParameters {
29
47
  Region?: string;
30
48
  UseDualStack?: boolean;
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.478.0",
4
+ "version": "3.484.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",
@@ -20,21 +20,21 @@
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.478.0",
24
- "@aws-sdk/core": "3.477.0",
25
- "@aws-sdk/credential-provider-node": "3.478.0",
23
+ "@aws-sdk/client-sts": "3.484.0",
24
+ "@aws-sdk/core": "3.481.0",
25
+ "@aws-sdk/credential-provider-node": "3.484.0",
26
26
  "@aws-sdk/middleware-host-header": "3.468.0",
27
27
  "@aws-sdk/middleware-logger": "3.468.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.468.0",
29
29
  "@aws-sdk/middleware-signing": "3.468.0",
30
30
  "@aws-sdk/middleware-user-agent": "3.478.0",
31
- "@aws-sdk/region-config-resolver": "3.470.0",
31
+ "@aws-sdk/region-config-resolver": "3.484.0",
32
32
  "@aws-sdk/types": "3.468.0",
33
33
  "@aws-sdk/util-endpoints": "3.478.0",
34
34
  "@aws-sdk/util-user-agent-browser": "3.468.0",
35
35
  "@aws-sdk/util-user-agent-node": "3.470.0",
36
- "@smithy/config-resolver": "^2.0.21",
37
- "@smithy/core": "^1.2.0",
36
+ "@smithy/config-resolver": "^2.0.22",
37
+ "@smithy/core": "^1.2.1",
38
38
  "@smithy/eventstream-serde-browser": "^2.0.15",
39
39
  "@smithy/eventstream-serde-config-resolver": "^2.0.15",
40
40
  "@smithy/eventstream-serde-node": "^2.0.15",
@@ -43,20 +43,20 @@
43
43
  "@smithy/invalid-dependency": "^2.0.15",
44
44
  "@smithy/middleware-content-length": "^2.0.17",
45
45
  "@smithy/middleware-endpoint": "^2.2.3",
46
- "@smithy/middleware-retry": "^2.0.24",
46
+ "@smithy/middleware-retry": "^2.0.25",
47
47
  "@smithy/middleware-serde": "^2.0.15",
48
48
  "@smithy/middleware-stack": "^2.0.9",
49
49
  "@smithy/node-config-provider": "^2.1.8",
50
50
  "@smithy/node-http-handler": "^2.2.1",
51
51
  "@smithy/protocol-http": "^3.0.11",
52
- "@smithy/smithy-client": "^2.1.18",
52
+ "@smithy/smithy-client": "^2.2.0",
53
53
  "@smithy/types": "^2.7.0",
54
54
  "@smithy/url-parser": "^2.0.15",
55
55
  "@smithy/util-base64": "^2.0.1",
56
56
  "@smithy/util-body-length-browser": "^2.0.1",
57
57
  "@smithy/util-body-length-node": "^2.1.0",
58
- "@smithy/util-defaults-mode-browser": "^2.0.22",
59
- "@smithy/util-defaults-mode-node": "^2.0.29",
58
+ "@smithy/util-defaults-mode-browser": "^2.0.23",
59
+ "@smithy/util-defaults-mode-node": "^2.0.31",
60
60
  "@smithy/util-endpoints": "^1.0.7",
61
61
  "@smithy/util-retry": "^2.0.8",
62
62
  "@smithy/util-stream": "^2.0.23",