@aws-sdk/client-bedrock 3.637.0 → 3.645.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 +16 -0
- package/dist-cjs/index.js +131 -0
- package/dist-es/Bedrock.js +4 -0
- package/dist-es/commands/GetInferenceProfileCommand.js +24 -0
- package/dist-es/commands/ListInferenceProfilesCommand.js +24 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +6 -0
- package/dist-es/pagination/ListInferenceProfilesPaginator.js +4 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +79 -0
- package/dist-types/Bedrock.d.ts +15 -0
- package/dist-types/BedrockClient.d.ts +4 -2
- package/dist-types/commands/CreateModelInvocationJobCommand.d.ts +2 -2
- package/dist-types/commands/GetInferenceProfileCommand.d.ts +87 -0
- package/dist-types/commands/ListInferenceProfilesCommand.d.ts +90 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +178 -4
- package/dist-types/pagination/ListInferenceProfilesPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
- package/dist-types/ts3.4/Bedrock.d.ts +35 -0
- package/dist-types/ts3.4/BedrockClient.d.ts +12 -0
- package/dist-types/ts3.4/commands/GetInferenceProfileCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/ListInferenceProfilesCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +46 -0
- package/dist-types/ts3.4/pagination/ListInferenceProfilesPaginator.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 +24 -0
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -354,6 +354,14 @@ GetImportedModel
|
|
|
354
354
|
|
|
355
355
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/GetImportedModelCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/GetImportedModelCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/GetImportedModelCommandOutput/)
|
|
356
356
|
|
|
357
|
+
</details>
|
|
358
|
+
<details>
|
|
359
|
+
<summary>
|
|
360
|
+
GetInferenceProfile
|
|
361
|
+
</summary>
|
|
362
|
+
|
|
363
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/GetInferenceProfileCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/GetInferenceProfileCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/GetInferenceProfileCommandOutput/)
|
|
364
|
+
|
|
357
365
|
</details>
|
|
358
366
|
<details>
|
|
359
367
|
<summary>
|
|
@@ -442,6 +450,14 @@ ListImportedModels
|
|
|
442
450
|
|
|
443
451
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/ListImportedModelsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/ListImportedModelsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/ListImportedModelsCommandOutput/)
|
|
444
452
|
|
|
453
|
+
</details>
|
|
454
|
+
<details>
|
|
455
|
+
<summary>
|
|
456
|
+
ListInferenceProfiles
|
|
457
|
+
</summary>
|
|
458
|
+
|
|
459
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/ListInferenceProfilesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/ListInferenceProfilesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/ListInferenceProfilesCommandOutput/)
|
|
460
|
+
|
|
445
461
|
</details>
|
|
446
462
|
<details>
|
|
447
463
|
<summary>
|
package/dist-cjs/index.js
CHANGED
|
@@ -73,6 +73,7 @@ __export(src_exports, {
|
|
|
73
73
|
GetGuardrailCommand: () => GetGuardrailCommand,
|
|
74
74
|
GetGuardrailResponseFilterSensitiveLog: () => GetGuardrailResponseFilterSensitiveLog,
|
|
75
75
|
GetImportedModelCommand: () => GetImportedModelCommand,
|
|
76
|
+
GetInferenceProfileCommand: () => GetInferenceProfileCommand,
|
|
76
77
|
GetModelCopyJobCommand: () => GetModelCopyJobCommand,
|
|
77
78
|
GetModelCustomizationJobCommand: () => GetModelCustomizationJobCommand,
|
|
78
79
|
GetModelImportJobCommand: () => GetModelImportJobCommand,
|
|
@@ -96,6 +97,8 @@ __export(src_exports, {
|
|
|
96
97
|
HumanEvaluationConfigFilterSensitiveLog: () => HumanEvaluationConfigFilterSensitiveLog,
|
|
97
98
|
HumanEvaluationCustomMetricFilterSensitiveLog: () => HumanEvaluationCustomMetricFilterSensitiveLog,
|
|
98
99
|
HumanWorkflowConfigFilterSensitiveLog: () => HumanWorkflowConfigFilterSensitiveLog,
|
|
100
|
+
InferenceProfileStatus: () => InferenceProfileStatus,
|
|
101
|
+
InferenceProfileType: () => InferenceProfileType,
|
|
99
102
|
InferenceType: () => InferenceType,
|
|
100
103
|
InternalServerException: () => InternalServerException,
|
|
101
104
|
ListCustomModelsCommand: () => ListCustomModelsCommand,
|
|
@@ -104,6 +107,7 @@ __export(src_exports, {
|
|
|
104
107
|
ListGuardrailsCommand: () => ListGuardrailsCommand,
|
|
105
108
|
ListGuardrailsResponseFilterSensitiveLog: () => ListGuardrailsResponseFilterSensitiveLog,
|
|
106
109
|
ListImportedModelsCommand: () => ListImportedModelsCommand,
|
|
110
|
+
ListInferenceProfilesCommand: () => ListInferenceProfilesCommand,
|
|
107
111
|
ListModelCopyJobsCommand: () => ListModelCopyJobsCommand,
|
|
108
112
|
ListModelCustomizationJobsCommand: () => ListModelCustomizationJobsCommand,
|
|
109
113
|
ListModelImportJobsCommand: () => ListModelImportJobsCommand,
|
|
@@ -147,6 +151,7 @@ __export(src_exports, {
|
|
|
147
151
|
paginateListEvaluationJobs: () => paginateListEvaluationJobs,
|
|
148
152
|
paginateListGuardrails: () => paginateListGuardrails,
|
|
149
153
|
paginateListImportedModels: () => paginateListImportedModels,
|
|
154
|
+
paginateListInferenceProfiles: () => paginateListInferenceProfiles,
|
|
150
155
|
paginateListModelCopyJobs: () => paginateListModelCopyJobs,
|
|
151
156
|
paginateListModelCustomizationJobs: () => paginateListModelCustomizationJobs,
|
|
152
157
|
paginateListModelImportJobs: () => paginateListModelImportJobs,
|
|
@@ -584,6 +589,12 @@ var GuardrailStatus = {
|
|
|
584
589
|
UPDATING: "UPDATING",
|
|
585
590
|
VERSIONING: "VERSIONING"
|
|
586
591
|
};
|
|
592
|
+
var InferenceProfileStatus = {
|
|
593
|
+
ACTIVE: "ACTIVE"
|
|
594
|
+
};
|
|
595
|
+
var InferenceProfileType = {
|
|
596
|
+
SYSTEM_DEFINED: "SYSTEM_DEFINED"
|
|
597
|
+
};
|
|
587
598
|
var ModelCopyJobStatus = {
|
|
588
599
|
COMPLETED: "Completed",
|
|
589
600
|
FAILED: "Failed",
|
|
@@ -1161,6 +1172,15 @@ var se_GetImportedModelCommand = /* @__PURE__ */ __name(async (input, context) =
|
|
|
1161
1172
|
b.m("GET").h(headers).b(body);
|
|
1162
1173
|
return b.build();
|
|
1163
1174
|
}, "se_GetImportedModelCommand");
|
|
1175
|
+
var se_GetInferenceProfileCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1176
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1177
|
+
const headers = {};
|
|
1178
|
+
b.bp("/inference-profiles/{inferenceProfileIdentifier}");
|
|
1179
|
+
b.p("inferenceProfileIdentifier", () => input.inferenceProfileIdentifier, "{inferenceProfileIdentifier}", false);
|
|
1180
|
+
let body;
|
|
1181
|
+
b.m("GET").h(headers).b(body);
|
|
1182
|
+
return b.build();
|
|
1183
|
+
}, "se_GetInferenceProfileCommand");
|
|
1164
1184
|
var se_GetModelCopyJobCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1165
1185
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
1166
1186
|
const headers = {};
|
|
@@ -1296,6 +1316,18 @@ var se_ListImportedModelsCommand = /* @__PURE__ */ __name(async (input, context)
|
|
|
1296
1316
|
b.m("GET").h(headers).q(query).b(body);
|
|
1297
1317
|
return b.build();
|
|
1298
1318
|
}, "se_ListImportedModelsCommand");
|
|
1319
|
+
var se_ListInferenceProfilesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1320
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1321
|
+
const headers = {};
|
|
1322
|
+
b.bp("/inference-profiles");
|
|
1323
|
+
const query = (0, import_smithy_client.map)({
|
|
1324
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
1325
|
+
[_nT]: [, input[_nT]]
|
|
1326
|
+
});
|
|
1327
|
+
let body;
|
|
1328
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
1329
|
+
return b.build();
|
|
1330
|
+
}, "se_ListInferenceProfilesCommand");
|
|
1299
1331
|
var se_ListModelCopyJobsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1300
1332
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
1301
1333
|
const headers = {};
|
|
@@ -1820,6 +1852,28 @@ var de_GetImportedModelCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1820
1852
|
Object.assign(contents, doc);
|
|
1821
1853
|
return contents;
|
|
1822
1854
|
}, "de_GetImportedModelCommand");
|
|
1855
|
+
var de_GetInferenceProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1856
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1857
|
+
return de_CommandError(output, context);
|
|
1858
|
+
}
|
|
1859
|
+
const contents = (0, import_smithy_client.map)({
|
|
1860
|
+
$metadata: deserializeMetadata(output)
|
|
1861
|
+
});
|
|
1862
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1863
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1864
|
+
createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1865
|
+
description: import_smithy_client.expectString,
|
|
1866
|
+
inferenceProfileArn: import_smithy_client.expectString,
|
|
1867
|
+
inferenceProfileId: import_smithy_client.expectString,
|
|
1868
|
+
inferenceProfileName: import_smithy_client.expectString,
|
|
1869
|
+
models: import_smithy_client._json,
|
|
1870
|
+
status: import_smithy_client.expectString,
|
|
1871
|
+
type: import_smithy_client.expectString,
|
|
1872
|
+
updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
|
|
1873
|
+
});
|
|
1874
|
+
Object.assign(contents, doc);
|
|
1875
|
+
return contents;
|
|
1876
|
+
}, "de_GetInferenceProfileCommand");
|
|
1823
1877
|
var de_GetModelCopyJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1824
1878
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1825
1879
|
return de_CommandError(output, context);
|
|
@@ -2045,6 +2099,21 @@ var de_ListImportedModelsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2045
2099
|
Object.assign(contents, doc);
|
|
2046
2100
|
return contents;
|
|
2047
2101
|
}, "de_ListImportedModelsCommand");
|
|
2102
|
+
var de_ListInferenceProfilesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2103
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2104
|
+
return de_CommandError(output, context);
|
|
2105
|
+
}
|
|
2106
|
+
const contents = (0, import_smithy_client.map)({
|
|
2107
|
+
$metadata: deserializeMetadata(output)
|
|
2108
|
+
});
|
|
2109
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2110
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2111
|
+
inferenceProfileSummaries: (_) => de_InferenceProfileSummaries(_, context),
|
|
2112
|
+
nextToken: import_smithy_client.expectString
|
|
2113
|
+
});
|
|
2114
|
+
Object.assign(contents, doc);
|
|
2115
|
+
return contents;
|
|
2116
|
+
}, "de_ListInferenceProfilesCommand");
|
|
2048
2117
|
var de_ListModelCopyJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2049
2118
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2050
2119
|
return de_CommandError(output, context);
|
|
@@ -2465,6 +2534,25 @@ var de_ImportedModelSummaryList = /* @__PURE__ */ __name((output, context) => {
|
|
|
2465
2534
|
});
|
|
2466
2535
|
return retVal;
|
|
2467
2536
|
}, "de_ImportedModelSummaryList");
|
|
2537
|
+
var de_InferenceProfileSummaries = /* @__PURE__ */ __name((output, context) => {
|
|
2538
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
2539
|
+
return de_InferenceProfileSummary(entry, context);
|
|
2540
|
+
});
|
|
2541
|
+
return retVal;
|
|
2542
|
+
}, "de_InferenceProfileSummaries");
|
|
2543
|
+
var de_InferenceProfileSummary = /* @__PURE__ */ __name((output, context) => {
|
|
2544
|
+
return (0, import_smithy_client.take)(output, {
|
|
2545
|
+
createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
2546
|
+
description: import_smithy_client.expectString,
|
|
2547
|
+
inferenceProfileArn: import_smithy_client.expectString,
|
|
2548
|
+
inferenceProfileId: import_smithy_client.expectString,
|
|
2549
|
+
inferenceProfileName: import_smithy_client.expectString,
|
|
2550
|
+
models: import_smithy_client._json,
|
|
2551
|
+
status: import_smithy_client.expectString,
|
|
2552
|
+
type: import_smithy_client.expectString,
|
|
2553
|
+
updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
|
|
2554
|
+
});
|
|
2555
|
+
}, "de_InferenceProfileSummary");
|
|
2468
2556
|
var de_ModelCopyJobSummaries = /* @__PURE__ */ __name((output, context) => {
|
|
2469
2557
|
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
2470
2558
|
return de_ModelCopyJobSummary(entry, context);
|
|
@@ -2918,6 +3006,22 @@ var _GetImportedModelCommand = class _GetImportedModelCommand extends import_smi
|
|
|
2918
3006
|
__name(_GetImportedModelCommand, "GetImportedModelCommand");
|
|
2919
3007
|
var GetImportedModelCommand = _GetImportedModelCommand;
|
|
2920
3008
|
|
|
3009
|
+
// src/commands/GetInferenceProfileCommand.ts
|
|
3010
|
+
|
|
3011
|
+
|
|
3012
|
+
|
|
3013
|
+
var _GetInferenceProfileCommand = class _GetInferenceProfileCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3014
|
+
...commonParams
|
|
3015
|
+
}).m(function(Command, cs, config, o) {
|
|
3016
|
+
return [
|
|
3017
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3018
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3019
|
+
];
|
|
3020
|
+
}).s("AmazonBedrockControlPlaneService", "GetInferenceProfile", {}).n("BedrockClient", "GetInferenceProfileCommand").f(void 0, void 0).ser(se_GetInferenceProfileCommand).de(de_GetInferenceProfileCommand).build() {
|
|
3021
|
+
};
|
|
3022
|
+
__name(_GetInferenceProfileCommand, "GetInferenceProfileCommand");
|
|
3023
|
+
var GetInferenceProfileCommand = _GetInferenceProfileCommand;
|
|
3024
|
+
|
|
2921
3025
|
// src/commands/GetModelCopyJobCommand.ts
|
|
2922
3026
|
|
|
2923
3027
|
|
|
@@ -3094,6 +3198,22 @@ var _ListImportedModelsCommand = class _ListImportedModelsCommand extends import
|
|
|
3094
3198
|
__name(_ListImportedModelsCommand, "ListImportedModelsCommand");
|
|
3095
3199
|
var ListImportedModelsCommand = _ListImportedModelsCommand;
|
|
3096
3200
|
|
|
3201
|
+
// src/commands/ListInferenceProfilesCommand.ts
|
|
3202
|
+
|
|
3203
|
+
|
|
3204
|
+
|
|
3205
|
+
var _ListInferenceProfilesCommand = class _ListInferenceProfilesCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3206
|
+
...commonParams
|
|
3207
|
+
}).m(function(Command, cs, config, o) {
|
|
3208
|
+
return [
|
|
3209
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3210
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3211
|
+
];
|
|
3212
|
+
}).s("AmazonBedrockControlPlaneService", "ListInferenceProfiles", {}).n("BedrockClient", "ListInferenceProfilesCommand").f(void 0, void 0).ser(se_ListInferenceProfilesCommand).de(de_ListInferenceProfilesCommand).build() {
|
|
3213
|
+
};
|
|
3214
|
+
__name(_ListInferenceProfilesCommand, "ListInferenceProfilesCommand");
|
|
3215
|
+
var ListInferenceProfilesCommand = _ListInferenceProfilesCommand;
|
|
3216
|
+
|
|
3097
3217
|
// src/commands/ListModelCopyJobsCommand.ts
|
|
3098
3218
|
|
|
3099
3219
|
|
|
@@ -3339,6 +3459,7 @@ var commands = {
|
|
|
3339
3459
|
GetFoundationModelCommand,
|
|
3340
3460
|
GetGuardrailCommand,
|
|
3341
3461
|
GetImportedModelCommand,
|
|
3462
|
+
GetInferenceProfileCommand,
|
|
3342
3463
|
GetModelCopyJobCommand,
|
|
3343
3464
|
GetModelCustomizationJobCommand,
|
|
3344
3465
|
GetModelImportJobCommand,
|
|
@@ -3350,6 +3471,7 @@ var commands = {
|
|
|
3350
3471
|
ListFoundationModelsCommand,
|
|
3351
3472
|
ListGuardrailsCommand,
|
|
3352
3473
|
ListImportedModelsCommand,
|
|
3474
|
+
ListInferenceProfilesCommand,
|
|
3353
3475
|
ListModelCopyJobsCommand,
|
|
3354
3476
|
ListModelCustomizationJobsCommand,
|
|
3355
3477
|
ListModelImportJobsCommand,
|
|
@@ -3387,6 +3509,10 @@ var paginateListGuardrails = (0, import_core.createPaginator)(BedrockClient, Lis
|
|
|
3387
3509
|
|
|
3388
3510
|
var paginateListImportedModels = (0, import_core.createPaginator)(BedrockClient, ListImportedModelsCommand, "nextToken", "nextToken", "maxResults");
|
|
3389
3511
|
|
|
3512
|
+
// src/pagination/ListInferenceProfilesPaginator.ts
|
|
3513
|
+
|
|
3514
|
+
var paginateListInferenceProfiles = (0, import_core.createPaginator)(BedrockClient, ListInferenceProfilesCommand, "nextToken", "nextToken", "maxResults");
|
|
3515
|
+
|
|
3390
3516
|
// src/pagination/ListModelCopyJobsPaginator.ts
|
|
3391
3517
|
|
|
3392
3518
|
var paginateListModelCopyJobs = (0, import_core.createPaginator)(BedrockClient, ListModelCopyJobsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -3433,6 +3559,7 @@ var paginateListProvisionedModelThroughputs = (0, import_core.createPaginator)(B
|
|
|
3433
3559
|
GetFoundationModelCommand,
|
|
3434
3560
|
GetGuardrailCommand,
|
|
3435
3561
|
GetImportedModelCommand,
|
|
3562
|
+
GetInferenceProfileCommand,
|
|
3436
3563
|
GetModelCopyJobCommand,
|
|
3437
3564
|
GetModelCustomizationJobCommand,
|
|
3438
3565
|
GetModelImportJobCommand,
|
|
@@ -3444,6 +3571,7 @@ var paginateListProvisionedModelThroughputs = (0, import_core.createPaginator)(B
|
|
|
3444
3571
|
ListFoundationModelsCommand,
|
|
3445
3572
|
ListGuardrailsCommand,
|
|
3446
3573
|
ListImportedModelsCommand,
|
|
3574
|
+
ListInferenceProfilesCommand,
|
|
3447
3575
|
ListModelCopyJobsCommand,
|
|
3448
3576
|
ListModelCustomizationJobsCommand,
|
|
3449
3577
|
ListModelImportJobsCommand,
|
|
@@ -3462,6 +3590,7 @@ var paginateListProvisionedModelThroughputs = (0, import_core.createPaginator)(B
|
|
|
3462
3590
|
paginateListEvaluationJobs,
|
|
3463
3591
|
paginateListGuardrails,
|
|
3464
3592
|
paginateListImportedModels,
|
|
3593
|
+
paginateListInferenceProfiles,
|
|
3465
3594
|
paginateListModelCopyJobs,
|
|
3466
3595
|
paginateListModelCustomizationJobs,
|
|
3467
3596
|
paginateListModelImportJobs,
|
|
@@ -3492,6 +3621,8 @@ var paginateListProvisionedModelThroughputs = (0, import_core.createPaginator)(B
|
|
|
3492
3621
|
GuardrailManagedWordsType,
|
|
3493
3622
|
TooManyTagsException,
|
|
3494
3623
|
GuardrailStatus,
|
|
3624
|
+
InferenceProfileStatus,
|
|
3625
|
+
InferenceProfileType,
|
|
3495
3626
|
ModelCopyJobStatus,
|
|
3496
3627
|
ModelDataSource,
|
|
3497
3628
|
ModelImportJobStatus,
|
package/dist-es/Bedrock.js
CHANGED
|
@@ -19,6 +19,7 @@ import { GetEvaluationJobCommand, } from "./commands/GetEvaluationJobCommand";
|
|
|
19
19
|
import { GetFoundationModelCommand, } from "./commands/GetFoundationModelCommand";
|
|
20
20
|
import { GetGuardrailCommand, } from "./commands/GetGuardrailCommand";
|
|
21
21
|
import { GetImportedModelCommand, } from "./commands/GetImportedModelCommand";
|
|
22
|
+
import { GetInferenceProfileCommand, } from "./commands/GetInferenceProfileCommand";
|
|
22
23
|
import { GetModelCopyJobCommand, } from "./commands/GetModelCopyJobCommand";
|
|
23
24
|
import { GetModelCustomizationJobCommand, } from "./commands/GetModelCustomizationJobCommand";
|
|
24
25
|
import { GetModelImportJobCommand, } from "./commands/GetModelImportJobCommand";
|
|
@@ -30,6 +31,7 @@ import { ListEvaluationJobsCommand, } from "./commands/ListEvaluationJobsCommand
|
|
|
30
31
|
import { ListFoundationModelsCommand, } from "./commands/ListFoundationModelsCommand";
|
|
31
32
|
import { ListGuardrailsCommand, } from "./commands/ListGuardrailsCommand";
|
|
32
33
|
import { ListImportedModelsCommand, } from "./commands/ListImportedModelsCommand";
|
|
34
|
+
import { ListInferenceProfilesCommand, } from "./commands/ListInferenceProfilesCommand";
|
|
33
35
|
import { ListModelCopyJobsCommand, } from "./commands/ListModelCopyJobsCommand";
|
|
34
36
|
import { ListModelCustomizationJobsCommand, } from "./commands/ListModelCustomizationJobsCommand";
|
|
35
37
|
import { ListModelImportJobsCommand, } from "./commands/ListModelImportJobsCommand";
|
|
@@ -64,6 +66,7 @@ const commands = {
|
|
|
64
66
|
GetFoundationModelCommand,
|
|
65
67
|
GetGuardrailCommand,
|
|
66
68
|
GetImportedModelCommand,
|
|
69
|
+
GetInferenceProfileCommand,
|
|
67
70
|
GetModelCopyJobCommand,
|
|
68
71
|
GetModelCustomizationJobCommand,
|
|
69
72
|
GetModelImportJobCommand,
|
|
@@ -75,6 +78,7 @@ const commands = {
|
|
|
75
78
|
ListFoundationModelsCommand,
|
|
76
79
|
ListGuardrailsCommand,
|
|
77
80
|
ListImportedModelsCommand,
|
|
81
|
+
ListInferenceProfilesCommand,
|
|
78
82
|
ListModelCopyJobsCommand,
|
|
79
83
|
ListModelCustomizationJobsCommand,
|
|
80
84
|
ListModelImportJobsCommand,
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_GetInferenceProfileCommand, se_GetInferenceProfileCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class GetInferenceProfileCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("AmazonBedrockControlPlaneService", "GetInferenceProfile", {})
|
|
19
|
+
.n("BedrockClient", "GetInferenceProfileCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_GetInferenceProfileCommand)
|
|
22
|
+
.de(de_GetInferenceProfileCommand)
|
|
23
|
+
.build() {
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_ListInferenceProfilesCommand, se_ListInferenceProfilesCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class ListInferenceProfilesCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("AmazonBedrockControlPlaneService", "ListInferenceProfiles", {})
|
|
19
|
+
.n("BedrockClient", "ListInferenceProfilesCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_ListInferenceProfilesCommand)
|
|
22
|
+
.de(de_ListInferenceProfilesCommand)
|
|
23
|
+
.build() {
|
|
24
|
+
}
|
|
@@ -17,6 +17,7 @@ export * from "./GetEvaluationJobCommand";
|
|
|
17
17
|
export * from "./GetFoundationModelCommand";
|
|
18
18
|
export * from "./GetGuardrailCommand";
|
|
19
19
|
export * from "./GetImportedModelCommand";
|
|
20
|
+
export * from "./GetInferenceProfileCommand";
|
|
20
21
|
export * from "./GetModelCopyJobCommand";
|
|
21
22
|
export * from "./GetModelCustomizationJobCommand";
|
|
22
23
|
export * from "./GetModelImportJobCommand";
|
|
@@ -28,6 +29,7 @@ export * from "./ListEvaluationJobsCommand";
|
|
|
28
29
|
export * from "./ListFoundationModelsCommand";
|
|
29
30
|
export * from "./ListGuardrailsCommand";
|
|
30
31
|
export * from "./ListImportedModelsCommand";
|
|
32
|
+
export * from "./ListInferenceProfilesCommand";
|
|
31
33
|
export * from "./ListModelCopyJobsCommand";
|
|
32
34
|
export * from "./ListModelCustomizationJobsCommand";
|
|
33
35
|
export * from "./ListModelImportJobsCommand";
|
|
@@ -226,6 +226,12 @@ export const GuardrailStatus = {
|
|
|
226
226
|
UPDATING: "UPDATING",
|
|
227
227
|
VERSIONING: "VERSIONING",
|
|
228
228
|
};
|
|
229
|
+
export const InferenceProfileStatus = {
|
|
230
|
+
ACTIVE: "ACTIVE",
|
|
231
|
+
};
|
|
232
|
+
export const InferenceProfileType = {
|
|
233
|
+
SYSTEM_DEFINED: "SYSTEM_DEFINED",
|
|
234
|
+
};
|
|
229
235
|
export const ModelCopyJobStatus = {
|
|
230
236
|
COMPLETED: "Completed",
|
|
231
237
|
FAILED: "Failed",
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { BedrockClient } from "../BedrockClient";
|
|
3
|
+
import { ListInferenceProfilesCommand, } from "../commands/ListInferenceProfilesCommand";
|
|
4
|
+
export const paginateListInferenceProfiles = createPaginator(BedrockClient, ListInferenceProfilesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -3,6 +3,7 @@ export * from "./ListCustomModelsPaginator";
|
|
|
3
3
|
export * from "./ListEvaluationJobsPaginator";
|
|
4
4
|
export * from "./ListGuardrailsPaginator";
|
|
5
5
|
export * from "./ListImportedModelsPaginator";
|
|
6
|
+
export * from "./ListInferenceProfilesPaginator";
|
|
6
7
|
export * from "./ListModelCopyJobsPaginator";
|
|
7
8
|
export * from "./ListModelCustomizationJobsPaginator";
|
|
8
9
|
export * from "./ListModelImportJobsPaginator";
|
|
@@ -274,6 +274,15 @@ export const se_GetImportedModelCommand = async (input, context) => {
|
|
|
274
274
|
b.m("GET").h(headers).b(body);
|
|
275
275
|
return b.build();
|
|
276
276
|
};
|
|
277
|
+
export const se_GetInferenceProfileCommand = async (input, context) => {
|
|
278
|
+
const b = rb(input, context);
|
|
279
|
+
const headers = {};
|
|
280
|
+
b.bp("/inference-profiles/{inferenceProfileIdentifier}");
|
|
281
|
+
b.p("inferenceProfileIdentifier", () => input.inferenceProfileIdentifier, "{inferenceProfileIdentifier}", false);
|
|
282
|
+
let body;
|
|
283
|
+
b.m("GET").h(headers).b(body);
|
|
284
|
+
return b.build();
|
|
285
|
+
};
|
|
277
286
|
export const se_GetModelCopyJobCommand = async (input, context) => {
|
|
278
287
|
const b = rb(input, context);
|
|
279
288
|
const headers = {};
|
|
@@ -409,6 +418,18 @@ export const se_ListImportedModelsCommand = async (input, context) => {
|
|
|
409
418
|
b.m("GET").h(headers).q(query).b(body);
|
|
410
419
|
return b.build();
|
|
411
420
|
};
|
|
421
|
+
export const se_ListInferenceProfilesCommand = async (input, context) => {
|
|
422
|
+
const b = rb(input, context);
|
|
423
|
+
const headers = {};
|
|
424
|
+
b.bp("/inference-profiles");
|
|
425
|
+
const query = map({
|
|
426
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
427
|
+
[_nT]: [, input[_nT]],
|
|
428
|
+
});
|
|
429
|
+
let body;
|
|
430
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
431
|
+
return b.build();
|
|
432
|
+
};
|
|
412
433
|
export const se_ListModelCopyJobsCommand = async (input, context) => {
|
|
413
434
|
const b = rb(input, context);
|
|
414
435
|
const headers = {};
|
|
@@ -921,6 +942,28 @@ export const de_GetImportedModelCommand = async (output, context) => {
|
|
|
921
942
|
Object.assign(contents, doc);
|
|
922
943
|
return contents;
|
|
923
944
|
};
|
|
945
|
+
export const de_GetInferenceProfileCommand = async (output, context) => {
|
|
946
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
947
|
+
return de_CommandError(output, context);
|
|
948
|
+
}
|
|
949
|
+
const contents = map({
|
|
950
|
+
$metadata: deserializeMetadata(output),
|
|
951
|
+
});
|
|
952
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
953
|
+
const doc = take(data, {
|
|
954
|
+
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
955
|
+
description: __expectString,
|
|
956
|
+
inferenceProfileArn: __expectString,
|
|
957
|
+
inferenceProfileId: __expectString,
|
|
958
|
+
inferenceProfileName: __expectString,
|
|
959
|
+
models: _json,
|
|
960
|
+
status: __expectString,
|
|
961
|
+
type: __expectString,
|
|
962
|
+
updatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
963
|
+
});
|
|
964
|
+
Object.assign(contents, doc);
|
|
965
|
+
return contents;
|
|
966
|
+
};
|
|
924
967
|
export const de_GetModelCopyJobCommand = async (output, context) => {
|
|
925
968
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
926
969
|
return de_CommandError(output, context);
|
|
@@ -1146,6 +1189,21 @@ export const de_ListImportedModelsCommand = async (output, context) => {
|
|
|
1146
1189
|
Object.assign(contents, doc);
|
|
1147
1190
|
return contents;
|
|
1148
1191
|
};
|
|
1192
|
+
export const de_ListInferenceProfilesCommand = async (output, context) => {
|
|
1193
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1194
|
+
return de_CommandError(output, context);
|
|
1195
|
+
}
|
|
1196
|
+
const contents = map({
|
|
1197
|
+
$metadata: deserializeMetadata(output),
|
|
1198
|
+
});
|
|
1199
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1200
|
+
const doc = take(data, {
|
|
1201
|
+
inferenceProfileSummaries: (_) => de_InferenceProfileSummaries(_, context),
|
|
1202
|
+
nextToken: __expectString,
|
|
1203
|
+
});
|
|
1204
|
+
Object.assign(contents, doc);
|
|
1205
|
+
return contents;
|
|
1206
|
+
};
|
|
1149
1207
|
export const de_ListModelCopyJobsCommand = async (output, context) => {
|
|
1150
1208
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1151
1209
|
return de_CommandError(output, context);
|
|
@@ -1578,6 +1636,27 @@ const de_ImportedModelSummaryList = (output, context) => {
|
|
|
1578
1636
|
});
|
|
1579
1637
|
return retVal;
|
|
1580
1638
|
};
|
|
1639
|
+
const de_InferenceProfileSummaries = (output, context) => {
|
|
1640
|
+
const retVal = (output || [])
|
|
1641
|
+
.filter((e) => e != null)
|
|
1642
|
+
.map((entry) => {
|
|
1643
|
+
return de_InferenceProfileSummary(entry, context);
|
|
1644
|
+
});
|
|
1645
|
+
return retVal;
|
|
1646
|
+
};
|
|
1647
|
+
const de_InferenceProfileSummary = (output, context) => {
|
|
1648
|
+
return take(output, {
|
|
1649
|
+
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1650
|
+
description: __expectString,
|
|
1651
|
+
inferenceProfileArn: __expectString,
|
|
1652
|
+
inferenceProfileId: __expectString,
|
|
1653
|
+
inferenceProfileName: __expectString,
|
|
1654
|
+
models: _json,
|
|
1655
|
+
status: __expectString,
|
|
1656
|
+
type: __expectString,
|
|
1657
|
+
updatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1658
|
+
});
|
|
1659
|
+
};
|
|
1581
1660
|
const de_ModelCopyJobSummaries = (output, context) => {
|
|
1582
1661
|
const retVal = (output || [])
|
|
1583
1662
|
.filter((e) => e != null)
|
package/dist-types/Bedrock.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ import { GetEvaluationJobCommandInput, GetEvaluationJobCommandOutput } from "./c
|
|
|
19
19
|
import { GetFoundationModelCommandInput, GetFoundationModelCommandOutput } from "./commands/GetFoundationModelCommand";
|
|
20
20
|
import { GetGuardrailCommandInput, GetGuardrailCommandOutput } from "./commands/GetGuardrailCommand";
|
|
21
21
|
import { GetImportedModelCommandInput, GetImportedModelCommandOutput } from "./commands/GetImportedModelCommand";
|
|
22
|
+
import { GetInferenceProfileCommandInput, GetInferenceProfileCommandOutput } from "./commands/GetInferenceProfileCommand";
|
|
22
23
|
import { GetModelCopyJobCommandInput, GetModelCopyJobCommandOutput } from "./commands/GetModelCopyJobCommand";
|
|
23
24
|
import { GetModelCustomizationJobCommandInput, GetModelCustomizationJobCommandOutput } from "./commands/GetModelCustomizationJobCommand";
|
|
24
25
|
import { GetModelImportJobCommandInput, GetModelImportJobCommandOutput } from "./commands/GetModelImportJobCommand";
|
|
@@ -30,6 +31,7 @@ import { ListEvaluationJobsCommandInput, ListEvaluationJobsCommandOutput } from
|
|
|
30
31
|
import { ListFoundationModelsCommandInput, ListFoundationModelsCommandOutput } from "./commands/ListFoundationModelsCommand";
|
|
31
32
|
import { ListGuardrailsCommandInput, ListGuardrailsCommandOutput } from "./commands/ListGuardrailsCommand";
|
|
32
33
|
import { ListImportedModelsCommandInput, ListImportedModelsCommandOutput } from "./commands/ListImportedModelsCommand";
|
|
34
|
+
import { ListInferenceProfilesCommandInput, ListInferenceProfilesCommandOutput } from "./commands/ListInferenceProfilesCommand";
|
|
33
35
|
import { ListModelCopyJobsCommandInput, ListModelCopyJobsCommandOutput } from "./commands/ListModelCopyJobsCommand";
|
|
34
36
|
import { ListModelCustomizationJobsCommandInput, ListModelCustomizationJobsCommandOutput } from "./commands/ListModelCustomizationJobsCommand";
|
|
35
37
|
import { ListModelImportJobsCommandInput, ListModelImportJobsCommandOutput } from "./commands/ListModelImportJobsCommand";
|
|
@@ -160,6 +162,12 @@ export interface Bedrock {
|
|
|
160
162
|
getImportedModel(args: GetImportedModelCommandInput, options?: __HttpHandlerOptions): Promise<GetImportedModelCommandOutput>;
|
|
161
163
|
getImportedModel(args: GetImportedModelCommandInput, cb: (err: any, data?: GetImportedModelCommandOutput) => void): void;
|
|
162
164
|
getImportedModel(args: GetImportedModelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetImportedModelCommandOutput) => void): void;
|
|
165
|
+
/**
|
|
166
|
+
* @see {@link GetInferenceProfileCommand}
|
|
167
|
+
*/
|
|
168
|
+
getInferenceProfile(args: GetInferenceProfileCommandInput, options?: __HttpHandlerOptions): Promise<GetInferenceProfileCommandOutput>;
|
|
169
|
+
getInferenceProfile(args: GetInferenceProfileCommandInput, cb: (err: any, data?: GetInferenceProfileCommandOutput) => void): void;
|
|
170
|
+
getInferenceProfile(args: GetInferenceProfileCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetInferenceProfileCommandOutput) => void): void;
|
|
163
171
|
/**
|
|
164
172
|
* @see {@link GetModelCopyJobCommand}
|
|
165
173
|
*/
|
|
@@ -232,6 +240,13 @@ export interface Bedrock {
|
|
|
232
240
|
listImportedModels(args: ListImportedModelsCommandInput, options?: __HttpHandlerOptions): Promise<ListImportedModelsCommandOutput>;
|
|
233
241
|
listImportedModels(args: ListImportedModelsCommandInput, cb: (err: any, data?: ListImportedModelsCommandOutput) => void): void;
|
|
234
242
|
listImportedModels(args: ListImportedModelsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListImportedModelsCommandOutput) => void): void;
|
|
243
|
+
/**
|
|
244
|
+
* @see {@link ListInferenceProfilesCommand}
|
|
245
|
+
*/
|
|
246
|
+
listInferenceProfiles(): Promise<ListInferenceProfilesCommandOutput>;
|
|
247
|
+
listInferenceProfiles(args: ListInferenceProfilesCommandInput, options?: __HttpHandlerOptions): Promise<ListInferenceProfilesCommandOutput>;
|
|
248
|
+
listInferenceProfiles(args: ListInferenceProfilesCommandInput, cb: (err: any, data?: ListInferenceProfilesCommandOutput) => void): void;
|
|
249
|
+
listInferenceProfiles(args: ListInferenceProfilesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListInferenceProfilesCommandOutput) => void): void;
|
|
235
250
|
/**
|
|
236
251
|
* @see {@link ListModelCopyJobsCommand}
|
|
237
252
|
*/
|
|
@@ -26,6 +26,7 @@ import { GetEvaluationJobCommandInput, GetEvaluationJobCommandOutput } from "./c
|
|
|
26
26
|
import { GetFoundationModelCommandInput, GetFoundationModelCommandOutput } from "./commands/GetFoundationModelCommand";
|
|
27
27
|
import { GetGuardrailCommandInput, GetGuardrailCommandOutput } from "./commands/GetGuardrailCommand";
|
|
28
28
|
import { GetImportedModelCommandInput, GetImportedModelCommandOutput } from "./commands/GetImportedModelCommand";
|
|
29
|
+
import { GetInferenceProfileCommandInput, GetInferenceProfileCommandOutput } from "./commands/GetInferenceProfileCommand";
|
|
29
30
|
import { GetModelCopyJobCommandInput, GetModelCopyJobCommandOutput } from "./commands/GetModelCopyJobCommand";
|
|
30
31
|
import { GetModelCustomizationJobCommandInput, GetModelCustomizationJobCommandOutput } from "./commands/GetModelCustomizationJobCommand";
|
|
31
32
|
import { GetModelImportJobCommandInput, GetModelImportJobCommandOutput } from "./commands/GetModelImportJobCommand";
|
|
@@ -37,6 +38,7 @@ import { ListEvaluationJobsCommandInput, ListEvaluationJobsCommandOutput } from
|
|
|
37
38
|
import { ListFoundationModelsCommandInput, ListFoundationModelsCommandOutput } from "./commands/ListFoundationModelsCommand";
|
|
38
39
|
import { ListGuardrailsCommandInput, ListGuardrailsCommandOutput } from "./commands/ListGuardrailsCommand";
|
|
39
40
|
import { ListImportedModelsCommandInput, ListImportedModelsCommandOutput } from "./commands/ListImportedModelsCommand";
|
|
41
|
+
import { ListInferenceProfilesCommandInput, ListInferenceProfilesCommandOutput } from "./commands/ListInferenceProfilesCommand";
|
|
40
42
|
import { ListModelCopyJobsCommandInput, ListModelCopyJobsCommandOutput } from "./commands/ListModelCopyJobsCommand";
|
|
41
43
|
import { ListModelCustomizationJobsCommandInput, ListModelCustomizationJobsCommandOutput } from "./commands/ListModelCustomizationJobsCommand";
|
|
42
44
|
import { ListModelImportJobsCommandInput, ListModelImportJobsCommandOutput } from "./commands/ListModelImportJobsCommand";
|
|
@@ -57,11 +59,11 @@ export { __Client };
|
|
|
57
59
|
/**
|
|
58
60
|
* @public
|
|
59
61
|
*/
|
|
60
|
-
export type ServiceInputTypes = BatchDeleteEvaluationJobCommandInput | CreateEvaluationJobCommandInput | CreateGuardrailCommandInput | CreateGuardrailVersionCommandInput | CreateModelCopyJobCommandInput | CreateModelCustomizationJobCommandInput | CreateModelImportJobCommandInput | CreateModelInvocationJobCommandInput | CreateProvisionedModelThroughputCommandInput | DeleteCustomModelCommandInput | DeleteGuardrailCommandInput | DeleteImportedModelCommandInput | DeleteModelInvocationLoggingConfigurationCommandInput | DeleteProvisionedModelThroughputCommandInput | GetCustomModelCommandInput | GetEvaluationJobCommandInput | GetFoundationModelCommandInput | GetGuardrailCommandInput | GetImportedModelCommandInput | GetModelCopyJobCommandInput | GetModelCustomizationJobCommandInput | GetModelImportJobCommandInput | GetModelInvocationJobCommandInput | GetModelInvocationLoggingConfigurationCommandInput | GetProvisionedModelThroughputCommandInput | ListCustomModelsCommandInput | ListEvaluationJobsCommandInput | ListFoundationModelsCommandInput | ListGuardrailsCommandInput | ListImportedModelsCommandInput | ListModelCopyJobsCommandInput | ListModelCustomizationJobsCommandInput | ListModelImportJobsCommandInput | ListModelInvocationJobsCommandInput | ListProvisionedModelThroughputsCommandInput | ListTagsForResourceCommandInput | PutModelInvocationLoggingConfigurationCommandInput | StopEvaluationJobCommandInput | StopModelCustomizationJobCommandInput | StopModelInvocationJobCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateGuardrailCommandInput | UpdateProvisionedModelThroughputCommandInput;
|
|
62
|
+
export type ServiceInputTypes = BatchDeleteEvaluationJobCommandInput | CreateEvaluationJobCommandInput | CreateGuardrailCommandInput | CreateGuardrailVersionCommandInput | CreateModelCopyJobCommandInput | CreateModelCustomizationJobCommandInput | CreateModelImportJobCommandInput | CreateModelInvocationJobCommandInput | CreateProvisionedModelThroughputCommandInput | DeleteCustomModelCommandInput | DeleteGuardrailCommandInput | DeleteImportedModelCommandInput | DeleteModelInvocationLoggingConfigurationCommandInput | DeleteProvisionedModelThroughputCommandInput | GetCustomModelCommandInput | GetEvaluationJobCommandInput | GetFoundationModelCommandInput | GetGuardrailCommandInput | GetImportedModelCommandInput | GetInferenceProfileCommandInput | GetModelCopyJobCommandInput | GetModelCustomizationJobCommandInput | GetModelImportJobCommandInput | GetModelInvocationJobCommandInput | GetModelInvocationLoggingConfigurationCommandInput | GetProvisionedModelThroughputCommandInput | ListCustomModelsCommandInput | ListEvaluationJobsCommandInput | ListFoundationModelsCommandInput | ListGuardrailsCommandInput | ListImportedModelsCommandInput | ListInferenceProfilesCommandInput | ListModelCopyJobsCommandInput | ListModelCustomizationJobsCommandInput | ListModelImportJobsCommandInput | ListModelInvocationJobsCommandInput | ListProvisionedModelThroughputsCommandInput | ListTagsForResourceCommandInput | PutModelInvocationLoggingConfigurationCommandInput | StopEvaluationJobCommandInput | StopModelCustomizationJobCommandInput | StopModelInvocationJobCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateGuardrailCommandInput | UpdateProvisionedModelThroughputCommandInput;
|
|
61
63
|
/**
|
|
62
64
|
* @public
|
|
63
65
|
*/
|
|
64
|
-
export type ServiceOutputTypes = BatchDeleteEvaluationJobCommandOutput | CreateEvaluationJobCommandOutput | CreateGuardrailCommandOutput | CreateGuardrailVersionCommandOutput | CreateModelCopyJobCommandOutput | CreateModelCustomizationJobCommandOutput | CreateModelImportJobCommandOutput | CreateModelInvocationJobCommandOutput | CreateProvisionedModelThroughputCommandOutput | DeleteCustomModelCommandOutput | DeleteGuardrailCommandOutput | DeleteImportedModelCommandOutput | DeleteModelInvocationLoggingConfigurationCommandOutput | DeleteProvisionedModelThroughputCommandOutput | GetCustomModelCommandOutput | GetEvaluationJobCommandOutput | GetFoundationModelCommandOutput | GetGuardrailCommandOutput | GetImportedModelCommandOutput | GetModelCopyJobCommandOutput | GetModelCustomizationJobCommandOutput | GetModelImportJobCommandOutput | GetModelInvocationJobCommandOutput | GetModelInvocationLoggingConfigurationCommandOutput | GetProvisionedModelThroughputCommandOutput | ListCustomModelsCommandOutput | ListEvaluationJobsCommandOutput | ListFoundationModelsCommandOutput | ListGuardrailsCommandOutput | ListImportedModelsCommandOutput | ListModelCopyJobsCommandOutput | ListModelCustomizationJobsCommandOutput | ListModelImportJobsCommandOutput | ListModelInvocationJobsCommandOutput | ListProvisionedModelThroughputsCommandOutput | ListTagsForResourceCommandOutput | PutModelInvocationLoggingConfigurationCommandOutput | StopEvaluationJobCommandOutput | StopModelCustomizationJobCommandOutput | StopModelInvocationJobCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateGuardrailCommandOutput | UpdateProvisionedModelThroughputCommandOutput;
|
|
66
|
+
export type ServiceOutputTypes = BatchDeleteEvaluationJobCommandOutput | CreateEvaluationJobCommandOutput | CreateGuardrailCommandOutput | CreateGuardrailVersionCommandOutput | CreateModelCopyJobCommandOutput | CreateModelCustomizationJobCommandOutput | CreateModelImportJobCommandOutput | CreateModelInvocationJobCommandOutput | CreateProvisionedModelThroughputCommandOutput | DeleteCustomModelCommandOutput | DeleteGuardrailCommandOutput | DeleteImportedModelCommandOutput | DeleteModelInvocationLoggingConfigurationCommandOutput | DeleteProvisionedModelThroughputCommandOutput | GetCustomModelCommandOutput | GetEvaluationJobCommandOutput | GetFoundationModelCommandOutput | GetGuardrailCommandOutput | GetImportedModelCommandOutput | GetInferenceProfileCommandOutput | GetModelCopyJobCommandOutput | GetModelCustomizationJobCommandOutput | GetModelImportJobCommandOutput | GetModelInvocationJobCommandOutput | GetModelInvocationLoggingConfigurationCommandOutput | GetProvisionedModelThroughputCommandOutput | ListCustomModelsCommandOutput | ListEvaluationJobsCommandOutput | ListFoundationModelsCommandOutput | ListGuardrailsCommandOutput | ListImportedModelsCommandOutput | ListInferenceProfilesCommandOutput | ListModelCopyJobsCommandOutput | ListModelCustomizationJobsCommandOutput | ListModelImportJobsCommandOutput | ListModelInvocationJobsCommandOutput | ListProvisionedModelThroughputsCommandOutput | ListTagsForResourceCommandOutput | PutModelInvocationLoggingConfigurationCommandOutput | StopEvaluationJobCommandOutput | StopModelCustomizationJobCommandOutput | StopModelInvocationJobCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateGuardrailCommandOutput | UpdateProvisionedModelThroughputCommandOutput;
|
|
65
67
|
/**
|
|
66
68
|
* @public
|
|
67
69
|
*/
|
|
@@ -27,8 +27,8 @@ declare const CreateModelInvocationJobCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Creates a job to invoke a model on multiple prompts
|
|
31
|
-
* <p>The response returns a <code>jobArn</code> that you can use to stop or get details about the job
|
|
30
|
+
* <p>Creates a batch inference job to invoke a model on multiple prompts. Format your data according to <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference-data">Format your inference data</a> and upload it to an Amazon S3 bucket. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference.html">Process multiple prompts with batch inference</a>.</p>
|
|
31
|
+
* <p>The response returns a <code>jobArn</code> that you can use to stop or get details about the job.</p>
|
|
32
32
|
* @example
|
|
33
33
|
* Use a bare-bones client and the command you need to make an API call.
|
|
34
34
|
* ```javascript
|