Skip to content

Commit 072c9ff

Browse files
author
awstools
committed
feat(client-bedrock-agentcore-control): Supports AgentCore Evaluations, Policy, Episodic Memory Strategy, Resource Based Policy for Runtime and Gateway APIs, API Gateway Rest API Targets and enhances JWT authorizer.
1 parent 57bdac0 commit 072c9ff

File tree

72 files changed

+22388
-6030
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+22388
-6030
lines changed

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

Lines changed: 216 additions & 0 deletions
Large diffs are not rendered by default.

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

Lines changed: 569 additions & 0 deletions
Large diffs are not rendered by default.

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

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ import {
7171
CreateCodeInterpreterCommandInput,
7272
CreateCodeInterpreterCommandOutput,
7373
} from "./commands/CreateCodeInterpreterCommand";
74+
import { CreateEvaluatorCommandInput, CreateEvaluatorCommandOutput } from "./commands/CreateEvaluatorCommand";
7475
import { CreateGatewayCommandInput, CreateGatewayCommandOutput } from "./commands/CreateGatewayCommand";
7576
import {
7677
CreateGatewayTargetCommandInput,
@@ -81,6 +82,12 @@ import {
8182
CreateOauth2CredentialProviderCommandInput,
8283
CreateOauth2CredentialProviderCommandOutput,
8384
} from "./commands/CreateOauth2CredentialProviderCommand";
85+
import {
86+
CreateOnlineEvaluationConfigCommandInput,
87+
CreateOnlineEvaluationConfigCommandOutput,
88+
} from "./commands/CreateOnlineEvaluationConfigCommand";
89+
import { CreatePolicyCommandInput, CreatePolicyCommandOutput } from "./commands/CreatePolicyCommand";
90+
import { CreatePolicyEngineCommandInput, CreatePolicyEngineCommandOutput } from "./commands/CreatePolicyEngineCommand";
8491
import {
8592
CreateWorkloadIdentityCommandInput,
8693
CreateWorkloadIdentityCommandOutput,
@@ -99,6 +106,7 @@ import {
99106
DeleteCodeInterpreterCommandInput,
100107
DeleteCodeInterpreterCommandOutput,
101108
} from "./commands/DeleteCodeInterpreterCommand";
109+
import { DeleteEvaluatorCommandInput, DeleteEvaluatorCommandOutput } from "./commands/DeleteEvaluatorCommand";
102110
import { DeleteGatewayCommandInput, DeleteGatewayCommandOutput } from "./commands/DeleteGatewayCommand";
103111
import {
104112
DeleteGatewayTargetCommandInput,
@@ -109,6 +117,16 @@ import {
109117
DeleteOauth2CredentialProviderCommandInput,
110118
DeleteOauth2CredentialProviderCommandOutput,
111119
} from "./commands/DeleteOauth2CredentialProviderCommand";
120+
import {
121+
DeleteOnlineEvaluationConfigCommandInput,
122+
DeleteOnlineEvaluationConfigCommandOutput,
123+
} from "./commands/DeleteOnlineEvaluationConfigCommand";
124+
import { DeletePolicyCommandInput, DeletePolicyCommandOutput } from "./commands/DeletePolicyCommand";
125+
import { DeletePolicyEngineCommandInput, DeletePolicyEngineCommandOutput } from "./commands/DeletePolicyEngineCommand";
126+
import {
127+
DeleteResourcePolicyCommandInput,
128+
DeleteResourcePolicyCommandOutput,
129+
} from "./commands/DeleteResourcePolicyCommand";
112130
import {
113131
DeleteWorkloadIdentityCommandInput,
114132
DeleteWorkloadIdentityCommandOutput,
@@ -124,13 +142,25 @@ import {
124142
} from "./commands/GetApiKeyCredentialProviderCommand";
125143
import { GetBrowserCommandInput, GetBrowserCommandOutput } from "./commands/GetBrowserCommand";
126144
import { GetCodeInterpreterCommandInput, GetCodeInterpreterCommandOutput } from "./commands/GetCodeInterpreterCommand";
145+
import { GetEvaluatorCommandInput, GetEvaluatorCommandOutput } from "./commands/GetEvaluatorCommand";
127146
import { GetGatewayCommandInput, GetGatewayCommandOutput } from "./commands/GetGatewayCommand";
128147
import { GetGatewayTargetCommandInput, GetGatewayTargetCommandOutput } from "./commands/GetGatewayTargetCommand";
129148
import { GetMemoryCommandInput, GetMemoryCommandOutput } from "./commands/GetMemoryCommand";
130149
import {
131150
GetOauth2CredentialProviderCommandInput,
132151
GetOauth2CredentialProviderCommandOutput,
133152
} from "./commands/GetOauth2CredentialProviderCommand";
153+
import {
154+
GetOnlineEvaluationConfigCommandInput,
155+
GetOnlineEvaluationConfigCommandOutput,
156+
} from "./commands/GetOnlineEvaluationConfigCommand";
157+
import { GetPolicyCommandInput, GetPolicyCommandOutput } from "./commands/GetPolicyCommand";
158+
import { GetPolicyEngineCommandInput, GetPolicyEngineCommandOutput } from "./commands/GetPolicyEngineCommand";
159+
import {
160+
GetPolicyGenerationCommandInput,
161+
GetPolicyGenerationCommandOutput,
162+
} from "./commands/GetPolicyGenerationCommand";
163+
import { GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput } from "./commands/GetResourcePolicyCommand";
134164
import { GetTokenVaultCommandInput, GetTokenVaultCommandOutput } from "./commands/GetTokenVaultCommand";
135165
import {
136166
GetWorkloadIdentityCommandInput,
@@ -154,13 +184,28 @@ import {
154184
ListCodeInterpretersCommandInput,
155185
ListCodeInterpretersCommandOutput,
156186
} from "./commands/ListCodeInterpretersCommand";
187+
import { ListEvaluatorsCommandInput, ListEvaluatorsCommandOutput } from "./commands/ListEvaluatorsCommand";
157188
import { ListGatewaysCommandInput, ListGatewaysCommandOutput } from "./commands/ListGatewaysCommand";
158189
import { ListGatewayTargetsCommandInput, ListGatewayTargetsCommandOutput } from "./commands/ListGatewayTargetsCommand";
159190
import { ListMemoriesCommandInput, ListMemoriesCommandOutput } from "./commands/ListMemoriesCommand";
160191
import {
161192
ListOauth2CredentialProvidersCommandInput,
162193
ListOauth2CredentialProvidersCommandOutput,
163194
} from "./commands/ListOauth2CredentialProvidersCommand";
195+
import {
196+
ListOnlineEvaluationConfigsCommandInput,
197+
ListOnlineEvaluationConfigsCommandOutput,
198+
} from "./commands/ListOnlineEvaluationConfigsCommand";
199+
import { ListPoliciesCommandInput, ListPoliciesCommandOutput } from "./commands/ListPoliciesCommand";
200+
import { ListPolicyEnginesCommandInput, ListPolicyEnginesCommandOutput } from "./commands/ListPolicyEnginesCommand";
201+
import {
202+
ListPolicyGenerationAssetsCommandInput,
203+
ListPolicyGenerationAssetsCommandOutput,
204+
} from "./commands/ListPolicyGenerationAssetsCommand";
205+
import {
206+
ListPolicyGenerationsCommandInput,
207+
ListPolicyGenerationsCommandOutput,
208+
} from "./commands/ListPolicyGenerationsCommand";
164209
import {
165210
ListTagsForResourceCommandInput,
166211
ListTagsForResourceCommandOutput,
@@ -169,7 +214,12 @@ import {
169214
ListWorkloadIdentitiesCommandInput,
170215
ListWorkloadIdentitiesCommandOutput,
171216
} from "./commands/ListWorkloadIdentitiesCommand";
217+
import { PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput } from "./commands/PutResourcePolicyCommand";
172218
import { SetTokenVaultCMKCommandInput, SetTokenVaultCMKCommandOutput } from "./commands/SetTokenVaultCMKCommand";
219+
import {
220+
StartPolicyGenerationCommandInput,
221+
StartPolicyGenerationCommandOutput,
222+
} from "./commands/StartPolicyGenerationCommand";
173223
import {
174224
SynchronizeGatewayTargetsCommandInput,
175225
SynchronizeGatewayTargetsCommandOutput,
@@ -185,6 +235,7 @@ import {
185235
UpdateApiKeyCredentialProviderCommandInput,
186236
UpdateApiKeyCredentialProviderCommandOutput,
187237
} from "./commands/UpdateApiKeyCredentialProviderCommand";
238+
import { UpdateEvaluatorCommandInput, UpdateEvaluatorCommandOutput } from "./commands/UpdateEvaluatorCommand";
188239
import { UpdateGatewayCommandInput, UpdateGatewayCommandOutput } from "./commands/UpdateGatewayCommand";
189240
import {
190241
UpdateGatewayTargetCommandInput,
@@ -195,6 +246,12 @@ import {
195246
UpdateOauth2CredentialProviderCommandInput,
196247
UpdateOauth2CredentialProviderCommandOutput,
197248
} from "./commands/UpdateOauth2CredentialProviderCommand";
249+
import {
250+
UpdateOnlineEvaluationConfigCommandInput,
251+
UpdateOnlineEvaluationConfigCommandOutput,
252+
} from "./commands/UpdateOnlineEvaluationConfigCommand";
253+
import { UpdatePolicyCommandInput, UpdatePolicyCommandOutput } from "./commands/UpdatePolicyCommand";
254+
import { UpdatePolicyEngineCommandInput, UpdatePolicyEngineCommandOutput } from "./commands/UpdatePolicyEngineCommand";
198255
import {
199256
UpdateWorkloadIdentityCommandInput,
200257
UpdateWorkloadIdentityCommandOutput,
@@ -219,30 +276,45 @@ export type ServiceInputTypes =
219276
| CreateApiKeyCredentialProviderCommandInput
220277
| CreateBrowserCommandInput
221278
| CreateCodeInterpreterCommandInput
279+
| CreateEvaluatorCommandInput
222280
| CreateGatewayCommandInput
223281
| CreateGatewayTargetCommandInput
224282
| CreateMemoryCommandInput
225283
| CreateOauth2CredentialProviderCommandInput
284+
| CreateOnlineEvaluationConfigCommandInput
285+
| CreatePolicyCommandInput
286+
| CreatePolicyEngineCommandInput
226287
| CreateWorkloadIdentityCommandInput
227288
| DeleteAgentRuntimeCommandInput
228289
| DeleteAgentRuntimeEndpointCommandInput
229290
| DeleteApiKeyCredentialProviderCommandInput
230291
| DeleteBrowserCommandInput
231292
| DeleteCodeInterpreterCommandInput
293+
| DeleteEvaluatorCommandInput
232294
| DeleteGatewayCommandInput
233295
| DeleteGatewayTargetCommandInput
234296
| DeleteMemoryCommandInput
235297
| DeleteOauth2CredentialProviderCommandInput
298+
| DeleteOnlineEvaluationConfigCommandInput
299+
| DeletePolicyCommandInput
300+
| DeletePolicyEngineCommandInput
301+
| DeleteResourcePolicyCommandInput
236302
| DeleteWorkloadIdentityCommandInput
237303
| GetAgentRuntimeCommandInput
238304
| GetAgentRuntimeEndpointCommandInput
239305
| GetApiKeyCredentialProviderCommandInput
240306
| GetBrowserCommandInput
241307
| GetCodeInterpreterCommandInput
308+
| GetEvaluatorCommandInput
242309
| GetGatewayCommandInput
243310
| GetGatewayTargetCommandInput
244311
| GetMemoryCommandInput
245312
| GetOauth2CredentialProviderCommandInput
313+
| GetOnlineEvaluationConfigCommandInput
314+
| GetPolicyCommandInput
315+
| GetPolicyEngineCommandInput
316+
| GetPolicyGenerationCommandInput
317+
| GetResourcePolicyCommandInput
246318
| GetTokenVaultCommandInput
247319
| GetWorkloadIdentityCommandInput
248320
| ListAgentRuntimeEndpointsCommandInput
@@ -251,23 +323,35 @@ export type ServiceInputTypes =
251323
| ListApiKeyCredentialProvidersCommandInput
252324
| ListBrowsersCommandInput
253325
| ListCodeInterpretersCommandInput
326+
| ListEvaluatorsCommandInput
254327
| ListGatewayTargetsCommandInput
255328
| ListGatewaysCommandInput
256329
| ListMemoriesCommandInput
257330
| ListOauth2CredentialProvidersCommandInput
331+
| ListOnlineEvaluationConfigsCommandInput
332+
| ListPoliciesCommandInput
333+
| ListPolicyEnginesCommandInput
334+
| ListPolicyGenerationAssetsCommandInput
335+
| ListPolicyGenerationsCommandInput
258336
| ListTagsForResourceCommandInput
259337
| ListWorkloadIdentitiesCommandInput
338+
| PutResourcePolicyCommandInput
260339
| SetTokenVaultCMKCommandInput
340+
| StartPolicyGenerationCommandInput
261341
| SynchronizeGatewayTargetsCommandInput
262342
| TagResourceCommandInput
263343
| UntagResourceCommandInput
264344
| UpdateAgentRuntimeCommandInput
265345
| UpdateAgentRuntimeEndpointCommandInput
266346
| UpdateApiKeyCredentialProviderCommandInput
347+
| UpdateEvaluatorCommandInput
267348
| UpdateGatewayCommandInput
268349
| UpdateGatewayTargetCommandInput
269350
| UpdateMemoryCommandInput
270351
| UpdateOauth2CredentialProviderCommandInput
352+
| UpdateOnlineEvaluationConfigCommandInput
353+
| UpdatePolicyCommandInput
354+
| UpdatePolicyEngineCommandInput
271355
| UpdateWorkloadIdentityCommandInput;
272356

273357
/**
@@ -279,30 +363,45 @@ export type ServiceOutputTypes =
279363
| CreateApiKeyCredentialProviderCommandOutput
280364
| CreateBrowserCommandOutput
281365
| CreateCodeInterpreterCommandOutput
366+
| CreateEvaluatorCommandOutput
282367
| CreateGatewayCommandOutput
283368
| CreateGatewayTargetCommandOutput
284369
| CreateMemoryCommandOutput
285370
| CreateOauth2CredentialProviderCommandOutput
371+
| CreateOnlineEvaluationConfigCommandOutput
372+
| CreatePolicyCommandOutput
373+
| CreatePolicyEngineCommandOutput
286374
| CreateWorkloadIdentityCommandOutput
287375
| DeleteAgentRuntimeCommandOutput
288376
| DeleteAgentRuntimeEndpointCommandOutput
289377
| DeleteApiKeyCredentialProviderCommandOutput
290378
| DeleteBrowserCommandOutput
291379
| DeleteCodeInterpreterCommandOutput
380+
| DeleteEvaluatorCommandOutput
292381
| DeleteGatewayCommandOutput
293382
| DeleteGatewayTargetCommandOutput
294383
| DeleteMemoryCommandOutput
295384
| DeleteOauth2CredentialProviderCommandOutput
385+
| DeleteOnlineEvaluationConfigCommandOutput
386+
| DeletePolicyCommandOutput
387+
| DeletePolicyEngineCommandOutput
388+
| DeleteResourcePolicyCommandOutput
296389
| DeleteWorkloadIdentityCommandOutput
297390
| GetAgentRuntimeCommandOutput
298391
| GetAgentRuntimeEndpointCommandOutput
299392
| GetApiKeyCredentialProviderCommandOutput
300393
| GetBrowserCommandOutput
301394
| GetCodeInterpreterCommandOutput
395+
| GetEvaluatorCommandOutput
302396
| GetGatewayCommandOutput
303397
| GetGatewayTargetCommandOutput
304398
| GetMemoryCommandOutput
305399
| GetOauth2CredentialProviderCommandOutput
400+
| GetOnlineEvaluationConfigCommandOutput
401+
| GetPolicyCommandOutput
402+
| GetPolicyEngineCommandOutput
403+
| GetPolicyGenerationCommandOutput
404+
| GetResourcePolicyCommandOutput
306405
| GetTokenVaultCommandOutput
307406
| GetWorkloadIdentityCommandOutput
308407
| ListAgentRuntimeEndpointsCommandOutput
@@ -311,23 +410,35 @@ export type ServiceOutputTypes =
311410
| ListApiKeyCredentialProvidersCommandOutput
312411
| ListBrowsersCommandOutput
313412
| ListCodeInterpretersCommandOutput
413+
| ListEvaluatorsCommandOutput
314414
| ListGatewayTargetsCommandOutput
315415
| ListGatewaysCommandOutput
316416
| ListMemoriesCommandOutput
317417
| ListOauth2CredentialProvidersCommandOutput
418+
| ListOnlineEvaluationConfigsCommandOutput
419+
| ListPoliciesCommandOutput
420+
| ListPolicyEnginesCommandOutput
421+
| ListPolicyGenerationAssetsCommandOutput
422+
| ListPolicyGenerationsCommandOutput
318423
| ListTagsForResourceCommandOutput
319424
| ListWorkloadIdentitiesCommandOutput
425+
| PutResourcePolicyCommandOutput
320426
| SetTokenVaultCMKCommandOutput
427+
| StartPolicyGenerationCommandOutput
321428
| SynchronizeGatewayTargetsCommandOutput
322429
| TagResourceCommandOutput
323430
| UntagResourceCommandOutput
324431
| UpdateAgentRuntimeCommandOutput
325432
| UpdateAgentRuntimeEndpointCommandOutput
326433
| UpdateApiKeyCredentialProviderCommandOutput
434+
| UpdateEvaluatorCommandOutput
327435
| UpdateGatewayCommandOutput
328436
| UpdateGatewayTargetCommandOutput
329437
| UpdateMemoryCommandOutput
330438
| UpdateOauth2CredentialProviderCommandOutput
439+
| UpdateOnlineEvaluationConfigCommandOutput
440+
| UpdatePolicyCommandOutput
441+
| UpdatePolicyEngineCommandOutput
331442
| UpdateWorkloadIdentityCommandOutput;
332443

333444
/**

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,24 @@ export interface CreateAgentRuntimeCommandOutput extends CreateAgentRuntimeRespo
8383
* allowedClients: [ // AllowedClientsList
8484
* "STRING_VALUE",
8585
* ],
86+
* allowedScopes: [ // AllowedScopesType
87+
* "STRING_VALUE",
88+
* ],
89+
* customClaims: [ // CustomClaimValidationsType
90+
* { // CustomClaimValidationType
91+
* inboundTokenClaimName: "STRING_VALUE", // required
92+
* inboundTokenClaimValueType: "STRING" || "STRING_ARRAY", // required
93+
* authorizingClaimMatchValue: { // AuthorizingClaimMatchValueType
94+
* claimMatchValue: { // ClaimMatchValueType Union: only one key present
95+
* matchValueString: "STRING_VALUE",
96+
* matchValueStringList: [ // MatchValueStringList
97+
* "STRING_VALUE",
98+
* ],
99+
* },
100+
* claimMatchOperator: "EQUALS" || "CONTAINS" || "CONTAINS_ANY", // required
101+
* },
102+
* },
103+
* ],
86104
* },
87105
* },
88106
* requestHeaderConfiguration: { // RequestHeaderConfiguration Union: only one key present

0 commit comments

Comments
 (0)