Skip to content

Commit 06501cb

Browse files
author
awstools
committed
feat(client-bedrock): Amazon Bedrock Evaluation BatchDeleteEvaluationJob API allows customers to delete evaluation jobs under terminated evaluation job statuses - Stopped, Failed, or Completed. Customers can submit a batch of 25 evaluation jobs to be deleted at once.
1 parent 9d2511b commit 06501cb

18 files changed

+2299
-142
lines changed

clients/client-bedrock/README.md

+56
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,14 @@ see LICENSE for more information.
203203

204204
## Client Commands (Operations List)
205205

206+
<details>
207+
<summary>
208+
BatchDeleteEvaluationJob
209+
</summary>
210+
211+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/BatchDeleteEvaluationJobCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/BatchDeleteEvaluationJobCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/BatchDeleteEvaluationJobCommandOutput/)
212+
213+
</details>
206214
<details>
207215
<summary>
208216
CreateEvaluationJob
@@ -242,6 +250,14 @@ CreateModelCustomizationJob
242250

243251
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/CreateModelCustomizationJobCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/CreateModelCustomizationJobCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/CreateModelCustomizationJobCommandOutput/)
244252

253+
</details>
254+
<details>
255+
<summary>
256+
CreateModelImportJob
257+
</summary>
258+
259+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/CreateModelImportJobCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/CreateModelImportJobCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/CreateModelImportJobCommandOutput/)
260+
245261
</details>
246262
<details>
247263
<summary>
@@ -274,6 +290,14 @@ DeleteGuardrail
274290

275291
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/DeleteGuardrailCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/DeleteGuardrailCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/DeleteGuardrailCommandOutput/)
276292

293+
</details>
294+
<details>
295+
<summary>
296+
DeleteImportedModel
297+
</summary>
298+
299+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/DeleteImportedModelCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/DeleteImportedModelCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/DeleteImportedModelCommandOutput/)
300+
277301
</details>
278302
<details>
279303
<summary>
@@ -322,6 +346,14 @@ GetGuardrail
322346

323347
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/GetGuardrailCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/GetGuardrailCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/GetGuardrailCommandOutput/)
324348

349+
</details>
350+
<details>
351+
<summary>
352+
GetImportedModel
353+
</summary>
354+
355+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/GetImportedModelCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/GetImportedModelCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/GetImportedModelCommandOutput/)
356+
325357
</details>
326358
<details>
327359
<summary>
@@ -338,6 +370,14 @@ GetModelCustomizationJob
338370

339371
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/GetModelCustomizationJobCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/GetModelCustomizationJobCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/GetModelCustomizationJobCommandOutput/)
340372

373+
</details>
374+
<details>
375+
<summary>
376+
GetModelImportJob
377+
</summary>
378+
379+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/GetModelImportJobCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/GetModelImportJobCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/GetModelImportJobCommandOutput/)
380+
341381
</details>
342382
<details>
343383
<summary>
@@ -394,6 +434,14 @@ ListGuardrails
394434

395435
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/ListGuardrailsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/ListGuardrailsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/ListGuardrailsCommandOutput/)
396436

437+
</details>
438+
<details>
439+
<summary>
440+
ListImportedModels
441+
</summary>
442+
443+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/ListImportedModelsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/ListImportedModelsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/ListImportedModelsCommandOutput/)
444+
397445
</details>
398446
<details>
399447
<summary>
@@ -410,6 +458,14 @@ ListModelCustomizationJobs
410458

411459
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/ListModelCustomizationJobsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/ListModelCustomizationJobsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/ListModelCustomizationJobsCommandOutput/)
412460

461+
</details>
462+
<details>
463+
<summary>
464+
ListModelImportJobs
465+
</summary>
466+
467+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/ListModelImportJobsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/ListModelImportJobsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/ListModelImportJobsCommandOutput/)
468+
413469
</details>
414470
<details>
415471
<summary>

clients/client-bedrock/src/Bedrock.ts

+163
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ import { createAggregatedClient } from "@smithy/smithy-client";
33
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
44

55
import { BedrockClient, BedrockClientConfig } from "./BedrockClient";
6+
import {
7+
BatchDeleteEvaluationJobCommand,
8+
BatchDeleteEvaluationJobCommandInput,
9+
BatchDeleteEvaluationJobCommandOutput,
10+
} from "./commands/BatchDeleteEvaluationJobCommand";
611
import {
712
CreateEvaluationJobCommand,
813
CreateEvaluationJobCommandInput,
@@ -28,6 +33,11 @@ import {
2833
CreateModelCustomizationJobCommandInput,
2934
CreateModelCustomizationJobCommandOutput,
3035
} from "./commands/CreateModelCustomizationJobCommand";
36+
import {
37+
CreateModelImportJobCommand,
38+
CreateModelImportJobCommandInput,
39+
CreateModelImportJobCommandOutput,
40+
} from "./commands/CreateModelImportJobCommand";
3141
import {
3242
CreateModelInvocationJobCommand,
3343
CreateModelInvocationJobCommandInput,
@@ -48,6 +58,11 @@ import {
4858
DeleteGuardrailCommandInput,
4959
DeleteGuardrailCommandOutput,
5060
} from "./commands/DeleteGuardrailCommand";
61+
import {
62+
DeleteImportedModelCommand,
63+
DeleteImportedModelCommandInput,
64+
DeleteImportedModelCommandOutput,
65+
} from "./commands/DeleteImportedModelCommand";
5166
import {
5267
DeleteModelInvocationLoggingConfigurationCommand,
5368
DeleteModelInvocationLoggingConfigurationCommandInput,
@@ -78,6 +93,11 @@ import {
7893
GetGuardrailCommandInput,
7994
GetGuardrailCommandOutput,
8095
} from "./commands/GetGuardrailCommand";
96+
import {
97+
GetImportedModelCommand,
98+
GetImportedModelCommandInput,
99+
GetImportedModelCommandOutput,
100+
} from "./commands/GetImportedModelCommand";
81101
import {
82102
GetModelCopyJobCommand,
83103
GetModelCopyJobCommandInput,
@@ -88,6 +108,11 @@ import {
88108
GetModelCustomizationJobCommandInput,
89109
GetModelCustomizationJobCommandOutput,
90110
} from "./commands/GetModelCustomizationJobCommand";
111+
import {
112+
GetModelImportJobCommand,
113+
GetModelImportJobCommandInput,
114+
GetModelImportJobCommandOutput,
115+
} from "./commands/GetModelImportJobCommand";
91116
import {
92117
GetModelInvocationJobCommand,
93118
GetModelInvocationJobCommandInput,
@@ -123,6 +148,11 @@ import {
123148
ListGuardrailsCommandInput,
124149
ListGuardrailsCommandOutput,
125150
} from "./commands/ListGuardrailsCommand";
151+
import {
152+
ListImportedModelsCommand,
153+
ListImportedModelsCommandInput,
154+
ListImportedModelsCommandOutput,
155+
} from "./commands/ListImportedModelsCommand";
126156
import {
127157
ListModelCopyJobsCommand,
128158
ListModelCopyJobsCommandInput,
@@ -133,6 +163,11 @@ import {
133163
ListModelCustomizationJobsCommandInput,
134164
ListModelCustomizationJobsCommandOutput,
135165
} from "./commands/ListModelCustomizationJobsCommand";
166+
import {
167+
ListModelImportJobsCommand,
168+
ListModelImportJobsCommandInput,
169+
ListModelImportJobsCommandOutput,
170+
} from "./commands/ListModelImportJobsCommand";
136171
import {
137172
ListModelInvocationJobsCommand,
138173
ListModelInvocationJobsCommandInput,
@@ -186,32 +221,39 @@ import {
186221
} from "./commands/UpdateProvisionedModelThroughputCommand";
187222

188223
const commands = {
224+
BatchDeleteEvaluationJobCommand,
189225
CreateEvaluationJobCommand,
190226
CreateGuardrailCommand,
191227
CreateGuardrailVersionCommand,
192228
CreateModelCopyJobCommand,
193229
CreateModelCustomizationJobCommand,
230+
CreateModelImportJobCommand,
194231
CreateModelInvocationJobCommand,
195232
CreateProvisionedModelThroughputCommand,
196233
DeleteCustomModelCommand,
197234
DeleteGuardrailCommand,
235+
DeleteImportedModelCommand,
198236
DeleteModelInvocationLoggingConfigurationCommand,
199237
DeleteProvisionedModelThroughputCommand,
200238
GetCustomModelCommand,
201239
GetEvaluationJobCommand,
202240
GetFoundationModelCommand,
203241
GetGuardrailCommand,
242+
GetImportedModelCommand,
204243
GetModelCopyJobCommand,
205244
GetModelCustomizationJobCommand,
245+
GetModelImportJobCommand,
206246
GetModelInvocationJobCommand,
207247
GetModelInvocationLoggingConfigurationCommand,
208248
GetProvisionedModelThroughputCommand,
209249
ListCustomModelsCommand,
210250
ListEvaluationJobsCommand,
211251
ListFoundationModelsCommand,
212252
ListGuardrailsCommand,
253+
ListImportedModelsCommand,
213254
ListModelCopyJobsCommand,
214255
ListModelCustomizationJobsCommand,
256+
ListModelImportJobsCommand,
215257
ListModelInvocationJobsCommand,
216258
ListProvisionedModelThroughputsCommand,
217259
ListTagsForResourceCommand,
@@ -226,6 +268,23 @@ const commands = {
226268
};
227269

228270
export interface Bedrock {
271+
/**
272+
* @see {@link BatchDeleteEvaluationJobCommand}
273+
*/
274+
batchDeleteEvaluationJob(
275+
args: BatchDeleteEvaluationJobCommandInput,
276+
options?: __HttpHandlerOptions
277+
): Promise<BatchDeleteEvaluationJobCommandOutput>;
278+
batchDeleteEvaluationJob(
279+
args: BatchDeleteEvaluationJobCommandInput,
280+
cb: (err: any, data?: BatchDeleteEvaluationJobCommandOutput) => void
281+
): void;
282+
batchDeleteEvaluationJob(
283+
args: BatchDeleteEvaluationJobCommandInput,
284+
options: __HttpHandlerOptions,
285+
cb: (err: any, data?: BatchDeleteEvaluationJobCommandOutput) => void
286+
): void;
287+
229288
/**
230289
* @see {@link CreateEvaluationJobCommand}
231290
*/
@@ -308,6 +367,23 @@ export interface Bedrock {
308367
cb: (err: any, data?: CreateModelCustomizationJobCommandOutput) => void
309368
): void;
310369

370+
/**
371+
* @see {@link CreateModelImportJobCommand}
372+
*/
373+
createModelImportJob(
374+
args: CreateModelImportJobCommandInput,
375+
options?: __HttpHandlerOptions
376+
): Promise<CreateModelImportJobCommandOutput>;
377+
createModelImportJob(
378+
args: CreateModelImportJobCommandInput,
379+
cb: (err: any, data?: CreateModelImportJobCommandOutput) => void
380+
): void;
381+
createModelImportJob(
382+
args: CreateModelImportJobCommandInput,
383+
options: __HttpHandlerOptions,
384+
cb: (err: any, data?: CreateModelImportJobCommandOutput) => void
385+
): void;
386+
311387
/**
312388
* @see {@link CreateModelInvocationJobCommand}
313389
*/
@@ -373,6 +449,23 @@ export interface Bedrock {
373449
cb: (err: any, data?: DeleteGuardrailCommandOutput) => void
374450
): void;
375451

452+
/**
453+
* @see {@link DeleteImportedModelCommand}
454+
*/
455+
deleteImportedModel(
456+
args: DeleteImportedModelCommandInput,
457+
options?: __HttpHandlerOptions
458+
): Promise<DeleteImportedModelCommandOutput>;
459+
deleteImportedModel(
460+
args: DeleteImportedModelCommandInput,
461+
cb: (err: any, data?: DeleteImportedModelCommandOutput) => void
462+
): void;
463+
deleteImportedModel(
464+
args: DeleteImportedModelCommandInput,
465+
options: __HttpHandlerOptions,
466+
cb: (err: any, data?: DeleteImportedModelCommandOutput) => void
467+
): void;
468+
376469
/**
377470
* @see {@link DeleteModelInvocationLoggingConfigurationCommand}
378471
*/
@@ -467,6 +560,23 @@ export interface Bedrock {
467560
cb: (err: any, data?: GetGuardrailCommandOutput) => void
468561
): void;
469562

563+
/**
564+
* @see {@link GetImportedModelCommand}
565+
*/
566+
getImportedModel(
567+
args: GetImportedModelCommandInput,
568+
options?: __HttpHandlerOptions
569+
): Promise<GetImportedModelCommandOutput>;
570+
getImportedModel(
571+
args: GetImportedModelCommandInput,
572+
cb: (err: any, data?: GetImportedModelCommandOutput) => void
573+
): void;
574+
getImportedModel(
575+
args: GetImportedModelCommandInput,
576+
options: __HttpHandlerOptions,
577+
cb: (err: any, data?: GetImportedModelCommandOutput) => void
578+
): void;
579+
470580
/**
471581
* @see {@link GetModelCopyJobCommand}
472582
*/
@@ -498,6 +608,23 @@ export interface Bedrock {
498608
cb: (err: any, data?: GetModelCustomizationJobCommandOutput) => void
499609
): void;
500610

611+
/**
612+
* @see {@link GetModelImportJobCommand}
613+
*/
614+
getModelImportJob(
615+
args: GetModelImportJobCommandInput,
616+
options?: __HttpHandlerOptions
617+
): Promise<GetModelImportJobCommandOutput>;
618+
getModelImportJob(
619+
args: GetModelImportJobCommandInput,
620+
cb: (err: any, data?: GetModelImportJobCommandOutput) => void
621+
): void;
622+
getModelImportJob(
623+
args: GetModelImportJobCommandInput,
624+
options: __HttpHandlerOptions,
625+
cb: (err: any, data?: GetModelImportJobCommandOutput) => void
626+
): void;
627+
501628
/**
502629
* @see {@link GetModelInvocationJobCommand}
503630
*/
@@ -619,6 +746,24 @@ export interface Bedrock {
619746
cb: (err: any, data?: ListGuardrailsCommandOutput) => void
620747
): void;
621748

749+
/**
750+
* @see {@link ListImportedModelsCommand}
751+
*/
752+
listImportedModels(): Promise<ListImportedModelsCommandOutput>;
753+
listImportedModels(
754+
args: ListImportedModelsCommandInput,
755+
options?: __HttpHandlerOptions
756+
): Promise<ListImportedModelsCommandOutput>;
757+
listImportedModels(
758+
args: ListImportedModelsCommandInput,
759+
cb: (err: any, data?: ListImportedModelsCommandOutput) => void
760+
): void;
761+
listImportedModels(
762+
args: ListImportedModelsCommandInput,
763+
options: __HttpHandlerOptions,
764+
cb: (err: any, data?: ListImportedModelsCommandOutput) => void
765+
): void;
766+
622767
/**
623768
* @see {@link ListModelCopyJobsCommand}
624769
*/
@@ -655,6 +800,24 @@ export interface Bedrock {
655800
cb: (err: any, data?: ListModelCustomizationJobsCommandOutput) => void
656801
): void;
657802

803+
/**
804+
* @see {@link ListModelImportJobsCommand}
805+
*/
806+
listModelImportJobs(): Promise<ListModelImportJobsCommandOutput>;
807+
listModelImportJobs(
808+
args: ListModelImportJobsCommandInput,
809+
options?: __HttpHandlerOptions
810+
): Promise<ListModelImportJobsCommandOutput>;
811+
listModelImportJobs(
812+
args: ListModelImportJobsCommandInput,
813+
cb: (err: any, data?: ListModelImportJobsCommandOutput) => void
814+
): void;
815+
listModelImportJobs(
816+
args: ListModelImportJobsCommandInput,
817+
options: __HttpHandlerOptions,
818+
cb: (err: any, data?: ListModelImportJobsCommandOutput) => void
819+
): void;
820+
658821
/**
659822
* @see {@link ListModelInvocationJobsCommand}
660823
*/

0 commit comments

Comments
 (0)