@aws-sdk/client-bedrock-runtime 3.477.0 → 3.481.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 InvokeModelCommand 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, InvokeModelCommand.getEndpointParameterInstructions()));
27
- const stack = clientStack.concat(this.middlewareStack);
28
- const { logger } = configuration;
29
- const clientName = "BedrockRuntimeClient";
30
- const commandName = "InvokeModelCommand";
31
- const handlerExecutionContext = {
32
- logger,
33
- clientName,
34
- commandName,
35
- inputFilterSensitiveLog: models_0_1.InvokeModelRequestFilterSensitiveLog,
36
- outputFilterSensitiveLog: models_0_1.InvokeModelResponseFilterSensitiveLog,
37
- [types_1.SMITHY_CONTEXT_KEY]: {
38
- service: "AmazonBedrockFrontendService",
39
- operation: "InvokeModel",
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_InvokeModelCommand)(input, context);
47
- }
48
- deserialize(output, context) {
49
- return (0, Aws_restJson1_1.de_InvokeModelCommand)(output, context);
50
- }
11
+ class InvokeModelCommand 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("AmazonBedrockFrontendService", "InvokeModel", {})
23
+ .n("BedrockRuntimeClient", "InvokeModelCommand")
24
+ .f(models_0_1.InvokeModelRequestFilterSensitiveLog, models_0_1.InvokeModelResponseFilterSensitiveLog)
25
+ .ser(Aws_restJson1_1.se_InvokeModelCommand)
26
+ .de(Aws_restJson1_1.de_InvokeModelCommand)
27
+ .build() {
51
28
  }
52
29
  exports.InvokeModelCommand = InvokeModelCommand;
@@ -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 InvokeModelWithResponseStreamCommand 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, InvokeModelWithResponseStreamCommand.getEndpointParameterInstructions()));
27
- const stack = clientStack.concat(this.middlewareStack);
28
- const { logger } = configuration;
29
- const clientName = "BedrockRuntimeClient";
30
- const commandName = "InvokeModelWithResponseStreamCommand";
31
- const handlerExecutionContext = {
32
- logger,
33
- clientName,
34
- commandName,
35
- inputFilterSensitiveLog: models_0_1.InvokeModelWithResponseStreamRequestFilterSensitiveLog,
36
- outputFilterSensitiveLog: models_0_1.InvokeModelWithResponseStreamResponseFilterSensitiveLog,
37
- [types_1.SMITHY_CONTEXT_KEY]: {
38
- service: "AmazonBedrockFrontendService",
39
- operation: "InvokeModelWithResponseStream",
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_InvokeModelWithResponseStreamCommand)(input, context);
50
- }
51
- deserialize(output, context) {
52
- return (0, Aws_restJson1_1.de_InvokeModelWithResponseStreamCommand)(output, context);
53
- }
11
+ class InvokeModelWithResponseStreamCommand 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("AmazonBedrockFrontendService", "InvokeModelWithResponseStream", {
23
+ eventStream: {
24
+ output: true,
25
+ },
26
+ })
27
+ .n("BedrockRuntimeClient", "InvokeModelWithResponseStreamCommand")
28
+ .f(models_0_1.InvokeModelWithResponseStreamRequestFilterSensitiveLog, models_0_1.InvokeModelWithResponseStreamResponseFilterSensitiveLog)
29
+ .ser(Aws_restJson1_1.se_InvokeModelWithResponseStreamCommand)
30
+ .de(Aws_restJson1_1.de_InvokeModelWithResponseStreamCommand)
31
+ .build() {
54
32
  }
55
33
  exports.InvokeModelWithResponseStreamCommand = InvokeModelWithResponseStreamCommand;
@@ -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 { InvokeModelRequestFilterSensitiveLog, InvokeModelResponseFilterSensitiveLog, } from "../models/models_0";
6
6
  import { de_InvokeModelCommand, se_InvokeModelCommand } from "../protocols/Aws_restJson1";
7
7
  export { $Command };
8
- export class InvokeModelCommand 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, InvokeModelCommand.getEndpointParameterInstructions()));
24
- const stack = clientStack.concat(this.middlewareStack);
25
- const { logger } = configuration;
26
- const clientName = "BedrockRuntimeClient";
27
- const commandName = "InvokeModelCommand";
28
- const handlerExecutionContext = {
29
- logger,
30
- clientName,
31
- commandName,
32
- inputFilterSensitiveLog: InvokeModelRequestFilterSensitiveLog,
33
- outputFilterSensitiveLog: InvokeModelResponseFilterSensitiveLog,
34
- [SMITHY_CONTEXT_KEY]: {
35
- service: "AmazonBedrockFrontendService",
36
- operation: "InvokeModel",
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_InvokeModelCommand(input, context);
44
- }
45
- deserialize(output, context) {
46
- return de_InvokeModelCommand(output, context);
47
- }
8
+ export class InvokeModelCommand 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("AmazonBedrockFrontendService", "InvokeModel", {})
20
+ .n("BedrockRuntimeClient", "InvokeModelCommand")
21
+ .f(InvokeModelRequestFilterSensitiveLog, InvokeModelResponseFilterSensitiveLog)
22
+ .ser(se_InvokeModelCommand)
23
+ .de(de_InvokeModelCommand)
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 { InvokeModelWithResponseStreamRequestFilterSensitiveLog, InvokeModelWithResponseStreamResponseFilterSensitiveLog, } from "../models/models_0";
6
6
  import { de_InvokeModelWithResponseStreamCommand, se_InvokeModelWithResponseStreamCommand, } from "../protocols/Aws_restJson1";
7
7
  export { $Command };
8
- export class InvokeModelWithResponseStreamCommand 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, InvokeModelWithResponseStreamCommand.getEndpointParameterInstructions()));
24
- const stack = clientStack.concat(this.middlewareStack);
25
- const { logger } = configuration;
26
- const clientName = "BedrockRuntimeClient";
27
- const commandName = "InvokeModelWithResponseStreamCommand";
28
- const handlerExecutionContext = {
29
- logger,
30
- clientName,
31
- commandName,
32
- inputFilterSensitiveLog: InvokeModelWithResponseStreamRequestFilterSensitiveLog,
33
- outputFilterSensitiveLog: InvokeModelWithResponseStreamResponseFilterSensitiveLog,
34
- [SMITHY_CONTEXT_KEY]: {
35
- service: "AmazonBedrockFrontendService",
36
- operation: "InvokeModelWithResponseStream",
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_InvokeModelWithResponseStreamCommand(input, context);
47
- }
48
- deserialize(output, context) {
49
- return de_InvokeModelWithResponseStreamCommand(output, context);
50
- }
8
+ export class InvokeModelWithResponseStreamCommand 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("AmazonBedrockFrontendService", "InvokeModelWithResponseStream", {
20
+ eventStream: {
21
+ output: true,
22
+ },
23
+ })
24
+ .n("BedrockRuntimeClient", "InvokeModelWithResponseStreamCommand")
25
+ .f(InvokeModelWithResponseStreamRequestFilterSensitiveLog, InvokeModelWithResponseStreamResponseFilterSensitiveLog)
26
+ .ser(se_InvokeModelWithResponseStreamCommand)
27
+ .de(de_InvokeModelWithResponseStreamCommand)
28
+ .build() {
51
29
  }
@@ -6,3 +6,9 @@ export const resolveClientEndpointParameters = (options) => {
6
6
  defaultSigningName: "bedrock",
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 { 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 { BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockRuntimeClient";
6
5
  import { InvokeModelRequest, InvokeModelResponse } from "../models/models_0";
@@ -34,6 +33,10 @@ export type InvokeModelCommandOutputType = Omit<InvokeModelResponse, "body"> & {
34
33
  */
35
34
  export interface InvokeModelCommandOutput extends InvokeModelCommandOutputType, __MetadataBearer {
36
35
  }
36
+ declare const InvokeModelCommand_base: {
37
+ new (input: InvokeModelCommandInput): import("@smithy/smithy-client").CommandImpl<InvokeModelCommandInput, InvokeModelCommandOutput, BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
38
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
39
+ };
37
40
  /**
38
41
  * @public
39
42
  * <p>Invokes the specified Bedrock model to run inference using the input provided in the request body.
@@ -98,23 +101,5 @@ export interface InvokeModelCommandOutput extends InvokeModelCommandOutputType,
98
101
  * <p>Base exception class for all service exceptions from BedrockRuntime service.</p>
99
102
  *
100
103
  */
101
- export declare class InvokeModelCommand extends $Command<InvokeModelCommandInput, InvokeModelCommandOutput, BedrockRuntimeClientResolvedConfig> {
102
- readonly input: InvokeModelCommandInput;
103
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
104
- /**
105
- * @public
106
- */
107
- constructor(input: InvokeModelCommandInput);
108
- /**
109
- * @internal
110
- */
111
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: BedrockRuntimeClientResolvedConfig, options?: __HttpHandlerOptions): Handler<InvokeModelCommandInput, InvokeModelCommandOutput>;
112
- /**
113
- * @internal
114
- */
115
- private serialize;
116
- /**
117
- * @internal
118
- */
119
- private deserialize;
104
+ export declare class InvokeModelCommand extends InvokeModelCommand_base {
120
105
  }
@@ -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 { BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockRuntimeClient";
5
4
  import { InvokeModelWithResponseStreamRequest, InvokeModelWithResponseStreamResponse } from "../models/models_0";
6
5
  /**
@@ -27,6 +26,10 @@ export interface InvokeModelWithResponseStreamCommandInput extends InvokeModelWi
27
26
  */
28
27
  export interface InvokeModelWithResponseStreamCommandOutput extends InvokeModelWithResponseStreamResponse, __MetadataBearer {
29
28
  }
29
+ declare const InvokeModelWithResponseStreamCommand_base: {
30
+ new (input: InvokeModelWithResponseStreamCommandInput): import("@smithy/smithy-client").CommandImpl<InvokeModelWithResponseStreamCommandInput, InvokeModelWithResponseStreamCommandOutput, BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
31
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
32
+ };
30
33
  /**
31
34
  * @public
32
35
  * <p>Invoke the specified Bedrock model to run inference using the input provided.
@@ -115,23 +118,5 @@ export interface InvokeModelWithResponseStreamCommandOutput extends InvokeModelW
115
118
  * <p>Base exception class for all service exceptions from BedrockRuntime service.</p>
116
119
  *
117
120
  */
118
- export declare class InvokeModelWithResponseStreamCommand extends $Command<InvokeModelWithResponseStreamCommandInput, InvokeModelWithResponseStreamCommandOutput, BedrockRuntimeClientResolvedConfig> {
119
- readonly input: InvokeModelWithResponseStreamCommandInput;
120
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
121
- /**
122
- * @public
123
- */
124
- constructor(input: InvokeModelWithResponseStreamCommandInput);
125
- /**
126
- * @internal
127
- */
128
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: BedrockRuntimeClientResolvedConfig, options?: __HttpHandlerOptions): Handler<InvokeModelWithResponseStreamCommandInput, InvokeModelWithResponseStreamCommandOutput>;
129
- /**
130
- * @internal
131
- */
132
- private serialize;
133
- /**
134
- * @internal
135
- */
136
- private deserialize;
121
+ export declare class InvokeModelWithResponseStreamCommand extends InvokeModelWithResponseStreamCommand_base {
137
122
  }
@@ -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,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 {
@@ -31,19 +27,16 @@ export type InvokeModelCommandOutputType = Pick<
31
27
  export interface InvokeModelCommandOutput
32
28
  extends InvokeModelCommandOutputType,
33
29
  __MetadataBearer {}
34
- export declare class InvokeModelCommand extends $Command<
35
- InvokeModelCommandInput,
36
- InvokeModelCommandOutput,
37
- BedrockRuntimeClientResolvedConfig
38
- > {
39
- readonly input: InvokeModelCommandInput;
40
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
41
- constructor(input: InvokeModelCommandInput);
42
- resolveMiddleware(
43
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
44
- configuration: BedrockRuntimeClientResolvedConfig,
45
- options?: __HttpHandlerOptions
46
- ): Handler<InvokeModelCommandInput, InvokeModelCommandOutput>;
47
- private serialize;
48
- private deserialize;
49
- }
30
+ declare const InvokeModelCommand_base: {
31
+ new (
32
+ input: InvokeModelCommandInput
33
+ ): import("@smithy/smithy-client").CommandImpl<
34
+ InvokeModelCommandInput,
35
+ InvokeModelCommandOutput,
36
+ BedrockRuntimeClientResolvedConfig,
37
+ ServiceInputTypes,
38
+ ServiceOutputTypes
39
+ >;
40
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
41
+ };
42
+ export declare class InvokeModelCommand extends InvokeModelCommand_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
  BedrockRuntimeClientResolvedConfig,
@@ -28,22 +24,16 @@ export interface InvokeModelWithResponseStreamCommandInput
28
24
  export interface InvokeModelWithResponseStreamCommandOutput
29
25
  extends InvokeModelWithResponseStreamResponse,
30
26
  __MetadataBearer {}
31
- export declare class InvokeModelWithResponseStreamCommand extends $Command<
32
- InvokeModelWithResponseStreamCommandInput,
33
- InvokeModelWithResponseStreamCommandOutput,
34
- BedrockRuntimeClientResolvedConfig
35
- > {
36
- readonly input: InvokeModelWithResponseStreamCommandInput;
37
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
38
- constructor(input: InvokeModelWithResponseStreamCommandInput);
39
- resolveMiddleware(
40
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
41
- configuration: BedrockRuntimeClientResolvedConfig,
42
- options?: __HttpHandlerOptions
43
- ): Handler<
27
+ declare const InvokeModelWithResponseStreamCommand_base: {
28
+ new (
29
+ input: InvokeModelWithResponseStreamCommandInput
30
+ ): import("@smithy/smithy-client").CommandImpl<
44
31
  InvokeModelWithResponseStreamCommandInput,
45
- InvokeModelWithResponseStreamCommandOutput
32
+ InvokeModelWithResponseStreamCommandOutput,
33
+ BedrockRuntimeClientResolvedConfig,
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 InvokeModelWithResponseStreamCommand extends InvokeModelWithResponseStreamCommand_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-bedrock-runtime",
3
3
  "description": "AWS SDK for JavaScript Bedrock Runtime Client for Node.js, Browser and React Native",
4
- "version": "3.477.0",
4
+ "version": "3.481.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.477.0",
24
- "@aws-sdk/core": "3.477.0",
25
- "@aws-sdk/credential-provider-node": "3.477.0",
23
+ "@aws-sdk/client-sts": "3.481.0",
24
+ "@aws-sdk/core": "3.481.0",
25
+ "@aws-sdk/credential-provider-node": "3.481.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
- "@aws-sdk/middleware-user-agent": "3.470.0",
30
+ "@aws-sdk/middleware-user-agent": "3.478.0",
31
31
  "@aws-sdk/region-config-resolver": "3.470.0",
32
32
  "@aws-sdk/types": "3.468.0",
33
- "@aws-sdk/util-endpoints": "3.470.0",
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
36
  "@smithy/config-resolver": "^2.0.21",
37
- "@smithy/core": "^1.2.0",
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.30",
60
60
  "@smithy/util-endpoints": "^1.0.7",
61
61
  "@smithy/util-retry": "^2.0.8",
62
62
  "@smithy/util-stream": "^2.0.23",