Socket
Socket
Sign inDemoInstall

@aws-sdk/client-bedrock-runtime

Package Overview
Dependencies
Maintainers
5
Versions
107
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/client-bedrock-runtime - npm Package Compare versions

Comparing version 3.422.0 to 3.422.1

57

dist-types/ts3.4/BedrockRuntime.d.ts
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
import { BedrockRuntimeClient } from "./BedrockRuntimeClient";
import {
InvokeModelCommandInput,
InvokeModelCommandOutput,
} from "./commands/InvokeModelCommand";
import {
InvokeModelWithResponseStreamCommandInput,
InvokeModelWithResponseStreamCommandOutput,
} from "./commands/InvokeModelWithResponseStreamCommand";
import { InvokeModelCommandInput, InvokeModelCommandOutput } from "./commands/InvokeModelCommand";
import { InvokeModelWithResponseStreamCommandInput, InvokeModelWithResponseStreamCommandOutput } from "./commands/InvokeModelWithResponseStreamCommand";
export interface BedrockRuntime {
invokeModel(
args: InvokeModelCommandInput,
options?: __HttpHandlerOptions
): Promise<InvokeModelCommandOutput>;
invokeModel(
args: InvokeModelCommandInput,
cb: (err: any, data?: InvokeModelCommandOutput) => void
): void;
invokeModel(
args: InvokeModelCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: InvokeModelCommandOutput) => void
): void;
invokeModelWithResponseStream(
args: InvokeModelWithResponseStreamCommandInput,
options?: __HttpHandlerOptions
): Promise<InvokeModelWithResponseStreamCommandOutput>;
invokeModelWithResponseStream(
args: InvokeModelWithResponseStreamCommandInput,
cb: (err: any, data?: InvokeModelWithResponseStreamCommandOutput) => void
): void;
invokeModelWithResponseStream(
args: InvokeModelWithResponseStreamCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: InvokeModelWithResponseStreamCommandOutput) => void
): void;
/**
* @see {@link InvokeModelCommand}
*/
invokeModel(args: InvokeModelCommandInput, options?: __HttpHandlerOptions): Promise<InvokeModelCommandOutput>;
invokeModel(args: InvokeModelCommandInput, cb: (err: any, data?: InvokeModelCommandOutput) => void): void;
invokeModel(args: InvokeModelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: InvokeModelCommandOutput) => void): void;
/**
* @see {@link InvokeModelWithResponseStreamCommand}
*/
invokeModelWithResponseStream(args: InvokeModelWithResponseStreamCommandInput, options?: __HttpHandlerOptions): Promise<InvokeModelWithResponseStreamCommandOutput>;
invokeModelWithResponseStream(args: InvokeModelWithResponseStreamCommandInput, cb: (err: any, data?: InvokeModelWithResponseStreamCommandOutput) => void): void;
invokeModelWithResponseStream(args: InvokeModelWithResponseStreamCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: InvokeModelWithResponseStreamCommandOutput) => void): void;
}
export declare class BedrockRuntime
extends BedrockRuntimeClient
implements BedrockRuntime {}
/**
* @public
* <p>Describes the API operations for running inference using Bedrock models.</p>
*/
export declare class BedrockRuntime extends BedrockRuntimeClient implements BedrockRuntime {
}

@@ -1,139 +0,174 @@

import {
HostHeaderInputConfig,
HostHeaderResolvedConfig,
} from "@aws-sdk/middleware-host-header";
import {
AwsAuthInputConfig,
AwsAuthResolvedConfig,
} from "@aws-sdk/middleware-signing";
import {
UserAgentInputConfig,
UserAgentResolvedConfig,
} from "@aws-sdk/middleware-user-agent";
import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
import { Credentials as __Credentials } from "@aws-sdk/types";
import {
RegionInputConfig,
RegionResolvedConfig,
} from "@smithy/config-resolver";
import {
EventStreamSerdeInputConfig,
EventStreamSerdeResolvedConfig,
} from "@smithy/eventstream-serde-config-resolver";
import {
EndpointInputConfig,
EndpointResolvedConfig,
} from "@smithy/middleware-endpoint";
import {
RetryInputConfig,
RetryResolvedConfig,
} from "@smithy/middleware-retry";
import { RegionInputConfig, RegionResolvedConfig } from "@smithy/config-resolver";
import { EventStreamSerdeInputConfig, EventStreamSerdeResolvedConfig } from "@smithy/eventstream-serde-config-resolver";
import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-endpoint";
import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
import { HttpHandler as __HttpHandler } from "@smithy/protocol-http";
import {
Client as __Client,
DefaultsMode as __DefaultsMode,
SmithyConfiguration as __SmithyConfiguration,
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
} from "@smithy/smithy-client";
import {
BodyLengthCalculator as __BodyLengthCalculator,
CheckOptionalClientConfig as __CheckOptionalClientConfig,
ChecksumConstructor as __ChecksumConstructor,
Decoder as __Decoder,
Encoder as __Encoder,
EventStreamSerdeProvider as __EventStreamSerdeProvider,
HashConstructor as __HashConstructor,
HttpHandlerOptions as __HttpHandlerOptions,
Logger as __Logger,
Provider as __Provider,
Provider,
StreamCollector as __StreamCollector,
UrlParser as __UrlParser,
UserAgent as __UserAgent,
} from "@smithy/types";
import {
InvokeModelCommandInput,
InvokeModelCommandOutput,
} from "./commands/InvokeModelCommand";
import {
InvokeModelWithResponseStreamCommandInput,
InvokeModelWithResponseStreamCommandOutput,
} from "./commands/InvokeModelWithResponseStreamCommand";
import {
ClientInputEndpointParameters,
ClientResolvedEndpointParameters,
EndpointParameters,
} from "./endpoint/EndpointParameters";
import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
import { BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, EventStreamSerdeProvider as __EventStreamSerdeProvider, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
import { InvokeModelCommandInput, InvokeModelCommandOutput } from "./commands/InvokeModelCommand";
import { InvokeModelWithResponseStreamCommandInput, InvokeModelWithResponseStreamCommandOutput } from "./commands/InvokeModelWithResponseStreamCommand";
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
export { __Client };
export type ServiceInputTypes =
| InvokeModelCommandInput
| InvokeModelWithResponseStreamCommandInput;
export type ServiceOutputTypes =
| InvokeModelCommandOutput
| InvokeModelWithResponseStreamCommandOutput;
export interface ClientDefaults
extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
requestHandler?: __HttpHandler;
sha256?: __ChecksumConstructor | __HashConstructor;
urlParser?: __UrlParser;
bodyLengthChecker?: __BodyLengthCalculator;
streamCollector?: __StreamCollector;
base64Decoder?: __Decoder;
base64Encoder?: __Encoder;
utf8Decoder?: __Decoder;
utf8Encoder?: __Encoder;
runtime?: string;
disableHostPrefix?: boolean;
serviceId?: string;
useDualstackEndpoint?: boolean | __Provider<boolean>;
useFipsEndpoint?: boolean | __Provider<boolean>;
region?: string | __Provider<string>;
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
defaultUserAgentProvider?: Provider<__UserAgent>;
maxAttempts?: number | __Provider<number>;
retryMode?: string | __Provider<string>;
logger?: __Logger;
extensions?: RuntimeExtension[];
eventStreamSerdeProvider?: __EventStreamSerdeProvider;
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
/**
* @public
*/
export type ServiceInputTypes = InvokeModelCommandInput | InvokeModelWithResponseStreamCommandInput;
/**
* @public
*/
export type ServiceOutputTypes = InvokeModelCommandOutput | InvokeModelWithResponseStreamCommandOutput;
/**
* @public
*/
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
/**
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
*/
requestHandler?: __HttpHandler;
/**
* A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
* @internal
*/
sha256?: __ChecksumConstructor | __HashConstructor;
/**
* The function that will be used to convert strings into HTTP endpoints.
* @internal
*/
urlParser?: __UrlParser;
/**
* A function that can calculate the length of a request body.
* @internal
*/
bodyLengthChecker?: __BodyLengthCalculator;
/**
* A function that converts a stream into an array of bytes.
* @internal
*/
streamCollector?: __StreamCollector;
/**
* The function that will be used to convert a base64-encoded string to a byte array.
* @internal
*/
base64Decoder?: __Decoder;
/**
* The function that will be used to convert binary data to a base64-encoded string.
* @internal
*/
base64Encoder?: __Encoder;
/**
* The function that will be used to convert a UTF8-encoded string to a byte array.
* @internal
*/
utf8Decoder?: __Decoder;
/**
* The function that will be used to convert binary data to a UTF-8 encoded string.
* @internal
*/
utf8Encoder?: __Encoder;
/**
* The runtime environment.
* @internal
*/
runtime?: string;
/**
* Disable dynamically changing the endpoint of the client based on the hostPrefix
* trait of an operation.
*/
disableHostPrefix?: boolean;
/**
* Unique service identifier.
* @internal
*/
serviceId?: string;
/**
* Enables IPv6/IPv4 dualstack endpoint.
*/
useDualstackEndpoint?: boolean | __Provider<boolean>;
/**
* Enables FIPS compatible endpoints.
*/
useFipsEndpoint?: boolean | __Provider<boolean>;
/**
* The AWS region to which this client will send requests
*/
region?: string | __Provider<string>;
/**
* Default credentials provider; Not available in browser runtime.
* @internal
*/
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
/**
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
* @internal
*/
defaultUserAgentProvider?: Provider<__UserAgent>;
/**
* Value for how many times a request will be made at most in case of retry.
*/
maxAttempts?: number | __Provider<number>;
/**
* Specifies which retry algorithm to use.
*/
retryMode?: string | __Provider<string>;
/**
* Optional logger for logging debug/info/warn/error.
*/
logger?: __Logger;
/**
* Optional extensions
*/
extensions?: RuntimeExtension[];
/**
* The function that provides necessary utilities for generating and parsing event stream
*/
eventStreamSerdeProvider?: __EventStreamSerdeProvider;
/**
* The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
*/
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
}
export type BedrockRuntimeClientConfigType = Partial<
__SmithyConfiguration<__HttpHandlerOptions>
> &
ClientDefaults &
RegionInputConfig &
EndpointInputConfig<EndpointParameters> &
RetryInputConfig &
HostHeaderInputConfig &
AwsAuthInputConfig &
UserAgentInputConfig &
EventStreamSerdeInputConfig &
ClientInputEndpointParameters;
export interface BedrockRuntimeClientConfig
extends BedrockRuntimeClientConfigType {}
export type BedrockRuntimeClientResolvedConfigType =
__SmithyResolvedConfiguration<__HttpHandlerOptions> &
Required<ClientDefaults> &
RuntimeExtensionsConfig &
RegionResolvedConfig &
EndpointResolvedConfig<EndpointParameters> &
RetryResolvedConfig &
HostHeaderResolvedConfig &
AwsAuthResolvedConfig &
UserAgentResolvedConfig &
EventStreamSerdeResolvedConfig &
ClientResolvedEndpointParameters;
export interface BedrockRuntimeClientResolvedConfig
extends BedrockRuntimeClientResolvedConfigType {}
export declare class BedrockRuntimeClient extends __Client<
__HttpHandlerOptions,
ServiceInputTypes,
ServiceOutputTypes,
BedrockRuntimeClientResolvedConfig
> {
readonly config: BedrockRuntimeClientResolvedConfig;
constructor(
...[configuration]: __CheckOptionalClientConfig<BedrockRuntimeClientConfig>
);
destroy(): void;
/**
* @public
*/
export type BedrockRuntimeClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig & EventStreamSerdeInputConfig & ClientInputEndpointParameters;
/**
* @public
*
* The configuration interface of BedrockRuntimeClient class constructor that set the region, credentials and other options.
*/
export interface BedrockRuntimeClientConfig extends BedrockRuntimeClientConfigType {
}
/**
* @public
*/
export type BedrockRuntimeClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig & EventStreamSerdeResolvedConfig & ClientResolvedEndpointParameters;
/**
* @public
*
* The resolved configuration interface of BedrockRuntimeClient class. This is resolved and normalized from the {@link BedrockRuntimeClientConfig | constructor configuration interface}.
*/
export interface BedrockRuntimeClientResolvedConfig extends BedrockRuntimeClientResolvedConfigType {
}
/**
* @public
* <p>Describes the API operations for running inference using Bedrock models.</p>
*/
export declare class BedrockRuntimeClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, BedrockRuntimeClientResolvedConfig> {
/**
* The resolved configuration of BedrockRuntimeClient class. This is resolved and normalized from the {@link BedrockRuntimeClientConfig | constructor configuration interface}.
*/
readonly config: BedrockRuntimeClientResolvedConfig;
constructor(...[configuration]: __CheckOptionalClientConfig<BedrockRuntimeClientConfig>);
/**
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
*/
destroy(): void;
}
export * from "./InvokeModelCommand";
export * from "./InvokeModelWithResponseStreamCommand";
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import {
BlobPayloadInputTypes,
Handler,
HttpHandlerOptions as __HttpHandlerOptions,
MetadataBearer as __MetadataBearer,
MiddlewareStack,
} from "@smithy/types";
import { BlobPayloadInputTypes, Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
import { Uint8ArrayBlobAdapter } from "@smithy/util-stream";
import {
BedrockRuntimeClientResolvedConfig,
ServiceInputTypes,
ServiceOutputTypes,
} from "../BedrockRuntimeClient";
import { BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockRuntimeClient";
import { InvokeModelRequest, InvokeModelResponse } from "../models/models_0";
/**
* @public
*/
export { __MetadataBearer, $Command };
export type InvokeModelCommandInputType = Pick<
InvokeModelRequest,
Exclude<keyof InvokeModelRequest, "body">
> & {
body: BlobPayloadInputTypes;
/**
* @public
*/
export type InvokeModelCommandInputType = Pick<InvokeModelRequest, Exclude<keyof InvokeModelRequest, "body">> & {
body: BlobPayloadInputTypes;
};
export interface InvokeModelCommandInput extends InvokeModelCommandInputType {}
export type InvokeModelCommandOutputType = Pick<
InvokeModelResponse,
Exclude<keyof InvokeModelResponse, "body">
> & {
body: Uint8ArrayBlobAdapter;
/**
* @public
*
* The input for {@link InvokeModelCommand}.
*/
export interface InvokeModelCommandInput extends InvokeModelCommandInputType {
}
/**
* @public
*/
export type InvokeModelCommandOutputType = Pick<InvokeModelResponse, Exclude<keyof InvokeModelResponse, "body">> & {
body: Uint8ArrayBlobAdapter;
};
export interface InvokeModelCommandOutput
extends InvokeModelCommandOutputType,
__MetadataBearer {}
export declare class InvokeModelCommand extends $Command<
InvokeModelCommandInput,
InvokeModelCommandOutput,
BedrockRuntimeClientResolvedConfig
> {
readonly input: InvokeModelCommandInput;
static getEndpointParameterInstructions(): EndpointParameterInstructions;
constructor(input: InvokeModelCommandInput);
resolveMiddleware(
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
configuration: BedrockRuntimeClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler<InvokeModelCommandInput, InvokeModelCommandOutput>;
private serialize;
private deserialize;
/**
* @public
*
* The output of {@link InvokeModelCommand}.
*/
export interface InvokeModelCommandOutput extends InvokeModelCommandOutputType, __MetadataBearer {
}
/**
* @public
* <p>Invokes the specified Bedrock model to run inference using the input provided in the request body.
* You use InvokeModel to run inference for text models, image models, and embedding models.</p>
* <p>For more information about invoking models, see Using the API in the <a href="https://d2eo22ngex1n9g.cloudfront.net/Documentation/BedrockUserGuide.pdf">Bedrock User Guide</a>.</p>
* <p>For example requests, see Examples (after the Errors section).</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { BedrockRuntimeClient, InvokeModelCommand } from "@aws-sdk/client-bedrock-runtime"; // ES Modules import
* // const { BedrockRuntimeClient, InvokeModelCommand } = require("@aws-sdk/client-bedrock-runtime"); // CommonJS import
* const client = new BedrockRuntimeClient(config);
* const input = { // InvokeModelRequest
* body: "BLOB_VALUE", // required
* contentType: "STRING_VALUE",
* accept: "STRING_VALUE",
* modelId: "STRING_VALUE", // required
* };
* const command = new InvokeModelCommand(input);
* const response = await client.send(command);
* // { // InvokeModelResponse
* // body: "BLOB_VALUE", // required
* // contentType: "STRING_VALUE", // required
* // };
*
* ```
*
* @param InvokeModelCommandInput - {@link InvokeModelCommandInput}
* @returns {@link InvokeModelCommandOutput}
* @see {@link InvokeModelCommandInput} for command's `input` shape.
* @see {@link InvokeModelCommandOutput} for command's `response` shape.
* @see {@link BedrockRuntimeClientResolvedConfig | config} for BedrockRuntimeClient's `config` shape.
*
* @throws {@link AccessDeniedException} (client fault)
* <p>The request is denied because of missing access permissions.</p>
*
* @throws {@link InternalServerException} (server fault)
* <p>An internal server error occurred. Retry your request.</p>
*
* @throws {@link ModelErrorException} (client fault)
* <p>The request failed due to an error while processing the model.</p>
*
* @throws {@link ModelNotReadyException} (client fault)
* <p>The model specified in the request is not ready to serve inference requests.</p>
*
* @throws {@link ModelTimeoutException} (client fault)
* <p>The request took too long to process. Processing time exceeded the model timeout length.</p>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>The specified resource ARN was not found. Check the ARN and try your request again.</p>
*
* @throws {@link ServiceQuotaExceededException} (client fault)
* <p>The number of requests exceeds the service quota. Resubmit your request later.</p>
*
* @throws {@link ThrottlingException} (client fault)
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
*
* @throws {@link ValidationException} (client fault)
* <p>Input validation failed. Check your request parameters and retry the request.</p>
*
* @throws {@link BedrockRuntimeServiceException}
* <p>Base exception class for all service exceptions from BedrockRuntime service.</p>
*
*/
export declare class InvokeModelCommand extends $Command<InvokeModelCommandInput, InvokeModelCommandOutput, BedrockRuntimeClientResolvedConfig> {
readonly input: InvokeModelCommandInput;
static getEndpointParameterInstructions(): EndpointParameterInstructions;
/**
* @public
*/
constructor(input: InvokeModelCommandInput);
/**
* @internal
*/
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: BedrockRuntimeClientResolvedConfig, options?: __HttpHandlerOptions): Handler<InvokeModelCommandInput, InvokeModelCommandOutput>;
/**
* @internal
*/
private serialize;
/**
* @internal
*/
private deserialize;
}
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import {
BlobPayloadInputTypes,
Handler,
HttpHandlerOptions as __HttpHandlerOptions,
MetadataBearer as __MetadataBearer,
MiddlewareStack,
} from "@smithy/types";
import {
BedrockRuntimeClientResolvedConfig,
ServiceInputTypes,
ServiceOutputTypes,
} from "../BedrockRuntimeClient";
import {
InvokeModelWithResponseStreamRequest,
InvokeModelWithResponseStreamResponse,
} from "../models/models_0";
import { BlobPayloadInputTypes, Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
import { BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockRuntimeClient";
import { InvokeModelWithResponseStreamRequest, InvokeModelWithResponseStreamResponse } from "../models/models_0";
/**
* @public
*/
export { __MetadataBearer, $Command };
export type InvokeModelWithResponseStreamCommandInputType = Pick<
InvokeModelWithResponseStreamRequest,
Exclude<keyof InvokeModelWithResponseStreamRequest, "body">
> & {
body: BlobPayloadInputTypes;
/**
* @public
*/
export type InvokeModelWithResponseStreamCommandInputType = Pick<InvokeModelWithResponseStreamRequest, Exclude<keyof InvokeModelWithResponseStreamRequest, "body">> & {
body: BlobPayloadInputTypes;
};
export interface InvokeModelWithResponseStreamCommandInput
extends InvokeModelWithResponseStreamCommandInputType {}
export interface InvokeModelWithResponseStreamCommandOutput
extends InvokeModelWithResponseStreamResponse,
__MetadataBearer {}
export declare class InvokeModelWithResponseStreamCommand extends $Command<
InvokeModelWithResponseStreamCommandInput,
InvokeModelWithResponseStreamCommandOutput,
BedrockRuntimeClientResolvedConfig
> {
readonly input: InvokeModelWithResponseStreamCommandInput;
static getEndpointParameterInstructions(): EndpointParameterInstructions;
constructor(input: InvokeModelWithResponseStreamCommandInput);
resolveMiddleware(
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
configuration: BedrockRuntimeClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler<
InvokeModelWithResponseStreamCommandInput,
InvokeModelWithResponseStreamCommandOutput
>;
private serialize;
private deserialize;
/**
* @public
*
* The input for {@link InvokeModelWithResponseStreamCommand}.
*/
export interface InvokeModelWithResponseStreamCommandInput extends InvokeModelWithResponseStreamCommandInputType {
}
/**
* @public
*
* The output of {@link InvokeModelWithResponseStreamCommand}.
*/
export interface InvokeModelWithResponseStreamCommandOutput extends InvokeModelWithResponseStreamResponse, __MetadataBearer {
}
/**
* @public
* <p>Invoke the specified Bedrock model to run inference using the input provided.
* Return the response in a stream.</p>
* <p>For more information about invoking models, see Using the API in the <a href="https://d2eo22ngex1n9g.cloudfront.net/Documentation/BedrockUserGuide.pdf">Bedrock User Guide</a>.</p>
* <p>For an example request and response, see Examples (after the Errors section).</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { BedrockRuntimeClient, InvokeModelWithResponseStreamCommand } from "@aws-sdk/client-bedrock-runtime"; // ES Modules import
* // const { BedrockRuntimeClient, InvokeModelWithResponseStreamCommand } = require("@aws-sdk/client-bedrock-runtime"); // CommonJS import
* const client = new BedrockRuntimeClient(config);
* const input = { // InvokeModelWithResponseStreamRequest
* body: "BLOB_VALUE", // required
* contentType: "STRING_VALUE",
* accept: "STRING_VALUE",
* modelId: "STRING_VALUE", // required
* };
* const command = new InvokeModelWithResponseStreamCommand(input);
* const response = await client.send(command);
* // { // InvokeModelWithResponseStreamResponse
* // body: { // ResponseStream Union: only one key present
* // chunk: { // PayloadPart
* // bytes: "BLOB_VALUE",
* // },
* // internalServerException: { // InternalServerException
* // message: "STRING_VALUE",
* // },
* // modelStreamErrorException: { // ModelStreamErrorException
* // message: "STRING_VALUE",
* // originalStatusCode: Number("int"),
* // originalMessage: "STRING_VALUE",
* // },
* // validationException: { // ValidationException
* // message: "STRING_VALUE",
* // },
* // throttlingException: { // ThrottlingException
* // message: "STRING_VALUE",
* // },
* // },
* // contentType: "STRING_VALUE", // required
* // };
*
* ```
*
* @param InvokeModelWithResponseStreamCommandInput - {@link InvokeModelWithResponseStreamCommandInput}
* @returns {@link InvokeModelWithResponseStreamCommandOutput}
* @see {@link InvokeModelWithResponseStreamCommandInput} for command's `input` shape.
* @see {@link InvokeModelWithResponseStreamCommandOutput} for command's `response` shape.
* @see {@link BedrockRuntimeClientResolvedConfig | config} for BedrockRuntimeClient's `config` shape.
*
* @throws {@link AccessDeniedException} (client fault)
* <p>The request is denied because of missing access permissions.</p>
*
* @throws {@link InternalServerException} (server fault)
* <p>An internal server error occurred. Retry your request.</p>
*
* @throws {@link ModelErrorException} (client fault)
* <p>The request failed due to an error while processing the model.</p>
*
* @throws {@link ModelNotReadyException} (client fault)
* <p>The model specified in the request is not ready to serve inference requests.</p>
*
* @throws {@link ModelStreamErrorException} (client fault)
* <p>An error occurred while streaming the response.</p>
*
* @throws {@link ModelTimeoutException} (client fault)
* <p>The request took too long to process. Processing time exceeded the model timeout length.</p>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>The specified resource ARN was not found. Check the ARN and try your request again.</p>
*
* @throws {@link ServiceQuotaExceededException} (client fault)
* <p>The number of requests exceeds the service quota. Resubmit your request later.</p>
*
* @throws {@link ThrottlingException} (client fault)
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
*
* @throws {@link ValidationException} (client fault)
* <p>Input validation failed. Check your request parameters and retry the request.</p>
*
* @throws {@link BedrockRuntimeServiceException}
* <p>Base exception class for all service exceptions from BedrockRuntime service.</p>
*
*/
export declare class InvokeModelWithResponseStreamCommand extends $Command<InvokeModelWithResponseStreamCommandInput, InvokeModelWithResponseStreamCommandOutput, BedrockRuntimeClientResolvedConfig> {
readonly input: InvokeModelWithResponseStreamCommandInput;
static getEndpointParameterInstructions(): EndpointParameterInstructions;
/**
* @public
*/
constructor(input: InvokeModelWithResponseStreamCommandInput);
/**
* @internal
*/
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: BedrockRuntimeClientResolvedConfig, options?: __HttpHandlerOptions): Handler<InvokeModelWithResponseStreamCommandInput, InvokeModelWithResponseStreamCommandOutput>;
/**
* @internal
*/
private serialize;
/**
* @internal
*/
private deserialize;
}

@@ -1,33 +0,22 @@

import {
Endpoint,
EndpointParameters as __EndpointParameters,
EndpointV2,
Provider,
} from "@smithy/types";
import { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@smithy/types";
/**
* @public
*/
export interface ClientInputEndpointParameters {
region?: string | Provider<string>;
useDualstackEndpoint?: boolean | Provider<boolean>;
useFipsEndpoint?: boolean | Provider<boolean>;
endpoint?:
| string
| Provider<string>
| Endpoint
| Provider<Endpoint>
| EndpointV2
| Provider<EndpointV2>;
region?: string | Provider<string>;
useDualstackEndpoint?: boolean | Provider<boolean>;
useFipsEndpoint?: boolean | Provider<boolean>;
endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
}
export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
defaultSigningName: string;
defaultSigningName: string;
};
export declare const resolveClientEndpointParameters: <T>(
options: T & ClientInputEndpointParameters
) => T &
ClientInputEndpointParameters & {
export declare const resolveClientEndpointParameters: <T>(options: T & ClientInputEndpointParameters) => T & ClientInputEndpointParameters & {
defaultSigningName: string;
};
};
export interface EndpointParameters extends __EndpointParameters {
Region?: string;
UseDualStack?: boolean;
UseFIPS?: boolean;
Endpoint?: string;
Region?: string;
UseDualStack?: boolean;
UseFIPS?: boolean;
Endpoint?: string;
}
import { EndpointV2, Logger } from "@smithy/types";
import { EndpointParameters } from "./EndpointParameters";
export declare const defaultEndpointResolver: (
endpointParams: EndpointParameters,
context?: {
export declare const defaultEndpointResolver: (endpointParams: EndpointParameters, context?: {
logger?: Logger;
}
) => EndpointV2;
}) => EndpointV2;
import { RuleSetObject } from "@smithy/types";
export declare const ruleSet: RuleSetObject;
import { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
import { DefaultExtensionConfiguration } from "@smithy/types";
export interface BedrockRuntimeExtensionConfiguration
extends HttpHandlerExtensionConfiguration,
DefaultExtensionConfiguration,
AwsRegionExtensionConfiguration {}
/**
* @internal
*/
export interface BedrockRuntimeExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration, AwsRegionExtensionConfiguration {
}

@@ -0,1 +1,6 @@

/**
* <p>Describes the API operations for running inference using Bedrock models.</p>
*
* @packageDocumentation
*/
export * from "./BedrockRuntimeClient";

@@ -2,0 +7,0 @@ export * from "./BedrockRuntime";

@@ -1,8 +0,13 @@

import {
ServiceException as __ServiceException,
ServiceExceptionOptions as __ServiceExceptionOptions,
} from "@smithy/smithy-client";
import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@smithy/smithy-client";
export { __ServiceException, __ServiceExceptionOptions };
/**
* @public
*
* Base exception class for all service exceptions from BedrockRuntime service.
*/
export declare class BedrockRuntimeServiceException extends __ServiceException {
constructor(options: __ServiceExceptionOptions);
/**
* @internal
*/
constructor(options: __ServiceExceptionOptions);
}
export * from "./models_0";
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
import { BedrockRuntimeServiceException as __BaseException } from "./BedrockRuntimeServiceException";
/**
* @public
* <p>The request is denied because of missing access permissions.</p>
*/
export declare class AccessDeniedException extends __BaseException {
readonly name: "AccessDeniedException";
readonly $fault: "client";
constructor(
opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
);
readonly name: "AccessDeniedException";
readonly $fault: "client";
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
}
/**
* @public
* <p>An internal server error occurred. Retry your request.</p>
*/
export declare class InternalServerException extends __BaseException {
readonly name: "InternalServerException";
readonly $fault: "server";
constructor(
opts: __ExceptionOptionType<InternalServerException, __BaseException>
);
readonly name: "InternalServerException";
readonly $fault: "server";
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
}
/**
* @public
*/
export interface InvokeModelRequest {
body: Uint8Array | undefined;
contentType?: string;
accept?: string;
modelId: string | undefined;
/**
* @public
* <p>Input data in the format specified in the content-type request header. To see the format and content of this field for different models, refer to <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html">Inference parameters</a>.</p>
*/
body: Uint8Array | undefined;
/**
* @public
* <p>The MIME type of the input data in the request. The default value is
* <code>application/json</code>.</p>
*/
contentType?: string;
/**
* @public
* <p>The desired MIME type of the inference body in the response. The default value is
* <code>application/json</code>.</p>
*/
accept?: string;
/**
* @public
* <p>Identifier of the model. </p>
*/
modelId: string | undefined;
}
/**
* @public
*/
export interface InvokeModelResponse {
body: Uint8Array | undefined;
contentType: string | undefined;
/**
* @public
* <p>Inference response from the model in the format specified in the content-type header field. To see the format and content of this field for different models, refer to <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html">Inference parameters</a>.</p>
*/
body: Uint8Array | undefined;
/**
* @public
* <p>The MIME type of the inference result.</p>
*/
contentType: string | undefined;
}
/**
* @public
* <p>The request failed due to an error while processing the model.</p>
*/
export declare class ModelErrorException extends __BaseException {
readonly name: "ModelErrorException";
readonly $fault: "client";
originalStatusCode?: number;
resourceName?: string;
constructor(
opts: __ExceptionOptionType<ModelErrorException, __BaseException>
);
readonly name: "ModelErrorException";
readonly $fault: "client";
/**
* @public
* <p>The original status code.</p>
*/
originalStatusCode?: number;
/**
* @public
* <p>The resource name.</p>
*/
resourceName?: string;
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<ModelErrorException, __BaseException>);
}
/**
* @public
* <p>The model specified in the request is not ready to serve inference requests.</p>
*/
export declare class ModelNotReadyException extends __BaseException {
readonly name: "ModelNotReadyException";
readonly $fault: "client";
constructor(
opts: __ExceptionOptionType<ModelNotReadyException, __BaseException>
);
readonly name: "ModelNotReadyException";
readonly $fault: "client";
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<ModelNotReadyException, __BaseException>);
}
/**
* @public
* <p>The request took too long to process. Processing time exceeded the model timeout length.</p>
*/
export declare class ModelTimeoutException extends __BaseException {
readonly name: "ModelTimeoutException";
readonly $fault: "client";
constructor(
opts: __ExceptionOptionType<ModelTimeoutException, __BaseException>
);
readonly name: "ModelTimeoutException";
readonly $fault: "client";
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<ModelTimeoutException, __BaseException>);
}
/**
* @public
* <p>The specified resource ARN was not found. Check the ARN and try your request again.</p>
*/
export declare class ResourceNotFoundException extends __BaseException {
readonly name: "ResourceNotFoundException";
readonly $fault: "client";
constructor(
opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
);
readonly name: "ResourceNotFoundException";
readonly $fault: "client";
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
}
/**
* @public
* <p>The number of requests exceeds the service quota. Resubmit your request later.</p>
*/
export declare class ServiceQuotaExceededException extends __BaseException {
readonly name: "ServiceQuotaExceededException";
readonly $fault: "client";
constructor(
opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
);
readonly name: "ServiceQuotaExceededException";
readonly $fault: "client";
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
}
/**
* @public
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
*/
export declare class ThrottlingException extends __BaseException {
readonly name: "ThrottlingException";
readonly $fault: "client";
constructor(
opts: __ExceptionOptionType<ThrottlingException, __BaseException>
);
readonly name: "ThrottlingException";
readonly $fault: "client";
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
}
/**
* @public
* <p>Input validation failed. Check your request parameters and retry the request.</p>
*/
export declare class ValidationException extends __BaseException {
readonly name: "ValidationException";
readonly $fault: "client";
constructor(
opts: __ExceptionOptionType<ValidationException, __BaseException>
);
readonly name: "ValidationException";
readonly $fault: "client";
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
}
/**
* @public
*/
export interface InvokeModelWithResponseStreamRequest {
body: Uint8Array | undefined;
contentType?: string;
accept?: string;
modelId: string | undefined;
/**
* @public
* <p>Inference input in the format specified by the
* content-type. To see the format and content of this field for different models, refer to <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html">Inference parameters</a>.</p>
*/
body: Uint8Array | undefined;
/**
* @public
* <p>The MIME type of the input data in the request. The default value is
* <code>application/json</code>.</p>
*/
contentType?: string;
/**
* @public
* <p>The desired MIME type of the inference body in the response. The default value is
* <code>application/json</code>.</p>
*/
accept?: string;
/**
* @public
* <p>Id of the model to invoke using the streaming request.</p>
*/
modelId: string | undefined;
}
/**
* @public
* <p>Payload content included in the response.</p>
*/
export interface PayloadPart {
bytes?: Uint8Array;
/**
* @public
* <p>Base64-encoded bytes of payload data.</p>
*/
bytes?: Uint8Array;
}
/**
* @public
* <p>An error occurred while streaming the response.</p>
*/
export declare class ModelStreamErrorException extends __BaseException {
readonly name: "ModelStreamErrorException";
readonly $fault: "client";
originalStatusCode?: number;
originalMessage?: string;
constructor(
opts: __ExceptionOptionType<ModelStreamErrorException, __BaseException>
);
readonly name: "ModelStreamErrorException";
readonly $fault: "client";
/**
* @public
* <p>The original status code.</p>
*/
originalStatusCode?: number;
/**
* @public
* <p>The original message.</p>
*/
originalMessage?: string;
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<ModelStreamErrorException, __BaseException>);
}
export type ResponseStream =
| ResponseStream.ChunkMember
| ResponseStream.InternalServerExceptionMember
| ResponseStream.ModelStreamErrorExceptionMember
| ResponseStream.ThrottlingExceptionMember
| ResponseStream.ValidationExceptionMember
| ResponseStream.$UnknownMember;
/**
* @public
* <p>Definition of content in the response stream.</p>
*/
export type ResponseStream = ResponseStream.ChunkMember | ResponseStream.InternalServerExceptionMember | ResponseStream.ModelStreamErrorExceptionMember | ResponseStream.ThrottlingExceptionMember | ResponseStream.ValidationExceptionMember | ResponseStream.$UnknownMember;
/**
* @public
*/
export declare namespace ResponseStream {
interface ChunkMember {
chunk: PayloadPart;
internalServerException?: never;
modelStreamErrorException?: never;
validationException?: never;
throttlingException?: never;
$unknown?: never;
}
interface InternalServerExceptionMember {
chunk?: never;
internalServerException: InternalServerException;
modelStreamErrorException?: never;
validationException?: never;
throttlingException?: never;
$unknown?: never;
}
interface ModelStreamErrorExceptionMember {
chunk?: never;
internalServerException?: never;
modelStreamErrorException: ModelStreamErrorException;
validationException?: never;
throttlingException?: never;
$unknown?: never;
}
interface ValidationExceptionMember {
chunk?: never;
internalServerException?: never;
modelStreamErrorException?: never;
validationException: ValidationException;
throttlingException?: never;
$unknown?: never;
}
interface ThrottlingExceptionMember {
chunk?: never;
internalServerException?: never;
modelStreamErrorException?: never;
validationException?: never;
throttlingException: ThrottlingException;
$unknown?: never;
}
interface $UnknownMember {
chunk?: never;
internalServerException?: never;
modelStreamErrorException?: never;
validationException?: never;
throttlingException?: never;
$unknown: [string, any];
}
interface Visitor<T> {
chunk: (value: PayloadPart) => T;
internalServerException: (value: InternalServerException) => T;
modelStreamErrorException: (value: ModelStreamErrorException) => T;
validationException: (value: ValidationException) => T;
throttlingException: (value: ThrottlingException) => T;
_: (name: string, value: any) => T;
}
const visit: <T>(value: ResponseStream, visitor: Visitor<T>) => T;
/**
* @public
* <p>Content included in the response.</p>
*/
interface ChunkMember {
chunk: PayloadPart;
internalServerException?: never;
modelStreamErrorException?: never;
validationException?: never;
throttlingException?: never;
$unknown?: never;
}
/**
* @public
* <p>An internal server error occurred. Retry your request.</p>
*/
interface InternalServerExceptionMember {
chunk?: never;
internalServerException: InternalServerException;
modelStreamErrorException?: never;
validationException?: never;
throttlingException?: never;
$unknown?: never;
}
/**
* @public
* <p>An error occurred while streaming the response.</p>
*/
interface ModelStreamErrorExceptionMember {
chunk?: never;
internalServerException?: never;
modelStreamErrorException: ModelStreamErrorException;
validationException?: never;
throttlingException?: never;
$unknown?: never;
}
/**
* @public
* <p>Input validation failed. Check your request parameters and retry the request.</p>
*/
interface ValidationExceptionMember {
chunk?: never;
internalServerException?: never;
modelStreamErrorException?: never;
validationException: ValidationException;
throttlingException?: never;
$unknown?: never;
}
/**
* @public
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
*/
interface ThrottlingExceptionMember {
chunk?: never;
internalServerException?: never;
modelStreamErrorException?: never;
validationException?: never;
throttlingException: ThrottlingException;
$unknown?: never;
}
/**
* @public
*/
interface $UnknownMember {
chunk?: never;
internalServerException?: never;
modelStreamErrorException?: never;
validationException?: never;
throttlingException?: never;
$unknown: [
string,
any
];
}
interface Visitor<T> {
chunk: (value: PayloadPart) => T;
internalServerException: (value: InternalServerException) => T;
modelStreamErrorException: (value: ModelStreamErrorException) => T;
validationException: (value: ValidationException) => T;
throttlingException: (value: ThrottlingException) => T;
_: (name: string, value: any) => T;
}
const visit: <T>(value: ResponseStream, visitor: Visitor<T>) => T;
}
/**
* @public
*/
export interface InvokeModelWithResponseStreamResponse {
body: AsyncIterable<ResponseStream> | undefined;
contentType: string | undefined;
/**
* @public
* <p>Inference response from the model in the format specified by Content-Type. To see the format and content of this field for different models, refer to <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html">Inference parameters</a>.</p>
*/
body: AsyncIterable<ResponseStream> | undefined;
/**
* @public
* <p>The MIME type of the inference result.</p>
*/
contentType: string | undefined;
}
export declare const InvokeModelRequestFilterSensitiveLog: (
obj: InvokeModelRequest
) => any;
export declare const InvokeModelResponseFilterSensitiveLog: (
obj: InvokeModelResponse
) => any;
export declare const InvokeModelWithResponseStreamRequestFilterSensitiveLog: (
obj: InvokeModelWithResponseStreamRequest
) => any;
/**
* @internal
*/
export declare const InvokeModelRequestFilterSensitiveLog: (obj: InvokeModelRequest) => any;
/**
* @internal
*/
export declare const InvokeModelResponseFilterSensitiveLog: (obj: InvokeModelResponse) => any;
/**
* @internal
*/
export declare const InvokeModelWithResponseStreamRequestFilterSensitiveLog: (obj: InvokeModelWithResponseStreamRequest) => any;
/**
* @internal
*/
export declare const PayloadPartFilterSensitiveLog: (obj: PayloadPart) => any;
export declare const ResponseStreamFilterSensitiveLog: (
obj: ResponseStream
) => any;
export declare const InvokeModelWithResponseStreamResponseFilterSensitiveLog: (
obj: InvokeModelWithResponseStreamResponse
) => any;
/**
* @internal
*/
export declare const ResponseStreamFilterSensitiveLog: (obj: ResponseStream) => any;
/**
* @internal
*/
export declare const InvokeModelWithResponseStreamResponseFilterSensitiveLog: (obj: InvokeModelWithResponseStreamResponse) => any;

@@ -1,32 +0,20 @@

import {
HttpRequest as __HttpRequest,
HttpResponse as __HttpResponse,
} from "@smithy/protocol-http";
import {
EventStreamSerdeContext as __EventStreamSerdeContext,
SerdeContext as __SerdeContext,
} from "@smithy/types";
import {
InvokeModelCommandInput,
InvokeModelCommandOutput,
} from "../commands/InvokeModelCommand";
import {
InvokeModelWithResponseStreamCommandInput,
InvokeModelWithResponseStreamCommandOutput,
} from "../commands/InvokeModelWithResponseStreamCommand";
export declare const se_InvokeModelCommand: (
input: InvokeModelCommandInput,
context: __SerdeContext
) => Promise<__HttpRequest>;
export declare const se_InvokeModelWithResponseStreamCommand: (
input: InvokeModelWithResponseStreamCommandInput,
context: __SerdeContext
) => Promise<__HttpRequest>;
export declare const de_InvokeModelCommand: (
output: __HttpResponse,
context: __SerdeContext
) => Promise<InvokeModelCommandOutput>;
export declare const de_InvokeModelWithResponseStreamCommand: (
output: __HttpResponse,
context: __SerdeContext & __EventStreamSerdeContext
) => Promise<InvokeModelWithResponseStreamCommandOutput>;
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
import { EventStreamSerdeContext as __EventStreamSerdeContext, SerdeContext as __SerdeContext } from "@smithy/types";
import { InvokeModelCommandInput, InvokeModelCommandOutput } from "../commands/InvokeModelCommand";
import { InvokeModelWithResponseStreamCommandInput, InvokeModelWithResponseStreamCommandOutput } from "../commands/InvokeModelWithResponseStreamCommand";
/**
* serializeAws_restJson1InvokeModelCommand
*/
export declare const se_InvokeModelCommand: (input: InvokeModelCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
/**
* serializeAws_restJson1InvokeModelWithResponseStreamCommand
*/
export declare const se_InvokeModelWithResponseStreamCommand: (input: InvokeModelWithResponseStreamCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
/**
* deserializeAws_restJson1InvokeModelCommand
*/
export declare const de_InvokeModelCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<InvokeModelCommandOutput>;
/**
* deserializeAws_restJson1InvokeModelWithResponseStreamCommand
*/
export declare const de_InvokeModelWithResponseStreamCommand: (output: __HttpResponse, context: __SerdeContext & __EventStreamSerdeContext) => Promise<InvokeModelWithResponseStreamCommandOutput>;
import { FetchHttpHandler as RequestHandler } from "@smithy/fetch-http-handler";
import { BedrockRuntimeClientConfig } from "./BedrockRuntimeClient";
/**
* @internal
*/
export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
runtime: string;
defaultsMode: import("@smithy/types").Provider<
import("@smithy/smithy-client").ResolvedDefaultsMode
>;
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
credentialDefaultProvider: (
input: any
) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
defaultUserAgentProvider: import("@smithy/types").Provider<
import("@smithy/types").UserAgent
>;
eventStreamSerdeProvider: import("@smithy/types").EventStreamSerdeProvider;
maxAttempts: number | import("@smithy/types").Provider<number>;
region: string | import("@smithy/types").Provider<any>;
requestHandler:
| (import("@smithy/types").RequestHandler<
any,
any,
import("@smithy/types").HttpHandlerOptions
> &
import("@smithy/types").RequestHandler<
import("@smithy/protocol-http").HttpRequest,
import("@smithy/protocol-http").HttpResponse,
import("@smithy/types").HttpHandlerOptions
> & {
updateHttpClientConfig(key: never, value: never): void;
httpHandlerConfigs(): {};
})
| RequestHandler;
retryMode: string | import("@smithy/types").Provider<string>;
sha256: import("@smithy/types").HashConstructor;
streamCollector: import("@smithy/types").StreamCollector;
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
apiVersion: string;
urlParser: import("@smithy/types").UrlParser;
base64Decoder: import("@smithy/types").Decoder;
base64Encoder: import("@smithy/types").Encoder;
utf8Decoder: import("@smithy/types").Decoder;
utf8Encoder: import("@smithy/types").Encoder;
disableHostPrefix: boolean;
serviceId: string;
logger: import("@smithy/types").Logger;
extensions: import("./runtimeExtensions").RuntimeExtension[];
endpoint?:
| ((
| string
| import("@smithy/types").Endpoint
| import("@smithy/types").Provider<import("@smithy/types").Endpoint>
| import("@smithy/types").EndpointV2
| import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
) &
(
| string
| import("@smithy/types").Provider<string>
| import("@smithy/types").Endpoint
| import("@smithy/types").Provider<import("@smithy/types").Endpoint>
| import("@smithy/types").EndpointV2
| import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
))
| undefined;
endpointProvider: (
endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
context?: {
logger?: import("@smithy/types").Logger | undefined;
}
) => import("@smithy/types").EndpointV2;
tls?: boolean | undefined;
retryStrategy?:
| import("@smithy/types").RetryStrategy
| import("@smithy/types").RetryStrategyV2
| undefined;
credentials?:
| import("@smithy/types").AwsCredentialIdentity
| import("@smithy/types").Provider<
import("@smithy/types").AwsCredentialIdentity
>
| undefined;
signer?:
| import("@smithy/types").RequestSigner
| ((
authScheme?: import("@smithy/types").AuthScheme | undefined
) => Promise<import("@smithy/types").RequestSigner>)
| undefined;
signingEscapePath?: boolean | undefined;
systemClockOffset?: number | undefined;
signingRegion?: string | undefined;
signerConstructor?:
| (new (
options: import("@smithy/signature-v4").SignatureV4Init &
import("@smithy/signature-v4").SignatureV4CryptoInit
) => import("@smithy/types").RequestSigner)
| undefined;
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
runtime: string;
defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
credentialDefaultProvider: (input: any) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
eventStreamSerdeProvider: import("@smithy/types").EventStreamSerdeProvider;
maxAttempts: number | import("@smithy/types").Provider<number>;
region: string | import("@smithy/types").Provider<any>;
requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/types").RequestHandler<import("@smithy/protocol-http").HttpRequest, import("@smithy/protocol-http").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
updateHttpClientConfig(key: never, value: never): void;
httpHandlerConfigs(): {};
}) | RequestHandler;
retryMode: string | import("@smithy/types").Provider<string>;
sha256: import("@smithy/types").HashConstructor;
streamCollector: import("@smithy/types").StreamCollector;
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
apiVersion: string;
urlParser: import("@smithy/types").UrlParser;
base64Decoder: import("@smithy/types").Decoder;
base64Encoder: import("@smithy/types").Encoder;
utf8Decoder: import("@smithy/types").Decoder;
utf8Encoder: import("@smithy/types").Encoder;
disableHostPrefix: boolean;
serviceId: string;
logger: import("@smithy/types").Logger;
extensions: import("./runtimeExtensions").RuntimeExtension[];
endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
logger?: import("@smithy/types").Logger | undefined;
}) => import("@smithy/types").EndpointV2;
tls?: boolean | undefined;
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").Provider<import("@smithy/types").AwsCredentialIdentity> | undefined;
signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise<import("@smithy/types").RequestSigner>) | undefined;
signingEscapePath?: boolean | undefined;
systemClockOffset?: number | undefined;
signingRegion?: string | undefined;
signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined;
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
};
import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler";
import { BedrockRuntimeClientConfig } from "./BedrockRuntimeClient";
/**
* @internal
*/
export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
runtime: string;
defaultsMode: import("@smithy/types").Provider<
import("@smithy/smithy-client").ResolvedDefaultsMode
>;
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
credentialDefaultProvider: (
input: any
) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
defaultUserAgentProvider: import("@smithy/types").Provider<
import("@smithy/types").UserAgent
>;
eventStreamSerdeProvider: import("@smithy/types").EventStreamSerdeProvider;
maxAttempts: number | import("@smithy/types").Provider<number>;
region: string | import("@smithy/types").Provider<string>;
requestHandler:
| (import("@smithy/types").RequestHandler<
any,
any,
import("@smithy/types").HttpHandlerOptions
> &
import("@smithy/types").RequestHandler<
import("@smithy/protocol-http").HttpRequest,
import("@smithy/protocol-http").HttpResponse,
import("@smithy/types").HttpHandlerOptions
> & {
updateHttpClientConfig(key: never, value: never): void;
httpHandlerConfigs(): {};
})
| RequestHandler;
retryMode: string | import("@smithy/types").Provider<string>;
sha256: import("@smithy/types").HashConstructor;
streamCollector: import("@smithy/types").StreamCollector;
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
apiVersion: string;
urlParser: import("@smithy/types").UrlParser;
base64Decoder: import("@smithy/types").Decoder;
base64Encoder: import("@smithy/types").Encoder;
utf8Decoder: import("@smithy/types").Decoder;
utf8Encoder: import("@smithy/types").Encoder;
disableHostPrefix: boolean;
serviceId: string;
logger: import("@smithy/types").Logger;
extensions: import("./runtimeExtensions").RuntimeExtension[];
endpoint?:
| ((
| string
| import("@smithy/types").Endpoint
| import("@smithy/types").Provider<import("@smithy/types").Endpoint>
| import("@smithy/types").EndpointV2
| import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
) &
(
| string
| import("@smithy/types").Provider<string>
| import("@smithy/types").Endpoint
| import("@smithy/types").Provider<import("@smithy/types").Endpoint>
| import("@smithy/types").EndpointV2
| import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
))
| undefined;
endpointProvider: (
endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
context?: {
logger?: import("@smithy/types").Logger | undefined;
}
) => import("@smithy/types").EndpointV2;
tls?: boolean | undefined;
retryStrategy?:
| import("@smithy/types").RetryStrategy
| import("@smithy/types").RetryStrategyV2
| undefined;
credentials?:
| import("@smithy/types").AwsCredentialIdentity
| import("@smithy/types").Provider<
import("@smithy/types").AwsCredentialIdentity
>
| undefined;
signer?:
| import("@smithy/types").RequestSigner
| ((
authScheme?: import("@smithy/types").AuthScheme | undefined
) => Promise<import("@smithy/types").RequestSigner>)
| undefined;
signingEscapePath?: boolean | undefined;
systemClockOffset?: number | undefined;
signingRegion?: string | undefined;
signerConstructor?:
| (new (
options: import("@smithy/signature-v4").SignatureV4Init &
import("@smithy/signature-v4").SignatureV4CryptoInit
) => import("@smithy/types").RequestSigner)
| undefined;
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
runtime: string;
defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
credentialDefaultProvider: (input: any) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
eventStreamSerdeProvider: import("@smithy/types").EventStreamSerdeProvider;
maxAttempts: number | import("@smithy/types").Provider<number>;
region: string | import("@smithy/types").Provider<string>;
requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/types").RequestHandler<import("@smithy/protocol-http").HttpRequest, import("@smithy/protocol-http").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
updateHttpClientConfig(key: never, value: never): void;
httpHandlerConfigs(): {};
}) | RequestHandler;
retryMode: string | import("@smithy/types").Provider<string>;
sha256: import("@smithy/types").HashConstructor;
streamCollector: import("@smithy/types").StreamCollector;
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
apiVersion: string;
urlParser: import("@smithy/types").UrlParser;
base64Decoder: import("@smithy/types").Decoder;
base64Encoder: import("@smithy/types").Encoder;
utf8Decoder: import("@smithy/types").Decoder;
utf8Encoder: import("@smithy/types").Encoder;
disableHostPrefix: boolean;
serviceId: string;
logger: import("@smithy/types").Logger;
extensions: import("./runtimeExtensions").RuntimeExtension[];
endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
logger?: import("@smithy/types").Logger | undefined;
}) => import("@smithy/types").EndpointV2;
tls?: boolean | undefined;
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").Provider<import("@smithy/types").AwsCredentialIdentity> | undefined;
signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise<import("@smithy/types").RequestSigner>) | undefined;
signingEscapePath?: boolean | undefined;
systemClockOffset?: number | undefined;
signingRegion?: string | undefined;
signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined;
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
};
import { BedrockRuntimeClientConfig } from "./BedrockRuntimeClient";
/**
* @internal
*/
export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
runtime: string;
sha256: import("@smithy/types").HashConstructor;
requestHandler:
| (import("@smithy/types").RequestHandler<
any,
any,
import("@smithy/types").HttpHandlerOptions
> &
import("@smithy/types").RequestHandler<
import("@smithy/protocol-http").HttpRequest,
import("@smithy/protocol-http").HttpResponse,
import("@smithy/types").HttpHandlerOptions
> & {
updateHttpClientConfig(key: never, value: never): void;
httpHandlerConfigs(): {};
})
| import("@smithy/fetch-http-handler").FetchHttpHandler;
apiVersion: string;
urlParser: import("@smithy/types").UrlParser;
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
streamCollector: import("@smithy/types").StreamCollector;
base64Decoder: import("@smithy/types").Decoder;
base64Encoder: import("@smithy/types").Encoder;
utf8Decoder: import("@smithy/types").Decoder;
utf8Encoder: import("@smithy/types").Encoder;
disableHostPrefix: boolean;
serviceId: string;
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
region: string | import("@smithy/types").Provider<any>;
credentialDefaultProvider: (
input: any
) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
defaultUserAgentProvider: import("@smithy/types").Provider<
import("@smithy/types").UserAgent
>;
maxAttempts: number | import("@smithy/types").Provider<number>;
retryMode: string | import("@smithy/types").Provider<string>;
logger: import("@smithy/types").Logger;
extensions: import("./runtimeExtensions").RuntimeExtension[];
eventStreamSerdeProvider: import("@smithy/types").EventStreamSerdeProvider;
defaultsMode:
| import("@smithy/smithy-client").DefaultsMode
| import("@smithy/types").Provider<
import("@smithy/smithy-client").DefaultsMode
>;
endpoint?:
| string
| import("@smithy/types").Endpoint
| import("@smithy/types").Provider<import("@smithy/types").Endpoint>
| import("@smithy/types").EndpointV2
| import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
| undefined;
endpointProvider: (
endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
context?: {
logger?: import("@smithy/types").Logger | undefined;
}
) => import("@smithy/types").EndpointV2;
tls?: boolean | undefined;
retryStrategy?:
| import("@smithy/types").RetryStrategy
| import("@smithy/types").RetryStrategyV2
| undefined;
credentials?:
| import("@smithy/types").AwsCredentialIdentity
| import("@smithy/types").Provider<
import("@smithy/types").AwsCredentialIdentity
>
| undefined;
signer?:
| import("@smithy/types").RequestSigner
| ((
authScheme?: import("@smithy/types").AuthScheme | undefined
) => Promise<import("@smithy/types").RequestSigner>)
| undefined;
signingEscapePath?: boolean | undefined;
systemClockOffset?: number | undefined;
signingRegion?: string | undefined;
signerConstructor?:
| (new (
options: import("@smithy/signature-v4").SignatureV4Init &
import("@smithy/signature-v4").SignatureV4CryptoInit
) => import("@smithy/types").RequestSigner)
| undefined;
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
runtime: string;
sha256: import("@smithy/types").HashConstructor;
requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/types").RequestHandler<import("@smithy/protocol-http").HttpRequest, import("@smithy/protocol-http").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
updateHttpClientConfig(key: never, value: never): void;
httpHandlerConfigs(): {};
}) | import("@smithy/fetch-http-handler").FetchHttpHandler;
apiVersion: string;
urlParser: import("@smithy/types").UrlParser;
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
streamCollector: import("@smithy/types").StreamCollector;
base64Decoder: import("@smithy/types").Decoder;
base64Encoder: import("@smithy/types").Encoder;
utf8Decoder: import("@smithy/types").Decoder;
utf8Encoder: import("@smithy/types").Encoder;
disableHostPrefix: boolean;
serviceId: string;
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
region: string | import("@smithy/types").Provider<any>;
credentialDefaultProvider: (input: any) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
maxAttempts: number | import("@smithy/types").Provider<number>;
retryMode: string | import("@smithy/types").Provider<string>;
logger: import("@smithy/types").Logger;
extensions: import("./runtimeExtensions").RuntimeExtension[];
eventStreamSerdeProvider: import("@smithy/types").EventStreamSerdeProvider;
defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
endpoint?: string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2> | undefined;
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
logger?: import("@smithy/types").Logger | undefined;
}) => import("@smithy/types").EndpointV2;
tls?: boolean | undefined;
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").Provider<import("@smithy/types").AwsCredentialIdentity> | undefined;
signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise<import("@smithy/types").RequestSigner>) | undefined;
signingEscapePath?: boolean | undefined;
systemClockOffset?: number | undefined;
signingRegion?: string | undefined;
signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined;
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
};
import { BedrockRuntimeClientConfig } from "./BedrockRuntimeClient";
/**
* @internal
*/
export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
apiVersion: string;
base64Decoder: import("@smithy/types").Decoder;
base64Encoder: import("@smithy/types").Encoder;
disableHostPrefix: boolean;
endpointProvider: (
endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
context?: {
logger?: import("@smithy/types").Logger | undefined;
}
) => import("@smithy/types").EndpointV2;
extensions: import("./runtimeExtensions").RuntimeExtension[];
logger: import("@smithy/types").Logger;
serviceId: string;
urlParser: import("@smithy/types").UrlParser;
utf8Decoder: import("@smithy/types").Decoder;
utf8Encoder: import("@smithy/types").Encoder;
apiVersion: string;
base64Decoder: import("@smithy/types").Decoder;
base64Encoder: import("@smithy/types").Encoder;
disableHostPrefix: boolean;
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
logger?: import("@smithy/types").Logger | undefined;
}) => import("@smithy/types").EndpointV2;
extensions: import("./runtimeExtensions").RuntimeExtension[];
logger: import("@smithy/types").Logger;
serviceId: string;
urlParser: import("@smithy/types").UrlParser;
utf8Decoder: import("@smithy/types").Decoder;
utf8Encoder: import("@smithy/types").Encoder;
};
import { BedrockRuntimeExtensionConfiguration } from "./extensionConfiguration";
/**
* @public
*/
export interface RuntimeExtension {
configure(extensionConfiguration: BedrockRuntimeExtensionConfiguration): void;
configure(extensionConfiguration: BedrockRuntimeExtensionConfiguration): void;
}
/**
* @public
*/
export interface RuntimeExtensionsConfig {
extensions: RuntimeExtension[];
extensions: RuntimeExtension[];
}
export declare const resolveRuntimeExtensions: (
runtimeConfig: any,
extensions: RuntimeExtension[]
) => any;
/**
* @internal
*/
export declare const resolveRuntimeExtensions: (runtimeConfig: any, extensions: RuntimeExtension[]) => any;
{
"name": "@aws-sdk/client-bedrock-runtime",
"description": "AWS SDK for JavaScript Bedrock Runtime Client for Node.js, Browser and React Native",
"version": "3.422.0",
"version": "3.422.1",
"scripts": {

@@ -6,0 +6,0 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc