Skip to content

Commit a494454

Browse files
author
awstools
committed
feat(client-bedrock-agentcore-control): Support Browser profile persistence (cookies and local storage) across sessions for AgentCore Browser.
1 parent 0e72d32 commit a494454

24 files changed

Lines changed: 2126 additions & 447 deletions

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

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,13 @@ CreateBrowser
229229
</details>
230230
<details>
231231
<summary>
232+
CreateBrowserProfile
233+
</summary>
234+
235+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agentcore-control/command/CreateBrowserProfileCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agentcore-control/Interface/CreateBrowserProfileCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agentcore-control/Interface/CreateBrowserProfileCommandOutput/)
236+
</details>
237+
<details>
238+
<summary>
232239
CreateCodeInterpreter
233240
</summary>
234241

@@ -327,6 +334,13 @@ DeleteBrowser
327334
</details>
328335
<details>
329336
<summary>
337+
DeleteBrowserProfile
338+
</summary>
339+
340+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agentcore-control/command/DeleteBrowserProfileCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agentcore-control/Interface/DeleteBrowserProfileCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agentcore-control/Interface/DeleteBrowserProfileCommandOutput/)
341+
</details>
342+
<details>
343+
<summary>
330344
DeleteCodeInterpreter
331345
</summary>
332346

@@ -432,6 +446,13 @@ GetBrowser
432446
</details>
433447
<details>
434448
<summary>
449+
GetBrowserProfile
450+
</summary>
451+
452+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agentcore-control/command/GetBrowserProfileCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agentcore-control/Interface/GetBrowserProfileCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agentcore-control/Interface/GetBrowserProfileCommandOutput/)
453+
</details>
454+
<details>
455+
<summary>
435456
GetCodeInterpreter
436457
</summary>
437458

@@ -551,6 +572,13 @@ ListApiKeyCredentialProviders
551572
</details>
552573
<details>
553574
<summary>
575+
ListBrowserProfiles
576+
</summary>
577+
578+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agentcore-control/command/ListBrowserProfilesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agentcore-control/Interface/ListBrowserProfilesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agentcore-control/Interface/ListBrowserProfilesCommandOutput/)
579+
</details>
580+
<details>
581+
<summary>
554582
ListBrowsers
555583
</summary>
556584

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

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ import {
2929
CreateBrowserCommandInput,
3030
CreateBrowserCommandOutput,
3131
} from "./commands/CreateBrowserCommand";
32+
import {
33+
CreateBrowserProfileCommand,
34+
CreateBrowserProfileCommandInput,
35+
CreateBrowserProfileCommandOutput,
36+
} from "./commands/CreateBrowserProfileCommand";
3237
import {
3338
CreateCodeInterpreterCommand,
3439
CreateCodeInterpreterCommandInput,
@@ -99,6 +104,11 @@ import {
99104
DeleteBrowserCommandInput,
100105
DeleteBrowserCommandOutput,
101106
} from "./commands/DeleteBrowserCommand";
107+
import {
108+
DeleteBrowserProfileCommand,
109+
DeleteBrowserProfileCommandInput,
110+
DeleteBrowserProfileCommandOutput,
111+
} from "./commands/DeleteBrowserProfileCommand";
102112
import {
103113
DeleteCodeInterpreterCommand,
104114
DeleteCodeInterpreterCommandInput,
@@ -170,6 +180,11 @@ import {
170180
GetApiKeyCredentialProviderCommandOutput,
171181
} from "./commands/GetApiKeyCredentialProviderCommand";
172182
import { GetBrowserCommand, GetBrowserCommandInput, GetBrowserCommandOutput } from "./commands/GetBrowserCommand";
183+
import {
184+
GetBrowserProfileCommand,
185+
GetBrowserProfileCommandInput,
186+
GetBrowserProfileCommandOutput,
187+
} from "./commands/GetBrowserProfileCommand";
173188
import {
174189
GetCodeInterpreterCommand,
175190
GetCodeInterpreterCommandInput,
@@ -243,6 +258,11 @@ import {
243258
ListApiKeyCredentialProvidersCommandInput,
244259
ListApiKeyCredentialProvidersCommandOutput,
245260
} from "./commands/ListApiKeyCredentialProvidersCommand";
261+
import {
262+
ListBrowserProfilesCommand,
263+
ListBrowserProfilesCommandInput,
264+
ListBrowserProfilesCommandOutput,
265+
} from "./commands/ListBrowserProfilesCommand";
246266
import {
247267
ListBrowsersCommand,
248268
ListBrowsersCommandInput,
@@ -403,6 +423,7 @@ import { paginateListAgentRuntimeEndpoints } from "./pagination/ListAgentRuntime
403423
import { paginateListAgentRuntimes } from "./pagination/ListAgentRuntimesPaginator";
404424
import { paginateListAgentRuntimeVersions } from "./pagination/ListAgentRuntimeVersionsPaginator";
405425
import { paginateListApiKeyCredentialProviders } from "./pagination/ListApiKeyCredentialProvidersPaginator";
426+
import { paginateListBrowserProfiles } from "./pagination/ListBrowserProfilesPaginator";
406427
import { paginateListBrowsers } from "./pagination/ListBrowsersPaginator";
407428
import { paginateListCodeInterpreters } from "./pagination/ListCodeInterpretersPaginator";
408429
import { paginateListEvaluators } from "./pagination/ListEvaluatorsPaginator";
@@ -428,6 +449,7 @@ const commands = {
428449
CreateAgentRuntimeEndpointCommand,
429450
CreateApiKeyCredentialProviderCommand,
430451
CreateBrowserCommand,
452+
CreateBrowserProfileCommand,
431453
CreateCodeInterpreterCommand,
432454
CreateEvaluatorCommand,
433455
CreateGatewayCommand,
@@ -442,6 +464,7 @@ const commands = {
442464
DeleteAgentRuntimeEndpointCommand,
443465
DeleteApiKeyCredentialProviderCommand,
444466
DeleteBrowserCommand,
467+
DeleteBrowserProfileCommand,
445468
DeleteCodeInterpreterCommand,
446469
DeleteEvaluatorCommand,
447470
DeleteGatewayCommand,
@@ -457,6 +480,7 @@ const commands = {
457480
GetAgentRuntimeEndpointCommand,
458481
GetApiKeyCredentialProviderCommand,
459482
GetBrowserCommand,
483+
GetBrowserProfileCommand,
460484
GetCodeInterpreterCommand,
461485
GetEvaluatorCommand,
462486
GetGatewayCommand,
@@ -474,6 +498,7 @@ const commands = {
474498
ListAgentRuntimesCommand,
475499
ListAgentRuntimeVersionsCommand,
476500
ListApiKeyCredentialProvidersCommand,
501+
ListBrowserProfilesCommand,
477502
ListBrowsersCommand,
478503
ListCodeInterpretersCommand,
479504
ListEvaluatorsCommand,
@@ -512,6 +537,7 @@ const paginators = {
512537
paginateListAgentRuntimes,
513538
paginateListAgentRuntimeVersions,
514539
paginateListApiKeyCredentialProviders,
540+
paginateListBrowserProfiles,
515541
paginateListBrowsers,
516542
paginateListCodeInterpreters,
517543
paginateListEvaluators,
@@ -604,6 +630,23 @@ export interface BedrockAgentCoreControl {
604630
cb: (err: any, data?: CreateBrowserCommandOutput) => void
605631
): void;
606632

633+
/**
634+
* @see {@link CreateBrowserProfileCommand}
635+
*/
636+
createBrowserProfile(
637+
args: CreateBrowserProfileCommandInput,
638+
options?: __HttpHandlerOptions
639+
): Promise<CreateBrowserProfileCommandOutput>;
640+
createBrowserProfile(
641+
args: CreateBrowserProfileCommandInput,
642+
cb: (err: any, data?: CreateBrowserProfileCommandOutput) => void
643+
): void;
644+
createBrowserProfile(
645+
args: CreateBrowserProfileCommandInput,
646+
options: __HttpHandlerOptions,
647+
cb: (err: any, data?: CreateBrowserProfileCommandOutput) => void
648+
): void;
649+
607650
/**
608651
* @see {@link CreateCodeInterpreterCommand}
609652
*/
@@ -842,6 +885,23 @@ export interface BedrockAgentCoreControl {
842885
cb: (err: any, data?: DeleteBrowserCommandOutput) => void
843886
): void;
844887

888+
/**
889+
* @see {@link DeleteBrowserProfileCommand}
890+
*/
891+
deleteBrowserProfile(
892+
args: DeleteBrowserProfileCommandInput,
893+
options?: __HttpHandlerOptions
894+
): Promise<DeleteBrowserProfileCommandOutput>;
895+
deleteBrowserProfile(
896+
args: DeleteBrowserProfileCommandInput,
897+
cb: (err: any, data?: DeleteBrowserProfileCommandOutput) => void
898+
): void;
899+
deleteBrowserProfile(
900+
args: DeleteBrowserProfileCommandInput,
901+
options: __HttpHandlerOptions,
902+
cb: (err: any, data?: DeleteBrowserProfileCommandOutput) => void
903+
): void;
904+
845905
/**
846906
* @see {@link DeleteCodeInterpreterCommand}
847907
*/
@@ -1097,6 +1157,23 @@ export interface BedrockAgentCoreControl {
10971157
cb: (err: any, data?: GetBrowserCommandOutput) => void
10981158
): void;
10991159

1160+
/**
1161+
* @see {@link GetBrowserProfileCommand}
1162+
*/
1163+
getBrowserProfile(
1164+
args: GetBrowserProfileCommandInput,
1165+
options?: __HttpHandlerOptions
1166+
): Promise<GetBrowserProfileCommandOutput>;
1167+
getBrowserProfile(
1168+
args: GetBrowserProfileCommandInput,
1169+
cb: (err: any, data?: GetBrowserProfileCommandOutput) => void
1170+
): void;
1171+
getBrowserProfile(
1172+
args: GetBrowserProfileCommandInput,
1173+
options: __HttpHandlerOptions,
1174+
cb: (err: any, data?: GetBrowserProfileCommandOutput) => void
1175+
): void;
1176+
11001177
/**
11011178
* @see {@link GetCodeInterpreterCommand}
11021179
*/
@@ -1389,6 +1466,24 @@ export interface BedrockAgentCoreControl {
13891466
cb: (err: any, data?: ListApiKeyCredentialProvidersCommandOutput) => void
13901467
): void;
13911468

1469+
/**
1470+
* @see {@link ListBrowserProfilesCommand}
1471+
*/
1472+
listBrowserProfiles(): Promise<ListBrowserProfilesCommandOutput>;
1473+
listBrowserProfiles(
1474+
args: ListBrowserProfilesCommandInput,
1475+
options?: __HttpHandlerOptions
1476+
): Promise<ListBrowserProfilesCommandOutput>;
1477+
listBrowserProfiles(
1478+
args: ListBrowserProfilesCommandInput,
1479+
cb: (err: any, data?: ListBrowserProfilesCommandOutput) => void
1480+
): void;
1481+
listBrowserProfiles(
1482+
args: ListBrowserProfilesCommandInput,
1483+
options: __HttpHandlerOptions,
1484+
cb: (err: any, data?: ListBrowserProfilesCommandOutput) => void
1485+
): void;
1486+
13921487
/**
13931488
* @see {@link ListBrowsersCommand}
13941489
*/
@@ -1986,6 +2081,17 @@ export interface BedrockAgentCoreControl {
19862081
paginationConfig?: Omit<PaginationConfiguration, "client">
19872082
): Paginator<ListApiKeyCredentialProvidersCommandOutput>;
19882083

2084+
/**
2085+
* @see {@link ListBrowserProfilesCommand}
2086+
* @param args - command input.
2087+
* @param paginationConfig - optional pagination config.
2088+
* @returns AsyncIterable of {@link ListBrowserProfilesCommandOutput}.
2089+
*/
2090+
paginateListBrowserProfiles(
2091+
args?: ListBrowserProfilesCommandInput,
2092+
paginationConfig?: Omit<PaginationConfiguration, "client">
2093+
): Paginator<ListBrowserProfilesCommandOutput>;
2094+
19892095
/**
19902096
* @see {@link ListBrowsersCommand}
19912097
* @param args - command input.

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

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ import {
7373
CreateApiKeyCredentialProviderCommandOutput,
7474
} from "./commands/CreateApiKeyCredentialProviderCommand";
7575
import { CreateBrowserCommandInput, CreateBrowserCommandOutput } from "./commands/CreateBrowserCommand";
76+
import {
77+
CreateBrowserProfileCommandInput,
78+
CreateBrowserProfileCommandOutput,
79+
} from "./commands/CreateBrowserProfileCommand";
7680
import {
7781
CreateCodeInterpreterCommandInput,
7882
CreateCodeInterpreterCommandOutput,
@@ -108,6 +112,10 @@ import {
108112
DeleteApiKeyCredentialProviderCommandOutput,
109113
} from "./commands/DeleteApiKeyCredentialProviderCommand";
110114
import { DeleteBrowserCommandInput, DeleteBrowserCommandOutput } from "./commands/DeleteBrowserCommand";
115+
import {
116+
DeleteBrowserProfileCommandInput,
117+
DeleteBrowserProfileCommandOutput,
118+
} from "./commands/DeleteBrowserProfileCommand";
111119
import {
112120
DeleteCodeInterpreterCommandInput,
113121
DeleteCodeInterpreterCommandOutput,
@@ -147,6 +155,7 @@ import {
147155
GetApiKeyCredentialProviderCommandOutput,
148156
} from "./commands/GetApiKeyCredentialProviderCommand";
149157
import { GetBrowserCommandInput, GetBrowserCommandOutput } from "./commands/GetBrowserCommand";
158+
import { GetBrowserProfileCommandInput, GetBrowserProfileCommandOutput } from "./commands/GetBrowserProfileCommand";
150159
import { GetCodeInterpreterCommandInput, GetCodeInterpreterCommandOutput } from "./commands/GetCodeInterpreterCommand";
151160
import { GetEvaluatorCommandInput, GetEvaluatorCommandOutput } from "./commands/GetEvaluatorCommand";
152161
import { GetGatewayCommandInput, GetGatewayCommandOutput } from "./commands/GetGatewayCommand";
@@ -185,6 +194,10 @@ import {
185194
ListApiKeyCredentialProvidersCommandInput,
186195
ListApiKeyCredentialProvidersCommandOutput,
187196
} from "./commands/ListApiKeyCredentialProvidersCommand";
197+
import {
198+
ListBrowserProfilesCommandInput,
199+
ListBrowserProfilesCommandOutput,
200+
} from "./commands/ListBrowserProfilesCommand";
188201
import { ListBrowsersCommandInput, ListBrowsersCommandOutput } from "./commands/ListBrowsersCommand";
189202
import {
190203
ListCodeInterpretersCommandInput,
@@ -281,6 +294,7 @@ export type ServiceInputTypes =
281294
| CreateAgentRuntimeEndpointCommandInput
282295
| CreateApiKeyCredentialProviderCommandInput
283296
| CreateBrowserCommandInput
297+
| CreateBrowserProfileCommandInput
284298
| CreateCodeInterpreterCommandInput
285299
| CreateEvaluatorCommandInput
286300
| CreateGatewayCommandInput
@@ -295,6 +309,7 @@ export type ServiceInputTypes =
295309
| DeleteAgentRuntimeEndpointCommandInput
296310
| DeleteApiKeyCredentialProviderCommandInput
297311
| DeleteBrowserCommandInput
312+
| DeleteBrowserProfileCommandInput
298313
| DeleteCodeInterpreterCommandInput
299314
| DeleteEvaluatorCommandInput
300315
| DeleteGatewayCommandInput
@@ -310,6 +325,7 @@ export type ServiceInputTypes =
310325
| GetAgentRuntimeEndpointCommandInput
311326
| GetApiKeyCredentialProviderCommandInput
312327
| GetBrowserCommandInput
328+
| GetBrowserProfileCommandInput
313329
| GetCodeInterpreterCommandInput
314330
| GetEvaluatorCommandInput
315331
| GetGatewayCommandInput
@@ -327,6 +343,7 @@ export type ServiceInputTypes =
327343
| ListAgentRuntimeVersionsCommandInput
328344
| ListAgentRuntimesCommandInput
329345
| ListApiKeyCredentialProvidersCommandInput
346+
| ListBrowserProfilesCommandInput
330347
| ListBrowsersCommandInput
331348
| ListCodeInterpretersCommandInput
332349
| ListEvaluatorsCommandInput
@@ -368,6 +385,7 @@ export type ServiceOutputTypes =
368385
| CreateAgentRuntimeEndpointCommandOutput
369386
| CreateApiKeyCredentialProviderCommandOutput
370387
| CreateBrowserCommandOutput
388+
| CreateBrowserProfileCommandOutput
371389
| CreateCodeInterpreterCommandOutput
372390
| CreateEvaluatorCommandOutput
373391
| CreateGatewayCommandOutput
@@ -382,6 +400,7 @@ export type ServiceOutputTypes =
382400
| DeleteAgentRuntimeEndpointCommandOutput
383401
| DeleteApiKeyCredentialProviderCommandOutput
384402
| DeleteBrowserCommandOutput
403+
| DeleteBrowserProfileCommandOutput
385404
| DeleteCodeInterpreterCommandOutput
386405
| DeleteEvaluatorCommandOutput
387406
| DeleteGatewayCommandOutput
@@ -397,6 +416,7 @@ export type ServiceOutputTypes =
397416
| GetAgentRuntimeEndpointCommandOutput
398417
| GetApiKeyCredentialProviderCommandOutput
399418
| GetBrowserCommandOutput
419+
| GetBrowserProfileCommandOutput
400420
| GetCodeInterpreterCommandOutput
401421
| GetEvaluatorCommandOutput
402422
| GetGatewayCommandOutput
@@ -414,6 +434,7 @@ export type ServiceOutputTypes =
414434
| ListAgentRuntimeVersionsCommandOutput
415435
| ListAgentRuntimesCommandOutput
416436
| ListApiKeyCredentialProvidersCommandOutput
437+
| ListBrowserProfilesCommandOutput
417438
| ListBrowsersCommandOutput
418439
| ListCodeInterpretersCommandOutput
419440
| ListEvaluatorsCommandOutput

0 commit comments

Comments
 (0)