@aws-sdk/client-bedrock-agentcore 3.847.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.
- package/LICENSE +201 -0
- package/README.md +413 -0
- package/dist-cjs/BedrockAgentCore.js +63 -0
- package/dist-cjs/BedrockAgentCoreClient.js +54 -0
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
- package/dist-cjs/commands/CreateEventCommand.js +27 -0
- package/dist-cjs/commands/DeleteEventCommand.js +26 -0
- package/dist-cjs/commands/DeleteMemoryRecordCommand.js +26 -0
- package/dist-cjs/commands/GetBrowserSessionCommand.js +26 -0
- package/dist-cjs/commands/GetCodeInterpreterSessionCommand.js +26 -0
- package/dist-cjs/commands/GetEventCommand.js +27 -0
- package/dist-cjs/commands/GetMemoryRecordCommand.js +27 -0
- package/dist-cjs/commands/GetResourceApiKeyCommand.js +27 -0
- package/dist-cjs/commands/GetResourceOauth2TokenCommand.js +27 -0
- package/dist-cjs/commands/GetWorkloadAccessTokenCommand.js +27 -0
- package/dist-cjs/commands/GetWorkloadAccessTokenForJWTCommand.js +27 -0
- package/dist-cjs/commands/GetWorkloadAccessTokenForUserIdCommand.js +27 -0
- package/dist-cjs/commands/InvokeAgentRuntimeCommand.js +27 -0
- package/dist-cjs/commands/InvokeCodeInterpreterCommand.js +31 -0
- package/dist-cjs/commands/ListActorsCommand.js +26 -0
- package/dist-cjs/commands/ListBrowserSessionsCommand.js +26 -0
- package/dist-cjs/commands/ListCodeInterpreterSessionsCommand.js +26 -0
- package/dist-cjs/commands/ListEventsCommand.js +27 -0
- package/dist-cjs/commands/ListMemoryRecordsCommand.js +27 -0
- package/dist-cjs/commands/ListSessionsCommand.js +26 -0
- package/dist-cjs/commands/RetrieveMemoryRecordsCommand.js +27 -0
- package/dist-cjs/commands/StartBrowserSessionCommand.js +26 -0
- package/dist-cjs/commands/StartCodeInterpreterSessionCommand.js +26 -0
- package/dist-cjs/commands/StopBrowserSessionCommand.js +26 -0
- package/dist-cjs/commands/StopCodeInterpreterSessionCommand.js +26 -0
- package/dist-cjs/commands/UpdateBrowserStreamCommand.js +26 -0
- package/dist-cjs/commands/index.js +29 -0
- package/dist-cjs/endpoint/EndpointParameters.js +17 -0
- package/dist-cjs/endpoint/endpointResolver.js +18 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/extensionConfiguration.js +2 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/BedrockAgentCoreServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +468 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListActorsPaginator.js +7 -0
- package/dist-cjs/pagination/ListEventsPaginator.js +7 -0
- package/dist-cjs/pagination/ListMemoryRecordsPaginator.js +7 -0
- package/dist-cjs/pagination/ListSessionsPaginator.js +7 -0
- package/dist-cjs/pagination/RetrieveMemoryRecordsPaginator.js +7 -0
- package/dist-cjs/pagination/index.js +9 -0
- package/dist-cjs/protocols/Aws_restJson1.js +1423 -0
- package/dist-cjs/runtimeConfig.browser.js +41 -0
- package/dist-cjs/runtimeConfig.js +58 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +36 -0
- package/dist-cjs/runtimeExtensions.js +13 -0
- package/dist-es/BedrockAgentCore.js +59 -0
- package/dist-es/BedrockAgentCoreClient.js +50 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
- package/dist-es/commands/CreateEventCommand.js +23 -0
- package/dist-es/commands/DeleteEventCommand.js +22 -0
- package/dist-es/commands/DeleteMemoryRecordCommand.js +22 -0
- package/dist-es/commands/GetBrowserSessionCommand.js +22 -0
- package/dist-es/commands/GetCodeInterpreterSessionCommand.js +22 -0
- package/dist-es/commands/GetEventCommand.js +23 -0
- package/dist-es/commands/GetMemoryRecordCommand.js +23 -0
- package/dist-es/commands/GetResourceApiKeyCommand.js +23 -0
- package/dist-es/commands/GetResourceOauth2TokenCommand.js +23 -0
- package/dist-es/commands/GetWorkloadAccessTokenCommand.js +23 -0
- package/dist-es/commands/GetWorkloadAccessTokenForJWTCommand.js +23 -0
- package/dist-es/commands/GetWorkloadAccessTokenForUserIdCommand.js +23 -0
- package/dist-es/commands/InvokeAgentRuntimeCommand.js +23 -0
- package/dist-es/commands/InvokeCodeInterpreterCommand.js +27 -0
- package/dist-es/commands/ListActorsCommand.js +22 -0
- package/dist-es/commands/ListBrowserSessionsCommand.js +22 -0
- package/dist-es/commands/ListCodeInterpreterSessionsCommand.js +22 -0
- package/dist-es/commands/ListEventsCommand.js +23 -0
- package/dist-es/commands/ListMemoryRecordsCommand.js +23 -0
- package/dist-es/commands/ListSessionsCommand.js +22 -0
- package/dist-es/commands/RetrieveMemoryRecordsCommand.js +23 -0
- package/dist-es/commands/StartBrowserSessionCommand.js +22 -0
- package/dist-es/commands/StartCodeInterpreterSessionCommand.js +22 -0
- package/dist-es/commands/StopBrowserSessionCommand.js +22 -0
- package/dist-es/commands/StopCodeInterpreterSessionCommand.js +22 -0
- package/dist-es/commands/UpdateBrowserStreamCommand.js +22 -0
- package/dist-es/commands/index.js +26 -0
- package/dist-es/endpoint/EndpointParameters.js +13 -0
- package/dist-es/endpoint/endpointResolver.js +14 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +6 -0
- package/dist-es/models/BedrockAgentCoreServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +421 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListActorsPaginator.js +4 -0
- package/dist-es/pagination/ListEventsPaginator.js +4 -0
- package/dist-es/pagination/ListMemoryRecordsPaginator.js +4 -0
- package/dist-es/pagination/ListSessionsPaginator.js +4 -0
- package/dist-es/pagination/RetrieveMemoryRecordsPaginator.js +4 -0
- package/dist-es/pagination/index.js +6 -0
- package/dist-es/protocols/Aws_restJson1.js +1367 -0
- package/dist-es/runtimeConfig.browser.js +36 -0
- package/dist-es/runtimeConfig.js +53 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +32 -0
- package/dist-es/runtimeExtensions.js +9 -0
- package/dist-types/BedrockAgentCore.d.ts +192 -0
- package/dist-types/BedrockAgentCoreClient.d.ts +223 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
- package/dist-types/commands/CreateEventCommand.d.ts +133 -0
- package/dist-types/commands/DeleteEventCommand.d.ts +96 -0
- package/dist-types/commands/DeleteMemoryRecordCommand.d.ts +94 -0
- package/dist-types/commands/GetBrowserSessionCommand.d.ts +108 -0
- package/dist-types/commands/GetCodeInterpreterSessionCommand.d.ts +93 -0
- package/dist-types/commands/GetEventCommand.d.ts +117 -0
- package/dist-types/commands/GetMemoryRecordCommand.d.ts +104 -0
- package/dist-types/commands/GetResourceApiKeyCommand.d.ts +91 -0
- package/dist-types/commands/GetResourceOauth2TokenCommand.d.ts +102 -0
- package/dist-types/commands/GetWorkloadAccessTokenCommand.d.ts +90 -0
- package/dist-types/commands/GetWorkloadAccessTokenForJWTCommand.d.ts +91 -0
- package/dist-types/commands/GetWorkloadAccessTokenForUserIdCommand.d.ts +91 -0
- package/dist-types/commands/InvokeAgentRuntimeCommand.d.ts +126 -0
- package/dist-types/commands/InvokeCodeInterpreterCommand.d.ts +174 -0
- package/dist-types/commands/ListActorsCommand.d.ts +100 -0
- package/dist-types/commands/ListBrowserSessionsCommand.d.ts +100 -0
- package/dist-types/commands/ListCodeInterpreterSessionsCommand.d.ts +100 -0
- package/dist-types/commands/ListEventsCommand.d.ts +128 -0
- package/dist-types/commands/ListMemoryRecordsCommand.d.ts +111 -0
- package/dist-types/commands/ListSessionsCommand.d.ts +103 -0
- package/dist-types/commands/RetrieveMemoryRecordsCommand.d.ts +115 -0
- package/dist-types/commands/StartBrowserSessionCommand.d.ts +111 -0
- package/dist-types/commands/StartCodeInterpreterSessionCommand.d.ts +98 -0
- package/dist-types/commands/StopBrowserSessionCommand.d.ts +97 -0
- package/dist-types/commands/StopCodeInterpreterSessionCommand.d.ts +97 -0
- package/dist-types/commands/UpdateBrowserStreamCommand.d.ts +111 -0
- package/dist-types/commands/index.d.ts +26 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +38 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +14 -0
- package/dist-types/models/BedrockAgentCoreServiceException.d.ts +14 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +2440 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListActorsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListEventsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListMemoryRecordsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListSessionsPaginator.d.ts +7 -0
- package/dist-types/pagination/RetrieveMemoryRecordsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +6 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +236 -0
- package/dist-types/runtimeConfig.browser.d.ts +52 -0
- package/dist-types/runtimeConfig.d.ts +52 -0
- package/dist-types/runtimeConfig.native.d.ts +51 -0
- package/dist-types/runtimeConfig.shared.d.ts +22 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/ts3.4/BedrockAgentCore.d.ts +449 -0
- package/dist-types/ts3.4/BedrockAgentCoreClient.d.ts +288 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +47 -0
- package/dist-types/ts3.4/commands/CreateEventCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/DeleteEventCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/DeleteMemoryRecordCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetBrowserSessionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetCodeInterpreterSessionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetEventCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/GetMemoryRecordCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/GetResourceApiKeyCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetResourceOauth2TokenCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetWorkloadAccessTokenCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetWorkloadAccessTokenForJWTCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetWorkloadAccessTokenForUserIdCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/InvokeAgentRuntimeCommand.d.ts +66 -0
- package/dist-types/ts3.4/commands/InvokeCodeInterpreterCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListActorsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/ListBrowserSessionsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListCodeInterpreterSessionsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListEventsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/ListMemoryRecordsCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListSessionsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/RetrieveMemoryRecordsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/StartBrowserSessionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/StartCodeInterpreterSessionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/StopBrowserSessionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/StopCodeInterpreterSessionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateBrowserStreamCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +26 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
- package/dist-types/ts3.4/index.d.ts +9 -0
- package/dist-types/ts3.4/models/BedrockAgentCoreServiceException.d.ts +9 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +872 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListActorsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListEventsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListMemoryRecordsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListSessionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/RetrieveMemoryRecordsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +6 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +321 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +96 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +93 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +100 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +24 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +13 -0
- package/package.json +105 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import packageInfo from "../package.json";
|
|
2
|
+
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
3
|
+
import { createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-browser";
|
|
4
|
+
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@smithy/config-resolver";
|
|
5
|
+
import { eventStreamSerdeProvider } from "@smithy/eventstream-serde-browser";
|
|
6
|
+
import { FetchHttpHandler as RequestHandler, streamCollector } from "@smithy/fetch-http-handler";
|
|
7
|
+
import { invalidProvider } from "@smithy/invalid-dependency";
|
|
8
|
+
import { calculateBodyLength } from "@smithy/util-body-length-browser";
|
|
9
|
+
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/util-retry";
|
|
10
|
+
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
11
|
+
import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
|
|
12
|
+
import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser";
|
|
13
|
+
export const getRuntimeConfig = (config) => {
|
|
14
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
15
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
16
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
17
|
+
return {
|
|
18
|
+
...clientSharedValues,
|
|
19
|
+
...config,
|
|
20
|
+
runtime: "browser",
|
|
21
|
+
defaultsMode,
|
|
22
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
23
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
24
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
25
|
+
createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
26
|
+
eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventStreamSerdeProvider,
|
|
27
|
+
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
28
|
+
region: config?.region ?? invalidProvider("Region is missing"),
|
|
29
|
+
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
30
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
31
|
+
sha256: config?.sha256 ?? Sha256,
|
|
32
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
33
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
34
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|
|
35
|
+
};
|
|
36
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import packageInfo from "../package.json";
|
|
2
|
+
import { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
|
|
3
|
+
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
4
|
+
import { NODE_APP_ID_CONFIG_OPTIONS, createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-node";
|
|
5
|
+
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
|
|
6
|
+
import { eventStreamSerdeProvider } from "@smithy/eventstream-serde-node";
|
|
7
|
+
import { Hash } from "@smithy/hash-node";
|
|
8
|
+
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
|
|
9
|
+
import { loadConfig as loadNodeConfig } from "@smithy/node-config-provider";
|
|
10
|
+
import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
|
|
11
|
+
import { calculateBodyLength } from "@smithy/util-body-length-node";
|
|
12
|
+
import { DEFAULT_RETRY_MODE } from "@smithy/util-retry";
|
|
13
|
+
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
14
|
+
import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
|
|
15
|
+
import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node";
|
|
16
|
+
import { emitWarningIfUnsupportedVersion } from "@smithy/smithy-client";
|
|
17
|
+
export const getRuntimeConfig = (config) => {
|
|
18
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
19
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
20
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
21
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
22
|
+
awsCheckVersion(process.version);
|
|
23
|
+
const loaderConfig = {
|
|
24
|
+
profile: config?.profile,
|
|
25
|
+
logger: clientSharedValues.logger,
|
|
26
|
+
};
|
|
27
|
+
return {
|
|
28
|
+
...clientSharedValues,
|
|
29
|
+
...config,
|
|
30
|
+
runtime: "node",
|
|
31
|
+
defaultsMode,
|
|
32
|
+
authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
33
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
34
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
|
|
35
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
36
|
+
createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
37
|
+
eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventStreamSerdeProvider,
|
|
38
|
+
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
39
|
+
region: config?.region ??
|
|
40
|
+
loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
41
|
+
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
42
|
+
retryMode: config?.retryMode ??
|
|
43
|
+
loadNodeConfig({
|
|
44
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
45
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
46
|
+
}, config),
|
|
47
|
+
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
48
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
49
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
50
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
51
|
+
userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
52
|
+
};
|
|
53
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Sha256 } from "@aws-crypto/sha256-js";
|
|
2
|
+
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
|
|
3
|
+
export const getRuntimeConfig = (config) => {
|
|
4
|
+
const browserDefaults = getBrowserRuntimeConfig(config);
|
|
5
|
+
return {
|
|
6
|
+
...browserDefaults,
|
|
7
|
+
...config,
|
|
8
|
+
runtime: "react-native",
|
|
9
|
+
sha256: config?.sha256 ?? Sha256,
|
|
10
|
+
};
|
|
11
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { AwsSdkSigV4Signer } from "@aws-sdk/core";
|
|
2
|
+
import { NoOpLogger } from "@smithy/smithy-client";
|
|
3
|
+
import { parseUrl } from "@smithy/url-parser";
|
|
4
|
+
import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
5
|
+
import { sdkStreamMixin } from "@smithy/util-stream";
|
|
6
|
+
import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
|
|
7
|
+
import { defaultBedrockAgentCoreHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
|
|
8
|
+
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
|
|
9
|
+
export const getRuntimeConfig = (config) => {
|
|
10
|
+
return {
|
|
11
|
+
apiVersion: "2024-02-28",
|
|
12
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
13
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
14
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
15
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
16
|
+
extensions: config?.extensions ?? [],
|
|
17
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultBedrockAgentCoreHttpAuthSchemeProvider,
|
|
18
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
19
|
+
{
|
|
20
|
+
schemeId: "aws.auth#sigv4",
|
|
21
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
22
|
+
signer: new AwsSdkSigV4Signer(),
|
|
23
|
+
},
|
|
24
|
+
],
|
|
25
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
26
|
+
sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin,
|
|
27
|
+
serviceId: config?.serviceId ?? "Bedrock AgentCore",
|
|
28
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
29
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
30
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, } from "@aws-sdk/region-config-resolver";
|
|
2
|
+
import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
|
|
3
|
+
import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
|
|
4
|
+
import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
|
|
5
|
+
export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
6
|
+
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
7
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
8
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
9
|
+
};
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
2
|
+
import { BedrockAgentCoreClient } from "./BedrockAgentCoreClient";
|
|
3
|
+
import { CreateEventCommandInput, CreateEventCommandOutput } from "./commands/CreateEventCommand";
|
|
4
|
+
import { DeleteEventCommandInput, DeleteEventCommandOutput } from "./commands/DeleteEventCommand";
|
|
5
|
+
import { DeleteMemoryRecordCommandInput, DeleteMemoryRecordCommandOutput } from "./commands/DeleteMemoryRecordCommand";
|
|
6
|
+
import { GetBrowserSessionCommandInput, GetBrowserSessionCommandOutput } from "./commands/GetBrowserSessionCommand";
|
|
7
|
+
import { GetCodeInterpreterSessionCommandInput, GetCodeInterpreterSessionCommandOutput } from "./commands/GetCodeInterpreterSessionCommand";
|
|
8
|
+
import { GetEventCommandInput, GetEventCommandOutput } from "./commands/GetEventCommand";
|
|
9
|
+
import { GetMemoryRecordCommandInput, GetMemoryRecordCommandOutput } from "./commands/GetMemoryRecordCommand";
|
|
10
|
+
import { GetResourceApiKeyCommandInput, GetResourceApiKeyCommandOutput } from "./commands/GetResourceApiKeyCommand";
|
|
11
|
+
import { GetResourceOauth2TokenCommandInput, GetResourceOauth2TokenCommandOutput } from "./commands/GetResourceOauth2TokenCommand";
|
|
12
|
+
import { GetWorkloadAccessTokenCommandInput, GetWorkloadAccessTokenCommandOutput } from "./commands/GetWorkloadAccessTokenCommand";
|
|
13
|
+
import { GetWorkloadAccessTokenForJWTCommandInput, GetWorkloadAccessTokenForJWTCommandOutput } from "./commands/GetWorkloadAccessTokenForJWTCommand";
|
|
14
|
+
import { GetWorkloadAccessTokenForUserIdCommandInput, GetWorkloadAccessTokenForUserIdCommandOutput } from "./commands/GetWorkloadAccessTokenForUserIdCommand";
|
|
15
|
+
import { InvokeAgentRuntimeCommandInput, InvokeAgentRuntimeCommandOutput } from "./commands/InvokeAgentRuntimeCommand";
|
|
16
|
+
import { InvokeCodeInterpreterCommandInput, InvokeCodeInterpreterCommandOutput } from "./commands/InvokeCodeInterpreterCommand";
|
|
17
|
+
import { ListActorsCommandInput, ListActorsCommandOutput } from "./commands/ListActorsCommand";
|
|
18
|
+
import { ListBrowserSessionsCommandInput, ListBrowserSessionsCommandOutput } from "./commands/ListBrowserSessionsCommand";
|
|
19
|
+
import { ListCodeInterpreterSessionsCommandInput, ListCodeInterpreterSessionsCommandOutput } from "./commands/ListCodeInterpreterSessionsCommand";
|
|
20
|
+
import { ListEventsCommandInput, ListEventsCommandOutput } from "./commands/ListEventsCommand";
|
|
21
|
+
import { ListMemoryRecordsCommandInput, ListMemoryRecordsCommandOutput } from "./commands/ListMemoryRecordsCommand";
|
|
22
|
+
import { ListSessionsCommandInput, ListSessionsCommandOutput } from "./commands/ListSessionsCommand";
|
|
23
|
+
import { RetrieveMemoryRecordsCommandInput, RetrieveMemoryRecordsCommandOutput } from "./commands/RetrieveMemoryRecordsCommand";
|
|
24
|
+
import { StartBrowserSessionCommandInput, StartBrowserSessionCommandOutput } from "./commands/StartBrowserSessionCommand";
|
|
25
|
+
import { StartCodeInterpreterSessionCommandInput, StartCodeInterpreterSessionCommandOutput } from "./commands/StartCodeInterpreterSessionCommand";
|
|
26
|
+
import { StopBrowserSessionCommandInput, StopBrowserSessionCommandOutput } from "./commands/StopBrowserSessionCommand";
|
|
27
|
+
import { StopCodeInterpreterSessionCommandInput, StopCodeInterpreterSessionCommandOutput } from "./commands/StopCodeInterpreterSessionCommand";
|
|
28
|
+
import { UpdateBrowserStreamCommandInput, UpdateBrowserStreamCommandOutput } from "./commands/UpdateBrowserStreamCommand";
|
|
29
|
+
export interface BedrockAgentCore {
|
|
30
|
+
/**
|
|
31
|
+
* @see {@link CreateEventCommand}
|
|
32
|
+
*/
|
|
33
|
+
createEvent(args: CreateEventCommandInput, options?: __HttpHandlerOptions): Promise<CreateEventCommandOutput>;
|
|
34
|
+
createEvent(args: CreateEventCommandInput, cb: (err: any, data?: CreateEventCommandOutput) => void): void;
|
|
35
|
+
createEvent(args: CreateEventCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateEventCommandOutput) => void): void;
|
|
36
|
+
/**
|
|
37
|
+
* @see {@link DeleteEventCommand}
|
|
38
|
+
*/
|
|
39
|
+
deleteEvent(args: DeleteEventCommandInput, options?: __HttpHandlerOptions): Promise<DeleteEventCommandOutput>;
|
|
40
|
+
deleteEvent(args: DeleteEventCommandInput, cb: (err: any, data?: DeleteEventCommandOutput) => void): void;
|
|
41
|
+
deleteEvent(args: DeleteEventCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteEventCommandOutput) => void): void;
|
|
42
|
+
/**
|
|
43
|
+
* @see {@link DeleteMemoryRecordCommand}
|
|
44
|
+
*/
|
|
45
|
+
deleteMemoryRecord(args: DeleteMemoryRecordCommandInput, options?: __HttpHandlerOptions): Promise<DeleteMemoryRecordCommandOutput>;
|
|
46
|
+
deleteMemoryRecord(args: DeleteMemoryRecordCommandInput, cb: (err: any, data?: DeleteMemoryRecordCommandOutput) => void): void;
|
|
47
|
+
deleteMemoryRecord(args: DeleteMemoryRecordCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteMemoryRecordCommandOutput) => void): void;
|
|
48
|
+
/**
|
|
49
|
+
* @see {@link GetBrowserSessionCommand}
|
|
50
|
+
*/
|
|
51
|
+
getBrowserSession(args: GetBrowserSessionCommandInput, options?: __HttpHandlerOptions): Promise<GetBrowserSessionCommandOutput>;
|
|
52
|
+
getBrowserSession(args: GetBrowserSessionCommandInput, cb: (err: any, data?: GetBrowserSessionCommandOutput) => void): void;
|
|
53
|
+
getBrowserSession(args: GetBrowserSessionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetBrowserSessionCommandOutput) => void): void;
|
|
54
|
+
/**
|
|
55
|
+
* @see {@link GetCodeInterpreterSessionCommand}
|
|
56
|
+
*/
|
|
57
|
+
getCodeInterpreterSession(args: GetCodeInterpreterSessionCommandInput, options?: __HttpHandlerOptions): Promise<GetCodeInterpreterSessionCommandOutput>;
|
|
58
|
+
getCodeInterpreterSession(args: GetCodeInterpreterSessionCommandInput, cb: (err: any, data?: GetCodeInterpreterSessionCommandOutput) => void): void;
|
|
59
|
+
getCodeInterpreterSession(args: GetCodeInterpreterSessionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetCodeInterpreterSessionCommandOutput) => void): void;
|
|
60
|
+
/**
|
|
61
|
+
* @see {@link GetEventCommand}
|
|
62
|
+
*/
|
|
63
|
+
getEvent(args: GetEventCommandInput, options?: __HttpHandlerOptions): Promise<GetEventCommandOutput>;
|
|
64
|
+
getEvent(args: GetEventCommandInput, cb: (err: any, data?: GetEventCommandOutput) => void): void;
|
|
65
|
+
getEvent(args: GetEventCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetEventCommandOutput) => void): void;
|
|
66
|
+
/**
|
|
67
|
+
* @see {@link GetMemoryRecordCommand}
|
|
68
|
+
*/
|
|
69
|
+
getMemoryRecord(args: GetMemoryRecordCommandInput, options?: __HttpHandlerOptions): Promise<GetMemoryRecordCommandOutput>;
|
|
70
|
+
getMemoryRecord(args: GetMemoryRecordCommandInput, cb: (err: any, data?: GetMemoryRecordCommandOutput) => void): void;
|
|
71
|
+
getMemoryRecord(args: GetMemoryRecordCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetMemoryRecordCommandOutput) => void): void;
|
|
72
|
+
/**
|
|
73
|
+
* @see {@link GetResourceApiKeyCommand}
|
|
74
|
+
*/
|
|
75
|
+
getResourceApiKey(args: GetResourceApiKeyCommandInput, options?: __HttpHandlerOptions): Promise<GetResourceApiKeyCommandOutput>;
|
|
76
|
+
getResourceApiKey(args: GetResourceApiKeyCommandInput, cb: (err: any, data?: GetResourceApiKeyCommandOutput) => void): void;
|
|
77
|
+
getResourceApiKey(args: GetResourceApiKeyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetResourceApiKeyCommandOutput) => void): void;
|
|
78
|
+
/**
|
|
79
|
+
* @see {@link GetResourceOauth2TokenCommand}
|
|
80
|
+
*/
|
|
81
|
+
getResourceOauth2Token(args: GetResourceOauth2TokenCommandInput, options?: __HttpHandlerOptions): Promise<GetResourceOauth2TokenCommandOutput>;
|
|
82
|
+
getResourceOauth2Token(args: GetResourceOauth2TokenCommandInput, cb: (err: any, data?: GetResourceOauth2TokenCommandOutput) => void): void;
|
|
83
|
+
getResourceOauth2Token(args: GetResourceOauth2TokenCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetResourceOauth2TokenCommandOutput) => void): void;
|
|
84
|
+
/**
|
|
85
|
+
* @see {@link GetWorkloadAccessTokenCommand}
|
|
86
|
+
*/
|
|
87
|
+
getWorkloadAccessToken(args: GetWorkloadAccessTokenCommandInput, options?: __HttpHandlerOptions): Promise<GetWorkloadAccessTokenCommandOutput>;
|
|
88
|
+
getWorkloadAccessToken(args: GetWorkloadAccessTokenCommandInput, cb: (err: any, data?: GetWorkloadAccessTokenCommandOutput) => void): void;
|
|
89
|
+
getWorkloadAccessToken(args: GetWorkloadAccessTokenCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetWorkloadAccessTokenCommandOutput) => void): void;
|
|
90
|
+
/**
|
|
91
|
+
* @see {@link GetWorkloadAccessTokenForJWTCommand}
|
|
92
|
+
*/
|
|
93
|
+
getWorkloadAccessTokenForJWT(args: GetWorkloadAccessTokenForJWTCommandInput, options?: __HttpHandlerOptions): Promise<GetWorkloadAccessTokenForJWTCommandOutput>;
|
|
94
|
+
getWorkloadAccessTokenForJWT(args: GetWorkloadAccessTokenForJWTCommandInput, cb: (err: any, data?: GetWorkloadAccessTokenForJWTCommandOutput) => void): void;
|
|
95
|
+
getWorkloadAccessTokenForJWT(args: GetWorkloadAccessTokenForJWTCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetWorkloadAccessTokenForJWTCommandOutput) => void): void;
|
|
96
|
+
/**
|
|
97
|
+
* @see {@link GetWorkloadAccessTokenForUserIdCommand}
|
|
98
|
+
*/
|
|
99
|
+
getWorkloadAccessTokenForUserId(args: GetWorkloadAccessTokenForUserIdCommandInput, options?: __HttpHandlerOptions): Promise<GetWorkloadAccessTokenForUserIdCommandOutput>;
|
|
100
|
+
getWorkloadAccessTokenForUserId(args: GetWorkloadAccessTokenForUserIdCommandInput, cb: (err: any, data?: GetWorkloadAccessTokenForUserIdCommandOutput) => void): void;
|
|
101
|
+
getWorkloadAccessTokenForUserId(args: GetWorkloadAccessTokenForUserIdCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetWorkloadAccessTokenForUserIdCommandOutput) => void): void;
|
|
102
|
+
/**
|
|
103
|
+
* @see {@link InvokeAgentRuntimeCommand}
|
|
104
|
+
*/
|
|
105
|
+
invokeAgentRuntime(args: InvokeAgentRuntimeCommandInput, options?: __HttpHandlerOptions): Promise<InvokeAgentRuntimeCommandOutput>;
|
|
106
|
+
invokeAgentRuntime(args: InvokeAgentRuntimeCommandInput, cb: (err: any, data?: InvokeAgentRuntimeCommandOutput) => void): void;
|
|
107
|
+
invokeAgentRuntime(args: InvokeAgentRuntimeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: InvokeAgentRuntimeCommandOutput) => void): void;
|
|
108
|
+
/**
|
|
109
|
+
* @see {@link InvokeCodeInterpreterCommand}
|
|
110
|
+
*/
|
|
111
|
+
invokeCodeInterpreter(args: InvokeCodeInterpreterCommandInput, options?: __HttpHandlerOptions): Promise<InvokeCodeInterpreterCommandOutput>;
|
|
112
|
+
invokeCodeInterpreter(args: InvokeCodeInterpreterCommandInput, cb: (err: any, data?: InvokeCodeInterpreterCommandOutput) => void): void;
|
|
113
|
+
invokeCodeInterpreter(args: InvokeCodeInterpreterCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: InvokeCodeInterpreterCommandOutput) => void): void;
|
|
114
|
+
/**
|
|
115
|
+
* @see {@link ListActorsCommand}
|
|
116
|
+
*/
|
|
117
|
+
listActors(args: ListActorsCommandInput, options?: __HttpHandlerOptions): Promise<ListActorsCommandOutput>;
|
|
118
|
+
listActors(args: ListActorsCommandInput, cb: (err: any, data?: ListActorsCommandOutput) => void): void;
|
|
119
|
+
listActors(args: ListActorsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListActorsCommandOutput) => void): void;
|
|
120
|
+
/**
|
|
121
|
+
* @see {@link ListBrowserSessionsCommand}
|
|
122
|
+
*/
|
|
123
|
+
listBrowserSessions(args: ListBrowserSessionsCommandInput, options?: __HttpHandlerOptions): Promise<ListBrowserSessionsCommandOutput>;
|
|
124
|
+
listBrowserSessions(args: ListBrowserSessionsCommandInput, cb: (err: any, data?: ListBrowserSessionsCommandOutput) => void): void;
|
|
125
|
+
listBrowserSessions(args: ListBrowserSessionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListBrowserSessionsCommandOutput) => void): void;
|
|
126
|
+
/**
|
|
127
|
+
* @see {@link ListCodeInterpreterSessionsCommand}
|
|
128
|
+
*/
|
|
129
|
+
listCodeInterpreterSessions(args: ListCodeInterpreterSessionsCommandInput, options?: __HttpHandlerOptions): Promise<ListCodeInterpreterSessionsCommandOutput>;
|
|
130
|
+
listCodeInterpreterSessions(args: ListCodeInterpreterSessionsCommandInput, cb: (err: any, data?: ListCodeInterpreterSessionsCommandOutput) => void): void;
|
|
131
|
+
listCodeInterpreterSessions(args: ListCodeInterpreterSessionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListCodeInterpreterSessionsCommandOutput) => void): void;
|
|
132
|
+
/**
|
|
133
|
+
* @see {@link ListEventsCommand}
|
|
134
|
+
*/
|
|
135
|
+
listEvents(args: ListEventsCommandInput, options?: __HttpHandlerOptions): Promise<ListEventsCommandOutput>;
|
|
136
|
+
listEvents(args: ListEventsCommandInput, cb: (err: any, data?: ListEventsCommandOutput) => void): void;
|
|
137
|
+
listEvents(args: ListEventsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListEventsCommandOutput) => void): void;
|
|
138
|
+
/**
|
|
139
|
+
* @see {@link ListMemoryRecordsCommand}
|
|
140
|
+
*/
|
|
141
|
+
listMemoryRecords(args: ListMemoryRecordsCommandInput, options?: __HttpHandlerOptions): Promise<ListMemoryRecordsCommandOutput>;
|
|
142
|
+
listMemoryRecords(args: ListMemoryRecordsCommandInput, cb: (err: any, data?: ListMemoryRecordsCommandOutput) => void): void;
|
|
143
|
+
listMemoryRecords(args: ListMemoryRecordsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListMemoryRecordsCommandOutput) => void): void;
|
|
144
|
+
/**
|
|
145
|
+
* @see {@link ListSessionsCommand}
|
|
146
|
+
*/
|
|
147
|
+
listSessions(args: ListSessionsCommandInput, options?: __HttpHandlerOptions): Promise<ListSessionsCommandOutput>;
|
|
148
|
+
listSessions(args: ListSessionsCommandInput, cb: (err: any, data?: ListSessionsCommandOutput) => void): void;
|
|
149
|
+
listSessions(args: ListSessionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSessionsCommandOutput) => void): void;
|
|
150
|
+
/**
|
|
151
|
+
* @see {@link RetrieveMemoryRecordsCommand}
|
|
152
|
+
*/
|
|
153
|
+
retrieveMemoryRecords(args: RetrieveMemoryRecordsCommandInput, options?: __HttpHandlerOptions): Promise<RetrieveMemoryRecordsCommandOutput>;
|
|
154
|
+
retrieveMemoryRecords(args: RetrieveMemoryRecordsCommandInput, cb: (err: any, data?: RetrieveMemoryRecordsCommandOutput) => void): void;
|
|
155
|
+
retrieveMemoryRecords(args: RetrieveMemoryRecordsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RetrieveMemoryRecordsCommandOutput) => void): void;
|
|
156
|
+
/**
|
|
157
|
+
* @see {@link StartBrowserSessionCommand}
|
|
158
|
+
*/
|
|
159
|
+
startBrowserSession(args: StartBrowserSessionCommandInput, options?: __HttpHandlerOptions): Promise<StartBrowserSessionCommandOutput>;
|
|
160
|
+
startBrowserSession(args: StartBrowserSessionCommandInput, cb: (err: any, data?: StartBrowserSessionCommandOutput) => void): void;
|
|
161
|
+
startBrowserSession(args: StartBrowserSessionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartBrowserSessionCommandOutput) => void): void;
|
|
162
|
+
/**
|
|
163
|
+
* @see {@link StartCodeInterpreterSessionCommand}
|
|
164
|
+
*/
|
|
165
|
+
startCodeInterpreterSession(args: StartCodeInterpreterSessionCommandInput, options?: __HttpHandlerOptions): Promise<StartCodeInterpreterSessionCommandOutput>;
|
|
166
|
+
startCodeInterpreterSession(args: StartCodeInterpreterSessionCommandInput, cb: (err: any, data?: StartCodeInterpreterSessionCommandOutput) => void): void;
|
|
167
|
+
startCodeInterpreterSession(args: StartCodeInterpreterSessionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartCodeInterpreterSessionCommandOutput) => void): void;
|
|
168
|
+
/**
|
|
169
|
+
* @see {@link StopBrowserSessionCommand}
|
|
170
|
+
*/
|
|
171
|
+
stopBrowserSession(args: StopBrowserSessionCommandInput, options?: __HttpHandlerOptions): Promise<StopBrowserSessionCommandOutput>;
|
|
172
|
+
stopBrowserSession(args: StopBrowserSessionCommandInput, cb: (err: any, data?: StopBrowserSessionCommandOutput) => void): void;
|
|
173
|
+
stopBrowserSession(args: StopBrowserSessionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StopBrowserSessionCommandOutput) => void): void;
|
|
174
|
+
/**
|
|
175
|
+
* @see {@link StopCodeInterpreterSessionCommand}
|
|
176
|
+
*/
|
|
177
|
+
stopCodeInterpreterSession(args: StopCodeInterpreterSessionCommandInput, options?: __HttpHandlerOptions): Promise<StopCodeInterpreterSessionCommandOutput>;
|
|
178
|
+
stopCodeInterpreterSession(args: StopCodeInterpreterSessionCommandInput, cb: (err: any, data?: StopCodeInterpreterSessionCommandOutput) => void): void;
|
|
179
|
+
stopCodeInterpreterSession(args: StopCodeInterpreterSessionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StopCodeInterpreterSessionCommandOutput) => void): void;
|
|
180
|
+
/**
|
|
181
|
+
* @see {@link UpdateBrowserStreamCommand}
|
|
182
|
+
*/
|
|
183
|
+
updateBrowserStream(args: UpdateBrowserStreamCommandInput, options?: __HttpHandlerOptions): Promise<UpdateBrowserStreamCommandOutput>;
|
|
184
|
+
updateBrowserStream(args: UpdateBrowserStreamCommandInput, cb: (err: any, data?: UpdateBrowserStreamCommandOutput) => void): void;
|
|
185
|
+
updateBrowserStream(args: UpdateBrowserStreamCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateBrowserStreamCommandOutput) => void): void;
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* <note> <p>Amazon Bedrock AgentCore is in preview release and is subject to change.</p> </note> <p>Data plane operations for Amazon Bedrock AgentCore.</p>
|
|
189
|
+
* @public
|
|
190
|
+
*/
|
|
191
|
+
export declare class BedrockAgentCore extends BedrockAgentCoreClient implements BedrockAgentCore {
|
|
192
|
+
}
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
|
|
2
|
+
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
3
|
+
import { RegionInputConfig, RegionResolvedConfig } from "@smithy/config-resolver";
|
|
4
|
+
import { EventStreamSerdeInputConfig, EventStreamSerdeResolvedConfig } from "@smithy/eventstream-serde-config-resolver";
|
|
5
|
+
import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-endpoint";
|
|
6
|
+
import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
|
|
7
|
+
import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
|
|
8
|
+
import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
|
|
9
|
+
import { AwsCredentialIdentityProvider, 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, SdkStreamMixinInjector as __SdkStreamMixinInjector, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
10
|
+
import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
11
|
+
import { CreateEventCommandInput, CreateEventCommandOutput } from "./commands/CreateEventCommand";
|
|
12
|
+
import { DeleteEventCommandInput, DeleteEventCommandOutput } from "./commands/DeleteEventCommand";
|
|
13
|
+
import { DeleteMemoryRecordCommandInput, DeleteMemoryRecordCommandOutput } from "./commands/DeleteMemoryRecordCommand";
|
|
14
|
+
import { GetBrowserSessionCommandInput, GetBrowserSessionCommandOutput } from "./commands/GetBrowserSessionCommand";
|
|
15
|
+
import { GetCodeInterpreterSessionCommandInput, GetCodeInterpreterSessionCommandOutput } from "./commands/GetCodeInterpreterSessionCommand";
|
|
16
|
+
import { GetEventCommandInput, GetEventCommandOutput } from "./commands/GetEventCommand";
|
|
17
|
+
import { GetMemoryRecordCommandInput, GetMemoryRecordCommandOutput } from "./commands/GetMemoryRecordCommand";
|
|
18
|
+
import { GetResourceApiKeyCommandInput, GetResourceApiKeyCommandOutput } from "./commands/GetResourceApiKeyCommand";
|
|
19
|
+
import { GetResourceOauth2TokenCommandInput, GetResourceOauth2TokenCommandOutput } from "./commands/GetResourceOauth2TokenCommand";
|
|
20
|
+
import { GetWorkloadAccessTokenCommandInput, GetWorkloadAccessTokenCommandOutput } from "./commands/GetWorkloadAccessTokenCommand";
|
|
21
|
+
import { GetWorkloadAccessTokenForJWTCommandInput, GetWorkloadAccessTokenForJWTCommandOutput } from "./commands/GetWorkloadAccessTokenForJWTCommand";
|
|
22
|
+
import { GetWorkloadAccessTokenForUserIdCommandInput, GetWorkloadAccessTokenForUserIdCommandOutput } from "./commands/GetWorkloadAccessTokenForUserIdCommand";
|
|
23
|
+
import { InvokeAgentRuntimeCommandInput, InvokeAgentRuntimeCommandOutput } from "./commands/InvokeAgentRuntimeCommand";
|
|
24
|
+
import { InvokeCodeInterpreterCommandInput, InvokeCodeInterpreterCommandOutput } from "./commands/InvokeCodeInterpreterCommand";
|
|
25
|
+
import { ListActorsCommandInput, ListActorsCommandOutput } from "./commands/ListActorsCommand";
|
|
26
|
+
import { ListBrowserSessionsCommandInput, ListBrowserSessionsCommandOutput } from "./commands/ListBrowserSessionsCommand";
|
|
27
|
+
import { ListCodeInterpreterSessionsCommandInput, ListCodeInterpreterSessionsCommandOutput } from "./commands/ListCodeInterpreterSessionsCommand";
|
|
28
|
+
import { ListEventsCommandInput, ListEventsCommandOutput } from "./commands/ListEventsCommand";
|
|
29
|
+
import { ListMemoryRecordsCommandInput, ListMemoryRecordsCommandOutput } from "./commands/ListMemoryRecordsCommand";
|
|
30
|
+
import { ListSessionsCommandInput, ListSessionsCommandOutput } from "./commands/ListSessionsCommand";
|
|
31
|
+
import { RetrieveMemoryRecordsCommandInput, RetrieveMemoryRecordsCommandOutput } from "./commands/RetrieveMemoryRecordsCommand";
|
|
32
|
+
import { StartBrowserSessionCommandInput, StartBrowserSessionCommandOutput } from "./commands/StartBrowserSessionCommand";
|
|
33
|
+
import { StartCodeInterpreterSessionCommandInput, StartCodeInterpreterSessionCommandOutput } from "./commands/StartCodeInterpreterSessionCommand";
|
|
34
|
+
import { StopBrowserSessionCommandInput, StopBrowserSessionCommandOutput } from "./commands/StopBrowserSessionCommand";
|
|
35
|
+
import { StopCodeInterpreterSessionCommandInput, StopCodeInterpreterSessionCommandOutput } from "./commands/StopCodeInterpreterSessionCommand";
|
|
36
|
+
import { UpdateBrowserStreamCommandInput, UpdateBrowserStreamCommandOutput } from "./commands/UpdateBrowserStreamCommand";
|
|
37
|
+
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
38
|
+
import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
39
|
+
export { __Client };
|
|
40
|
+
/**
|
|
41
|
+
* @public
|
|
42
|
+
*/
|
|
43
|
+
export type ServiceInputTypes = CreateEventCommandInput | DeleteEventCommandInput | DeleteMemoryRecordCommandInput | GetBrowserSessionCommandInput | GetCodeInterpreterSessionCommandInput | GetEventCommandInput | GetMemoryRecordCommandInput | GetResourceApiKeyCommandInput | GetResourceOauth2TokenCommandInput | GetWorkloadAccessTokenCommandInput | GetWorkloadAccessTokenForJWTCommandInput | GetWorkloadAccessTokenForUserIdCommandInput | InvokeAgentRuntimeCommandInput | InvokeCodeInterpreterCommandInput | ListActorsCommandInput | ListBrowserSessionsCommandInput | ListCodeInterpreterSessionsCommandInput | ListEventsCommandInput | ListMemoryRecordsCommandInput | ListSessionsCommandInput | RetrieveMemoryRecordsCommandInput | StartBrowserSessionCommandInput | StartCodeInterpreterSessionCommandInput | StopBrowserSessionCommandInput | StopCodeInterpreterSessionCommandInput | UpdateBrowserStreamCommandInput;
|
|
44
|
+
/**
|
|
45
|
+
* @public
|
|
46
|
+
*/
|
|
47
|
+
export type ServiceOutputTypes = CreateEventCommandOutput | DeleteEventCommandOutput | DeleteMemoryRecordCommandOutput | GetBrowserSessionCommandOutput | GetCodeInterpreterSessionCommandOutput | GetEventCommandOutput | GetMemoryRecordCommandOutput | GetResourceApiKeyCommandOutput | GetResourceOauth2TokenCommandOutput | GetWorkloadAccessTokenCommandOutput | GetWorkloadAccessTokenForJWTCommandOutput | GetWorkloadAccessTokenForUserIdCommandOutput | InvokeAgentRuntimeCommandOutput | InvokeCodeInterpreterCommandOutput | ListActorsCommandOutput | ListBrowserSessionsCommandOutput | ListCodeInterpreterSessionsCommandOutput | ListEventsCommandOutput | ListMemoryRecordsCommandOutput | ListSessionsCommandOutput | RetrieveMemoryRecordsCommandOutput | StartBrowserSessionCommandOutput | StartCodeInterpreterSessionCommandOutput | StopBrowserSessionCommandOutput | StopCodeInterpreterSessionCommandOutput | UpdateBrowserStreamCommandOutput;
|
|
48
|
+
/**
|
|
49
|
+
* @public
|
|
50
|
+
*/
|
|
51
|
+
export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
|
|
52
|
+
/**
|
|
53
|
+
* The HTTP handler to use or its constructor options. Fetch in browser and Https in Nodejs.
|
|
54
|
+
*/
|
|
55
|
+
requestHandler?: __HttpHandlerUserInput;
|
|
56
|
+
/**
|
|
57
|
+
* A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface
|
|
58
|
+
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
59
|
+
* @internal
|
|
60
|
+
*/
|
|
61
|
+
sha256?: __ChecksumConstructor | __HashConstructor;
|
|
62
|
+
/**
|
|
63
|
+
* The function that will be used to convert strings into HTTP endpoints.
|
|
64
|
+
* @internal
|
|
65
|
+
*/
|
|
66
|
+
urlParser?: __UrlParser;
|
|
67
|
+
/**
|
|
68
|
+
* A function that can calculate the length of a request body.
|
|
69
|
+
* @internal
|
|
70
|
+
*/
|
|
71
|
+
bodyLengthChecker?: __BodyLengthCalculator;
|
|
72
|
+
/**
|
|
73
|
+
* A function that converts a stream into an array of bytes.
|
|
74
|
+
* @internal
|
|
75
|
+
*/
|
|
76
|
+
streamCollector?: __StreamCollector;
|
|
77
|
+
/**
|
|
78
|
+
* The function that will be used to convert a base64-encoded string to a byte array.
|
|
79
|
+
* @internal
|
|
80
|
+
*/
|
|
81
|
+
base64Decoder?: __Decoder;
|
|
82
|
+
/**
|
|
83
|
+
* The function that will be used to convert binary data to a base64-encoded string.
|
|
84
|
+
* @internal
|
|
85
|
+
*/
|
|
86
|
+
base64Encoder?: __Encoder;
|
|
87
|
+
/**
|
|
88
|
+
* The function that will be used to convert a UTF8-encoded string to a byte array.
|
|
89
|
+
* @internal
|
|
90
|
+
*/
|
|
91
|
+
utf8Decoder?: __Decoder;
|
|
92
|
+
/**
|
|
93
|
+
* The function that will be used to convert binary data to a UTF-8 encoded string.
|
|
94
|
+
* @internal
|
|
95
|
+
*/
|
|
96
|
+
utf8Encoder?: __Encoder;
|
|
97
|
+
/**
|
|
98
|
+
* The runtime environment.
|
|
99
|
+
* @internal
|
|
100
|
+
*/
|
|
101
|
+
runtime?: string;
|
|
102
|
+
/**
|
|
103
|
+
* Disable dynamically changing the endpoint of the client based on the hostPrefix
|
|
104
|
+
* trait of an operation.
|
|
105
|
+
*/
|
|
106
|
+
disableHostPrefix?: boolean;
|
|
107
|
+
/**
|
|
108
|
+
* Unique service identifier.
|
|
109
|
+
* @internal
|
|
110
|
+
*/
|
|
111
|
+
serviceId?: string;
|
|
112
|
+
/**
|
|
113
|
+
* Enables IPv6/IPv4 dualstack endpoint.
|
|
114
|
+
*/
|
|
115
|
+
useDualstackEndpoint?: boolean | __Provider<boolean>;
|
|
116
|
+
/**
|
|
117
|
+
* Enables FIPS compatible endpoints.
|
|
118
|
+
*/
|
|
119
|
+
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
120
|
+
/**
|
|
121
|
+
* The AWS region to which this client will send requests
|
|
122
|
+
*/
|
|
123
|
+
region?: string | __Provider<string>;
|
|
124
|
+
/**
|
|
125
|
+
* Setting a client profile is similar to setting a value for the
|
|
126
|
+
* AWS_PROFILE environment variable. Setting a profile on a client
|
|
127
|
+
* in code only affects the single client instance, unlike AWS_PROFILE.
|
|
128
|
+
*
|
|
129
|
+
* When set, and only for environments where an AWS configuration
|
|
130
|
+
* file exists, fields configurable by this file will be retrieved
|
|
131
|
+
* from the specified profile within that file.
|
|
132
|
+
* Conflicting code configuration and environment variables will
|
|
133
|
+
* still have higher priority.
|
|
134
|
+
*
|
|
135
|
+
* For client credential resolution that involves checking the AWS
|
|
136
|
+
* configuration file, the client's profile (this value) will be
|
|
137
|
+
* used unless a different profile is set in the credential
|
|
138
|
+
* provider options.
|
|
139
|
+
*
|
|
140
|
+
*/
|
|
141
|
+
profile?: string;
|
|
142
|
+
/**
|
|
143
|
+
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
144
|
+
* @internal
|
|
145
|
+
*/
|
|
146
|
+
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
147
|
+
/**
|
|
148
|
+
* Default credentials provider; Not available in browser runtime.
|
|
149
|
+
* @deprecated
|
|
150
|
+
* @internal
|
|
151
|
+
*/
|
|
152
|
+
credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
|
|
153
|
+
/**
|
|
154
|
+
* Value for how many times a request will be made at most in case of retry.
|
|
155
|
+
*/
|
|
156
|
+
maxAttempts?: number | __Provider<number>;
|
|
157
|
+
/**
|
|
158
|
+
* Specifies which retry algorithm to use.
|
|
159
|
+
* @see https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-smithy-util-retry/Enum/RETRY_MODES/
|
|
160
|
+
*
|
|
161
|
+
*/
|
|
162
|
+
retryMode?: string | __Provider<string>;
|
|
163
|
+
/**
|
|
164
|
+
* Optional logger for logging debug/info/warn/error.
|
|
165
|
+
*/
|
|
166
|
+
logger?: __Logger;
|
|
167
|
+
/**
|
|
168
|
+
* Optional extensions
|
|
169
|
+
*/
|
|
170
|
+
extensions?: RuntimeExtension[];
|
|
171
|
+
/**
|
|
172
|
+
* The function that provides necessary utilities for generating and parsing event stream
|
|
173
|
+
*/
|
|
174
|
+
eventStreamSerdeProvider?: __EventStreamSerdeProvider;
|
|
175
|
+
/**
|
|
176
|
+
* The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
177
|
+
*/
|
|
178
|
+
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
|
|
179
|
+
/**
|
|
180
|
+
* The internal function that inject utilities to runtime-specific stream to help users consume the data
|
|
181
|
+
* @internal
|
|
182
|
+
*/
|
|
183
|
+
sdkStreamMixin?: __SdkStreamMixinInjector;
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* @public
|
|
187
|
+
*/
|
|
188
|
+
export type BedrockAgentCoreClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & UserAgentInputConfig & RetryInputConfig & RegionInputConfig & HostHeaderInputConfig & EndpointInputConfig<EndpointParameters> & EventStreamSerdeInputConfig & HttpAuthSchemeInputConfig & ClientInputEndpointParameters;
|
|
189
|
+
/**
|
|
190
|
+
* @public
|
|
191
|
+
*
|
|
192
|
+
* The configuration interface of BedrockAgentCoreClient class constructor that set the region, credentials and other options.
|
|
193
|
+
*/
|
|
194
|
+
export interface BedrockAgentCoreClientConfig extends BedrockAgentCoreClientConfigType {
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* @public
|
|
198
|
+
*/
|
|
199
|
+
export type BedrockAgentCoreClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & UserAgentResolvedConfig & RetryResolvedConfig & RegionResolvedConfig & HostHeaderResolvedConfig & EndpointResolvedConfig<EndpointParameters> & EventStreamSerdeResolvedConfig & HttpAuthSchemeResolvedConfig & ClientResolvedEndpointParameters;
|
|
200
|
+
/**
|
|
201
|
+
* @public
|
|
202
|
+
*
|
|
203
|
+
* The resolved configuration interface of BedrockAgentCoreClient class. This is resolved and normalized from the {@link BedrockAgentCoreClientConfig | constructor configuration interface}.
|
|
204
|
+
*/
|
|
205
|
+
export interface BedrockAgentCoreClientResolvedConfig extends BedrockAgentCoreClientResolvedConfigType {
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* <note> <p>Amazon Bedrock AgentCore is in preview release and is subject to change.</p> </note> <p>Data plane operations for Amazon Bedrock AgentCore.</p>
|
|
209
|
+
* @public
|
|
210
|
+
*/
|
|
211
|
+
export declare class BedrockAgentCoreClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, BedrockAgentCoreClientResolvedConfig> {
|
|
212
|
+
/**
|
|
213
|
+
* The resolved configuration of BedrockAgentCoreClient class. This is resolved and normalized from the {@link BedrockAgentCoreClientConfig | constructor configuration interface}.
|
|
214
|
+
*/
|
|
215
|
+
readonly config: BedrockAgentCoreClientResolvedConfig;
|
|
216
|
+
constructor(...[configuration]: __CheckOptionalClientConfig<BedrockAgentCoreClientConfig>);
|
|
217
|
+
/**
|
|
218
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
219
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
220
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
221
|
+
*/
|
|
222
|
+
destroy(): void;
|
|
223
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { AwsCredentialIdentity, AwsCredentialIdentityProvider, HttpAuthScheme } from "@smithy/types";
|
|
2
|
+
import { BedrockAgentCoreHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export interface HttpAuthExtensionConfiguration {
|
|
7
|
+
setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
|
|
8
|
+
httpAuthSchemes(): HttpAuthScheme[];
|
|
9
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider: BedrockAgentCoreHttpAuthSchemeProvider): void;
|
|
10
|
+
httpAuthSchemeProvider(): BedrockAgentCoreHttpAuthSchemeProvider;
|
|
11
|
+
setCredentials(credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider): void;
|
|
12
|
+
credentials(): AwsCredentialIdentity | AwsCredentialIdentityProvider | undefined;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
export type HttpAuthRuntimeConfig = Partial<{
|
|
18
|
+
httpAuthSchemes: HttpAuthScheme[];
|
|
19
|
+
httpAuthSchemeProvider: BedrockAgentCoreHttpAuthSchemeProvider;
|
|
20
|
+
credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider;
|
|
21
|
+
}>;
|
|
22
|
+
/**
|
|
23
|
+
* @internal
|
|
24
|
+
*/
|
|
25
|
+
export declare const getHttpAuthExtensionConfiguration: (runtimeConfig: HttpAuthRuntimeConfig) => HttpAuthExtensionConfiguration;
|
|
26
|
+
/**
|
|
27
|
+
* @internal
|
|
28
|
+
*/
|
|
29
|
+
export declare const resolveHttpAuthRuntimeConfig: (config: HttpAuthExtensionConfiguration) => HttpAuthRuntimeConfig;
|