@aws-sdk/client-bedrock-agentcore 3.928.0 → 3.929.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/dist-cjs/index.js +1843 -2065
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/BedrockAgentCoreClient.js +2 -0
- package/dist-es/commands/BatchCreateMemoryRecordsCommand.js +3 -10
- package/dist-es/commands/BatchDeleteMemoryRecordsCommand.js +3 -9
- package/dist-es/commands/BatchUpdateMemoryRecordsCommand.js +3 -10
- package/dist-es/commands/CompleteResourceTokenAuthCommand.js +3 -10
- package/dist-es/commands/CreateEventCommand.js +3 -10
- package/dist-es/commands/DeleteEventCommand.js +3 -9
- package/dist-es/commands/DeleteMemoryRecordCommand.js +3 -9
- package/dist-es/commands/GetAgentCardCommand.js +3 -9
- package/dist-es/commands/GetBrowserSessionCommand.js +3 -9
- package/dist-es/commands/GetCodeInterpreterSessionCommand.js +3 -9
- package/dist-es/commands/GetEventCommand.js +3 -10
- package/dist-es/commands/GetMemoryRecordCommand.js +3 -10
- package/dist-es/commands/GetResourceApiKeyCommand.js +3 -10
- package/dist-es/commands/GetResourceOauth2TokenCommand.js +3 -10
- package/dist-es/commands/GetWorkloadAccessTokenCommand.js +3 -10
- package/dist-es/commands/GetWorkloadAccessTokenForJWTCommand.js +3 -10
- package/dist-es/commands/GetWorkloadAccessTokenForUserIdCommand.js +3 -10
- package/dist-es/commands/InvokeAgentRuntimeCommand.js +3 -10
- package/dist-es/commands/InvokeCodeInterpreterCommand.js +3 -10
- package/dist-es/commands/ListActorsCommand.js +3 -9
- package/dist-es/commands/ListBrowserSessionsCommand.js +3 -9
- package/dist-es/commands/ListCodeInterpreterSessionsCommand.js +3 -9
- package/dist-es/commands/ListEventsCommand.js +3 -10
- package/dist-es/commands/ListMemoryRecordsCommand.js +3 -10
- package/dist-es/commands/ListSessionsCommand.js +3 -9
- package/dist-es/commands/RetrieveMemoryRecordsCommand.js +3 -10
- package/dist-es/commands/StartBrowserSessionCommand.js +3 -9
- package/dist-es/commands/StartCodeInterpreterSessionCommand.js +3 -9
- package/dist-es/commands/StopBrowserSessionCommand.js +3 -9
- package/dist-es/commands/StopCodeInterpreterSessionCommand.js +3 -9
- package/dist-es/commands/StopRuntimeSessionCommand.js +3 -9
- package/dist-es/commands/UpdateBrowserStreamCommand.js +3 -9
- package/dist-es/models/models_0.js +0 -190
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +1756 -0
- package/dist-types/BedrockAgentCoreClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -148
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +179 -0
- package/dist-types/ts3.4/BedrockAgentCoreClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -103
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +186 -0
- package/package.json +2 -3
- package/dist-es/protocols/Aws_restJson1.js +0 -1593
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -290
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -393
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { ListCodeInterpreterSessions } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class ListCodeInterpreterSessionsCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("AmazonBedrockAgentCore", "ListCodeInterpreterSessions", {})
|
|
17
13
|
.n("BedrockAgentCoreClient", "ListCodeInterpreterSessionsCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_ListCodeInterpreterSessionsCommand)
|
|
20
|
-
.de(de_ListCodeInterpreterSessionsCommand)
|
|
14
|
+
.sc(ListCodeInterpreterSessions)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,23 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
6
|
-
import { de_ListEventsCommand, se_ListEventsCommand } from "../protocols/Aws_restJson1";
|
|
4
|
+
import { ListEvents } from "../schemas/schemas_0";
|
|
7
5
|
export { $Command };
|
|
8
6
|
export class ListEventsCommand extends $Command
|
|
9
7
|
.classBuilder()
|
|
10
8
|
.ep(commonParams)
|
|
11
9
|
.m(function (Command, cs, config, o) {
|
|
12
|
-
return [
|
|
13
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
14
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
15
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
16
11
|
})
|
|
17
12
|
.s("AmazonBedrockAgentCore", "ListEvents", {})
|
|
18
13
|
.n("BedrockAgentCoreClient", "ListEventsCommand")
|
|
19
|
-
.
|
|
20
|
-
.ser(se_ListEventsCommand)
|
|
21
|
-
.de(de_ListEventsCommand)
|
|
14
|
+
.sc(ListEvents)
|
|
22
15
|
.build() {
|
|
23
16
|
}
|
|
@@ -1,23 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
6
|
-
import { de_ListMemoryRecordsCommand, se_ListMemoryRecordsCommand } from "../protocols/Aws_restJson1";
|
|
4
|
+
import { ListMemoryRecords } from "../schemas/schemas_0";
|
|
7
5
|
export { $Command };
|
|
8
6
|
export class ListMemoryRecordsCommand extends $Command
|
|
9
7
|
.classBuilder()
|
|
10
8
|
.ep(commonParams)
|
|
11
9
|
.m(function (Command, cs, config, o) {
|
|
12
|
-
return [
|
|
13
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
14
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
15
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
16
11
|
})
|
|
17
12
|
.s("AmazonBedrockAgentCore", "ListMemoryRecords", {})
|
|
18
13
|
.n("BedrockAgentCoreClient", "ListMemoryRecordsCommand")
|
|
19
|
-
.
|
|
20
|
-
.ser(se_ListMemoryRecordsCommand)
|
|
21
|
-
.de(de_ListMemoryRecordsCommand)
|
|
14
|
+
.sc(ListMemoryRecords)
|
|
22
15
|
.build() {
|
|
23
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { ListSessions } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class ListSessionsCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("AmazonBedrockAgentCore", "ListSessions", {})
|
|
17
13
|
.n("BedrockAgentCoreClient", "ListSessionsCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_ListSessionsCommand)
|
|
20
|
-
.de(de_ListSessionsCommand)
|
|
14
|
+
.sc(ListSessions)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,23 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
6
|
-
import { de_RetrieveMemoryRecordsCommand, se_RetrieveMemoryRecordsCommand } from "../protocols/Aws_restJson1";
|
|
4
|
+
import { RetrieveMemoryRecords } from "../schemas/schemas_0";
|
|
7
5
|
export { $Command };
|
|
8
6
|
export class RetrieveMemoryRecordsCommand extends $Command
|
|
9
7
|
.classBuilder()
|
|
10
8
|
.ep(commonParams)
|
|
11
9
|
.m(function (Command, cs, config, o) {
|
|
12
|
-
return [
|
|
13
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
14
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
15
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
16
11
|
})
|
|
17
12
|
.s("AmazonBedrockAgentCore", "RetrieveMemoryRecords", {})
|
|
18
13
|
.n("BedrockAgentCoreClient", "RetrieveMemoryRecordsCommand")
|
|
19
|
-
.
|
|
20
|
-
.ser(se_RetrieveMemoryRecordsCommand)
|
|
21
|
-
.de(de_RetrieveMemoryRecordsCommand)
|
|
14
|
+
.sc(RetrieveMemoryRecords)
|
|
22
15
|
.build() {
|
|
23
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { StartBrowserSession } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class StartBrowserSessionCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("AmazonBedrockAgentCore", "StartBrowserSession", {})
|
|
17
13
|
.n("BedrockAgentCoreClient", "StartBrowserSessionCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_StartBrowserSessionCommand)
|
|
20
|
-
.de(de_StartBrowserSessionCommand)
|
|
14
|
+
.sc(StartBrowserSession)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { StartCodeInterpreterSession } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class StartCodeInterpreterSessionCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("AmazonBedrockAgentCore", "StartCodeInterpreterSession", {})
|
|
17
13
|
.n("BedrockAgentCoreClient", "StartCodeInterpreterSessionCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_StartCodeInterpreterSessionCommand)
|
|
20
|
-
.de(de_StartCodeInterpreterSessionCommand)
|
|
14
|
+
.sc(StartCodeInterpreterSession)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { StopBrowserSession } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class StopBrowserSessionCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("AmazonBedrockAgentCore", "StopBrowserSession", {})
|
|
17
13
|
.n("BedrockAgentCoreClient", "StopBrowserSessionCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_StopBrowserSessionCommand)
|
|
20
|
-
.de(de_StopBrowserSessionCommand)
|
|
14
|
+
.sc(StopBrowserSession)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { StopCodeInterpreterSession } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class StopCodeInterpreterSessionCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("AmazonBedrockAgentCore", "StopCodeInterpreterSession", {})
|
|
17
13
|
.n("BedrockAgentCoreClient", "StopCodeInterpreterSessionCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_StopCodeInterpreterSessionCommand)
|
|
20
|
-
.de(de_StopCodeInterpreterSessionCommand)
|
|
14
|
+
.sc(StopCodeInterpreterSession)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { StopRuntimeSession } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class StopRuntimeSessionCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("AmazonBedrockAgentCore", "StopRuntimeSession", {})
|
|
17
13
|
.n("BedrockAgentCoreClient", "StopRuntimeSessionCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_StopRuntimeSessionCommand)
|
|
20
|
-
.de(de_StopRuntimeSessionCommand)
|
|
14
|
+
.sc(StopRuntimeSession)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { UpdateBrowserStream } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class UpdateBrowserStreamCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("AmazonBedrockAgentCore", "UpdateBrowserStream", {})
|
|
17
13
|
.n("BedrockAgentCoreClient", "UpdateBrowserStreamCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_UpdateBrowserStreamCommand)
|
|
20
|
-
.de(de_UpdateBrowserStreamCommand)
|
|
14
|
+
.sc(UpdateBrowserStream)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
2
1
|
import { BedrockAgentCoreServiceException as __BaseException } from "./BedrockAgentCoreServiceException";
|
|
3
2
|
export class AccessDeniedException extends __BaseException {
|
|
4
3
|
name = "AccessDeniedException";
|
|
@@ -313,192 +312,3 @@ export var RightExpression;
|
|
|
313
312
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
314
313
|
};
|
|
315
314
|
})(RightExpression || (RightExpression = {}));
|
|
316
|
-
export const InvokeAgentRuntimeRequestFilterSensitiveLog = (obj) => ({
|
|
317
|
-
...obj,
|
|
318
|
-
...(obj.payload && { payload: SENSITIVE_STRING }),
|
|
319
|
-
});
|
|
320
|
-
export const InvokeAgentRuntimeResponseFilterSensitiveLog = (obj) => ({
|
|
321
|
-
...obj,
|
|
322
|
-
...(obj.response && { response: SENSITIVE_STRING }),
|
|
323
|
-
});
|
|
324
|
-
export const UserIdentifierFilterSensitiveLog = (obj) => {
|
|
325
|
-
if (obj.userToken !== undefined)
|
|
326
|
-
return { userToken: SENSITIVE_STRING };
|
|
327
|
-
if (obj.userId !== undefined)
|
|
328
|
-
return { userId: obj.userId };
|
|
329
|
-
if (obj.$unknown !== undefined)
|
|
330
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
331
|
-
};
|
|
332
|
-
export const CompleteResourceTokenAuthRequestFilterSensitiveLog = (obj) => ({
|
|
333
|
-
...obj,
|
|
334
|
-
...(obj.userIdentifier && { userIdentifier: UserIdentifierFilterSensitiveLog(obj.userIdentifier) }),
|
|
335
|
-
});
|
|
336
|
-
export const GetResourceApiKeyRequestFilterSensitiveLog = (obj) => ({
|
|
337
|
-
...obj,
|
|
338
|
-
...(obj.workloadIdentityToken && { workloadIdentityToken: SENSITIVE_STRING }),
|
|
339
|
-
});
|
|
340
|
-
export const GetResourceApiKeyResponseFilterSensitiveLog = (obj) => ({
|
|
341
|
-
...obj,
|
|
342
|
-
...(obj.apiKey && { apiKey: SENSITIVE_STRING }),
|
|
343
|
-
});
|
|
344
|
-
export const GetResourceOauth2TokenRequestFilterSensitiveLog = (obj) => ({
|
|
345
|
-
...obj,
|
|
346
|
-
...(obj.workloadIdentityToken && { workloadIdentityToken: SENSITIVE_STRING }),
|
|
347
|
-
...(obj.customParameters && { customParameters: SENSITIVE_STRING }),
|
|
348
|
-
...(obj.customState && { customState: SENSITIVE_STRING }),
|
|
349
|
-
});
|
|
350
|
-
export const GetResourceOauth2TokenResponseFilterSensitiveLog = (obj) => ({
|
|
351
|
-
...obj,
|
|
352
|
-
...(obj.authorizationUrl && { authorizationUrl: SENSITIVE_STRING }),
|
|
353
|
-
...(obj.accessToken && { accessToken: SENSITIVE_STRING }),
|
|
354
|
-
});
|
|
355
|
-
export const GetWorkloadAccessTokenResponseFilterSensitiveLog = (obj) => ({
|
|
356
|
-
...obj,
|
|
357
|
-
...(obj.workloadAccessToken && { workloadAccessToken: SENSITIVE_STRING }),
|
|
358
|
-
});
|
|
359
|
-
export const GetWorkloadAccessTokenForJWTRequestFilterSensitiveLog = (obj) => ({
|
|
360
|
-
...obj,
|
|
361
|
-
...(obj.userToken && { userToken: SENSITIVE_STRING }),
|
|
362
|
-
});
|
|
363
|
-
export const GetWorkloadAccessTokenForJWTResponseFilterSensitiveLog = (obj) => ({
|
|
364
|
-
...obj,
|
|
365
|
-
...(obj.workloadAccessToken && { workloadAccessToken: SENSITIVE_STRING }),
|
|
366
|
-
});
|
|
367
|
-
export const GetWorkloadAccessTokenForUserIdResponseFilterSensitiveLog = (obj) => ({
|
|
368
|
-
...obj,
|
|
369
|
-
...(obj.workloadAccessToken && { workloadAccessToken: SENSITIVE_STRING }),
|
|
370
|
-
});
|
|
371
|
-
export const InputContentBlockFilterSensitiveLog = (obj) => ({
|
|
372
|
-
...obj,
|
|
373
|
-
...(obj.blob && { blob: SENSITIVE_STRING }),
|
|
374
|
-
});
|
|
375
|
-
export const ToolArgumentsFilterSensitiveLog = (obj) => ({
|
|
376
|
-
...obj,
|
|
377
|
-
...(obj.content && { content: obj.content.map((item) => InputContentBlockFilterSensitiveLog(item)) }),
|
|
378
|
-
});
|
|
379
|
-
export const InvokeCodeInterpreterRequestFilterSensitiveLog = (obj) => ({
|
|
380
|
-
...obj,
|
|
381
|
-
...(obj.arguments && { arguments: ToolArgumentsFilterSensitiveLog(obj.arguments) }),
|
|
382
|
-
});
|
|
383
|
-
export const CodeInterpreterStreamOutputFilterSensitiveLog = (obj) => {
|
|
384
|
-
if (obj.result !== undefined)
|
|
385
|
-
return { result: obj.result };
|
|
386
|
-
if (obj.accessDeniedException !== undefined)
|
|
387
|
-
return { accessDeniedException: obj.accessDeniedException };
|
|
388
|
-
if (obj.conflictException !== undefined)
|
|
389
|
-
return { conflictException: obj.conflictException };
|
|
390
|
-
if (obj.internalServerException !== undefined)
|
|
391
|
-
return { internalServerException: obj.internalServerException };
|
|
392
|
-
if (obj.resourceNotFoundException !== undefined)
|
|
393
|
-
return { resourceNotFoundException: obj.resourceNotFoundException };
|
|
394
|
-
if (obj.serviceQuotaExceededException !== undefined)
|
|
395
|
-
return { serviceQuotaExceededException: obj.serviceQuotaExceededException };
|
|
396
|
-
if (obj.throttlingException !== undefined)
|
|
397
|
-
return { throttlingException: obj.throttlingException };
|
|
398
|
-
if (obj.validationException !== undefined)
|
|
399
|
-
return { validationException: obj.validationException };
|
|
400
|
-
if (obj.$unknown !== undefined)
|
|
401
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
402
|
-
};
|
|
403
|
-
export const InvokeCodeInterpreterResponseFilterSensitiveLog = (obj) => ({
|
|
404
|
-
...obj,
|
|
405
|
-
...(obj.stream && { stream: "STREAMING_CONTENT" }),
|
|
406
|
-
});
|
|
407
|
-
export const MemoryContentFilterSensitiveLog = (obj) => {
|
|
408
|
-
if (obj.text !== undefined)
|
|
409
|
-
return { text: SENSITIVE_STRING };
|
|
410
|
-
if (obj.$unknown !== undefined)
|
|
411
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
412
|
-
};
|
|
413
|
-
export const MemoryRecordCreateInputFilterSensitiveLog = (obj) => ({
|
|
414
|
-
...obj,
|
|
415
|
-
...(obj.content && { content: MemoryContentFilterSensitiveLog(obj.content) }),
|
|
416
|
-
});
|
|
417
|
-
export const BatchCreateMemoryRecordsInputFilterSensitiveLog = (obj) => ({
|
|
418
|
-
...obj,
|
|
419
|
-
...(obj.records && { records: obj.records.map((item) => MemoryRecordCreateInputFilterSensitiveLog(item)) }),
|
|
420
|
-
});
|
|
421
|
-
export const MemoryRecordUpdateInputFilterSensitiveLog = (obj) => ({
|
|
422
|
-
...obj,
|
|
423
|
-
...(obj.content && { content: MemoryContentFilterSensitiveLog(obj.content) }),
|
|
424
|
-
});
|
|
425
|
-
export const BatchUpdateMemoryRecordsInputFilterSensitiveLog = (obj) => ({
|
|
426
|
-
...obj,
|
|
427
|
-
...(obj.records && { records: obj.records.map((item) => MemoryRecordUpdateInputFilterSensitiveLog(item)) }),
|
|
428
|
-
});
|
|
429
|
-
export const ContentFilterSensitiveLog = (obj) => {
|
|
430
|
-
if (obj.text !== undefined)
|
|
431
|
-
return { text: SENSITIVE_STRING };
|
|
432
|
-
if (obj.$unknown !== undefined)
|
|
433
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
434
|
-
};
|
|
435
|
-
export const ConversationalFilterSensitiveLog = (obj) => ({
|
|
436
|
-
...obj,
|
|
437
|
-
...(obj.content && { content: ContentFilterSensitiveLog(obj.content) }),
|
|
438
|
-
});
|
|
439
|
-
export const PayloadTypeFilterSensitiveLog = (obj) => {
|
|
440
|
-
if (obj.conversational !== undefined)
|
|
441
|
-
return { conversational: ConversationalFilterSensitiveLog(obj.conversational) };
|
|
442
|
-
if (obj.blob !== undefined)
|
|
443
|
-
return { blob: obj.blob };
|
|
444
|
-
if (obj.$unknown !== undefined)
|
|
445
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
446
|
-
};
|
|
447
|
-
export const CreateEventInputFilterSensitiveLog = (obj) => ({
|
|
448
|
-
...obj,
|
|
449
|
-
...(obj.payload && { payload: obj.payload.map((item) => PayloadTypeFilterSensitiveLog(item)) }),
|
|
450
|
-
...(obj.metadata && {
|
|
451
|
-
metadata: Object.entries(obj.metadata).reduce((acc, [key, value]) => ((acc[key] = value), acc), {}),
|
|
452
|
-
}),
|
|
453
|
-
});
|
|
454
|
-
export const EventFilterSensitiveLog = (obj) => ({
|
|
455
|
-
...obj,
|
|
456
|
-
...(obj.payload && { payload: obj.payload.map((item) => PayloadTypeFilterSensitiveLog(item)) }),
|
|
457
|
-
...(obj.metadata && {
|
|
458
|
-
metadata: Object.entries(obj.metadata).reduce((acc, [key, value]) => ((acc[key] = value), acc), {}),
|
|
459
|
-
}),
|
|
460
|
-
});
|
|
461
|
-
export const CreateEventOutputFilterSensitiveLog = (obj) => ({
|
|
462
|
-
...obj,
|
|
463
|
-
...(obj.event && { event: EventFilterSensitiveLog(obj.event) }),
|
|
464
|
-
});
|
|
465
|
-
export const GetEventOutputFilterSensitiveLog = (obj) => ({
|
|
466
|
-
...obj,
|
|
467
|
-
...(obj.event && { event: EventFilterSensitiveLog(obj.event) }),
|
|
468
|
-
});
|
|
469
|
-
export const MemoryRecordFilterSensitiveLog = (obj) => ({
|
|
470
|
-
...obj,
|
|
471
|
-
...(obj.content && { content: MemoryContentFilterSensitiveLog(obj.content) }),
|
|
472
|
-
});
|
|
473
|
-
export const GetMemoryRecordOutputFilterSensitiveLog = (obj) => ({
|
|
474
|
-
...obj,
|
|
475
|
-
...(obj.memoryRecord && { memoryRecord: MemoryRecordFilterSensitiveLog(obj.memoryRecord) }),
|
|
476
|
-
});
|
|
477
|
-
export const ListEventsOutputFilterSensitiveLog = (obj) => ({
|
|
478
|
-
...obj,
|
|
479
|
-
...(obj.events && { events: obj.events.map((item) => EventFilterSensitiveLog(item)) }),
|
|
480
|
-
});
|
|
481
|
-
export const MemoryRecordSummaryFilterSensitiveLog = (obj) => ({
|
|
482
|
-
...obj,
|
|
483
|
-
...(obj.content && { content: MemoryContentFilterSensitiveLog(obj.content) }),
|
|
484
|
-
});
|
|
485
|
-
export const ListMemoryRecordsOutputFilterSensitiveLog = (obj) => ({
|
|
486
|
-
...obj,
|
|
487
|
-
...(obj.memoryRecordSummaries && {
|
|
488
|
-
memoryRecordSummaries: obj.memoryRecordSummaries.map((item) => MemoryRecordSummaryFilterSensitiveLog(item)),
|
|
489
|
-
}),
|
|
490
|
-
});
|
|
491
|
-
export const SearchCriteriaFilterSensitiveLog = (obj) => ({
|
|
492
|
-
...obj,
|
|
493
|
-
...(obj.searchQuery && { searchQuery: SENSITIVE_STRING }),
|
|
494
|
-
});
|
|
495
|
-
export const RetrieveMemoryRecordsInputFilterSensitiveLog = (obj) => ({
|
|
496
|
-
...obj,
|
|
497
|
-
...(obj.searchCriteria && { searchCriteria: SearchCriteriaFilterSensitiveLog(obj.searchCriteria) }),
|
|
498
|
-
});
|
|
499
|
-
export const RetrieveMemoryRecordsOutputFilterSensitiveLog = (obj) => ({
|
|
500
|
-
...obj,
|
|
501
|
-
...(obj.memoryRecordSummaries && {
|
|
502
|
-
memoryRecordSummaries: obj.memoryRecordSummaries.map((item) => MemoryRecordSummaryFilterSensitiveLog(item)),
|
|
503
|
-
}),
|
|
504
|
-
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AwsSdkSigV4Signer } from "@aws-sdk/core";
|
|
2
|
+
import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
|
|
2
3
|
import { NoOpLogger } from "@smithy/smithy-client";
|
|
3
4
|
import { parseUrl } from "@smithy/url-parser";
|
|
4
5
|
import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
@@ -23,6 +24,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
23
24
|
},
|
|
24
25
|
],
|
|
25
26
|
logger: config?.logger ?? new NoOpLogger(),
|
|
27
|
+
protocol: config?.protocol ?? new AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.bedrockagentcore" }),
|
|
26
28
|
sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin,
|
|
27
29
|
serviceId: config?.serviceId ?? "Bedrock AgentCore",
|
|
28
30
|
urlParser: config?.urlParser ?? parseUrl,
|