Skip to content

Commit 9ab54a2

Browse files
author
awstools
committed
feat(client-bedrock-agentcore-control): Add tagging and VPC support to AgentCore Runtime, Code Interpreter, and Browser resources. Add support for configuring request headers in Runtime. Fix AgentCore Runtime shape names.
1 parent 9b89d93 commit 9ab54a2

38 files changed

+2131
-803
lines changed

clients/client-bedrock-agentcore-control/README.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
AWS SDK for JavaScript BedrockAgentCoreControl Client for Node.js, Browser and React Native.
88

9-
<note> <p>Amazon Bedrock AgentCore is in preview release and is subject to change.</p> </note> <p>Amazon Bedrock Agent Core Control is a service that enables you to manage memory resources for your Amazon Bedrock agents.</p> <p>Use this API to create, retrieve, update, and delete memory resources and their associated memory strategies. Memory resources enable your agents to store and retrieve information from conversations and interactions.</p>
9+
<note> <p> is in preview release and is subject to change.</p> </note> <p>Welcome to the Amazon Bedrock AgentCore Control plane API reference. Control plane actions configure, create, modify, and monitor Amazon Web Services resources.</p>
1010

1111
## Installing
1212

@@ -533,6 +533,14 @@ ListOauth2CredentialProviders
533533

534534
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agentcore-control/command/ListOauth2CredentialProvidersCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agentcore-control/Interface/ListOauth2CredentialProvidersCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agentcore-control/Interface/ListOauth2CredentialProvidersCommandOutput/)
535535

536+
</details>
537+
<details>
538+
<summary>
539+
ListTagsForResource
540+
</summary>
541+
542+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agentcore-control/command/ListTagsForResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agentcore-control/Interface/ListTagsForResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agentcore-control/Interface/ListTagsForResourceCommandOutput/)
543+
536544
</details>
537545
<details>
538546
<summary>
@@ -549,6 +557,22 @@ SetTokenVaultCMK
549557

550558
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agentcore-control/command/SetTokenVaultCMKCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agentcore-control/Interface/SetTokenVaultCMKCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agentcore-control/Interface/SetTokenVaultCMKCommandOutput/)
551559

560+
</details>
561+
<details>
562+
<summary>
563+
TagResource
564+
</summary>
565+
566+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agentcore-control/command/TagResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agentcore-control/Interface/TagResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agentcore-control/Interface/TagResourceCommandOutput/)
567+
568+
</details>
569+
<details>
570+
<summary>
571+
UntagResource
572+
</summary>
573+
574+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agentcore-control/command/UntagResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agentcore-control/Interface/UntagResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agentcore-control/Interface/UntagResourceCommandOutput/)
575+
552576
</details>
553577
<details>
554578
<summary>

clients/client-bedrock-agentcore-control/src/BedrockAgentCoreControl.ts

Lines changed: 54 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,11 @@ import {
196196
ListOauth2CredentialProvidersCommandInput,
197197
ListOauth2CredentialProvidersCommandOutput,
198198
} from "./commands/ListOauth2CredentialProvidersCommand";
199+
import {
200+
ListTagsForResourceCommand,
201+
ListTagsForResourceCommandInput,
202+
ListTagsForResourceCommandOutput,
203+
} from "./commands/ListTagsForResourceCommand";
199204
import {
200205
ListWorkloadIdentitiesCommand,
201206
ListWorkloadIdentitiesCommandInput,
@@ -206,6 +211,12 @@ import {
206211
SetTokenVaultCMKCommandInput,
207212
SetTokenVaultCMKCommandOutput,
208213
} from "./commands/SetTokenVaultCMKCommand";
214+
import { TagResourceCommand, TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
215+
import {
216+
UntagResourceCommand,
217+
UntagResourceCommandInput,
218+
UntagResourceCommandOutput,
219+
} from "./commands/UntagResourceCommand";
209220
import {
210221
UpdateAgentRuntimeCommand,
211222
UpdateAgentRuntimeCommandInput,
@@ -289,8 +300,11 @@ const commands = {
289300
ListGatewayTargetsCommand,
290301
ListMemoriesCommand,
291302
ListOauth2CredentialProvidersCommand,
303+
ListTagsForResourceCommand,
292304
ListWorkloadIdentitiesCommand,
293305
SetTokenVaultCMKCommand,
306+
TagResourceCommand,
307+
UntagResourceCommand,
294308
UpdateAgentRuntimeCommand,
295309
UpdateAgentRuntimeEndpointCommand,
296310
UpdateApiKeyCredentialProviderCommand,
@@ -926,6 +940,23 @@ export interface BedrockAgentCoreControl {
926940
cb: (err: any, data?: ListOauth2CredentialProvidersCommandOutput) => void
927941
): void;
928942

943+
/**
944+
* @see {@link ListTagsForResourceCommand}
945+
*/
946+
listTagsForResource(
947+
args: ListTagsForResourceCommandInput,
948+
options?: __HttpHandlerOptions
949+
): Promise<ListTagsForResourceCommandOutput>;
950+
listTagsForResource(
951+
args: ListTagsForResourceCommandInput,
952+
cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
953+
): void;
954+
listTagsForResource(
955+
args: ListTagsForResourceCommandInput,
956+
options: __HttpHandlerOptions,
957+
cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
958+
): void;
959+
929960
/**
930961
* @see {@link ListWorkloadIdentitiesCommand}
931962
*/
@@ -961,6 +992,28 @@ export interface BedrockAgentCoreControl {
961992
cb: (err: any, data?: SetTokenVaultCMKCommandOutput) => void
962993
): void;
963994

995+
/**
996+
* @see {@link TagResourceCommand}
997+
*/
998+
tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
999+
tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
1000+
tagResource(
1001+
args: TagResourceCommandInput,
1002+
options: __HttpHandlerOptions,
1003+
cb: (err: any, data?: TagResourceCommandOutput) => void
1004+
): void;
1005+
1006+
/**
1007+
* @see {@link UntagResourceCommand}
1008+
*/
1009+
untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
1010+
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
1011+
untagResource(
1012+
args: UntagResourceCommandInput,
1013+
options: __HttpHandlerOptions,
1014+
cb: (err: any, data?: UntagResourceCommandOutput) => void
1015+
): void;
1016+
9641017
/**
9651018
* @see {@link UpdateAgentRuntimeCommand}
9661019
*/
@@ -1087,7 +1140,7 @@ export interface BedrockAgentCoreControl {
10871140
}
10881141

10891142
/**
1090-
* <note> <p>Amazon Bedrock AgentCore is in preview release and is subject to change.</p> </note> <p>Amazon Bedrock Agent Core Control is a service that enables you to manage memory resources for your Amazon Bedrock agents.</p> <p>Use this API to create, retrieve, update, and delete memory resources and their associated memory strategies. Memory resources enable your agents to store and retrieve information from conversations and interactions.</p>
1143+
* <note> <p> is in preview release and is subject to change.</p> </note> <p>Welcome to the Amazon Bedrock AgentCore Control plane API reference. Control plane actions configure, create, modify, and monitor Amazon Web Services resources.</p>
10911144
* @public
10921145
*/
10931146
export class BedrockAgentCoreControl extends BedrockAgentCoreControlClient implements BedrockAgentCoreControl {}

clients/client-bedrock-agentcore-control/src/BedrockAgentCoreControlClient.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,11 +157,17 @@ import {
157157
ListOauth2CredentialProvidersCommandInput,
158158
ListOauth2CredentialProvidersCommandOutput,
159159
} from "./commands/ListOauth2CredentialProvidersCommand";
160+
import {
161+
ListTagsForResourceCommandInput,
162+
ListTagsForResourceCommandOutput,
163+
} from "./commands/ListTagsForResourceCommand";
160164
import {
161165
ListWorkloadIdentitiesCommandInput,
162166
ListWorkloadIdentitiesCommandOutput,
163167
} from "./commands/ListWorkloadIdentitiesCommand";
164168
import { SetTokenVaultCMKCommandInput, SetTokenVaultCMKCommandOutput } from "./commands/SetTokenVaultCMKCommand";
169+
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
170+
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
165171
import { UpdateAgentRuntimeCommandInput, UpdateAgentRuntimeCommandOutput } from "./commands/UpdateAgentRuntimeCommand";
166172
import {
167173
UpdateAgentRuntimeEndpointCommandInput,
@@ -241,8 +247,11 @@ export type ServiceInputTypes =
241247
| ListGatewaysCommandInput
242248
| ListMemoriesCommandInput
243249
| ListOauth2CredentialProvidersCommandInput
250+
| ListTagsForResourceCommandInput
244251
| ListWorkloadIdentitiesCommandInput
245252
| SetTokenVaultCMKCommandInput
253+
| TagResourceCommandInput
254+
| UntagResourceCommandInput
246255
| UpdateAgentRuntimeCommandInput
247256
| UpdateAgentRuntimeEndpointCommandInput
248257
| UpdateApiKeyCredentialProviderCommandInput
@@ -297,8 +306,11 @@ export type ServiceOutputTypes =
297306
| ListGatewaysCommandOutput
298307
| ListMemoriesCommandOutput
299308
| ListOauth2CredentialProvidersCommandOutput
309+
| ListTagsForResourceCommandOutput
300310
| ListWorkloadIdentitiesCommandOutput
301311
| SetTokenVaultCMKCommandOutput
312+
| TagResourceCommandOutput
313+
| UntagResourceCommandOutput
302314
| UpdateAgentRuntimeCommandOutput
303315
| UpdateAgentRuntimeEndpointCommandOutput
304316
| UpdateApiKeyCredentialProviderCommandOutput
@@ -499,7 +511,7 @@ export type BedrockAgentCoreControlClientResolvedConfigType = __SmithyResolvedCo
499511
export interface BedrockAgentCoreControlClientResolvedConfig extends BedrockAgentCoreControlClientResolvedConfigType {}
500512

501513
/**
502-
* <note> <p>Amazon Bedrock AgentCore is in preview release and is subject to change.</p> </note> <p>Amazon Bedrock Agent Core Control is a service that enables you to manage memory resources for your Amazon Bedrock agents.</p> <p>Use this API to create, retrieve, update, and delete memory resources and their associated memory strategies. Memory resources enable your agents to store and retrieve information from conversations and interactions.</p>
514+
* <note> <p> is in preview release and is subject to change.</p> </note> <p>Welcome to the Amazon Bedrock AgentCore Control plane API reference. Control plane actions configure, create, modify, and monitor Amazon Web Services resources.</p>
503515
* @public
504516
*/
505517
export class BedrockAgentCoreControlClient extends __Client<

clients/client-bedrock-agentcore-control/src/commands/CreateAgentRuntimeCommand.ts

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export interface CreateAgentRuntimeCommandInput extends CreateAgentRuntimeReques
3636
export interface CreateAgentRuntimeCommandOutput extends CreateAgentRuntimeResponse, __MetadataBearer {}
3737

3838
/**
39-
* <p>Creates an Amazon Secure Agent.</p>
39+
* <p>Creates an Amazon Bedrock AgentCore Runtime.</p>
4040
* @example
4141
* Use a bare-bones client and the command you need to make an API call.
4242
* ```javascript
@@ -48,14 +48,22 @@ export interface CreateAgentRuntimeCommandOutput extends CreateAgentRuntimeRespo
4848
* const input = { // CreateAgentRuntimeRequest
4949
* agentRuntimeName: "STRING_VALUE", // required
5050
* description: "STRING_VALUE",
51-
* agentRuntimeArtifact: { // AgentArtifact Union: only one key present
51+
* agentRuntimeArtifact: { // AgentRuntimeArtifact Union: only one key present
5252
* containerConfiguration: { // ContainerConfiguration
5353
* containerUri: "STRING_VALUE", // required
5454
* },
5555
* },
5656
* roleArn: "STRING_VALUE", // required
5757
* networkConfiguration: { // NetworkConfiguration
58-
* networkMode: "PUBLIC", // required
58+
* networkMode: "PUBLIC" || "VPC", // required
59+
* networkModeConfig: { // VpcConfig
60+
* securityGroups: [ // SecurityGroups // required
61+
* "STRING_VALUE",
62+
* ],
63+
* subnets: [ // Subnets // required
64+
* "STRING_VALUE",
65+
* ],
66+
* },
5967
* },
6068
* protocolConfiguration: { // ProtocolConfiguration
6169
* serverProtocol: "MCP" || "HTTP", // required
@@ -75,6 +83,14 @@ export interface CreateAgentRuntimeCommandOutput extends CreateAgentRuntimeRespo
7583
* ],
7684
* },
7785
* },
86+
* requestHeaderConfiguration: { // RequestHeaderConfiguration Union: only one key present
87+
* requestHeaderAllowlist: [ // RequestHeaderAllowlist
88+
* "STRING_VALUE",
89+
* ],
90+
* },
91+
* tags: { // TagsMap
92+
* "<keys>": "STRING_VALUE",
93+
* },
7894
* };
7995
* const command = new CreateAgentRuntimeCommand(input);
8096
* const response = await client.send(command);

clients/client-bedrock-agentcore-control/src/commands/CreateAgentRuntimeEndpointCommand.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export interface CreateAgentRuntimeEndpointCommandInput extends CreateAgentRunti
3636
export interface CreateAgentRuntimeEndpointCommandOutput extends CreateAgentRuntimeEndpointResponse, __MetadataBearer {}
3737

3838
/**
39-
* <p>Creates an Amazon Secure AgentEndpoint.</p>
39+
* <p>Creates an AgentCore Runtime endpoint.</p>
4040
* @example
4141
* Use a bare-bones client and the command you need to make an API call.
4242
* ```javascript
@@ -51,6 +51,9 @@ export interface CreateAgentRuntimeEndpointCommandOutput extends CreateAgentRunt
5151
* agentRuntimeVersion: "STRING_VALUE",
5252
* description: "STRING_VALUE",
5353
* clientToken: "STRING_VALUE",
54+
* tags: { // TagsMap
55+
* "<keys>": "STRING_VALUE",
56+
* },
5457
* };
5558
* const command = new CreateAgentRuntimeEndpointCommand(input);
5659
* const response = await client.send(command);

clients/client-bedrock-agentcore-control/src/commands/CreateBrowserCommand.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,15 @@ export interface CreateBrowserCommandOutput extends CreateBrowserResponse, __Met
5050
* description: "STRING_VALUE",
5151
* executionRoleArn: "STRING_VALUE",
5252
* networkConfiguration: { // BrowserNetworkConfiguration
53-
* networkMode: "PUBLIC", // required
53+
* networkMode: "PUBLIC" || "VPC", // required
54+
* vpcConfig: { // VpcConfig
55+
* securityGroups: [ // SecurityGroups // required
56+
* "STRING_VALUE",
57+
* ],
58+
* subnets: [ // Subnets // required
59+
* "STRING_VALUE",
60+
* ],
61+
* },
5462
* },
5563
* recording: { // RecordingConfig
5664
* enabled: true || false,
@@ -60,6 +68,9 @@ export interface CreateBrowserCommandOutput extends CreateBrowserResponse, __Met
6068
* },
6169
* },
6270
* clientToken: "STRING_VALUE",
71+
* tags: { // TagsMap
72+
* "<keys>": "STRING_VALUE",
73+
* },
6374
* };
6475
* const command = new CreateBrowserCommand(input);
6576
* const response = await client.send(command);

clients/client-bedrock-agentcore-control/src/commands/CreateCodeInterpreterCommand.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,20 @@ export interface CreateCodeInterpreterCommandOutput extends CreateCodeInterprete
5050
* description: "STRING_VALUE",
5151
* executionRoleArn: "STRING_VALUE",
5252
* networkConfiguration: { // CodeInterpreterNetworkConfiguration
53-
* networkMode: "PUBLIC" || "SANDBOX", // required
53+
* networkMode: "PUBLIC" || "SANDBOX" || "VPC", // required
54+
* vpcConfig: { // VpcConfig
55+
* securityGroups: [ // SecurityGroups // required
56+
* "STRING_VALUE",
57+
* ],
58+
* subnets: [ // Subnets // required
59+
* "STRING_VALUE",
60+
* ],
61+
* },
5462
* },
5563
* clientToken: "STRING_VALUE",
64+
* tags: { // TagsMap
65+
* "<keys>": "STRING_VALUE",
66+
* },
5667
* };
5768
* const command = new CreateCodeInterpreterCommand(input);
5869
* const response = await client.send(command);

clients/client-bedrock-agentcore-control/src/commands/CreateGatewayTargetCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export interface CreateGatewayTargetCommandInput extends CreateGatewayTargetRequ
3737
export interface CreateGatewayTargetCommandOutput extends CreateGatewayTargetResponse, __MetadataBearer {}
3838

3939
/**
40-
* <p>Creates a target for a gateway. A target defines an endpoint that the gateway can connect to.</p> <p>To create a target, you must specify the gateway identifier and target configuration.</p>
40+
* <p>Creates a target for a gateway. A target defines an endpoint that the gateway can connect to.</p>
4141
* @example
4242
* Use a bare-bones client and the command you need to make an API call.
4343
* ```javascript

clients/client-bedrock-agentcore-control/src/commands/CreateMemoryCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export interface CreateMemoryCommandInput extends CreateMemoryInput {}
3737
export interface CreateMemoryCommandOutput extends CreateMemoryOutput, __MetadataBearer {}
3838

3939
/**
40-
* <p>Creates a new memory.</p>
40+
* <p>Creates a new Amazon Bedrock AgentCore Memory resource.</p>
4141
* @example
4242
* Use a bare-bones client and the command you need to make an API call.
4343
* ```javascript

clients/client-bedrock-agentcore-control/src/commands/DeleteAgentRuntimeCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export interface DeleteAgentRuntimeCommandInput extends DeleteAgentRuntimeReques
3232
export interface DeleteAgentRuntimeCommandOutput extends DeleteAgentRuntimeResponse, __MetadataBearer {}
3333

3434
/**
35-
* <p>Deletes an Amazon Secure Agent.</p>
35+
* <p>Deletes an Amazon Bedrock AgentCore Runtime.</p>
3636
* @example
3737
* Use a bare-bones client and the command you need to make an API call.
3838
* ```javascript

0 commit comments

Comments
 (0)