@aws-sdk/client-bedrock 3.556.0 → 3.563.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/README.md +81 -1
- package/dist-cjs/index.js +1005 -79
- package/dist-es/Bedrock.js +20 -0
- package/dist-es/commands/CreateEvaluationJobCommand.js +25 -0
- package/dist-es/commands/CreateGuardrailCommand.js +25 -0
- package/dist-es/commands/CreateGuardrailVersionCommand.js +25 -0
- package/dist-es/commands/DeleteGuardrailCommand.js +24 -0
- package/dist-es/commands/GetEvaluationJobCommand.js +25 -0
- package/dist-es/commands/GetGuardrailCommand.js +25 -0
- package/dist-es/commands/ListEvaluationJobsCommand.js +24 -0
- package/dist-es/commands/ListGuardrailsCommand.js +25 -0
- package/dist-es/commands/StopEvaluationJobCommand.js +25 -0
- package/dist-es/commands/UpdateGuardrailCommand.js +25 -0
- package/dist-es/commands/index.js +10 -0
- package/dist-es/models/models_0.js +312 -48
- package/dist-es/pagination/ListEvaluationJobsPaginator.js +4 -0
- package/dist-es/pagination/ListGuardrailsPaginator.js +4 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +374 -4
- package/dist-types/Bedrock.d.ts +73 -1
- package/dist-types/BedrockClient.d.ts +13 -3
- package/dist-types/commands/CreateEvaluationJobCommand.d.ts +148 -0
- package/dist-types/commands/CreateGuardrailCommand.d.ts +186 -0
- package/dist-types/commands/CreateGuardrailVersionCommand.d.ts +84 -0
- package/dist-types/commands/CreateModelCustomizationJobCommand.d.ts +6 -8
- package/dist-types/commands/CreateProvisionedModelThroughputCommand.d.ts +2 -3
- package/dist-types/commands/DeleteCustomModelCommand.d.ts +2 -2
- package/dist-types/commands/DeleteGuardrailCommand.d.ts +84 -0
- package/dist-types/commands/DeleteProvisionedModelThroughputCommand.d.ts +2 -2
- package/dist-types/commands/GetCustomModelCommand.d.ts +2 -2
- package/dist-types/commands/GetEvaluationJobCommand.d.ts +144 -0
- package/dist-types/commands/GetFoundationModelCommand.d.ts +1 -1
- package/dist-types/commands/GetGuardrailCommand.d.ts +140 -0
- package/dist-types/commands/GetModelCustomizationJobCommand.d.ts +2 -2
- package/dist-types/commands/GetProvisionedModelThroughputCommand.d.ts +2 -2
- package/dist-types/commands/ListCustomModelsCommand.d.ts +1 -1
- package/dist-types/commands/ListEvaluationJobsCommand.d.ts +93 -0
- package/dist-types/commands/ListFoundationModelsCommand.d.ts +1 -1
- package/dist-types/commands/ListGuardrailsCommand.d.ts +89 -0
- package/dist-types/commands/ListModelCustomizationJobsCommand.d.ts +2 -2
- package/dist-types/commands/ListProvisionedModelThroughputsCommand.d.ts +1 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -2
- package/dist-types/commands/StopEvaluationJobCommand.d.ts +75 -0
- package/dist-types/commands/StopModelCustomizationJobCommand.d.ts +2 -2
- package/dist-types/commands/TagResourceCommand.d.ts +2 -2
- package/dist-types/commands/UntagResourceCommand.d.ts +2 -2
- package/dist-types/commands/UpdateGuardrailCommand.d.ts +176 -0
- package/dist-types/commands/UpdateProvisionedModelThroughputCommand.d.ts +2 -2
- package/dist-types/commands/index.d.ts +10 -0
- package/dist-types/index.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +1926 -215
- package/dist-types/pagination/ListEvaluationJobsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListGuardrailsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +90 -0
- package/dist-types/ts3.4/Bedrock.d.ts +172 -0
- package/dist-types/ts3.4/BedrockClient.d.ts +60 -0
- package/dist-types/ts3.4/commands/CreateEvaluationJobCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/CreateGuardrailCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreateGuardrailVersionCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DeleteGuardrailCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetEvaluationJobCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetGuardrailCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/ListEvaluationJobsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListGuardrailsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/StopEvaluationJobCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/UpdateGuardrailCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +10 -0
- package/dist-types/ts3.4/models/models_0.d.ts +572 -49
- package/dist-types/ts3.4/pagination/ListEvaluationJobsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListGuardrailsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +120 -0
- package/package.json +2 -2
|
@@ -1,9 +1,68 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
1
|
+
import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
|
|
2
2
|
import { requestBuilder as rb } from "@smithy/core";
|
|
3
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseFloat32 as __limitedParseFloat32, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
5
|
import { BedrockServiceException as __BaseException } from "../models/BedrockServiceException";
|
|
6
6
|
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, TooManyTagsException, ValidationException, } from "../models/models_0";
|
|
7
|
+
export const se_CreateEvaluationJobCommand = async (input, context) => {
|
|
8
|
+
const b = rb(input, context);
|
|
9
|
+
const headers = {
|
|
10
|
+
"content-type": "application/json",
|
|
11
|
+
};
|
|
12
|
+
b.bp("/evaluation-jobs");
|
|
13
|
+
let body;
|
|
14
|
+
body = JSON.stringify(take(input, {
|
|
15
|
+
clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
16
|
+
customerEncryptionKeyId: [],
|
|
17
|
+
evaluationConfig: (_) => _json(_),
|
|
18
|
+
inferenceConfig: (_) => _json(_),
|
|
19
|
+
jobDescription: [],
|
|
20
|
+
jobName: [],
|
|
21
|
+
jobTags: (_) => _json(_),
|
|
22
|
+
outputDataConfig: (_) => _json(_),
|
|
23
|
+
roleArn: [],
|
|
24
|
+
}));
|
|
25
|
+
b.m("POST").h(headers).b(body);
|
|
26
|
+
return b.build();
|
|
27
|
+
};
|
|
28
|
+
export const se_CreateGuardrailCommand = async (input, context) => {
|
|
29
|
+
const b = rb(input, context);
|
|
30
|
+
const headers = {
|
|
31
|
+
"content-type": "application/json",
|
|
32
|
+
};
|
|
33
|
+
b.bp("/guardrails");
|
|
34
|
+
let body;
|
|
35
|
+
body = JSON.stringify(take(input, {
|
|
36
|
+
blockedInputMessaging: [],
|
|
37
|
+
blockedOutputsMessaging: [],
|
|
38
|
+
clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
39
|
+
contentPolicyConfig: (_) => _json(_),
|
|
40
|
+
description: [],
|
|
41
|
+
kmsKeyId: [],
|
|
42
|
+
name: [],
|
|
43
|
+
sensitiveInformationPolicyConfig: (_) => _json(_),
|
|
44
|
+
tags: (_) => _json(_),
|
|
45
|
+
topicPolicyConfig: (_) => _json(_),
|
|
46
|
+
wordPolicyConfig: (_) => _json(_),
|
|
47
|
+
}));
|
|
48
|
+
b.m("POST").h(headers).b(body);
|
|
49
|
+
return b.build();
|
|
50
|
+
};
|
|
51
|
+
export const se_CreateGuardrailVersionCommand = async (input, context) => {
|
|
52
|
+
const b = rb(input, context);
|
|
53
|
+
const headers = {
|
|
54
|
+
"content-type": "application/json",
|
|
55
|
+
};
|
|
56
|
+
b.bp("/guardrails/{guardrailIdentifier}");
|
|
57
|
+
b.p("guardrailIdentifier", () => input.guardrailIdentifier, "{guardrailIdentifier}", false);
|
|
58
|
+
let body;
|
|
59
|
+
body = JSON.stringify(take(input, {
|
|
60
|
+
clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
61
|
+
description: [],
|
|
62
|
+
}));
|
|
63
|
+
b.m("POST").h(headers).b(body);
|
|
64
|
+
return b.build();
|
|
65
|
+
};
|
|
7
66
|
export const se_CreateModelCustomizationJobCommand = async (input, context) => {
|
|
8
67
|
const b = rb(input, context);
|
|
9
68
|
const headers = {
|
|
@@ -57,6 +116,18 @@ export const se_DeleteCustomModelCommand = async (input, context) => {
|
|
|
57
116
|
b.m("DELETE").h(headers).b(body);
|
|
58
117
|
return b.build();
|
|
59
118
|
};
|
|
119
|
+
export const se_DeleteGuardrailCommand = async (input, context) => {
|
|
120
|
+
const b = rb(input, context);
|
|
121
|
+
const headers = {};
|
|
122
|
+
b.bp("/guardrails/{guardrailIdentifier}");
|
|
123
|
+
b.p("guardrailIdentifier", () => input.guardrailIdentifier, "{guardrailIdentifier}", false);
|
|
124
|
+
const query = map({
|
|
125
|
+
[_gV]: [, input[_gV]],
|
|
126
|
+
});
|
|
127
|
+
let body;
|
|
128
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
129
|
+
return b.build();
|
|
130
|
+
};
|
|
60
131
|
export const se_DeleteModelInvocationLoggingConfigurationCommand = async (input, context) => {
|
|
61
132
|
const b = rb(input, context);
|
|
62
133
|
const headers = {
|
|
@@ -86,6 +157,15 @@ export const se_GetCustomModelCommand = async (input, context) => {
|
|
|
86
157
|
b.m("GET").h(headers).b(body);
|
|
87
158
|
return b.build();
|
|
88
159
|
};
|
|
160
|
+
export const se_GetEvaluationJobCommand = async (input, context) => {
|
|
161
|
+
const b = rb(input, context);
|
|
162
|
+
const headers = {};
|
|
163
|
+
b.bp("/evaluation-jobs/{jobIdentifier}");
|
|
164
|
+
b.p("jobIdentifier", () => input.jobIdentifier, "{jobIdentifier}", false);
|
|
165
|
+
let body;
|
|
166
|
+
b.m("GET").h(headers).b(body);
|
|
167
|
+
return b.build();
|
|
168
|
+
};
|
|
89
169
|
export const se_GetFoundationModelCommand = async (input, context) => {
|
|
90
170
|
const b = rb(input, context);
|
|
91
171
|
const headers = {};
|
|
@@ -95,6 +175,18 @@ export const se_GetFoundationModelCommand = async (input, context) => {
|
|
|
95
175
|
b.m("GET").h(headers).b(body);
|
|
96
176
|
return b.build();
|
|
97
177
|
};
|
|
178
|
+
export const se_GetGuardrailCommand = async (input, context) => {
|
|
179
|
+
const b = rb(input, context);
|
|
180
|
+
const headers = {};
|
|
181
|
+
b.bp("/guardrails/{guardrailIdentifier}");
|
|
182
|
+
b.p("guardrailIdentifier", () => input.guardrailIdentifier, "{guardrailIdentifier}", false);
|
|
183
|
+
const query = map({
|
|
184
|
+
[_gV]: [, input[_gV]],
|
|
185
|
+
});
|
|
186
|
+
let body;
|
|
187
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
188
|
+
return b.build();
|
|
189
|
+
};
|
|
98
190
|
export const se_GetModelCustomizationJobCommand = async (input, context) => {
|
|
99
191
|
const b = rb(input, context);
|
|
100
192
|
const headers = {};
|
|
@@ -149,6 +241,30 @@ export const se_ListCustomModelsCommand = async (input, context) => {
|
|
|
149
241
|
b.m("GET").h(headers).q(query).b(body);
|
|
150
242
|
return b.build();
|
|
151
243
|
};
|
|
244
|
+
export const se_ListEvaluationJobsCommand = async (input, context) => {
|
|
245
|
+
const b = rb(input, context);
|
|
246
|
+
const headers = {};
|
|
247
|
+
b.bp("/evaluation-jobs");
|
|
248
|
+
const query = map({
|
|
249
|
+
[_cTA]: [
|
|
250
|
+
() => input.creationTimeAfter !== void 0,
|
|
251
|
+
() => (input[_cTA].toISOString().split(".")[0] + "Z").toString(),
|
|
252
|
+
],
|
|
253
|
+
[_cTB]: [
|
|
254
|
+
() => input.creationTimeBefore !== void 0,
|
|
255
|
+
() => (input[_cTB].toISOString().split(".")[0] + "Z").toString(),
|
|
256
|
+
],
|
|
257
|
+
[_sE]: [, input[_sE]],
|
|
258
|
+
[_nC]: [, input[_nC]],
|
|
259
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
260
|
+
[_nT]: [, input[_nT]],
|
|
261
|
+
[_sB]: [, input[_sB]],
|
|
262
|
+
[_sO]: [, input[_sO]],
|
|
263
|
+
});
|
|
264
|
+
let body;
|
|
265
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
266
|
+
return b.build();
|
|
267
|
+
};
|
|
152
268
|
export const se_ListFoundationModelsCommand = async (input, context) => {
|
|
153
269
|
const b = rb(input, context);
|
|
154
270
|
const headers = {};
|
|
@@ -163,6 +279,19 @@ export const se_ListFoundationModelsCommand = async (input, context) => {
|
|
|
163
279
|
b.m("GET").h(headers).q(query).b(body);
|
|
164
280
|
return b.build();
|
|
165
281
|
};
|
|
282
|
+
export const se_ListGuardrailsCommand = async (input, context) => {
|
|
283
|
+
const b = rb(input, context);
|
|
284
|
+
const headers = {};
|
|
285
|
+
b.bp("/guardrails");
|
|
286
|
+
const query = map({
|
|
287
|
+
[_gI]: [, input[_gI]],
|
|
288
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
289
|
+
[_nT]: [, input[_nT]],
|
|
290
|
+
});
|
|
291
|
+
let body;
|
|
292
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
293
|
+
return b.build();
|
|
294
|
+
};
|
|
166
295
|
export const se_ListModelCustomizationJobsCommand = async (input, context) => {
|
|
167
296
|
const b = rb(input, context);
|
|
168
297
|
const headers = {};
|
|
@@ -238,6 +367,15 @@ export const se_PutModelInvocationLoggingConfigurationCommand = async (input, co
|
|
|
238
367
|
b.m("PUT").h(headers).b(body);
|
|
239
368
|
return b.build();
|
|
240
369
|
};
|
|
370
|
+
export const se_StopEvaluationJobCommand = async (input, context) => {
|
|
371
|
+
const b = rb(input, context);
|
|
372
|
+
const headers = {};
|
|
373
|
+
b.bp("/evaluation-job/{jobIdentifier}/stop");
|
|
374
|
+
b.p("jobIdentifier", () => input.jobIdentifier, "{jobIdentifier}", false);
|
|
375
|
+
let body;
|
|
376
|
+
b.m("POST").h(headers).b(body);
|
|
377
|
+
return b.build();
|
|
378
|
+
};
|
|
241
379
|
export const se_StopModelCustomizationJobCommand = async (input, context) => {
|
|
242
380
|
const b = rb(input, context);
|
|
243
381
|
const headers = {};
|
|
@@ -275,6 +413,28 @@ export const se_UntagResourceCommand = async (input, context) => {
|
|
|
275
413
|
b.m("POST").h(headers).b(body);
|
|
276
414
|
return b.build();
|
|
277
415
|
};
|
|
416
|
+
export const se_UpdateGuardrailCommand = async (input, context) => {
|
|
417
|
+
const b = rb(input, context);
|
|
418
|
+
const headers = {
|
|
419
|
+
"content-type": "application/json",
|
|
420
|
+
};
|
|
421
|
+
b.bp("/guardrails/{guardrailIdentifier}");
|
|
422
|
+
b.p("guardrailIdentifier", () => input.guardrailIdentifier, "{guardrailIdentifier}", false);
|
|
423
|
+
let body;
|
|
424
|
+
body = JSON.stringify(take(input, {
|
|
425
|
+
blockedInputMessaging: [],
|
|
426
|
+
blockedOutputsMessaging: [],
|
|
427
|
+
contentPolicyConfig: (_) => _json(_),
|
|
428
|
+
description: [],
|
|
429
|
+
kmsKeyId: [],
|
|
430
|
+
name: [],
|
|
431
|
+
sensitiveInformationPolicyConfig: (_) => _json(_),
|
|
432
|
+
topicPolicyConfig: (_) => _json(_),
|
|
433
|
+
wordPolicyConfig: (_) => _json(_),
|
|
434
|
+
}));
|
|
435
|
+
b.m("PUT").h(headers).b(body);
|
|
436
|
+
return b.build();
|
|
437
|
+
};
|
|
278
438
|
export const se_UpdateProvisionedModelThroughputCommand = async (input, context) => {
|
|
279
439
|
const b = rb(input, context);
|
|
280
440
|
const headers = {
|
|
@@ -290,6 +450,52 @@ export const se_UpdateProvisionedModelThroughputCommand = async (input, context)
|
|
|
290
450
|
b.m("PATCH").h(headers).b(body);
|
|
291
451
|
return b.build();
|
|
292
452
|
};
|
|
453
|
+
export const de_CreateEvaluationJobCommand = async (output, context) => {
|
|
454
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
455
|
+
return de_CommandError(output, context);
|
|
456
|
+
}
|
|
457
|
+
const contents = map({
|
|
458
|
+
$metadata: deserializeMetadata(output),
|
|
459
|
+
});
|
|
460
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
461
|
+
const doc = take(data, {
|
|
462
|
+
jobArn: __expectString,
|
|
463
|
+
});
|
|
464
|
+
Object.assign(contents, doc);
|
|
465
|
+
return contents;
|
|
466
|
+
};
|
|
467
|
+
export const de_CreateGuardrailCommand = async (output, context) => {
|
|
468
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
469
|
+
return de_CommandError(output, context);
|
|
470
|
+
}
|
|
471
|
+
const contents = map({
|
|
472
|
+
$metadata: deserializeMetadata(output),
|
|
473
|
+
});
|
|
474
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
475
|
+
const doc = take(data, {
|
|
476
|
+
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
477
|
+
guardrailArn: __expectString,
|
|
478
|
+
guardrailId: __expectString,
|
|
479
|
+
version: __expectString,
|
|
480
|
+
});
|
|
481
|
+
Object.assign(contents, doc);
|
|
482
|
+
return contents;
|
|
483
|
+
};
|
|
484
|
+
export const de_CreateGuardrailVersionCommand = async (output, context) => {
|
|
485
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
486
|
+
return de_CommandError(output, context);
|
|
487
|
+
}
|
|
488
|
+
const contents = map({
|
|
489
|
+
$metadata: deserializeMetadata(output),
|
|
490
|
+
});
|
|
491
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
492
|
+
const doc = take(data, {
|
|
493
|
+
guardrailId: __expectString,
|
|
494
|
+
version: __expectString,
|
|
495
|
+
});
|
|
496
|
+
Object.assign(contents, doc);
|
|
497
|
+
return contents;
|
|
498
|
+
};
|
|
293
499
|
export const de_CreateModelCustomizationJobCommand = async (output, context) => {
|
|
294
500
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
295
501
|
return de_CommandError(output, context);
|
|
@@ -328,6 +534,16 @@ export const de_DeleteCustomModelCommand = async (output, context) => {
|
|
|
328
534
|
await collectBody(output.body, context);
|
|
329
535
|
return contents;
|
|
330
536
|
};
|
|
537
|
+
export const de_DeleteGuardrailCommand = async (output, context) => {
|
|
538
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
539
|
+
return de_CommandError(output, context);
|
|
540
|
+
}
|
|
541
|
+
const contents = map({
|
|
542
|
+
$metadata: deserializeMetadata(output),
|
|
543
|
+
});
|
|
544
|
+
await collectBody(output.body, context);
|
|
545
|
+
return contents;
|
|
546
|
+
};
|
|
331
547
|
export const de_DeleteModelInvocationLoggingConfigurationCommand = async (output, context) => {
|
|
332
548
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
333
549
|
return de_CommandError(output, context);
|
|
@@ -375,6 +591,32 @@ export const de_GetCustomModelCommand = async (output, context) => {
|
|
|
375
591
|
Object.assign(contents, doc);
|
|
376
592
|
return contents;
|
|
377
593
|
};
|
|
594
|
+
export const de_GetEvaluationJobCommand = async (output, context) => {
|
|
595
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
596
|
+
return de_CommandError(output, context);
|
|
597
|
+
}
|
|
598
|
+
const contents = map({
|
|
599
|
+
$metadata: deserializeMetadata(output),
|
|
600
|
+
});
|
|
601
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
602
|
+
const doc = take(data, {
|
|
603
|
+
creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
604
|
+
customerEncryptionKeyId: __expectString,
|
|
605
|
+
evaluationConfig: (_) => _json(__expectUnion(_)),
|
|
606
|
+
failureMessages: _json,
|
|
607
|
+
inferenceConfig: (_) => _json(__expectUnion(_)),
|
|
608
|
+
jobArn: __expectString,
|
|
609
|
+
jobDescription: __expectString,
|
|
610
|
+
jobName: __expectString,
|
|
611
|
+
jobType: __expectString,
|
|
612
|
+
lastModifiedTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
613
|
+
outputDataConfig: _json,
|
|
614
|
+
roleArn: __expectString,
|
|
615
|
+
status: __expectString,
|
|
616
|
+
});
|
|
617
|
+
Object.assign(contents, doc);
|
|
618
|
+
return contents;
|
|
619
|
+
};
|
|
378
620
|
export const de_GetFoundationModelCommand = async (output, context) => {
|
|
379
621
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
380
622
|
return de_CommandError(output, context);
|
|
@@ -389,6 +631,36 @@ export const de_GetFoundationModelCommand = async (output, context) => {
|
|
|
389
631
|
Object.assign(contents, doc);
|
|
390
632
|
return contents;
|
|
391
633
|
};
|
|
634
|
+
export const de_GetGuardrailCommand = async (output, context) => {
|
|
635
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
636
|
+
return de_CommandError(output, context);
|
|
637
|
+
}
|
|
638
|
+
const contents = map({
|
|
639
|
+
$metadata: deserializeMetadata(output),
|
|
640
|
+
});
|
|
641
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
642
|
+
const doc = take(data, {
|
|
643
|
+
blockedInputMessaging: __expectString,
|
|
644
|
+
blockedOutputsMessaging: __expectString,
|
|
645
|
+
contentPolicy: _json,
|
|
646
|
+
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
647
|
+
description: __expectString,
|
|
648
|
+
failureRecommendations: _json,
|
|
649
|
+
guardrailArn: __expectString,
|
|
650
|
+
guardrailId: __expectString,
|
|
651
|
+
kmsKeyArn: __expectString,
|
|
652
|
+
name: __expectString,
|
|
653
|
+
sensitiveInformationPolicy: _json,
|
|
654
|
+
status: __expectString,
|
|
655
|
+
statusReasons: _json,
|
|
656
|
+
topicPolicy: _json,
|
|
657
|
+
updatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
658
|
+
version: __expectString,
|
|
659
|
+
wordPolicy: _json,
|
|
660
|
+
});
|
|
661
|
+
Object.assign(contents, doc);
|
|
662
|
+
return contents;
|
|
663
|
+
};
|
|
392
664
|
export const de_GetModelCustomizationJobCommand = async (output, context) => {
|
|
393
665
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
394
666
|
return de_CommandError(output, context);
|
|
@@ -478,6 +750,21 @@ export const de_ListCustomModelsCommand = async (output, context) => {
|
|
|
478
750
|
Object.assign(contents, doc);
|
|
479
751
|
return contents;
|
|
480
752
|
};
|
|
753
|
+
export const de_ListEvaluationJobsCommand = async (output, context) => {
|
|
754
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
755
|
+
return de_CommandError(output, context);
|
|
756
|
+
}
|
|
757
|
+
const contents = map({
|
|
758
|
+
$metadata: deserializeMetadata(output),
|
|
759
|
+
});
|
|
760
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
761
|
+
const doc = take(data, {
|
|
762
|
+
jobSummaries: (_) => de_EvaluationSummaries(_, context),
|
|
763
|
+
nextToken: __expectString,
|
|
764
|
+
});
|
|
765
|
+
Object.assign(contents, doc);
|
|
766
|
+
return contents;
|
|
767
|
+
};
|
|
481
768
|
export const de_ListFoundationModelsCommand = async (output, context) => {
|
|
482
769
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
483
770
|
return de_CommandError(output, context);
|
|
@@ -492,6 +779,21 @@ export const de_ListFoundationModelsCommand = async (output, context) => {
|
|
|
492
779
|
Object.assign(contents, doc);
|
|
493
780
|
return contents;
|
|
494
781
|
};
|
|
782
|
+
export const de_ListGuardrailsCommand = async (output, context) => {
|
|
783
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
784
|
+
return de_CommandError(output, context);
|
|
785
|
+
}
|
|
786
|
+
const contents = map({
|
|
787
|
+
$metadata: deserializeMetadata(output),
|
|
788
|
+
});
|
|
789
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
790
|
+
const doc = take(data, {
|
|
791
|
+
guardrails: (_) => de_GuardrailSummaries(_, context),
|
|
792
|
+
nextToken: __expectString,
|
|
793
|
+
});
|
|
794
|
+
Object.assign(contents, doc);
|
|
795
|
+
return contents;
|
|
796
|
+
};
|
|
495
797
|
export const de_ListModelCustomizationJobsCommand = async (output, context) => {
|
|
496
798
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
497
799
|
return de_CommandError(output, context);
|
|
@@ -546,6 +848,16 @@ export const de_PutModelInvocationLoggingConfigurationCommand = async (output, c
|
|
|
546
848
|
await collectBody(output.body, context);
|
|
547
849
|
return contents;
|
|
548
850
|
};
|
|
851
|
+
export const de_StopEvaluationJobCommand = async (output, context) => {
|
|
852
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
853
|
+
return de_CommandError(output, context);
|
|
854
|
+
}
|
|
855
|
+
const contents = map({
|
|
856
|
+
$metadata: deserializeMetadata(output),
|
|
857
|
+
});
|
|
858
|
+
await collectBody(output.body, context);
|
|
859
|
+
return contents;
|
|
860
|
+
};
|
|
549
861
|
export const de_StopModelCustomizationJobCommand = async (output, context) => {
|
|
550
862
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
551
863
|
return de_CommandError(output, context);
|
|
@@ -576,6 +888,23 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
576
888
|
await collectBody(output.body, context);
|
|
577
889
|
return contents;
|
|
578
890
|
};
|
|
891
|
+
export const de_UpdateGuardrailCommand = async (output, context) => {
|
|
892
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
893
|
+
return de_CommandError(output, context);
|
|
894
|
+
}
|
|
895
|
+
const contents = map({
|
|
896
|
+
$metadata: deserializeMetadata(output),
|
|
897
|
+
});
|
|
898
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
899
|
+
const doc = take(data, {
|
|
900
|
+
guardrailArn: __expectString,
|
|
901
|
+
guardrailId: __expectString,
|
|
902
|
+
updatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
903
|
+
version: __expectString,
|
|
904
|
+
});
|
|
905
|
+
Object.assign(contents, doc);
|
|
906
|
+
return contents;
|
|
907
|
+
};
|
|
579
908
|
export const de_UpdateProvisionedModelThroughputCommand = async (output, context) => {
|
|
580
909
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
581
910
|
return de_CommandError(output, context);
|
|
@@ -611,12 +940,12 @@ const de_CommandError = async (output, context) => {
|
|
|
611
940
|
case "ThrottlingException":
|
|
612
941
|
case "com.amazonaws.bedrock#ThrottlingException":
|
|
613
942
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
614
|
-
case "TooManyTagsException":
|
|
615
|
-
case "com.amazonaws.bedrock#TooManyTagsException":
|
|
616
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
617
943
|
case "ValidationException":
|
|
618
944
|
case "com.amazonaws.bedrock#ValidationException":
|
|
619
945
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
946
|
+
case "TooManyTagsException":
|
|
947
|
+
case "com.amazonaws.bedrock#TooManyTagsException":
|
|
948
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
620
949
|
default:
|
|
621
950
|
const parsedBody = parsedOutput.body;
|
|
622
951
|
return throwDefaultError({
|
|
@@ -750,6 +1079,45 @@ const de_CustomModelSummaryList = (output, context) => {
|
|
|
750
1079
|
});
|
|
751
1080
|
return retVal;
|
|
752
1081
|
};
|
|
1082
|
+
const de_EvaluationSummaries = (output, context) => {
|
|
1083
|
+
const retVal = (output || [])
|
|
1084
|
+
.filter((e) => e != null)
|
|
1085
|
+
.map((entry) => {
|
|
1086
|
+
return de_EvaluationSummary(entry, context);
|
|
1087
|
+
});
|
|
1088
|
+
return retVal;
|
|
1089
|
+
};
|
|
1090
|
+
const de_EvaluationSummary = (output, context) => {
|
|
1091
|
+
return take(output, {
|
|
1092
|
+
creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1093
|
+
evaluationTaskTypes: _json,
|
|
1094
|
+
jobArn: __expectString,
|
|
1095
|
+
jobName: __expectString,
|
|
1096
|
+
jobType: __expectString,
|
|
1097
|
+
modelIdentifiers: _json,
|
|
1098
|
+
status: __expectString,
|
|
1099
|
+
});
|
|
1100
|
+
};
|
|
1101
|
+
const de_GuardrailSummaries = (output, context) => {
|
|
1102
|
+
const retVal = (output || [])
|
|
1103
|
+
.filter((e) => e != null)
|
|
1104
|
+
.map((entry) => {
|
|
1105
|
+
return de_GuardrailSummary(entry, context);
|
|
1106
|
+
});
|
|
1107
|
+
return retVal;
|
|
1108
|
+
};
|
|
1109
|
+
const de_GuardrailSummary = (output, context) => {
|
|
1110
|
+
return take(output, {
|
|
1111
|
+
arn: __expectString,
|
|
1112
|
+
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1113
|
+
description: __expectString,
|
|
1114
|
+
id: __expectString,
|
|
1115
|
+
name: __expectString,
|
|
1116
|
+
status: __expectString,
|
|
1117
|
+
updatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1118
|
+
version: __expectString,
|
|
1119
|
+
});
|
|
1120
|
+
};
|
|
753
1121
|
const de_ModelCustomizationJobSummaries = (output, context) => {
|
|
754
1122
|
const retVal = (output || [])
|
|
755
1123
|
.filter((e) => e != null)
|
|
@@ -834,6 +1202,8 @@ const _bP = "byProvider";
|
|
|
834
1202
|
const _cTA = "creationTimeAfter";
|
|
835
1203
|
const _cTB = "creationTimeBefore";
|
|
836
1204
|
const _fMAE = "foundationModelArnEquals";
|
|
1205
|
+
const _gI = "guardrailIdentifier";
|
|
1206
|
+
const _gV = "guardrailVersion";
|
|
837
1207
|
const _mAE = "modelArnEquals";
|
|
838
1208
|
const _mR = "maxResults";
|
|
839
1209
|
const _nC = "nameContains";
|
package/dist-types/Bedrock.d.ts
CHANGED
|
@@ -1,26 +1,54 @@
|
|
|
1
1
|
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
2
2
|
import { BedrockClient } from "./BedrockClient";
|
|
3
|
+
import { CreateEvaluationJobCommandInput, CreateEvaluationJobCommandOutput } from "./commands/CreateEvaluationJobCommand";
|
|
4
|
+
import { CreateGuardrailCommandInput, CreateGuardrailCommandOutput } from "./commands/CreateGuardrailCommand";
|
|
5
|
+
import { CreateGuardrailVersionCommandInput, CreateGuardrailVersionCommandOutput } from "./commands/CreateGuardrailVersionCommand";
|
|
3
6
|
import { CreateModelCustomizationJobCommandInput, CreateModelCustomizationJobCommandOutput } from "./commands/CreateModelCustomizationJobCommand";
|
|
4
7
|
import { CreateProvisionedModelThroughputCommandInput, CreateProvisionedModelThroughputCommandOutput } from "./commands/CreateProvisionedModelThroughputCommand";
|
|
5
8
|
import { DeleteCustomModelCommandInput, DeleteCustomModelCommandOutput } from "./commands/DeleteCustomModelCommand";
|
|
9
|
+
import { DeleteGuardrailCommandInput, DeleteGuardrailCommandOutput } from "./commands/DeleteGuardrailCommand";
|
|
6
10
|
import { DeleteModelInvocationLoggingConfigurationCommandInput, DeleteModelInvocationLoggingConfigurationCommandOutput } from "./commands/DeleteModelInvocationLoggingConfigurationCommand";
|
|
7
11
|
import { DeleteProvisionedModelThroughputCommandInput, DeleteProvisionedModelThroughputCommandOutput } from "./commands/DeleteProvisionedModelThroughputCommand";
|
|
8
12
|
import { GetCustomModelCommandInput, GetCustomModelCommandOutput } from "./commands/GetCustomModelCommand";
|
|
13
|
+
import { GetEvaluationJobCommandInput, GetEvaluationJobCommandOutput } from "./commands/GetEvaluationJobCommand";
|
|
9
14
|
import { GetFoundationModelCommandInput, GetFoundationModelCommandOutput } from "./commands/GetFoundationModelCommand";
|
|
15
|
+
import { GetGuardrailCommandInput, GetGuardrailCommandOutput } from "./commands/GetGuardrailCommand";
|
|
10
16
|
import { GetModelCustomizationJobCommandInput, GetModelCustomizationJobCommandOutput } from "./commands/GetModelCustomizationJobCommand";
|
|
11
17
|
import { GetModelInvocationLoggingConfigurationCommandInput, GetModelInvocationLoggingConfigurationCommandOutput } from "./commands/GetModelInvocationLoggingConfigurationCommand";
|
|
12
18
|
import { GetProvisionedModelThroughputCommandInput, GetProvisionedModelThroughputCommandOutput } from "./commands/GetProvisionedModelThroughputCommand";
|
|
13
19
|
import { ListCustomModelsCommandInput, ListCustomModelsCommandOutput } from "./commands/ListCustomModelsCommand";
|
|
20
|
+
import { ListEvaluationJobsCommandInput, ListEvaluationJobsCommandOutput } from "./commands/ListEvaluationJobsCommand";
|
|
14
21
|
import { ListFoundationModelsCommandInput, ListFoundationModelsCommandOutput } from "./commands/ListFoundationModelsCommand";
|
|
22
|
+
import { ListGuardrailsCommandInput, ListGuardrailsCommandOutput } from "./commands/ListGuardrailsCommand";
|
|
15
23
|
import { ListModelCustomizationJobsCommandInput, ListModelCustomizationJobsCommandOutput } from "./commands/ListModelCustomizationJobsCommand";
|
|
16
24
|
import { ListProvisionedModelThroughputsCommandInput, ListProvisionedModelThroughputsCommandOutput } from "./commands/ListProvisionedModelThroughputsCommand";
|
|
17
25
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
18
26
|
import { PutModelInvocationLoggingConfigurationCommandInput, PutModelInvocationLoggingConfigurationCommandOutput } from "./commands/PutModelInvocationLoggingConfigurationCommand";
|
|
27
|
+
import { StopEvaluationJobCommandInput, StopEvaluationJobCommandOutput } from "./commands/StopEvaluationJobCommand";
|
|
19
28
|
import { StopModelCustomizationJobCommandInput, StopModelCustomizationJobCommandOutput } from "./commands/StopModelCustomizationJobCommand";
|
|
20
29
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
21
30
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
31
|
+
import { UpdateGuardrailCommandInput, UpdateGuardrailCommandOutput } from "./commands/UpdateGuardrailCommand";
|
|
22
32
|
import { UpdateProvisionedModelThroughputCommandInput, UpdateProvisionedModelThroughputCommandOutput } from "./commands/UpdateProvisionedModelThroughputCommand";
|
|
23
33
|
export interface Bedrock {
|
|
34
|
+
/**
|
|
35
|
+
* @see {@link CreateEvaluationJobCommand}
|
|
36
|
+
*/
|
|
37
|
+
createEvaluationJob(args: CreateEvaluationJobCommandInput, options?: __HttpHandlerOptions): Promise<CreateEvaluationJobCommandOutput>;
|
|
38
|
+
createEvaluationJob(args: CreateEvaluationJobCommandInput, cb: (err: any, data?: CreateEvaluationJobCommandOutput) => void): void;
|
|
39
|
+
createEvaluationJob(args: CreateEvaluationJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateEvaluationJobCommandOutput) => void): void;
|
|
40
|
+
/**
|
|
41
|
+
* @see {@link CreateGuardrailCommand}
|
|
42
|
+
*/
|
|
43
|
+
createGuardrail(args: CreateGuardrailCommandInput, options?: __HttpHandlerOptions): Promise<CreateGuardrailCommandOutput>;
|
|
44
|
+
createGuardrail(args: CreateGuardrailCommandInput, cb: (err: any, data?: CreateGuardrailCommandOutput) => void): void;
|
|
45
|
+
createGuardrail(args: CreateGuardrailCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateGuardrailCommandOutput) => void): void;
|
|
46
|
+
/**
|
|
47
|
+
* @see {@link CreateGuardrailVersionCommand}
|
|
48
|
+
*/
|
|
49
|
+
createGuardrailVersion(args: CreateGuardrailVersionCommandInput, options?: __HttpHandlerOptions): Promise<CreateGuardrailVersionCommandOutput>;
|
|
50
|
+
createGuardrailVersion(args: CreateGuardrailVersionCommandInput, cb: (err: any, data?: CreateGuardrailVersionCommandOutput) => void): void;
|
|
51
|
+
createGuardrailVersion(args: CreateGuardrailVersionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateGuardrailVersionCommandOutput) => void): void;
|
|
24
52
|
/**
|
|
25
53
|
* @see {@link CreateModelCustomizationJobCommand}
|
|
26
54
|
*/
|
|
@@ -39,6 +67,12 @@ export interface Bedrock {
|
|
|
39
67
|
deleteCustomModel(args: DeleteCustomModelCommandInput, options?: __HttpHandlerOptions): Promise<DeleteCustomModelCommandOutput>;
|
|
40
68
|
deleteCustomModel(args: DeleteCustomModelCommandInput, cb: (err: any, data?: DeleteCustomModelCommandOutput) => void): void;
|
|
41
69
|
deleteCustomModel(args: DeleteCustomModelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteCustomModelCommandOutput) => void): void;
|
|
70
|
+
/**
|
|
71
|
+
* @see {@link DeleteGuardrailCommand}
|
|
72
|
+
*/
|
|
73
|
+
deleteGuardrail(args: DeleteGuardrailCommandInput, options?: __HttpHandlerOptions): Promise<DeleteGuardrailCommandOutput>;
|
|
74
|
+
deleteGuardrail(args: DeleteGuardrailCommandInput, cb: (err: any, data?: DeleteGuardrailCommandOutput) => void): void;
|
|
75
|
+
deleteGuardrail(args: DeleteGuardrailCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteGuardrailCommandOutput) => void): void;
|
|
42
76
|
/**
|
|
43
77
|
* @see {@link DeleteModelInvocationLoggingConfigurationCommand}
|
|
44
78
|
*/
|
|
@@ -58,12 +92,24 @@ export interface Bedrock {
|
|
|
58
92
|
getCustomModel(args: GetCustomModelCommandInput, options?: __HttpHandlerOptions): Promise<GetCustomModelCommandOutput>;
|
|
59
93
|
getCustomModel(args: GetCustomModelCommandInput, cb: (err: any, data?: GetCustomModelCommandOutput) => void): void;
|
|
60
94
|
getCustomModel(args: GetCustomModelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetCustomModelCommandOutput) => void): void;
|
|
95
|
+
/**
|
|
96
|
+
* @see {@link GetEvaluationJobCommand}
|
|
97
|
+
*/
|
|
98
|
+
getEvaluationJob(args: GetEvaluationJobCommandInput, options?: __HttpHandlerOptions): Promise<GetEvaluationJobCommandOutput>;
|
|
99
|
+
getEvaluationJob(args: GetEvaluationJobCommandInput, cb: (err: any, data?: GetEvaluationJobCommandOutput) => void): void;
|
|
100
|
+
getEvaluationJob(args: GetEvaluationJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetEvaluationJobCommandOutput) => void): void;
|
|
61
101
|
/**
|
|
62
102
|
* @see {@link GetFoundationModelCommand}
|
|
63
103
|
*/
|
|
64
104
|
getFoundationModel(args: GetFoundationModelCommandInput, options?: __HttpHandlerOptions): Promise<GetFoundationModelCommandOutput>;
|
|
65
105
|
getFoundationModel(args: GetFoundationModelCommandInput, cb: (err: any, data?: GetFoundationModelCommandOutput) => void): void;
|
|
66
106
|
getFoundationModel(args: GetFoundationModelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetFoundationModelCommandOutput) => void): void;
|
|
107
|
+
/**
|
|
108
|
+
* @see {@link GetGuardrailCommand}
|
|
109
|
+
*/
|
|
110
|
+
getGuardrail(args: GetGuardrailCommandInput, options?: __HttpHandlerOptions): Promise<GetGuardrailCommandOutput>;
|
|
111
|
+
getGuardrail(args: GetGuardrailCommandInput, cb: (err: any, data?: GetGuardrailCommandOutput) => void): void;
|
|
112
|
+
getGuardrail(args: GetGuardrailCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetGuardrailCommandOutput) => void): void;
|
|
67
113
|
/**
|
|
68
114
|
* @see {@link GetModelCustomizationJobCommand}
|
|
69
115
|
*/
|
|
@@ -90,6 +136,13 @@ export interface Bedrock {
|
|
|
90
136
|
listCustomModels(args: ListCustomModelsCommandInput, options?: __HttpHandlerOptions): Promise<ListCustomModelsCommandOutput>;
|
|
91
137
|
listCustomModels(args: ListCustomModelsCommandInput, cb: (err: any, data?: ListCustomModelsCommandOutput) => void): void;
|
|
92
138
|
listCustomModels(args: ListCustomModelsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListCustomModelsCommandOutput) => void): void;
|
|
139
|
+
/**
|
|
140
|
+
* @see {@link ListEvaluationJobsCommand}
|
|
141
|
+
*/
|
|
142
|
+
listEvaluationJobs(): Promise<ListEvaluationJobsCommandOutput>;
|
|
143
|
+
listEvaluationJobs(args: ListEvaluationJobsCommandInput, options?: __HttpHandlerOptions): Promise<ListEvaluationJobsCommandOutput>;
|
|
144
|
+
listEvaluationJobs(args: ListEvaluationJobsCommandInput, cb: (err: any, data?: ListEvaluationJobsCommandOutput) => void): void;
|
|
145
|
+
listEvaluationJobs(args: ListEvaluationJobsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListEvaluationJobsCommandOutput) => void): void;
|
|
93
146
|
/**
|
|
94
147
|
* @see {@link ListFoundationModelsCommand}
|
|
95
148
|
*/
|
|
@@ -97,6 +150,13 @@ export interface Bedrock {
|
|
|
97
150
|
listFoundationModels(args: ListFoundationModelsCommandInput, options?: __HttpHandlerOptions): Promise<ListFoundationModelsCommandOutput>;
|
|
98
151
|
listFoundationModels(args: ListFoundationModelsCommandInput, cb: (err: any, data?: ListFoundationModelsCommandOutput) => void): void;
|
|
99
152
|
listFoundationModels(args: ListFoundationModelsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListFoundationModelsCommandOutput) => void): void;
|
|
153
|
+
/**
|
|
154
|
+
* @see {@link ListGuardrailsCommand}
|
|
155
|
+
*/
|
|
156
|
+
listGuardrails(): Promise<ListGuardrailsCommandOutput>;
|
|
157
|
+
listGuardrails(args: ListGuardrailsCommandInput, options?: __HttpHandlerOptions): Promise<ListGuardrailsCommandOutput>;
|
|
158
|
+
listGuardrails(args: ListGuardrailsCommandInput, cb: (err: any, data?: ListGuardrailsCommandOutput) => void): void;
|
|
159
|
+
listGuardrails(args: ListGuardrailsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListGuardrailsCommandOutput) => void): void;
|
|
100
160
|
/**
|
|
101
161
|
* @see {@link ListModelCustomizationJobsCommand}
|
|
102
162
|
*/
|
|
@@ -123,6 +183,12 @@ export interface Bedrock {
|
|
|
123
183
|
putModelInvocationLoggingConfiguration(args: PutModelInvocationLoggingConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<PutModelInvocationLoggingConfigurationCommandOutput>;
|
|
124
184
|
putModelInvocationLoggingConfiguration(args: PutModelInvocationLoggingConfigurationCommandInput, cb: (err: any, data?: PutModelInvocationLoggingConfigurationCommandOutput) => void): void;
|
|
125
185
|
putModelInvocationLoggingConfiguration(args: PutModelInvocationLoggingConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutModelInvocationLoggingConfigurationCommandOutput) => void): void;
|
|
186
|
+
/**
|
|
187
|
+
* @see {@link StopEvaluationJobCommand}
|
|
188
|
+
*/
|
|
189
|
+
stopEvaluationJob(args: StopEvaluationJobCommandInput, options?: __HttpHandlerOptions): Promise<StopEvaluationJobCommandOutput>;
|
|
190
|
+
stopEvaluationJob(args: StopEvaluationJobCommandInput, cb: (err: any, data?: StopEvaluationJobCommandOutput) => void): void;
|
|
191
|
+
stopEvaluationJob(args: StopEvaluationJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StopEvaluationJobCommandOutput) => void): void;
|
|
126
192
|
/**
|
|
127
193
|
* @see {@link StopModelCustomizationJobCommand}
|
|
128
194
|
*/
|
|
@@ -141,6 +207,12 @@ export interface Bedrock {
|
|
|
141
207
|
untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
|
|
142
208
|
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
143
209
|
untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
210
|
+
/**
|
|
211
|
+
* @see {@link UpdateGuardrailCommand}
|
|
212
|
+
*/
|
|
213
|
+
updateGuardrail(args: UpdateGuardrailCommandInput, options?: __HttpHandlerOptions): Promise<UpdateGuardrailCommandOutput>;
|
|
214
|
+
updateGuardrail(args: UpdateGuardrailCommandInput, cb: (err: any, data?: UpdateGuardrailCommandOutput) => void): void;
|
|
215
|
+
updateGuardrail(args: UpdateGuardrailCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateGuardrailCommandOutput) => void): void;
|
|
144
216
|
/**
|
|
145
217
|
* @see {@link UpdateProvisionedModelThroughputCommand}
|
|
146
218
|
*/
|
|
@@ -149,7 +221,7 @@ export interface Bedrock {
|
|
|
149
221
|
updateProvisionedModelThroughput(args: UpdateProvisionedModelThroughputCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateProvisionedModelThroughputCommandOutput) => void): void;
|
|
150
222
|
}
|
|
151
223
|
/**
|
|
152
|
-
* <p>Describes the API operations for creating and
|
|
224
|
+
* <p>Describes the API operations for creating, managing, fine-turning, and evaluating Amazon Bedrock models.</p>
|
|
153
225
|
* @public
|
|
154
226
|
*/
|
|
155
227
|
export declare class Bedrock extends BedrockClient implements Bedrock {
|