@aws-sdk/client-bedrock 3.621.0 → 3.623.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 +24 -0
- package/dist-cjs/index.js +213 -20
- package/dist-es/Bedrock.js +6 -0
- package/dist-es/BedrockClient.js +12 -18
- package/dist-es/commands/CreateModelCopyJobCommand.js +24 -0
- package/dist-es/commands/GetModelCopyJobCommand.js +24 -0
- package/dist-es/commands/ListModelCopyJobsCommand.js +24 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/models/models_0.js +5 -0
- package/dist-es/pagination/ListModelCopyJobsPaginator.js +4 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +129 -0
- package/dist-types/Bedrock.d.ts +22 -0
- package/dist-types/BedrockClient.d.ts +7 -6
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +4 -4
- package/dist-types/commands/CreateEvaluationJobCommand.d.ts +1 -1
- package/dist-types/commands/CreateModelCopyJobCommand.d.ts +82 -0
- package/dist-types/commands/CreateModelCustomizationJobCommand.d.ts +3 -3
- package/dist-types/commands/CreateProvisionedModelThroughputCommand.d.ts +1 -1
- package/dist-types/commands/DeleteCustomModelCommand.d.ts +1 -1
- package/dist-types/commands/DeleteProvisionedModelThroughputCommand.d.ts +1 -1
- package/dist-types/commands/GetCustomModelCommand.d.ts +1 -1
- package/dist-types/commands/GetEvaluationJobCommand.d.ts +1 -1
- package/dist-types/commands/GetModelCopyJobCommand.d.ts +90 -0
- package/dist-types/commands/GetModelCustomizationJobCommand.d.ts +1 -1
- package/dist-types/commands/GetProvisionedModelThroughputCommand.d.ts +1 -1
- package/dist-types/commands/ListCustomModelsCommand.d.ts +3 -1
- package/dist-types/commands/ListFoundationModelsCommand.d.ts +1 -1
- package/dist-types/commands/ListModelCopyJobsCommand.d.ts +105 -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 +1 -1
- 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/UpdateProvisionedModelThroughputCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +288 -14
- package/dist-types/pagination/ListModelCopyJobsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
- package/dist-types/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/runtimeConfig.d.ts +2 -2
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/ts3.4/Bedrock.d.ts +52 -0
- package/dist-types/ts3.4/BedrockClient.d.ts +24 -8
- package/dist-types/ts3.4/commands/CreateModelCopyJobCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/GetModelCopyJobCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListModelCopyJobsCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/models/models_0.d.ts +64 -0
- package/dist-types/ts3.4/pagination/ListModelCopyJobsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +36 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +5 -5
- package/dist-types/ts3.4/runtimeConfig.d.ts +5 -5
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +5 -5
- package/package.json +10 -10
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./CreateEvaluationJobCommand";
|
|
2
2
|
export * from "./CreateGuardrailCommand";
|
|
3
3
|
export * from "./CreateGuardrailVersionCommand";
|
|
4
|
+
export * from "./CreateModelCopyJobCommand";
|
|
4
5
|
export * from "./CreateModelCustomizationJobCommand";
|
|
5
6
|
export * from "./CreateProvisionedModelThroughputCommand";
|
|
6
7
|
export * from "./DeleteCustomModelCommand";
|
|
@@ -11,6 +12,7 @@ export * from "./GetCustomModelCommand";
|
|
|
11
12
|
export * from "./GetEvaluationJobCommand";
|
|
12
13
|
export * from "./GetFoundationModelCommand";
|
|
13
14
|
export * from "./GetGuardrailCommand";
|
|
15
|
+
export * from "./GetModelCopyJobCommand";
|
|
14
16
|
export * from "./GetModelCustomizationJobCommand";
|
|
15
17
|
export * from "./GetModelInvocationLoggingConfigurationCommand";
|
|
16
18
|
export * from "./GetProvisionedModelThroughputCommand";
|
|
@@ -18,6 +20,7 @@ export * from "./ListCustomModelsCommand";
|
|
|
18
20
|
export * from "./ListEvaluationJobsCommand";
|
|
19
21
|
export * from "./ListFoundationModelsCommand";
|
|
20
22
|
export * from "./ListGuardrailsCommand";
|
|
23
|
+
export * from "./ListModelCopyJobsCommand";
|
|
21
24
|
export * from "./ListModelCustomizationJobsCommand";
|
|
22
25
|
export * from "./ListProvisionedModelThroughputsCommand";
|
|
23
26
|
export * from "./ListTagsForResourceCommand";
|
|
@@ -225,6 +225,11 @@ export const GuardrailStatus = {
|
|
|
225
225
|
UPDATING: "UPDATING",
|
|
226
226
|
VERSIONING: "VERSIONING",
|
|
227
227
|
};
|
|
228
|
+
export const ModelCopyJobStatus = {
|
|
229
|
+
COMPLETED: "Completed",
|
|
230
|
+
FAILED: "Failed",
|
|
231
|
+
IN_PROGRESS: "InProgress",
|
|
232
|
+
};
|
|
228
233
|
export const CustomizationType = {
|
|
229
234
|
CONTINUED_PRE_TRAINING: "CONTINUED_PRE_TRAINING",
|
|
230
235
|
FINE_TUNING: "FINE_TUNING",
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { BedrockClient } from "../BedrockClient";
|
|
3
|
+
import { ListModelCopyJobsCommand, } from "../commands/ListModelCopyJobsCommand";
|
|
4
|
+
export const paginateListModelCopyJobs = createPaginator(BedrockClient, ListModelCopyJobsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -2,5 +2,6 @@ export * from "./Interfaces";
|
|
|
2
2
|
export * from "./ListCustomModelsPaginator";
|
|
3
3
|
export * from "./ListEvaluationJobsPaginator";
|
|
4
4
|
export * from "./ListGuardrailsPaginator";
|
|
5
|
+
export * from "./ListModelCopyJobsPaginator";
|
|
5
6
|
export * from "./ListModelCustomizationJobsPaginator";
|
|
6
7
|
export * from "./ListProvisionedModelThroughputsPaginator";
|
|
@@ -64,6 +64,23 @@ export const se_CreateGuardrailVersionCommand = async (input, context) => {
|
|
|
64
64
|
b.m("POST").h(headers).b(body);
|
|
65
65
|
return b.build();
|
|
66
66
|
};
|
|
67
|
+
export const se_CreateModelCopyJobCommand = async (input, context) => {
|
|
68
|
+
const b = rb(input, context);
|
|
69
|
+
const headers = {
|
|
70
|
+
"content-type": "application/json",
|
|
71
|
+
};
|
|
72
|
+
b.bp("/model-copy-jobs");
|
|
73
|
+
let body;
|
|
74
|
+
body = JSON.stringify(take(input, {
|
|
75
|
+
clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
76
|
+
modelKmsKeyId: [],
|
|
77
|
+
sourceModelArn: [],
|
|
78
|
+
targetModelName: [],
|
|
79
|
+
targetModelTags: (_) => _json(_),
|
|
80
|
+
}));
|
|
81
|
+
b.m("POST").h(headers).b(body);
|
|
82
|
+
return b.build();
|
|
83
|
+
};
|
|
67
84
|
export const se_CreateModelCustomizationJobCommand = async (input, context) => {
|
|
68
85
|
const b = rb(input, context);
|
|
69
86
|
const headers = {
|
|
@@ -185,6 +202,15 @@ export const se_GetGuardrailCommand = async (input, context) => {
|
|
|
185
202
|
b.m("GET").h(headers).q(query).b(body);
|
|
186
203
|
return b.build();
|
|
187
204
|
};
|
|
205
|
+
export const se_GetModelCopyJobCommand = async (input, context) => {
|
|
206
|
+
const b = rb(input, context);
|
|
207
|
+
const headers = {};
|
|
208
|
+
b.bp("/model-copy-jobs/{jobArn}");
|
|
209
|
+
b.p("jobArn", () => input.jobArn, "{jobArn}", false);
|
|
210
|
+
let body;
|
|
211
|
+
b.m("GET").h(headers).b(body);
|
|
212
|
+
return b.build();
|
|
213
|
+
};
|
|
188
214
|
export const se_GetModelCustomizationJobCommand = async (input, context) => {
|
|
189
215
|
const b = rb(input, context);
|
|
190
216
|
const headers = {};
|
|
@@ -225,6 +251,7 @@ export const se_ListCustomModelsCommand = async (input, context) => {
|
|
|
225
251
|
[_nT]: [, input[_nT]],
|
|
226
252
|
[_sB]: [, input[_sB]],
|
|
227
253
|
[_sO]: [, input[_sO]],
|
|
254
|
+
[_iO]: [() => input.isOwned !== void 0, () => input[_iO].toString()],
|
|
228
255
|
});
|
|
229
256
|
let body;
|
|
230
257
|
b.m("GET").h(headers).q(query).b(body);
|
|
@@ -275,6 +302,26 @@ export const se_ListGuardrailsCommand = async (input, context) => {
|
|
|
275
302
|
b.m("GET").h(headers).q(query).b(body);
|
|
276
303
|
return b.build();
|
|
277
304
|
};
|
|
305
|
+
export const se_ListModelCopyJobsCommand = async (input, context) => {
|
|
306
|
+
const b = rb(input, context);
|
|
307
|
+
const headers = {};
|
|
308
|
+
b.bp("/model-copy-jobs");
|
|
309
|
+
const query = map({
|
|
310
|
+
[_cTA]: [() => input.creationTimeAfter !== void 0, () => __serializeDateTime(input[_cTA]).toString()],
|
|
311
|
+
[_cTB]: [() => input.creationTimeBefore !== void 0, () => __serializeDateTime(input[_cTB]).toString()],
|
|
312
|
+
[_sE]: [, input[_sE]],
|
|
313
|
+
[_sAE]: [, input[_sAE]],
|
|
314
|
+
[_sMAE]: [, input[_sMAE]],
|
|
315
|
+
[_oMNC]: [, input[_tMNC]],
|
|
316
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
317
|
+
[_nT]: [, input[_nT]],
|
|
318
|
+
[_sB]: [, input[_sB]],
|
|
319
|
+
[_sO]: [, input[_sO]],
|
|
320
|
+
});
|
|
321
|
+
let body;
|
|
322
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
323
|
+
return b.build();
|
|
324
|
+
};
|
|
278
325
|
export const se_ListModelCustomizationJobsCommand = async (input, context) => {
|
|
279
326
|
const b = rb(input, context);
|
|
280
327
|
const headers = {};
|
|
@@ -468,6 +515,20 @@ export const de_CreateGuardrailVersionCommand = async (output, context) => {
|
|
|
468
515
|
Object.assign(contents, doc);
|
|
469
516
|
return contents;
|
|
470
517
|
};
|
|
518
|
+
export const de_CreateModelCopyJobCommand = async (output, context) => {
|
|
519
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
520
|
+
return de_CommandError(output, context);
|
|
521
|
+
}
|
|
522
|
+
const contents = map({
|
|
523
|
+
$metadata: deserializeMetadata(output),
|
|
524
|
+
});
|
|
525
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
526
|
+
const doc = take(data, {
|
|
527
|
+
jobArn: __expectString,
|
|
528
|
+
});
|
|
529
|
+
Object.assign(contents, doc);
|
|
530
|
+
return contents;
|
|
531
|
+
};
|
|
471
532
|
export const de_CreateModelCustomizationJobCommand = async (output, context) => {
|
|
472
533
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
473
534
|
return de_CommandError(output, context);
|
|
@@ -634,6 +695,30 @@ export const de_GetGuardrailCommand = async (output, context) => {
|
|
|
634
695
|
Object.assign(contents, doc);
|
|
635
696
|
return contents;
|
|
636
697
|
};
|
|
698
|
+
export const de_GetModelCopyJobCommand = async (output, context) => {
|
|
699
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
700
|
+
return de_CommandError(output, context);
|
|
701
|
+
}
|
|
702
|
+
const contents = map({
|
|
703
|
+
$metadata: deserializeMetadata(output),
|
|
704
|
+
});
|
|
705
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
706
|
+
const doc = take(data, {
|
|
707
|
+
creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
708
|
+
failureMessage: __expectString,
|
|
709
|
+
jobArn: __expectString,
|
|
710
|
+
sourceAccountId: __expectString,
|
|
711
|
+
sourceModelArn: __expectString,
|
|
712
|
+
sourceModelName: __expectString,
|
|
713
|
+
status: __expectString,
|
|
714
|
+
targetModelArn: __expectString,
|
|
715
|
+
targetModelKmsKeyArn: __expectString,
|
|
716
|
+
targetModelName: __expectString,
|
|
717
|
+
targetModelTags: _json,
|
|
718
|
+
});
|
|
719
|
+
Object.assign(contents, doc);
|
|
720
|
+
return contents;
|
|
721
|
+
};
|
|
637
722
|
export const de_GetModelCustomizationJobCommand = async (output, context) => {
|
|
638
723
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
639
724
|
return de_CommandError(output, context);
|
|
@@ -767,6 +852,21 @@ export const de_ListGuardrailsCommand = async (output, context) => {
|
|
|
767
852
|
Object.assign(contents, doc);
|
|
768
853
|
return contents;
|
|
769
854
|
};
|
|
855
|
+
export const de_ListModelCopyJobsCommand = async (output, context) => {
|
|
856
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
857
|
+
return de_CommandError(output, context);
|
|
858
|
+
}
|
|
859
|
+
const contents = map({
|
|
860
|
+
$metadata: deserializeMetadata(output),
|
|
861
|
+
});
|
|
862
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
863
|
+
const doc = take(data, {
|
|
864
|
+
modelCopyJobSummaries: (_) => de_ModelCopyJobSummaries(_, context),
|
|
865
|
+
nextToken: __expectString,
|
|
866
|
+
});
|
|
867
|
+
Object.assign(contents, doc);
|
|
868
|
+
return contents;
|
|
869
|
+
};
|
|
770
870
|
export const de_ListModelCustomizationJobsCommand = async (output, context) => {
|
|
771
871
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
772
872
|
return de_CommandError(output, context);
|
|
@@ -1060,6 +1160,7 @@ const de_CustomModelSummary = (output, context) => {
|
|
|
1060
1160
|
customizationType: __expectString,
|
|
1061
1161
|
modelArn: __expectString,
|
|
1062
1162
|
modelName: __expectString,
|
|
1163
|
+
ownerAccountId: __expectString,
|
|
1063
1164
|
});
|
|
1064
1165
|
};
|
|
1065
1166
|
const de_CustomModelSummaryList = (output, context) => {
|
|
@@ -1128,6 +1229,29 @@ const de_GuardrailSummary = (output, context) => {
|
|
|
1128
1229
|
version: __expectString,
|
|
1129
1230
|
});
|
|
1130
1231
|
};
|
|
1232
|
+
const de_ModelCopyJobSummaries = (output, context) => {
|
|
1233
|
+
const retVal = (output || [])
|
|
1234
|
+
.filter((e) => e != null)
|
|
1235
|
+
.map((entry) => {
|
|
1236
|
+
return de_ModelCopyJobSummary(entry, context);
|
|
1237
|
+
});
|
|
1238
|
+
return retVal;
|
|
1239
|
+
};
|
|
1240
|
+
const de_ModelCopyJobSummary = (output, context) => {
|
|
1241
|
+
return take(output, {
|
|
1242
|
+
creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1243
|
+
failureMessage: __expectString,
|
|
1244
|
+
jobArn: __expectString,
|
|
1245
|
+
sourceAccountId: __expectString,
|
|
1246
|
+
sourceModelArn: __expectString,
|
|
1247
|
+
sourceModelName: __expectString,
|
|
1248
|
+
status: __expectString,
|
|
1249
|
+
targetModelArn: __expectString,
|
|
1250
|
+
targetModelKmsKeyArn: __expectString,
|
|
1251
|
+
targetModelName: __expectString,
|
|
1252
|
+
targetModelTags: _json,
|
|
1253
|
+
});
|
|
1254
|
+
};
|
|
1131
1255
|
const de_ModelCustomizationJobSummaries = (output, context) => {
|
|
1132
1256
|
const retVal = (output || [])
|
|
1133
1257
|
.filter((e) => e != null)
|
|
@@ -1214,10 +1338,15 @@ const _cTB = "creationTimeBefore";
|
|
|
1214
1338
|
const _fMAE = "foundationModelArnEquals";
|
|
1215
1339
|
const _gI = "guardrailIdentifier";
|
|
1216
1340
|
const _gV = "guardrailVersion";
|
|
1341
|
+
const _iO = "isOwned";
|
|
1217
1342
|
const _mAE = "modelArnEquals";
|
|
1218
1343
|
const _mR = "maxResults";
|
|
1219
1344
|
const _nC = "nameContains";
|
|
1220
1345
|
const _nT = "nextToken";
|
|
1346
|
+
const _oMNC = "outputModelNameContains";
|
|
1347
|
+
const _sAE = "sourceAccountEquals";
|
|
1221
1348
|
const _sB = "sortBy";
|
|
1222
1349
|
const _sE = "statusEquals";
|
|
1350
|
+
const _sMAE = "sourceModelArnEquals";
|
|
1223
1351
|
const _sO = "sortOrder";
|
|
1352
|
+
const _tMNC = "targetModelNameContains";
|
package/dist-types/Bedrock.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { BedrockClient } from "./BedrockClient";
|
|
|
3
3
|
import { CreateEvaluationJobCommandInput, CreateEvaluationJobCommandOutput } from "./commands/CreateEvaluationJobCommand";
|
|
4
4
|
import { CreateGuardrailCommandInput, CreateGuardrailCommandOutput } from "./commands/CreateGuardrailCommand";
|
|
5
5
|
import { CreateGuardrailVersionCommandInput, CreateGuardrailVersionCommandOutput } from "./commands/CreateGuardrailVersionCommand";
|
|
6
|
+
import { CreateModelCopyJobCommandInput, CreateModelCopyJobCommandOutput } from "./commands/CreateModelCopyJobCommand";
|
|
6
7
|
import { CreateModelCustomizationJobCommandInput, CreateModelCustomizationJobCommandOutput } from "./commands/CreateModelCustomizationJobCommand";
|
|
7
8
|
import { CreateProvisionedModelThroughputCommandInput, CreateProvisionedModelThroughputCommandOutput } from "./commands/CreateProvisionedModelThroughputCommand";
|
|
8
9
|
import { DeleteCustomModelCommandInput, DeleteCustomModelCommandOutput } from "./commands/DeleteCustomModelCommand";
|
|
@@ -13,6 +14,7 @@ import { GetCustomModelCommandInput, GetCustomModelCommandOutput } from "./comma
|
|
|
13
14
|
import { GetEvaluationJobCommandInput, GetEvaluationJobCommandOutput } from "./commands/GetEvaluationJobCommand";
|
|
14
15
|
import { GetFoundationModelCommandInput, GetFoundationModelCommandOutput } from "./commands/GetFoundationModelCommand";
|
|
15
16
|
import { GetGuardrailCommandInput, GetGuardrailCommandOutput } from "./commands/GetGuardrailCommand";
|
|
17
|
+
import { GetModelCopyJobCommandInput, GetModelCopyJobCommandOutput } from "./commands/GetModelCopyJobCommand";
|
|
16
18
|
import { GetModelCustomizationJobCommandInput, GetModelCustomizationJobCommandOutput } from "./commands/GetModelCustomizationJobCommand";
|
|
17
19
|
import { GetModelInvocationLoggingConfigurationCommandInput, GetModelInvocationLoggingConfigurationCommandOutput } from "./commands/GetModelInvocationLoggingConfigurationCommand";
|
|
18
20
|
import { GetProvisionedModelThroughputCommandInput, GetProvisionedModelThroughputCommandOutput } from "./commands/GetProvisionedModelThroughputCommand";
|
|
@@ -20,6 +22,7 @@ import { ListCustomModelsCommandInput, ListCustomModelsCommandOutput } from "./c
|
|
|
20
22
|
import { ListEvaluationJobsCommandInput, ListEvaluationJobsCommandOutput } from "./commands/ListEvaluationJobsCommand";
|
|
21
23
|
import { ListFoundationModelsCommandInput, ListFoundationModelsCommandOutput } from "./commands/ListFoundationModelsCommand";
|
|
22
24
|
import { ListGuardrailsCommandInput, ListGuardrailsCommandOutput } from "./commands/ListGuardrailsCommand";
|
|
25
|
+
import { ListModelCopyJobsCommandInput, ListModelCopyJobsCommandOutput } from "./commands/ListModelCopyJobsCommand";
|
|
23
26
|
import { ListModelCustomizationJobsCommandInput, ListModelCustomizationJobsCommandOutput } from "./commands/ListModelCustomizationJobsCommand";
|
|
24
27
|
import { ListProvisionedModelThroughputsCommandInput, ListProvisionedModelThroughputsCommandOutput } from "./commands/ListProvisionedModelThroughputsCommand";
|
|
25
28
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
@@ -49,6 +52,12 @@ export interface Bedrock {
|
|
|
49
52
|
createGuardrailVersion(args: CreateGuardrailVersionCommandInput, options?: __HttpHandlerOptions): Promise<CreateGuardrailVersionCommandOutput>;
|
|
50
53
|
createGuardrailVersion(args: CreateGuardrailVersionCommandInput, cb: (err: any, data?: CreateGuardrailVersionCommandOutput) => void): void;
|
|
51
54
|
createGuardrailVersion(args: CreateGuardrailVersionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateGuardrailVersionCommandOutput) => void): void;
|
|
55
|
+
/**
|
|
56
|
+
* @see {@link CreateModelCopyJobCommand}
|
|
57
|
+
*/
|
|
58
|
+
createModelCopyJob(args: CreateModelCopyJobCommandInput, options?: __HttpHandlerOptions): Promise<CreateModelCopyJobCommandOutput>;
|
|
59
|
+
createModelCopyJob(args: CreateModelCopyJobCommandInput, cb: (err: any, data?: CreateModelCopyJobCommandOutput) => void): void;
|
|
60
|
+
createModelCopyJob(args: CreateModelCopyJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateModelCopyJobCommandOutput) => void): void;
|
|
52
61
|
/**
|
|
53
62
|
* @see {@link CreateModelCustomizationJobCommand}
|
|
54
63
|
*/
|
|
@@ -110,6 +119,12 @@ export interface Bedrock {
|
|
|
110
119
|
getGuardrail(args: GetGuardrailCommandInput, options?: __HttpHandlerOptions): Promise<GetGuardrailCommandOutput>;
|
|
111
120
|
getGuardrail(args: GetGuardrailCommandInput, cb: (err: any, data?: GetGuardrailCommandOutput) => void): void;
|
|
112
121
|
getGuardrail(args: GetGuardrailCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetGuardrailCommandOutput) => void): void;
|
|
122
|
+
/**
|
|
123
|
+
* @see {@link GetModelCopyJobCommand}
|
|
124
|
+
*/
|
|
125
|
+
getModelCopyJob(args: GetModelCopyJobCommandInput, options?: __HttpHandlerOptions): Promise<GetModelCopyJobCommandOutput>;
|
|
126
|
+
getModelCopyJob(args: GetModelCopyJobCommandInput, cb: (err: any, data?: GetModelCopyJobCommandOutput) => void): void;
|
|
127
|
+
getModelCopyJob(args: GetModelCopyJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetModelCopyJobCommandOutput) => void): void;
|
|
113
128
|
/**
|
|
114
129
|
* @see {@link GetModelCustomizationJobCommand}
|
|
115
130
|
*/
|
|
@@ -157,6 +172,13 @@ export interface Bedrock {
|
|
|
157
172
|
listGuardrails(args: ListGuardrailsCommandInput, options?: __HttpHandlerOptions): Promise<ListGuardrailsCommandOutput>;
|
|
158
173
|
listGuardrails(args: ListGuardrailsCommandInput, cb: (err: any, data?: ListGuardrailsCommandOutput) => void): void;
|
|
159
174
|
listGuardrails(args: ListGuardrailsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListGuardrailsCommandOutput) => void): void;
|
|
175
|
+
/**
|
|
176
|
+
* @see {@link ListModelCopyJobsCommand}
|
|
177
|
+
*/
|
|
178
|
+
listModelCopyJobs(): Promise<ListModelCopyJobsCommandOutput>;
|
|
179
|
+
listModelCopyJobs(args: ListModelCopyJobsCommandInput, options?: __HttpHandlerOptions): Promise<ListModelCopyJobsCommandOutput>;
|
|
180
|
+
listModelCopyJobs(args: ListModelCopyJobsCommandInput, cb: (err: any, data?: ListModelCopyJobsCommandOutput) => void): void;
|
|
181
|
+
listModelCopyJobs(args: ListModelCopyJobsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListModelCopyJobsCommandOutput) => void): void;
|
|
160
182
|
/**
|
|
161
183
|
* @see {@link ListModelCustomizationJobsCommand}
|
|
162
184
|
*/
|
|
@@ -10,6 +10,7 @@ import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/
|
|
|
10
10
|
import { CreateEvaluationJobCommandInput, CreateEvaluationJobCommandOutput } from "./commands/CreateEvaluationJobCommand";
|
|
11
11
|
import { CreateGuardrailCommandInput, CreateGuardrailCommandOutput } from "./commands/CreateGuardrailCommand";
|
|
12
12
|
import { CreateGuardrailVersionCommandInput, CreateGuardrailVersionCommandOutput } from "./commands/CreateGuardrailVersionCommand";
|
|
13
|
+
import { CreateModelCopyJobCommandInput, CreateModelCopyJobCommandOutput } from "./commands/CreateModelCopyJobCommand";
|
|
13
14
|
import { CreateModelCustomizationJobCommandInput, CreateModelCustomizationJobCommandOutput } from "./commands/CreateModelCustomizationJobCommand";
|
|
14
15
|
import { CreateProvisionedModelThroughputCommandInput, CreateProvisionedModelThroughputCommandOutput } from "./commands/CreateProvisionedModelThroughputCommand";
|
|
15
16
|
import { DeleteCustomModelCommandInput, DeleteCustomModelCommandOutput } from "./commands/DeleteCustomModelCommand";
|
|
@@ -20,6 +21,7 @@ import { GetCustomModelCommandInput, GetCustomModelCommandOutput } from "./comma
|
|
|
20
21
|
import { GetEvaluationJobCommandInput, GetEvaluationJobCommandOutput } from "./commands/GetEvaluationJobCommand";
|
|
21
22
|
import { GetFoundationModelCommandInput, GetFoundationModelCommandOutput } from "./commands/GetFoundationModelCommand";
|
|
22
23
|
import { GetGuardrailCommandInput, GetGuardrailCommandOutput } from "./commands/GetGuardrailCommand";
|
|
24
|
+
import { GetModelCopyJobCommandInput, GetModelCopyJobCommandOutput } from "./commands/GetModelCopyJobCommand";
|
|
23
25
|
import { GetModelCustomizationJobCommandInput, GetModelCustomizationJobCommandOutput } from "./commands/GetModelCustomizationJobCommand";
|
|
24
26
|
import { GetModelInvocationLoggingConfigurationCommandInput, GetModelInvocationLoggingConfigurationCommandOutput } from "./commands/GetModelInvocationLoggingConfigurationCommand";
|
|
25
27
|
import { GetProvisionedModelThroughputCommandInput, GetProvisionedModelThroughputCommandOutput } from "./commands/GetProvisionedModelThroughputCommand";
|
|
@@ -27,6 +29,7 @@ import { ListCustomModelsCommandInput, ListCustomModelsCommandOutput } from "./c
|
|
|
27
29
|
import { ListEvaluationJobsCommandInput, ListEvaluationJobsCommandOutput } from "./commands/ListEvaluationJobsCommand";
|
|
28
30
|
import { ListFoundationModelsCommandInput, ListFoundationModelsCommandOutput } from "./commands/ListFoundationModelsCommand";
|
|
29
31
|
import { ListGuardrailsCommandInput, ListGuardrailsCommandOutput } from "./commands/ListGuardrailsCommand";
|
|
32
|
+
import { ListModelCopyJobsCommandInput, ListModelCopyJobsCommandOutput } from "./commands/ListModelCopyJobsCommand";
|
|
30
33
|
import { ListModelCustomizationJobsCommandInput, ListModelCustomizationJobsCommandOutput } from "./commands/ListModelCustomizationJobsCommand";
|
|
31
34
|
import { ListProvisionedModelThroughputsCommandInput, ListProvisionedModelThroughputsCommandOutput } from "./commands/ListProvisionedModelThroughputsCommand";
|
|
32
35
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
@@ -43,11 +46,11 @@ export { __Client };
|
|
|
43
46
|
/**
|
|
44
47
|
* @public
|
|
45
48
|
*/
|
|
46
|
-
export type ServiceInputTypes = CreateEvaluationJobCommandInput | CreateGuardrailCommandInput | CreateGuardrailVersionCommandInput | CreateModelCustomizationJobCommandInput | CreateProvisionedModelThroughputCommandInput | DeleteCustomModelCommandInput | DeleteGuardrailCommandInput | DeleteModelInvocationLoggingConfigurationCommandInput | DeleteProvisionedModelThroughputCommandInput | GetCustomModelCommandInput | GetEvaluationJobCommandInput | GetFoundationModelCommandInput | GetGuardrailCommandInput | GetModelCustomizationJobCommandInput | GetModelInvocationLoggingConfigurationCommandInput | GetProvisionedModelThroughputCommandInput | ListCustomModelsCommandInput | ListEvaluationJobsCommandInput | ListFoundationModelsCommandInput | ListGuardrailsCommandInput | ListModelCustomizationJobsCommandInput | ListProvisionedModelThroughputsCommandInput | ListTagsForResourceCommandInput | PutModelInvocationLoggingConfigurationCommandInput | StopEvaluationJobCommandInput | StopModelCustomizationJobCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateGuardrailCommandInput | UpdateProvisionedModelThroughputCommandInput;
|
|
49
|
+
export type ServiceInputTypes = CreateEvaluationJobCommandInput | CreateGuardrailCommandInput | CreateGuardrailVersionCommandInput | CreateModelCopyJobCommandInput | CreateModelCustomizationJobCommandInput | CreateProvisionedModelThroughputCommandInput | DeleteCustomModelCommandInput | DeleteGuardrailCommandInput | DeleteModelInvocationLoggingConfigurationCommandInput | DeleteProvisionedModelThroughputCommandInput | GetCustomModelCommandInput | GetEvaluationJobCommandInput | GetFoundationModelCommandInput | GetGuardrailCommandInput | GetModelCopyJobCommandInput | GetModelCustomizationJobCommandInput | GetModelInvocationLoggingConfigurationCommandInput | GetProvisionedModelThroughputCommandInput | ListCustomModelsCommandInput | ListEvaluationJobsCommandInput | ListFoundationModelsCommandInput | ListGuardrailsCommandInput | ListModelCopyJobsCommandInput | ListModelCustomizationJobsCommandInput | ListProvisionedModelThroughputsCommandInput | ListTagsForResourceCommandInput | PutModelInvocationLoggingConfigurationCommandInput | StopEvaluationJobCommandInput | StopModelCustomizationJobCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateGuardrailCommandInput | UpdateProvisionedModelThroughputCommandInput;
|
|
47
50
|
/**
|
|
48
51
|
* @public
|
|
49
52
|
*/
|
|
50
|
-
export type ServiceOutputTypes = CreateEvaluationJobCommandOutput | CreateGuardrailCommandOutput | CreateGuardrailVersionCommandOutput | CreateModelCustomizationJobCommandOutput | CreateProvisionedModelThroughputCommandOutput | DeleteCustomModelCommandOutput | DeleteGuardrailCommandOutput | DeleteModelInvocationLoggingConfigurationCommandOutput | DeleteProvisionedModelThroughputCommandOutput | GetCustomModelCommandOutput | GetEvaluationJobCommandOutput | GetFoundationModelCommandOutput | GetGuardrailCommandOutput | GetModelCustomizationJobCommandOutput | GetModelInvocationLoggingConfigurationCommandOutput | GetProvisionedModelThroughputCommandOutput | ListCustomModelsCommandOutput | ListEvaluationJobsCommandOutput | ListFoundationModelsCommandOutput | ListGuardrailsCommandOutput | ListModelCustomizationJobsCommandOutput | ListProvisionedModelThroughputsCommandOutput | ListTagsForResourceCommandOutput | PutModelInvocationLoggingConfigurationCommandOutput | StopEvaluationJobCommandOutput | StopModelCustomizationJobCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateGuardrailCommandOutput | UpdateProvisionedModelThroughputCommandOutput;
|
|
53
|
+
export type ServiceOutputTypes = CreateEvaluationJobCommandOutput | CreateGuardrailCommandOutput | CreateGuardrailVersionCommandOutput | CreateModelCopyJobCommandOutput | CreateModelCustomizationJobCommandOutput | CreateProvisionedModelThroughputCommandOutput | DeleteCustomModelCommandOutput | DeleteGuardrailCommandOutput | DeleteModelInvocationLoggingConfigurationCommandOutput | DeleteProvisionedModelThroughputCommandOutput | GetCustomModelCommandOutput | GetEvaluationJobCommandOutput | GetFoundationModelCommandOutput | GetGuardrailCommandOutput | GetModelCopyJobCommandOutput | GetModelCustomizationJobCommandOutput | GetModelInvocationLoggingConfigurationCommandOutput | GetProvisionedModelThroughputCommandOutput | ListCustomModelsCommandOutput | ListEvaluationJobsCommandOutput | ListFoundationModelsCommandOutput | ListGuardrailsCommandOutput | ListModelCopyJobsCommandOutput | ListModelCustomizationJobsCommandOutput | ListProvisionedModelThroughputsCommandOutput | ListTagsForResourceCommandOutput | PutModelInvocationLoggingConfigurationCommandOutput | StopEvaluationJobCommandOutput | StopModelCustomizationJobCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateGuardrailCommandOutput | UpdateProvisionedModelThroughputCommandOutput;
|
|
51
54
|
/**
|
|
52
55
|
* @public
|
|
53
56
|
*/
|
|
@@ -161,7 +164,7 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
|
|
|
161
164
|
/**
|
|
162
165
|
* @public
|
|
163
166
|
*/
|
|
164
|
-
export type BedrockClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults &
|
|
167
|
+
export type BedrockClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & UserAgentInputConfig & RetryInputConfig & RegionInputConfig & HostHeaderInputConfig & EndpointInputConfig<EndpointParameters> & HttpAuthSchemeInputConfig & ClientInputEndpointParameters;
|
|
165
168
|
/**
|
|
166
169
|
* @public
|
|
167
170
|
*
|
|
@@ -172,7 +175,7 @@ export interface BedrockClientConfig extends BedrockClientConfigType {
|
|
|
172
175
|
/**
|
|
173
176
|
* @public
|
|
174
177
|
*/
|
|
175
|
-
export type BedrockClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig &
|
|
178
|
+
export type BedrockClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & UserAgentResolvedConfig & RetryResolvedConfig & RegionResolvedConfig & HostHeaderResolvedConfig & EndpointResolvedConfig<EndpointParameters> & HttpAuthSchemeResolvedConfig & ClientResolvedEndpointParameters;
|
|
176
179
|
/**
|
|
177
180
|
* @public
|
|
178
181
|
*
|
|
@@ -196,6 +199,4 @@ export declare class BedrockClient extends __Client<__HttpHandlerOptions, Servic
|
|
|
196
199
|
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
197
200
|
*/
|
|
198
201
|
destroy(): void;
|
|
199
|
-
private getDefaultHttpAuthSchemeParametersProvider;
|
|
200
|
-
private getIdentityProviderConfigProvider;
|
|
201
202
|
}
|
|
@@ -30,12 +30,12 @@ export declare const defaultBedrockHttpAuthSchemeProvider: BedrockHttpAuthScheme
|
|
|
30
30
|
*/
|
|
31
31
|
export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
|
|
34
34
|
* @internal
|
|
35
35
|
*/
|
|
36
36
|
httpAuthSchemes?: HttpAuthScheme[];
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
* Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
|
|
39
39
|
* @internal
|
|
40
40
|
*/
|
|
41
41
|
httpAuthSchemeProvider?: BedrockHttpAuthSchemeProvider;
|
|
@@ -45,12 +45,12 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
|
|
|
45
45
|
*/
|
|
46
46
|
export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
48
|
+
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
|
|
49
49
|
* @internal
|
|
50
50
|
*/
|
|
51
51
|
readonly httpAuthSchemes: HttpAuthScheme[];
|
|
52
52
|
/**
|
|
53
|
-
*
|
|
53
|
+
* Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
|
|
54
54
|
* @internal
|
|
55
55
|
*/
|
|
56
56
|
readonly httpAuthSchemeProvider: BedrockHttpAuthSchemeProvider;
|
|
@@ -27,7 +27,7 @@ declare const CreateEvaluationJobCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>API operation for creating and managing Amazon Bedrock automatic model evaluation jobs and model evaluation jobs that use human workers. To learn more about the requirements for creating a model evaluation job see, <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-evaluation.html">Model
|
|
30
|
+
* <p>API operation for creating and managing Amazon Bedrock automatic model evaluation jobs and model evaluation jobs that use human workers. To learn more about the requirements for creating a model evaluation job see, <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-evaluation.html">Model evaluation</a>.</p>
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
@@ -0,0 +1,82 @@
|
|
|
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 { CreateModelCopyJobRequest, CreateModelCopyJobResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link CreateModelCopyJobCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateModelCopyJobCommandInput extends CreateModelCopyJobRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreateModelCopyJobCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateModelCopyJobCommandOutput extends CreateModelCopyJobResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const CreateModelCopyJobCommand_base: {
|
|
25
|
+
new (input: CreateModelCopyJobCommandInput): import("@smithy/smithy-client").CommandImpl<CreateModelCopyJobCommandInput, CreateModelCopyJobCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: CreateModelCopyJobCommandInput): import("@smithy/smithy-client").CommandImpl<CreateModelCopyJobCommandInput, CreateModelCopyJobCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Copies a model to another region so that it can be used there. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/copy-model.html">Copy models to be used in other regions</a> in the <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html">Amazon Bedrock User Guide</a>.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { BedrockClient, CreateModelCopyJobCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
|
|
35
|
+
* // const { BedrockClient, CreateModelCopyJobCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
|
|
36
|
+
* const client = new BedrockClient(config);
|
|
37
|
+
* const input = { // CreateModelCopyJobRequest
|
|
38
|
+
* sourceModelArn: "STRING_VALUE", // required
|
|
39
|
+
* targetModelName: "STRING_VALUE", // required
|
|
40
|
+
* modelKmsKeyId: "STRING_VALUE",
|
|
41
|
+
* targetModelTags: [ // TagList
|
|
42
|
+
* { // Tag
|
|
43
|
+
* key: "STRING_VALUE", // required
|
|
44
|
+
* value: "STRING_VALUE", // required
|
|
45
|
+
* },
|
|
46
|
+
* ],
|
|
47
|
+
* clientRequestToken: "STRING_VALUE",
|
|
48
|
+
* };
|
|
49
|
+
* const command = new CreateModelCopyJobCommand(input);
|
|
50
|
+
* const response = await client.send(command);
|
|
51
|
+
* // { // CreateModelCopyJobResponse
|
|
52
|
+
* // jobArn: "STRING_VALUE", // required
|
|
53
|
+
* // };
|
|
54
|
+
*
|
|
55
|
+
* ```
|
|
56
|
+
*
|
|
57
|
+
* @param CreateModelCopyJobCommandInput - {@link CreateModelCopyJobCommandInput}
|
|
58
|
+
* @returns {@link CreateModelCopyJobCommandOutput}
|
|
59
|
+
* @see {@link CreateModelCopyJobCommandInput} for command's `input` shape.
|
|
60
|
+
* @see {@link CreateModelCopyJobCommandOutput} for command's `response` shape.
|
|
61
|
+
* @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
64
|
+
* <p>The request is denied because of missing access permissions.</p>
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link InternalServerException} (server fault)
|
|
67
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
70
|
+
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link TooManyTagsException} (client fault)
|
|
73
|
+
* <p>The request contains more tags than can be associated with a resource (50 tags per resource).
|
|
74
|
+
* The maximum number of tags includes both existing tags and those included in your current request. </p>
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link BedrockServiceException}
|
|
77
|
+
* <p>Base exception class for all service exceptions from Bedrock service.</p>
|
|
78
|
+
*
|
|
79
|
+
* @public
|
|
80
|
+
*/
|
|
81
|
+
export declare class CreateModelCopyJobCommand extends CreateModelCopyJobCommand_base {
|
|
82
|
+
}
|
|
@@ -33,9 +33,9 @@ declare const CreateModelCustomizationJobCommand_base: {
|
|
|
33
33
|
* </p>
|
|
34
34
|
* <p>For information on the format of training and validation data, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-prepare.html">Prepare the datasets</a>.</p>
|
|
35
35
|
* <p>
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
* <p>For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html">Custom models</a> in the Amazon Bedrock User Guide
|
|
36
|
+
* Model-customization jobs are asynchronous and the completion time depends on the base model and the training/validation data size.
|
|
37
|
+
* To monitor a job, use the <code>GetModelCustomizationJob</code> operation to retrieve the job status.</p>
|
|
38
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html">Custom models</a> in the <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html">Amazon Bedrock User Guide</a>.</p>
|
|
39
39
|
* @example
|
|
40
40
|
* Use a bare-bones client and the command you need to make an API call.
|
|
41
41
|
* ```javascript
|
|
@@ -27,7 +27,7 @@ declare const CreateProvisionedModelThroughputCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Creates dedicated throughput for a base or custom model with the model units and for the duration that you specify. For pricing details, see <a href="http://aws.amazon.com/bedrock/pricing/">Amazon Bedrock Pricing</a>. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/prov-throughput.html">Provisioned Throughput</a> in the Amazon Bedrock User Guide
|
|
30
|
+
* <p>Creates dedicated throughput for a base or custom model with the model units and for the duration that you specify. For pricing details, see <a href="http://aws.amazon.com/bedrock/pricing/">Amazon Bedrock Pricing</a>. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/prov-throughput.html">Provisioned Throughput</a> in the <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html">Amazon Bedrock User Guide</a>.</p>
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
@@ -27,7 +27,7 @@ declare const DeleteCustomModelCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Deletes a custom model that you created earlier. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html">Custom models</a> in the Amazon Bedrock User Guide
|
|
30
|
+
* <p>Deletes a custom model that you created earlier. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html">Custom models</a> in the <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html">Amazon Bedrock User Guide</a>.</p>
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
@@ -27,7 +27,7 @@ declare const DeleteProvisionedModelThroughputCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Deletes a Provisioned Throughput. You can't delete a Provisioned Throughput before the commitment term is over. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/prov-throughput.html">Provisioned Throughput</a> in the Amazon Bedrock User Guide
|
|
30
|
+
* <p>Deletes a Provisioned Throughput. You can't delete a Provisioned Throughput before the commitment term is over. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/prov-throughput.html">Provisioned Throughput</a> in the <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html">Amazon Bedrock User Guide</a>.</p>
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
@@ -27,7 +27,7 @@ declare const GetCustomModelCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Get the properties associated with a Amazon Bedrock custom model that you have created.For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html">Custom models</a> in the Amazon Bedrock User Guide
|
|
30
|
+
* <p>Get the properties associated with a Amazon Bedrock custom model that you have created.For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html">Custom models</a> in the <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html">Amazon Bedrock User Guide</a>.</p>
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
@@ -28,7 +28,7 @@ declare const GetEvaluationJobCommand_base: {
|
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
30
|
* <p>Retrieves the properties associated with a model evaluation job, including the
|
|
31
|
-
* status of the job. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/
|
|
31
|
+
* status of the job. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-evaluation.html">Model evaluation</a>.</p>
|
|
32
32
|
* @example
|
|
33
33
|
* Use a bare-bones client and the command you need to make an API call.
|
|
34
34
|
* ```javascript
|