@aws-sdk/client-bedrock 3.835.0 → 3.836.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 +48 -0
- package/dist-cjs/index.js +417 -120
- package/dist-es/Bedrock.js +12 -0
- package/dist-es/commands/CreateFoundationModelAgreementCommand.js +22 -0
- package/dist-es/commands/CreateModelCustomizationJobCommand.js +1 -1
- package/dist-es/commands/DeleteFoundationModelAgreementCommand.js +22 -0
- package/dist-es/commands/GetFoundationModelAvailabilityCommand.js +22 -0
- package/dist-es/commands/GetModelCustomizationJobCommand.js +1 -1
- package/dist-es/commands/GetUseCaseForModelAccessCommand.js +22 -0
- package/dist-es/commands/ListFoundationModelAgreementOffersCommand.js +22 -0
- package/dist-es/commands/PutUseCaseForModelAccessCommand.js +22 -0
- package/dist-es/commands/index.js +6 -0
- package/dist-es/models/models_0.js +54 -126
- package/dist-es/models/models_1.js +95 -1
- package/dist-es/protocols/Aws_restJson1.js +153 -2
- package/dist-types/Bedrock.d.ts +43 -0
- package/dist-types/BedrockClient.d.ts +8 -2
- package/dist-types/commands/CreateFoundationModelAgreementCommand.d.ts +91 -0
- package/dist-types/commands/CreateModelCustomizationJobCommand.d.ts +1 -1
- package/dist-types/commands/DeleteFoundationModelAgreementCommand.d.ts +88 -0
- package/dist-types/commands/GetFoundationModelAvailabilityCommand.d.ts +94 -0
- package/dist-types/commands/GetModelCustomizationJobCommand.d.ts +1 -1
- package/dist-types/commands/GetUseCaseForModelAccessCommand.d.ts +82 -0
- package/dist-types/commands/ListFoundationModelAgreementOffersCommand.d.ts +116 -0
- package/dist-types/commands/ListModelCustomizationJobsCommand.d.ts +1 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/PutUseCaseForModelAccessCommand.d.ts +82 -0
- package/dist-types/commands/StopModelCustomizationJobCommand.d.ts +1 -1
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +6 -0
- package/dist-types/models/models_0.d.ts +239 -804
- package/dist-types/models/models_1.d.ts +901 -1
- package/dist-types/protocols/Aws_restJson1.d.ts +54 -0
- package/dist-types/ts3.4/Bedrock.d.ts +109 -0
- package/dist-types/ts3.4/BedrockClient.d.ts +36 -0
- package/dist-types/ts3.4/commands/CreateFoundationModelAgreementCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateModelCustomizationJobCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteFoundationModelAgreementCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetFoundationModelAvailabilityCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetModelCustomizationJobCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetUseCaseForModelAccessCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListFoundationModelAgreementOffersCommand.d.ts +49 -0
- package/dist-types/ts3.4/commands/ListModelCustomizationJobsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/PutUseCaseForModelAccessCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/StopModelCustomizationJobCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/index.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +107 -425
- package/dist-types/ts3.4/models/models_1.d.ts +431 -1
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +72 -0
- package/package.json +1 -1
|
@@ -3,8 +3,8 @@ import { requestBuilder as rb } from "@smithy/core";
|
|
|
3
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, limitedParseFloat32 as __limitedParseFloat32, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeDateTime as __serializeDateTime, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
5
|
import { BedrockServiceException as __BaseException } from "../models/BedrockServiceException";
|
|
6
|
-
import { AccessDeniedException, AutomatedEvaluationCustomMetricSource, ConflictException, EvaluationConfig, InternalServerException, RatingScaleItemValue, ResourceNotFoundException,
|
|
7
|
-
import { EvaluationInferenceConfig, KnowledgeBaseConfig, RAGConfig, } from "../models/models_1";
|
|
6
|
+
import { AccessDeniedException, AutomatedEvaluationCustomMetricSource, ConflictException, EvaluationConfig, InternalServerException, RatingScaleItemValue, ResourceNotFoundException, ServiceQuotaExceededException, ServiceUnavailableException, ThrottlingException, TooManyTagsException, ValidationException, } from "../models/models_0";
|
|
7
|
+
import { EvaluationInferenceConfig, KnowledgeBaseConfig, RAGConfig, RetrievalFilter, } from "../models/models_1";
|
|
8
8
|
export const se_BatchDeleteEvaluationJobCommand = async (input, context) => {
|
|
9
9
|
const b = rb(input, context);
|
|
10
10
|
const headers = {
|
|
@@ -58,6 +58,20 @@ export const se_CreateEvaluationJobCommand = async (input, context) => {
|
|
|
58
58
|
b.m("POST").h(headers).b(body);
|
|
59
59
|
return b.build();
|
|
60
60
|
};
|
|
61
|
+
export const se_CreateFoundationModelAgreementCommand = async (input, context) => {
|
|
62
|
+
const b = rb(input, context);
|
|
63
|
+
const headers = {
|
|
64
|
+
"content-type": "application/json",
|
|
65
|
+
};
|
|
66
|
+
b.bp("/create-foundation-model-agreement");
|
|
67
|
+
let body;
|
|
68
|
+
body = JSON.stringify(take(input, {
|
|
69
|
+
modelId: [],
|
|
70
|
+
offerToken: [],
|
|
71
|
+
}));
|
|
72
|
+
b.m("POST").h(headers).b(body);
|
|
73
|
+
return b.build();
|
|
74
|
+
};
|
|
61
75
|
export const se_CreateGuardrailCommand = async (input, context) => {
|
|
62
76
|
const b = rb(input, context);
|
|
63
77
|
const headers = {
|
|
@@ -265,6 +279,19 @@ export const se_DeleteCustomModelCommand = async (input, context) => {
|
|
|
265
279
|
b.m("DELETE").h(headers).b(body);
|
|
266
280
|
return b.build();
|
|
267
281
|
};
|
|
282
|
+
export const se_DeleteFoundationModelAgreementCommand = async (input, context) => {
|
|
283
|
+
const b = rb(input, context);
|
|
284
|
+
const headers = {
|
|
285
|
+
"content-type": "application/json",
|
|
286
|
+
};
|
|
287
|
+
b.bp("/delete-foundation-model-agreement");
|
|
288
|
+
let body;
|
|
289
|
+
body = JSON.stringify(take(input, {
|
|
290
|
+
modelId: [],
|
|
291
|
+
}));
|
|
292
|
+
b.m("POST").h(headers).b(body);
|
|
293
|
+
return b.build();
|
|
294
|
+
};
|
|
268
295
|
export const se_DeleteGuardrailCommand = async (input, context) => {
|
|
269
296
|
const b = rb(input, context);
|
|
270
297
|
const headers = {};
|
|
@@ -366,6 +393,15 @@ export const se_GetFoundationModelCommand = async (input, context) => {
|
|
|
366
393
|
b.m("GET").h(headers).b(body);
|
|
367
394
|
return b.build();
|
|
368
395
|
};
|
|
396
|
+
export const se_GetFoundationModelAvailabilityCommand = async (input, context) => {
|
|
397
|
+
const b = rb(input, context);
|
|
398
|
+
const headers = {};
|
|
399
|
+
b.bp("/foundation-model-availability/{modelId}");
|
|
400
|
+
b.p("modelId", () => input.modelId, "{modelId}", false);
|
|
401
|
+
let body;
|
|
402
|
+
b.m("GET").h(headers).b(body);
|
|
403
|
+
return b.build();
|
|
404
|
+
};
|
|
369
405
|
export const se_GetGuardrailCommand = async (input, context) => {
|
|
370
406
|
const b = rb(input, context);
|
|
371
407
|
const headers = {};
|
|
@@ -467,6 +503,14 @@ export const se_GetProvisionedModelThroughputCommand = async (input, context) =>
|
|
|
467
503
|
b.m("GET").h(headers).b(body);
|
|
468
504
|
return b.build();
|
|
469
505
|
};
|
|
506
|
+
export const se_GetUseCaseForModelAccessCommand = async (input, context) => {
|
|
507
|
+
const b = rb(input, context);
|
|
508
|
+
const headers = {};
|
|
509
|
+
b.bp("/use-case-for-model-access");
|
|
510
|
+
let body;
|
|
511
|
+
b.m("GET").h(headers).b(body);
|
|
512
|
+
return b.build();
|
|
513
|
+
};
|
|
470
514
|
export const se_ListCustomModelsCommand = async (input, context) => {
|
|
471
515
|
const b = rb(input, context);
|
|
472
516
|
const headers = {};
|
|
@@ -507,6 +551,18 @@ export const se_ListEvaluationJobsCommand = async (input, context) => {
|
|
|
507
551
|
b.m("GET").h(headers).q(query).b(body);
|
|
508
552
|
return b.build();
|
|
509
553
|
};
|
|
554
|
+
export const se_ListFoundationModelAgreementOffersCommand = async (input, context) => {
|
|
555
|
+
const b = rb(input, context);
|
|
556
|
+
const headers = {};
|
|
557
|
+
b.bp("/list-foundation-model-agreement-offers/{modelId}");
|
|
558
|
+
b.p("modelId", () => input.modelId, "{modelId}", false);
|
|
559
|
+
const query = map({
|
|
560
|
+
[_oT]: [, input[_oT]],
|
|
561
|
+
});
|
|
562
|
+
let body;
|
|
563
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
564
|
+
return b.build();
|
|
565
|
+
};
|
|
510
566
|
export const se_ListFoundationModelsCommand = async (input, context) => {
|
|
511
567
|
const b = rb(input, context);
|
|
512
568
|
const headers = {};
|
|
@@ -709,6 +765,19 @@ export const se_PutModelInvocationLoggingConfigurationCommand = async (input, co
|
|
|
709
765
|
b.m("PUT").h(headers).b(body);
|
|
710
766
|
return b.build();
|
|
711
767
|
};
|
|
768
|
+
export const se_PutUseCaseForModelAccessCommand = async (input, context) => {
|
|
769
|
+
const b = rb(input, context);
|
|
770
|
+
const headers = {
|
|
771
|
+
"content-type": "application/json",
|
|
772
|
+
};
|
|
773
|
+
b.bp("/use-case-for-model-access");
|
|
774
|
+
let body;
|
|
775
|
+
body = JSON.stringify(take(input, {
|
|
776
|
+
formData: (_) => context.base64Encoder(_),
|
|
777
|
+
}));
|
|
778
|
+
b.m("POST").h(headers).b(body);
|
|
779
|
+
return b.build();
|
|
780
|
+
};
|
|
712
781
|
export const se_RegisterMarketplaceModelEndpointCommand = async (input, context) => {
|
|
713
782
|
const b = rb(input, context);
|
|
714
783
|
const headers = {
|
|
@@ -875,6 +944,20 @@ export const de_CreateEvaluationJobCommand = async (output, context) => {
|
|
|
875
944
|
Object.assign(contents, doc);
|
|
876
945
|
return contents;
|
|
877
946
|
};
|
|
947
|
+
export const de_CreateFoundationModelAgreementCommand = async (output, context) => {
|
|
948
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
949
|
+
return de_CommandError(output, context);
|
|
950
|
+
}
|
|
951
|
+
const contents = map({
|
|
952
|
+
$metadata: deserializeMetadata(output),
|
|
953
|
+
});
|
|
954
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
955
|
+
const doc = take(data, {
|
|
956
|
+
modelId: __expectString,
|
|
957
|
+
});
|
|
958
|
+
Object.assign(contents, doc);
|
|
959
|
+
return contents;
|
|
960
|
+
};
|
|
878
961
|
export const de_CreateGuardrailCommand = async (output, context) => {
|
|
879
962
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
880
963
|
return de_CommandError(output, context);
|
|
@@ -1030,6 +1113,16 @@ export const de_DeleteCustomModelCommand = async (output, context) => {
|
|
|
1030
1113
|
await collectBody(output.body, context);
|
|
1031
1114
|
return contents;
|
|
1032
1115
|
};
|
|
1116
|
+
export const de_DeleteFoundationModelAgreementCommand = async (output, context) => {
|
|
1117
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1118
|
+
return de_CommandError(output, context);
|
|
1119
|
+
}
|
|
1120
|
+
const contents = map({
|
|
1121
|
+
$metadata: deserializeMetadata(output),
|
|
1122
|
+
});
|
|
1123
|
+
await collectBody(output.body, context);
|
|
1124
|
+
return contents;
|
|
1125
|
+
};
|
|
1033
1126
|
export const de_DeleteGuardrailCommand = async (output, context) => {
|
|
1034
1127
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1035
1128
|
return de_CommandError(output, context);
|
|
@@ -1181,6 +1274,24 @@ export const de_GetFoundationModelCommand = async (output, context) => {
|
|
|
1181
1274
|
Object.assign(contents, doc);
|
|
1182
1275
|
return contents;
|
|
1183
1276
|
};
|
|
1277
|
+
export const de_GetFoundationModelAvailabilityCommand = async (output, context) => {
|
|
1278
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1279
|
+
return de_CommandError(output, context);
|
|
1280
|
+
}
|
|
1281
|
+
const contents = map({
|
|
1282
|
+
$metadata: deserializeMetadata(output),
|
|
1283
|
+
});
|
|
1284
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1285
|
+
const doc = take(data, {
|
|
1286
|
+
agreementAvailability: _json,
|
|
1287
|
+
authorizationStatus: __expectString,
|
|
1288
|
+
entitlementAvailability: __expectString,
|
|
1289
|
+
modelId: __expectString,
|
|
1290
|
+
regionAvailability: __expectString,
|
|
1291
|
+
});
|
|
1292
|
+
Object.assign(contents, doc);
|
|
1293
|
+
return contents;
|
|
1294
|
+
};
|
|
1184
1295
|
export const de_GetGuardrailCommand = async (output, context) => {
|
|
1185
1296
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1186
1297
|
return de_CommandError(output, context);
|
|
@@ -1449,6 +1560,20 @@ export const de_GetProvisionedModelThroughputCommand = async (output, context) =
|
|
|
1449
1560
|
Object.assign(contents, doc);
|
|
1450
1561
|
return contents;
|
|
1451
1562
|
};
|
|
1563
|
+
export const de_GetUseCaseForModelAccessCommand = async (output, context) => {
|
|
1564
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1565
|
+
return de_CommandError(output, context);
|
|
1566
|
+
}
|
|
1567
|
+
const contents = map({
|
|
1568
|
+
$metadata: deserializeMetadata(output),
|
|
1569
|
+
});
|
|
1570
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1571
|
+
const doc = take(data, {
|
|
1572
|
+
formData: context.base64Decoder,
|
|
1573
|
+
});
|
|
1574
|
+
Object.assign(contents, doc);
|
|
1575
|
+
return contents;
|
|
1576
|
+
};
|
|
1452
1577
|
export const de_ListCustomModelsCommand = async (output, context) => {
|
|
1453
1578
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1454
1579
|
return de_CommandError(output, context);
|
|
@@ -1479,6 +1604,21 @@ export const de_ListEvaluationJobsCommand = async (output, context) => {
|
|
|
1479
1604
|
Object.assign(contents, doc);
|
|
1480
1605
|
return contents;
|
|
1481
1606
|
};
|
|
1607
|
+
export const de_ListFoundationModelAgreementOffersCommand = async (output, context) => {
|
|
1608
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1609
|
+
return de_CommandError(output, context);
|
|
1610
|
+
}
|
|
1611
|
+
const contents = map({
|
|
1612
|
+
$metadata: deserializeMetadata(output),
|
|
1613
|
+
});
|
|
1614
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1615
|
+
const doc = take(data, {
|
|
1616
|
+
modelId: __expectString,
|
|
1617
|
+
offers: _json,
|
|
1618
|
+
});
|
|
1619
|
+
Object.assign(contents, doc);
|
|
1620
|
+
return contents;
|
|
1621
|
+
};
|
|
1482
1622
|
export const de_ListFoundationModelsCommand = async (output, context) => {
|
|
1483
1623
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1484
1624
|
return de_CommandError(output, context);
|
|
@@ -1667,6 +1807,16 @@ export const de_PutModelInvocationLoggingConfigurationCommand = async (output, c
|
|
|
1667
1807
|
await collectBody(output.body, context);
|
|
1668
1808
|
return contents;
|
|
1669
1809
|
};
|
|
1810
|
+
export const de_PutUseCaseForModelAccessCommand = async (output, context) => {
|
|
1811
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1812
|
+
return de_CommandError(output, context);
|
|
1813
|
+
}
|
|
1814
|
+
const contents = map({
|
|
1815
|
+
$metadata: deserializeMetadata(output),
|
|
1816
|
+
});
|
|
1817
|
+
await collectBody(output.body, context);
|
|
1818
|
+
return contents;
|
|
1819
|
+
};
|
|
1670
1820
|
export const de_RegisterMarketplaceModelEndpointCommand = async (output, context) => {
|
|
1671
1821
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1672
1822
|
return de_CommandError(output, context);
|
|
@@ -2866,6 +3016,7 @@ const _mSI = "modelSourceIdentifier";
|
|
|
2866
3016
|
const _nC = "nameContains";
|
|
2867
3017
|
const _nT = "nextToken";
|
|
2868
3018
|
const _oMNC = "outputModelNameContains";
|
|
3019
|
+
const _oT = "offerType";
|
|
2869
3020
|
const _sAE = "sourceAccountEquals";
|
|
2870
3021
|
const _sB = "sortBy";
|
|
2871
3022
|
const _sE = "statusEquals";
|
package/dist-types/Bedrock.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { BedrockClient } from "./BedrockClient";
|
|
|
3
3
|
import { BatchDeleteEvaluationJobCommandInput, BatchDeleteEvaluationJobCommandOutput } from "./commands/BatchDeleteEvaluationJobCommand";
|
|
4
4
|
import { CreateCustomModelCommandInput, CreateCustomModelCommandOutput } from "./commands/CreateCustomModelCommand";
|
|
5
5
|
import { CreateEvaluationJobCommandInput, CreateEvaluationJobCommandOutput } from "./commands/CreateEvaluationJobCommand";
|
|
6
|
+
import { CreateFoundationModelAgreementCommandInput, CreateFoundationModelAgreementCommandOutput } from "./commands/CreateFoundationModelAgreementCommand";
|
|
6
7
|
import { CreateGuardrailCommandInput, CreateGuardrailCommandOutput } from "./commands/CreateGuardrailCommand";
|
|
7
8
|
import { CreateGuardrailVersionCommandInput, CreateGuardrailVersionCommandOutput } from "./commands/CreateGuardrailVersionCommand";
|
|
8
9
|
import { CreateInferenceProfileCommandInput, CreateInferenceProfileCommandOutput } from "./commands/CreateInferenceProfileCommand";
|
|
@@ -14,6 +15,7 @@ import { CreateModelInvocationJobCommandInput, CreateModelInvocationJobCommandOu
|
|
|
14
15
|
import { CreatePromptRouterCommandInput, CreatePromptRouterCommandOutput } from "./commands/CreatePromptRouterCommand";
|
|
15
16
|
import { CreateProvisionedModelThroughputCommandInput, CreateProvisionedModelThroughputCommandOutput } from "./commands/CreateProvisionedModelThroughputCommand";
|
|
16
17
|
import { DeleteCustomModelCommandInput, DeleteCustomModelCommandOutput } from "./commands/DeleteCustomModelCommand";
|
|
18
|
+
import { DeleteFoundationModelAgreementCommandInput, DeleteFoundationModelAgreementCommandOutput } from "./commands/DeleteFoundationModelAgreementCommand";
|
|
17
19
|
import { DeleteGuardrailCommandInput, DeleteGuardrailCommandOutput } from "./commands/DeleteGuardrailCommand";
|
|
18
20
|
import { DeleteImportedModelCommandInput, DeleteImportedModelCommandOutput } from "./commands/DeleteImportedModelCommand";
|
|
19
21
|
import { DeleteInferenceProfileCommandInput, DeleteInferenceProfileCommandOutput } from "./commands/DeleteInferenceProfileCommand";
|
|
@@ -24,6 +26,7 @@ import { DeleteProvisionedModelThroughputCommandInput, DeleteProvisionedModelThr
|
|
|
24
26
|
import { DeregisterMarketplaceModelEndpointCommandInput, DeregisterMarketplaceModelEndpointCommandOutput } from "./commands/DeregisterMarketplaceModelEndpointCommand";
|
|
25
27
|
import { GetCustomModelCommandInput, GetCustomModelCommandOutput } from "./commands/GetCustomModelCommand";
|
|
26
28
|
import { GetEvaluationJobCommandInput, GetEvaluationJobCommandOutput } from "./commands/GetEvaluationJobCommand";
|
|
29
|
+
import { GetFoundationModelAvailabilityCommandInput, GetFoundationModelAvailabilityCommandOutput } from "./commands/GetFoundationModelAvailabilityCommand";
|
|
27
30
|
import { GetFoundationModelCommandInput, GetFoundationModelCommandOutput } from "./commands/GetFoundationModelCommand";
|
|
28
31
|
import { GetGuardrailCommandInput, GetGuardrailCommandOutput } from "./commands/GetGuardrailCommand";
|
|
29
32
|
import { GetImportedModelCommandInput, GetImportedModelCommandOutput } from "./commands/GetImportedModelCommand";
|
|
@@ -36,8 +39,10 @@ import { GetModelInvocationJobCommandInput, GetModelInvocationJobCommandOutput }
|
|
|
36
39
|
import { GetModelInvocationLoggingConfigurationCommandInput, GetModelInvocationLoggingConfigurationCommandOutput } from "./commands/GetModelInvocationLoggingConfigurationCommand";
|
|
37
40
|
import { GetPromptRouterCommandInput, GetPromptRouterCommandOutput } from "./commands/GetPromptRouterCommand";
|
|
38
41
|
import { GetProvisionedModelThroughputCommandInput, GetProvisionedModelThroughputCommandOutput } from "./commands/GetProvisionedModelThroughputCommand";
|
|
42
|
+
import { GetUseCaseForModelAccessCommandInput, GetUseCaseForModelAccessCommandOutput } from "./commands/GetUseCaseForModelAccessCommand";
|
|
39
43
|
import { ListCustomModelsCommandInput, ListCustomModelsCommandOutput } from "./commands/ListCustomModelsCommand";
|
|
40
44
|
import { ListEvaluationJobsCommandInput, ListEvaluationJobsCommandOutput } from "./commands/ListEvaluationJobsCommand";
|
|
45
|
+
import { ListFoundationModelAgreementOffersCommandInput, ListFoundationModelAgreementOffersCommandOutput } from "./commands/ListFoundationModelAgreementOffersCommand";
|
|
41
46
|
import { ListFoundationModelsCommandInput, ListFoundationModelsCommandOutput } from "./commands/ListFoundationModelsCommand";
|
|
42
47
|
import { ListGuardrailsCommandInput, ListGuardrailsCommandOutput } from "./commands/ListGuardrailsCommand";
|
|
43
48
|
import { ListImportedModelsCommandInput, ListImportedModelsCommandOutput } from "./commands/ListImportedModelsCommand";
|
|
@@ -51,6 +56,7 @@ import { ListPromptRoutersCommandInput, ListPromptRoutersCommandOutput } from ".
|
|
|
51
56
|
import { ListProvisionedModelThroughputsCommandInput, ListProvisionedModelThroughputsCommandOutput } from "./commands/ListProvisionedModelThroughputsCommand";
|
|
52
57
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
53
58
|
import { PutModelInvocationLoggingConfigurationCommandInput, PutModelInvocationLoggingConfigurationCommandOutput } from "./commands/PutModelInvocationLoggingConfigurationCommand";
|
|
59
|
+
import { PutUseCaseForModelAccessCommandInput, PutUseCaseForModelAccessCommandOutput } from "./commands/PutUseCaseForModelAccessCommand";
|
|
54
60
|
import { RegisterMarketplaceModelEndpointCommandInput, RegisterMarketplaceModelEndpointCommandOutput } from "./commands/RegisterMarketplaceModelEndpointCommand";
|
|
55
61
|
import { StopEvaluationJobCommandInput, StopEvaluationJobCommandOutput } from "./commands/StopEvaluationJobCommand";
|
|
56
62
|
import { StopModelCustomizationJobCommandInput, StopModelCustomizationJobCommandOutput } from "./commands/StopModelCustomizationJobCommand";
|
|
@@ -79,6 +85,12 @@ export interface Bedrock {
|
|
|
79
85
|
createEvaluationJob(args: CreateEvaluationJobCommandInput, options?: __HttpHandlerOptions): Promise<CreateEvaluationJobCommandOutput>;
|
|
80
86
|
createEvaluationJob(args: CreateEvaluationJobCommandInput, cb: (err: any, data?: CreateEvaluationJobCommandOutput) => void): void;
|
|
81
87
|
createEvaluationJob(args: CreateEvaluationJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateEvaluationJobCommandOutput) => void): void;
|
|
88
|
+
/**
|
|
89
|
+
* @see {@link CreateFoundationModelAgreementCommand}
|
|
90
|
+
*/
|
|
91
|
+
createFoundationModelAgreement(args: CreateFoundationModelAgreementCommandInput, options?: __HttpHandlerOptions): Promise<CreateFoundationModelAgreementCommandOutput>;
|
|
92
|
+
createFoundationModelAgreement(args: CreateFoundationModelAgreementCommandInput, cb: (err: any, data?: CreateFoundationModelAgreementCommandOutput) => void): void;
|
|
93
|
+
createFoundationModelAgreement(args: CreateFoundationModelAgreementCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateFoundationModelAgreementCommandOutput) => void): void;
|
|
82
94
|
/**
|
|
83
95
|
* @see {@link CreateGuardrailCommand}
|
|
84
96
|
*/
|
|
@@ -145,6 +157,12 @@ export interface Bedrock {
|
|
|
145
157
|
deleteCustomModel(args: DeleteCustomModelCommandInput, options?: __HttpHandlerOptions): Promise<DeleteCustomModelCommandOutput>;
|
|
146
158
|
deleteCustomModel(args: DeleteCustomModelCommandInput, cb: (err: any, data?: DeleteCustomModelCommandOutput) => void): void;
|
|
147
159
|
deleteCustomModel(args: DeleteCustomModelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteCustomModelCommandOutput) => void): void;
|
|
160
|
+
/**
|
|
161
|
+
* @see {@link DeleteFoundationModelAgreementCommand}
|
|
162
|
+
*/
|
|
163
|
+
deleteFoundationModelAgreement(args: DeleteFoundationModelAgreementCommandInput, options?: __HttpHandlerOptions): Promise<DeleteFoundationModelAgreementCommandOutput>;
|
|
164
|
+
deleteFoundationModelAgreement(args: DeleteFoundationModelAgreementCommandInput, cb: (err: any, data?: DeleteFoundationModelAgreementCommandOutput) => void): void;
|
|
165
|
+
deleteFoundationModelAgreement(args: DeleteFoundationModelAgreementCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteFoundationModelAgreementCommandOutput) => void): void;
|
|
148
166
|
/**
|
|
149
167
|
* @see {@link DeleteGuardrailCommand}
|
|
150
168
|
*/
|
|
@@ -212,6 +230,12 @@ export interface Bedrock {
|
|
|
212
230
|
getFoundationModel(args: GetFoundationModelCommandInput, options?: __HttpHandlerOptions): Promise<GetFoundationModelCommandOutput>;
|
|
213
231
|
getFoundationModel(args: GetFoundationModelCommandInput, cb: (err: any, data?: GetFoundationModelCommandOutput) => void): void;
|
|
214
232
|
getFoundationModel(args: GetFoundationModelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetFoundationModelCommandOutput) => void): void;
|
|
233
|
+
/**
|
|
234
|
+
* @see {@link GetFoundationModelAvailabilityCommand}
|
|
235
|
+
*/
|
|
236
|
+
getFoundationModelAvailability(args: GetFoundationModelAvailabilityCommandInput, options?: __HttpHandlerOptions): Promise<GetFoundationModelAvailabilityCommandOutput>;
|
|
237
|
+
getFoundationModelAvailability(args: GetFoundationModelAvailabilityCommandInput, cb: (err: any, data?: GetFoundationModelAvailabilityCommandOutput) => void): void;
|
|
238
|
+
getFoundationModelAvailability(args: GetFoundationModelAvailabilityCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetFoundationModelAvailabilityCommandOutput) => void): void;
|
|
215
239
|
/**
|
|
216
240
|
* @see {@link GetGuardrailCommand}
|
|
217
241
|
*/
|
|
@@ -279,6 +303,13 @@ export interface Bedrock {
|
|
|
279
303
|
getProvisionedModelThroughput(args: GetProvisionedModelThroughputCommandInput, options?: __HttpHandlerOptions): Promise<GetProvisionedModelThroughputCommandOutput>;
|
|
280
304
|
getProvisionedModelThroughput(args: GetProvisionedModelThroughputCommandInput, cb: (err: any, data?: GetProvisionedModelThroughputCommandOutput) => void): void;
|
|
281
305
|
getProvisionedModelThroughput(args: GetProvisionedModelThroughputCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetProvisionedModelThroughputCommandOutput) => void): void;
|
|
306
|
+
/**
|
|
307
|
+
* @see {@link GetUseCaseForModelAccessCommand}
|
|
308
|
+
*/
|
|
309
|
+
getUseCaseForModelAccess(): Promise<GetUseCaseForModelAccessCommandOutput>;
|
|
310
|
+
getUseCaseForModelAccess(args: GetUseCaseForModelAccessCommandInput, options?: __HttpHandlerOptions): Promise<GetUseCaseForModelAccessCommandOutput>;
|
|
311
|
+
getUseCaseForModelAccess(args: GetUseCaseForModelAccessCommandInput, cb: (err: any, data?: GetUseCaseForModelAccessCommandOutput) => void): void;
|
|
312
|
+
getUseCaseForModelAccess(args: GetUseCaseForModelAccessCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetUseCaseForModelAccessCommandOutput) => void): void;
|
|
282
313
|
/**
|
|
283
314
|
* @see {@link ListCustomModelsCommand}
|
|
284
315
|
*/
|
|
@@ -293,6 +324,12 @@ export interface Bedrock {
|
|
|
293
324
|
listEvaluationJobs(args: ListEvaluationJobsCommandInput, options?: __HttpHandlerOptions): Promise<ListEvaluationJobsCommandOutput>;
|
|
294
325
|
listEvaluationJobs(args: ListEvaluationJobsCommandInput, cb: (err: any, data?: ListEvaluationJobsCommandOutput) => void): void;
|
|
295
326
|
listEvaluationJobs(args: ListEvaluationJobsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListEvaluationJobsCommandOutput) => void): void;
|
|
327
|
+
/**
|
|
328
|
+
* @see {@link ListFoundationModelAgreementOffersCommand}
|
|
329
|
+
*/
|
|
330
|
+
listFoundationModelAgreementOffers(args: ListFoundationModelAgreementOffersCommandInput, options?: __HttpHandlerOptions): Promise<ListFoundationModelAgreementOffersCommandOutput>;
|
|
331
|
+
listFoundationModelAgreementOffers(args: ListFoundationModelAgreementOffersCommandInput, cb: (err: any, data?: ListFoundationModelAgreementOffersCommandOutput) => void): void;
|
|
332
|
+
listFoundationModelAgreementOffers(args: ListFoundationModelAgreementOffersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListFoundationModelAgreementOffersCommandOutput) => void): void;
|
|
296
333
|
/**
|
|
297
334
|
* @see {@link ListFoundationModelsCommand}
|
|
298
335
|
*/
|
|
@@ -382,6 +419,12 @@ export interface Bedrock {
|
|
|
382
419
|
putModelInvocationLoggingConfiguration(args: PutModelInvocationLoggingConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<PutModelInvocationLoggingConfigurationCommandOutput>;
|
|
383
420
|
putModelInvocationLoggingConfiguration(args: PutModelInvocationLoggingConfigurationCommandInput, cb: (err: any, data?: PutModelInvocationLoggingConfigurationCommandOutput) => void): void;
|
|
384
421
|
putModelInvocationLoggingConfiguration(args: PutModelInvocationLoggingConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutModelInvocationLoggingConfigurationCommandOutput) => void): void;
|
|
422
|
+
/**
|
|
423
|
+
* @see {@link PutUseCaseForModelAccessCommand}
|
|
424
|
+
*/
|
|
425
|
+
putUseCaseForModelAccess(args: PutUseCaseForModelAccessCommandInput, options?: __HttpHandlerOptions): Promise<PutUseCaseForModelAccessCommandOutput>;
|
|
426
|
+
putUseCaseForModelAccess(args: PutUseCaseForModelAccessCommandInput, cb: (err: any, data?: PutUseCaseForModelAccessCommandOutput) => void): void;
|
|
427
|
+
putUseCaseForModelAccess(args: PutUseCaseForModelAccessCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutUseCaseForModelAccessCommandOutput) => void): void;
|
|
385
428
|
/**
|
|
386
429
|
* @see {@link RegisterMarketplaceModelEndpointCommand}
|
|
387
430
|
*/
|
|
@@ -10,6 +10,7 @@ import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/
|
|
|
10
10
|
import { BatchDeleteEvaluationJobCommandInput, BatchDeleteEvaluationJobCommandOutput } from "./commands/BatchDeleteEvaluationJobCommand";
|
|
11
11
|
import { CreateCustomModelCommandInput, CreateCustomModelCommandOutput } from "./commands/CreateCustomModelCommand";
|
|
12
12
|
import { CreateEvaluationJobCommandInput, CreateEvaluationJobCommandOutput } from "./commands/CreateEvaluationJobCommand";
|
|
13
|
+
import { CreateFoundationModelAgreementCommandInput, CreateFoundationModelAgreementCommandOutput } from "./commands/CreateFoundationModelAgreementCommand";
|
|
13
14
|
import { CreateGuardrailCommandInput, CreateGuardrailCommandOutput } from "./commands/CreateGuardrailCommand";
|
|
14
15
|
import { CreateGuardrailVersionCommandInput, CreateGuardrailVersionCommandOutput } from "./commands/CreateGuardrailVersionCommand";
|
|
15
16
|
import { CreateInferenceProfileCommandInput, CreateInferenceProfileCommandOutput } from "./commands/CreateInferenceProfileCommand";
|
|
@@ -21,6 +22,7 @@ import { CreateModelInvocationJobCommandInput, CreateModelInvocationJobCommandOu
|
|
|
21
22
|
import { CreatePromptRouterCommandInput, CreatePromptRouterCommandOutput } from "./commands/CreatePromptRouterCommand";
|
|
22
23
|
import { CreateProvisionedModelThroughputCommandInput, CreateProvisionedModelThroughputCommandOutput } from "./commands/CreateProvisionedModelThroughputCommand";
|
|
23
24
|
import { DeleteCustomModelCommandInput, DeleteCustomModelCommandOutput } from "./commands/DeleteCustomModelCommand";
|
|
25
|
+
import { DeleteFoundationModelAgreementCommandInput, DeleteFoundationModelAgreementCommandOutput } from "./commands/DeleteFoundationModelAgreementCommand";
|
|
24
26
|
import { DeleteGuardrailCommandInput, DeleteGuardrailCommandOutput } from "./commands/DeleteGuardrailCommand";
|
|
25
27
|
import { DeleteImportedModelCommandInput, DeleteImportedModelCommandOutput } from "./commands/DeleteImportedModelCommand";
|
|
26
28
|
import { DeleteInferenceProfileCommandInput, DeleteInferenceProfileCommandOutput } from "./commands/DeleteInferenceProfileCommand";
|
|
@@ -31,6 +33,7 @@ import { DeleteProvisionedModelThroughputCommandInput, DeleteProvisionedModelThr
|
|
|
31
33
|
import { DeregisterMarketplaceModelEndpointCommandInput, DeregisterMarketplaceModelEndpointCommandOutput } from "./commands/DeregisterMarketplaceModelEndpointCommand";
|
|
32
34
|
import { GetCustomModelCommandInput, GetCustomModelCommandOutput } from "./commands/GetCustomModelCommand";
|
|
33
35
|
import { GetEvaluationJobCommandInput, GetEvaluationJobCommandOutput } from "./commands/GetEvaluationJobCommand";
|
|
36
|
+
import { GetFoundationModelAvailabilityCommandInput, GetFoundationModelAvailabilityCommandOutput } from "./commands/GetFoundationModelAvailabilityCommand";
|
|
34
37
|
import { GetFoundationModelCommandInput, GetFoundationModelCommandOutput } from "./commands/GetFoundationModelCommand";
|
|
35
38
|
import { GetGuardrailCommandInput, GetGuardrailCommandOutput } from "./commands/GetGuardrailCommand";
|
|
36
39
|
import { GetImportedModelCommandInput, GetImportedModelCommandOutput } from "./commands/GetImportedModelCommand";
|
|
@@ -43,8 +46,10 @@ import { GetModelInvocationJobCommandInput, GetModelInvocationJobCommandOutput }
|
|
|
43
46
|
import { GetModelInvocationLoggingConfigurationCommandInput, GetModelInvocationLoggingConfigurationCommandOutput } from "./commands/GetModelInvocationLoggingConfigurationCommand";
|
|
44
47
|
import { GetPromptRouterCommandInput, GetPromptRouterCommandOutput } from "./commands/GetPromptRouterCommand";
|
|
45
48
|
import { GetProvisionedModelThroughputCommandInput, GetProvisionedModelThroughputCommandOutput } from "./commands/GetProvisionedModelThroughputCommand";
|
|
49
|
+
import { GetUseCaseForModelAccessCommandInput, GetUseCaseForModelAccessCommandOutput } from "./commands/GetUseCaseForModelAccessCommand";
|
|
46
50
|
import { ListCustomModelsCommandInput, ListCustomModelsCommandOutput } from "./commands/ListCustomModelsCommand";
|
|
47
51
|
import { ListEvaluationJobsCommandInput, ListEvaluationJobsCommandOutput } from "./commands/ListEvaluationJobsCommand";
|
|
52
|
+
import { ListFoundationModelAgreementOffersCommandInput, ListFoundationModelAgreementOffersCommandOutput } from "./commands/ListFoundationModelAgreementOffersCommand";
|
|
48
53
|
import { ListFoundationModelsCommandInput, ListFoundationModelsCommandOutput } from "./commands/ListFoundationModelsCommand";
|
|
49
54
|
import { ListGuardrailsCommandInput, ListGuardrailsCommandOutput } from "./commands/ListGuardrailsCommand";
|
|
50
55
|
import { ListImportedModelsCommandInput, ListImportedModelsCommandOutput } from "./commands/ListImportedModelsCommand";
|
|
@@ -58,6 +63,7 @@ import { ListPromptRoutersCommandInput, ListPromptRoutersCommandOutput } from ".
|
|
|
58
63
|
import { ListProvisionedModelThroughputsCommandInput, ListProvisionedModelThroughputsCommandOutput } from "./commands/ListProvisionedModelThroughputsCommand";
|
|
59
64
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
60
65
|
import { PutModelInvocationLoggingConfigurationCommandInput, PutModelInvocationLoggingConfigurationCommandOutput } from "./commands/PutModelInvocationLoggingConfigurationCommand";
|
|
66
|
+
import { PutUseCaseForModelAccessCommandInput, PutUseCaseForModelAccessCommandOutput } from "./commands/PutUseCaseForModelAccessCommand";
|
|
61
67
|
import { RegisterMarketplaceModelEndpointCommandInput, RegisterMarketplaceModelEndpointCommandOutput } from "./commands/RegisterMarketplaceModelEndpointCommand";
|
|
62
68
|
import { StopEvaluationJobCommandInput, StopEvaluationJobCommandOutput } from "./commands/StopEvaluationJobCommand";
|
|
63
69
|
import { StopModelCustomizationJobCommandInput, StopModelCustomizationJobCommandOutput } from "./commands/StopModelCustomizationJobCommand";
|
|
@@ -73,11 +79,11 @@ export { __Client };
|
|
|
73
79
|
/**
|
|
74
80
|
* @public
|
|
75
81
|
*/
|
|
76
|
-
export type ServiceInputTypes = BatchDeleteEvaluationJobCommandInput | CreateCustomModelCommandInput | CreateEvaluationJobCommandInput | CreateGuardrailCommandInput | CreateGuardrailVersionCommandInput | CreateInferenceProfileCommandInput | CreateMarketplaceModelEndpointCommandInput | CreateModelCopyJobCommandInput | CreateModelCustomizationJobCommandInput | CreateModelImportJobCommandInput | CreateModelInvocationJobCommandInput | CreatePromptRouterCommandInput | CreateProvisionedModelThroughputCommandInput | DeleteCustomModelCommandInput | DeleteGuardrailCommandInput | DeleteImportedModelCommandInput | DeleteInferenceProfileCommandInput | DeleteMarketplaceModelEndpointCommandInput | DeleteModelInvocationLoggingConfigurationCommandInput | DeletePromptRouterCommandInput | DeleteProvisionedModelThroughputCommandInput | DeregisterMarketplaceModelEndpointCommandInput | GetCustomModelCommandInput | GetEvaluationJobCommandInput | GetFoundationModelCommandInput | GetGuardrailCommandInput | GetImportedModelCommandInput | GetInferenceProfileCommandInput | GetMarketplaceModelEndpointCommandInput | GetModelCopyJobCommandInput | GetModelCustomizationJobCommandInput | GetModelImportJobCommandInput | GetModelInvocationJobCommandInput | GetModelInvocationLoggingConfigurationCommandInput | GetPromptRouterCommandInput | GetProvisionedModelThroughputCommandInput | ListCustomModelsCommandInput | ListEvaluationJobsCommandInput | ListFoundationModelsCommandInput | ListGuardrailsCommandInput | ListImportedModelsCommandInput | ListInferenceProfilesCommandInput | ListMarketplaceModelEndpointsCommandInput | ListModelCopyJobsCommandInput | ListModelCustomizationJobsCommandInput | ListModelImportJobsCommandInput | ListModelInvocationJobsCommandInput | ListPromptRoutersCommandInput | ListProvisionedModelThroughputsCommandInput | ListTagsForResourceCommandInput | PutModelInvocationLoggingConfigurationCommandInput | RegisterMarketplaceModelEndpointCommandInput | StopEvaluationJobCommandInput | StopModelCustomizationJobCommandInput | StopModelInvocationJobCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateGuardrailCommandInput | UpdateMarketplaceModelEndpointCommandInput | UpdateProvisionedModelThroughputCommandInput;
|
|
82
|
+
export type ServiceInputTypes = BatchDeleteEvaluationJobCommandInput | CreateCustomModelCommandInput | CreateEvaluationJobCommandInput | CreateFoundationModelAgreementCommandInput | CreateGuardrailCommandInput | CreateGuardrailVersionCommandInput | CreateInferenceProfileCommandInput | CreateMarketplaceModelEndpointCommandInput | CreateModelCopyJobCommandInput | CreateModelCustomizationJobCommandInput | CreateModelImportJobCommandInput | CreateModelInvocationJobCommandInput | CreatePromptRouterCommandInput | CreateProvisionedModelThroughputCommandInput | DeleteCustomModelCommandInput | DeleteFoundationModelAgreementCommandInput | DeleteGuardrailCommandInput | DeleteImportedModelCommandInput | DeleteInferenceProfileCommandInput | DeleteMarketplaceModelEndpointCommandInput | DeleteModelInvocationLoggingConfigurationCommandInput | DeletePromptRouterCommandInput | DeleteProvisionedModelThroughputCommandInput | DeregisterMarketplaceModelEndpointCommandInput | GetCustomModelCommandInput | GetEvaluationJobCommandInput | GetFoundationModelAvailabilityCommandInput | GetFoundationModelCommandInput | GetGuardrailCommandInput | GetImportedModelCommandInput | GetInferenceProfileCommandInput | GetMarketplaceModelEndpointCommandInput | GetModelCopyJobCommandInput | GetModelCustomizationJobCommandInput | GetModelImportJobCommandInput | GetModelInvocationJobCommandInput | GetModelInvocationLoggingConfigurationCommandInput | GetPromptRouterCommandInput | GetProvisionedModelThroughputCommandInput | GetUseCaseForModelAccessCommandInput | ListCustomModelsCommandInput | ListEvaluationJobsCommandInput | ListFoundationModelAgreementOffersCommandInput | ListFoundationModelsCommandInput | ListGuardrailsCommandInput | ListImportedModelsCommandInput | ListInferenceProfilesCommandInput | ListMarketplaceModelEndpointsCommandInput | ListModelCopyJobsCommandInput | ListModelCustomizationJobsCommandInput | ListModelImportJobsCommandInput | ListModelInvocationJobsCommandInput | ListPromptRoutersCommandInput | ListProvisionedModelThroughputsCommandInput | ListTagsForResourceCommandInput | PutModelInvocationLoggingConfigurationCommandInput | PutUseCaseForModelAccessCommandInput | RegisterMarketplaceModelEndpointCommandInput | StopEvaluationJobCommandInput | StopModelCustomizationJobCommandInput | StopModelInvocationJobCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateGuardrailCommandInput | UpdateMarketplaceModelEndpointCommandInput | UpdateProvisionedModelThroughputCommandInput;
|
|
77
83
|
/**
|
|
78
84
|
* @public
|
|
79
85
|
*/
|
|
80
|
-
export type ServiceOutputTypes = BatchDeleteEvaluationJobCommandOutput | CreateCustomModelCommandOutput | CreateEvaluationJobCommandOutput | CreateGuardrailCommandOutput | CreateGuardrailVersionCommandOutput | CreateInferenceProfileCommandOutput | CreateMarketplaceModelEndpointCommandOutput | CreateModelCopyJobCommandOutput | CreateModelCustomizationJobCommandOutput | CreateModelImportJobCommandOutput | CreateModelInvocationJobCommandOutput | CreatePromptRouterCommandOutput | CreateProvisionedModelThroughputCommandOutput | DeleteCustomModelCommandOutput | DeleteGuardrailCommandOutput | DeleteImportedModelCommandOutput | DeleteInferenceProfileCommandOutput | DeleteMarketplaceModelEndpointCommandOutput | DeleteModelInvocationLoggingConfigurationCommandOutput | DeletePromptRouterCommandOutput | DeleteProvisionedModelThroughputCommandOutput | DeregisterMarketplaceModelEndpointCommandOutput | GetCustomModelCommandOutput | GetEvaluationJobCommandOutput | GetFoundationModelCommandOutput | GetGuardrailCommandOutput | GetImportedModelCommandOutput | GetInferenceProfileCommandOutput | GetMarketplaceModelEndpointCommandOutput | GetModelCopyJobCommandOutput | GetModelCustomizationJobCommandOutput | GetModelImportJobCommandOutput | GetModelInvocationJobCommandOutput | GetModelInvocationLoggingConfigurationCommandOutput | GetPromptRouterCommandOutput | GetProvisionedModelThroughputCommandOutput | ListCustomModelsCommandOutput | ListEvaluationJobsCommandOutput | ListFoundationModelsCommandOutput | ListGuardrailsCommandOutput | ListImportedModelsCommandOutput | ListInferenceProfilesCommandOutput | ListMarketplaceModelEndpointsCommandOutput | ListModelCopyJobsCommandOutput | ListModelCustomizationJobsCommandOutput | ListModelImportJobsCommandOutput | ListModelInvocationJobsCommandOutput | ListPromptRoutersCommandOutput | ListProvisionedModelThroughputsCommandOutput | ListTagsForResourceCommandOutput | PutModelInvocationLoggingConfigurationCommandOutput | RegisterMarketplaceModelEndpointCommandOutput | StopEvaluationJobCommandOutput | StopModelCustomizationJobCommandOutput | StopModelInvocationJobCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateGuardrailCommandOutput | UpdateMarketplaceModelEndpointCommandOutput | UpdateProvisionedModelThroughputCommandOutput;
|
|
86
|
+
export type ServiceOutputTypes = BatchDeleteEvaluationJobCommandOutput | CreateCustomModelCommandOutput | CreateEvaluationJobCommandOutput | CreateFoundationModelAgreementCommandOutput | CreateGuardrailCommandOutput | CreateGuardrailVersionCommandOutput | CreateInferenceProfileCommandOutput | CreateMarketplaceModelEndpointCommandOutput | CreateModelCopyJobCommandOutput | CreateModelCustomizationJobCommandOutput | CreateModelImportJobCommandOutput | CreateModelInvocationJobCommandOutput | CreatePromptRouterCommandOutput | CreateProvisionedModelThroughputCommandOutput | DeleteCustomModelCommandOutput | DeleteFoundationModelAgreementCommandOutput | DeleteGuardrailCommandOutput | DeleteImportedModelCommandOutput | DeleteInferenceProfileCommandOutput | DeleteMarketplaceModelEndpointCommandOutput | DeleteModelInvocationLoggingConfigurationCommandOutput | DeletePromptRouterCommandOutput | DeleteProvisionedModelThroughputCommandOutput | DeregisterMarketplaceModelEndpointCommandOutput | GetCustomModelCommandOutput | GetEvaluationJobCommandOutput | GetFoundationModelAvailabilityCommandOutput | GetFoundationModelCommandOutput | GetGuardrailCommandOutput | GetImportedModelCommandOutput | GetInferenceProfileCommandOutput | GetMarketplaceModelEndpointCommandOutput | GetModelCopyJobCommandOutput | GetModelCustomizationJobCommandOutput | GetModelImportJobCommandOutput | GetModelInvocationJobCommandOutput | GetModelInvocationLoggingConfigurationCommandOutput | GetPromptRouterCommandOutput | GetProvisionedModelThroughputCommandOutput | GetUseCaseForModelAccessCommandOutput | ListCustomModelsCommandOutput | ListEvaluationJobsCommandOutput | ListFoundationModelAgreementOffersCommandOutput | ListFoundationModelsCommandOutput | ListGuardrailsCommandOutput | ListImportedModelsCommandOutput | ListInferenceProfilesCommandOutput | ListMarketplaceModelEndpointsCommandOutput | ListModelCopyJobsCommandOutput | ListModelCustomizationJobsCommandOutput | ListModelImportJobsCommandOutput | ListModelInvocationJobsCommandOutput | ListPromptRoutersCommandOutput | ListProvisionedModelThroughputsCommandOutput | ListTagsForResourceCommandOutput | PutModelInvocationLoggingConfigurationCommandOutput | PutUseCaseForModelAccessCommandOutput | RegisterMarketplaceModelEndpointCommandOutput | StopEvaluationJobCommandOutput | StopModelCustomizationJobCommandOutput | StopModelInvocationJobCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateGuardrailCommandOutput | UpdateMarketplaceModelEndpointCommandOutput | UpdateProvisionedModelThroughputCommandOutput;
|
|
81
87
|
/**
|
|
82
88
|
* @public
|
|
83
89
|
*/
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockClient";
|
|
4
|
+
import { CreateFoundationModelAgreementRequest, CreateFoundationModelAgreementResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link CreateFoundationModelAgreementCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateFoundationModelAgreementCommandInput extends CreateFoundationModelAgreementRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreateFoundationModelAgreementCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateFoundationModelAgreementCommandOutput extends CreateFoundationModelAgreementResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const CreateFoundationModelAgreementCommand_base: {
|
|
25
|
+
new (input: CreateFoundationModelAgreementCommandInput): import("@smithy/smithy-client").CommandImpl<CreateFoundationModelAgreementCommandInput, CreateFoundationModelAgreementCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: CreateFoundationModelAgreementCommandInput): import("@smithy/smithy-client").CommandImpl<CreateFoundationModelAgreementCommandInput, CreateFoundationModelAgreementCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Request a model access agreement for the specified model.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { BedrockClient, CreateFoundationModelAgreementCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
|
|
35
|
+
* // const { BedrockClient, CreateFoundationModelAgreementCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
|
|
36
|
+
* const client = new BedrockClient(config);
|
|
37
|
+
* const input = { // CreateFoundationModelAgreementRequest
|
|
38
|
+
* offerToken: "STRING_VALUE", // required
|
|
39
|
+
* modelId: "STRING_VALUE", // required
|
|
40
|
+
* };
|
|
41
|
+
* const command = new CreateFoundationModelAgreementCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // { // CreateFoundationModelAgreementResponse
|
|
44
|
+
* // modelId: "STRING_VALUE", // required
|
|
45
|
+
* // };
|
|
46
|
+
*
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
49
|
+
* @param CreateFoundationModelAgreementCommandInput - {@link CreateFoundationModelAgreementCommandInput}
|
|
50
|
+
* @returns {@link CreateFoundationModelAgreementCommandOutput}
|
|
51
|
+
* @see {@link CreateFoundationModelAgreementCommandInput} for command's `input` shape.
|
|
52
|
+
* @see {@link CreateFoundationModelAgreementCommandOutput} for command's `response` shape.
|
|
53
|
+
* @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
|
|
54
|
+
*
|
|
55
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
56
|
+
* <p>The request is denied because of missing access permissions.</p>
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link ConflictException} (client fault)
|
|
59
|
+
* <p>Error occurred because of a conflict while performing an operation.</p>
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link InternalServerException} (server fault)
|
|
62
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
65
|
+
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
68
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link ValidationException} (client fault)
|
|
71
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link BedrockServiceException}
|
|
74
|
+
* <p>Base exception class for all service exceptions from Bedrock service.</p>
|
|
75
|
+
*
|
|
76
|
+
*
|
|
77
|
+
* @public
|
|
78
|
+
*/
|
|
79
|
+
export declare class CreateFoundationModelAgreementCommand extends CreateFoundationModelAgreementCommand_base {
|
|
80
|
+
/** @internal type navigation helper, not in runtime. */
|
|
81
|
+
protected static __types: {
|
|
82
|
+
api: {
|
|
83
|
+
input: CreateFoundationModelAgreementRequest;
|
|
84
|
+
output: CreateFoundationModelAgreementResponse;
|
|
85
|
+
};
|
|
86
|
+
sdk: {
|
|
87
|
+
input: CreateFoundationModelAgreementCommandInput;
|
|
88
|
+
output: CreateFoundationModelAgreementCommandOutput;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import { BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockClient";
|
|
4
|
-
import { CreateModelCustomizationJobRequest, CreateModelCustomizationJobResponse } from "../models/
|
|
4
|
+
import { CreateModelCustomizationJobRequest, CreateModelCustomizationJobResponse } from "../models/models_1";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockClient";
|
|
4
|
+
import { DeleteFoundationModelAgreementRequest, DeleteFoundationModelAgreementResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link DeleteFoundationModelAgreementCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface DeleteFoundationModelAgreementCommandInput extends DeleteFoundationModelAgreementRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link DeleteFoundationModelAgreementCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface DeleteFoundationModelAgreementCommandOutput extends DeleteFoundationModelAgreementResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const DeleteFoundationModelAgreementCommand_base: {
|
|
25
|
+
new (input: DeleteFoundationModelAgreementCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteFoundationModelAgreementCommandInput, DeleteFoundationModelAgreementCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: DeleteFoundationModelAgreementCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteFoundationModelAgreementCommandInput, DeleteFoundationModelAgreementCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Delete the model access agreement for the specified model.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { BedrockClient, DeleteFoundationModelAgreementCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
|
|
35
|
+
* // const { BedrockClient, DeleteFoundationModelAgreementCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
|
|
36
|
+
* const client = new BedrockClient(config);
|
|
37
|
+
* const input = { // DeleteFoundationModelAgreementRequest
|
|
38
|
+
* modelId: "STRING_VALUE", // required
|
|
39
|
+
* };
|
|
40
|
+
* const command = new DeleteFoundationModelAgreementCommand(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* // {};
|
|
43
|
+
*
|
|
44
|
+
* ```
|
|
45
|
+
*
|
|
46
|
+
* @param DeleteFoundationModelAgreementCommandInput - {@link DeleteFoundationModelAgreementCommandInput}
|
|
47
|
+
* @returns {@link DeleteFoundationModelAgreementCommandOutput}
|
|
48
|
+
* @see {@link DeleteFoundationModelAgreementCommandInput} for command's `input` shape.
|
|
49
|
+
* @see {@link DeleteFoundationModelAgreementCommandOutput} for command's `response` shape.
|
|
50
|
+
* @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
|
|
51
|
+
*
|
|
52
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
53
|
+
* <p>The request is denied because of missing access permissions.</p>
|
|
54
|
+
*
|
|
55
|
+
* @throws {@link ConflictException} (client fault)
|
|
56
|
+
* <p>Error occurred because of a conflict while performing an operation.</p>
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link InternalServerException} (server fault)
|
|
59
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
62
|
+
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
65
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link ValidationException} (client fault)
|
|
68
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link BedrockServiceException}
|
|
71
|
+
* <p>Base exception class for all service exceptions from Bedrock service.</p>
|
|
72
|
+
*
|
|
73
|
+
*
|
|
74
|
+
* @public
|
|
75
|
+
*/
|
|
76
|
+
export declare class DeleteFoundationModelAgreementCommand extends DeleteFoundationModelAgreementCommand_base {
|
|
77
|
+
/** @internal type navigation helper, not in runtime. */
|
|
78
|
+
protected static __types: {
|
|
79
|
+
api: {
|
|
80
|
+
input: DeleteFoundationModelAgreementRequest;
|
|
81
|
+
output: {};
|
|
82
|
+
};
|
|
83
|
+
sdk: {
|
|
84
|
+
input: DeleteFoundationModelAgreementCommandInput;
|
|
85
|
+
output: DeleteFoundationModelAgreementCommandOutput;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
}
|