@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
package/README.md
CHANGED
|
@@ -226,6 +226,14 @@ CreateGuardrailVersion
|
|
|
226
226
|
|
|
227
227
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/CreateGuardrailVersionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/CreateGuardrailVersionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/CreateGuardrailVersionCommandOutput/)
|
|
228
228
|
|
|
229
|
+
</details>
|
|
230
|
+
<details>
|
|
231
|
+
<summary>
|
|
232
|
+
CreateModelCopyJob
|
|
233
|
+
</summary>
|
|
234
|
+
|
|
235
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/CreateModelCopyJobCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/CreateModelCopyJobCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/CreateModelCopyJobCommandOutput/)
|
|
236
|
+
|
|
229
237
|
</details>
|
|
230
238
|
<details>
|
|
231
239
|
<summary>
|
|
@@ -306,6 +314,14 @@ GetGuardrail
|
|
|
306
314
|
|
|
307
315
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/GetGuardrailCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/GetGuardrailCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/GetGuardrailCommandOutput/)
|
|
308
316
|
|
|
317
|
+
</details>
|
|
318
|
+
<details>
|
|
319
|
+
<summary>
|
|
320
|
+
GetModelCopyJob
|
|
321
|
+
</summary>
|
|
322
|
+
|
|
323
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/GetModelCopyJobCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/GetModelCopyJobCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/GetModelCopyJobCommandOutput/)
|
|
324
|
+
|
|
309
325
|
</details>
|
|
310
326
|
<details>
|
|
311
327
|
<summary>
|
|
@@ -362,6 +378,14 @@ ListGuardrails
|
|
|
362
378
|
|
|
363
379
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/ListGuardrailsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/ListGuardrailsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/ListGuardrailsCommandOutput/)
|
|
364
380
|
|
|
381
|
+
</details>
|
|
382
|
+
<details>
|
|
383
|
+
<summary>
|
|
384
|
+
ListModelCopyJobs
|
|
385
|
+
</summary>
|
|
386
|
+
|
|
387
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/command/ListModelCopyJobsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/ListModelCopyJobsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock/Interface/ListModelCopyJobsCommandOutput/)
|
|
388
|
+
|
|
365
389
|
</details>
|
|
366
390
|
<details>
|
|
367
391
|
<summary>
|
package/dist-cjs/index.js
CHANGED
|
@@ -34,6 +34,7 @@ __export(src_exports, {
|
|
|
34
34
|
CreateGuardrailRequestFilterSensitiveLog: () => CreateGuardrailRequestFilterSensitiveLog,
|
|
35
35
|
CreateGuardrailVersionCommand: () => CreateGuardrailVersionCommand,
|
|
36
36
|
CreateGuardrailVersionRequestFilterSensitiveLog: () => CreateGuardrailVersionRequestFilterSensitiveLog,
|
|
37
|
+
CreateModelCopyJobCommand: () => CreateModelCopyJobCommand,
|
|
37
38
|
CreateModelCustomizationJobCommand: () => CreateModelCustomizationJobCommand,
|
|
38
39
|
CreateProvisionedModelThroughputCommand: () => CreateProvisionedModelThroughputCommand,
|
|
39
40
|
CustomizationType: () => CustomizationType,
|
|
@@ -63,6 +64,7 @@ __export(src_exports, {
|
|
|
63
64
|
GetFoundationModelCommand: () => GetFoundationModelCommand,
|
|
64
65
|
GetGuardrailCommand: () => GetGuardrailCommand,
|
|
65
66
|
GetGuardrailResponseFilterSensitiveLog: () => GetGuardrailResponseFilterSensitiveLog,
|
|
67
|
+
GetModelCopyJobCommand: () => GetModelCopyJobCommand,
|
|
66
68
|
GetModelCustomizationJobCommand: () => GetModelCustomizationJobCommand,
|
|
67
69
|
GetModelInvocationLoggingConfigurationCommand: () => GetModelInvocationLoggingConfigurationCommand,
|
|
68
70
|
GetProvisionedModelThroughputCommand: () => GetProvisionedModelThroughputCommand,
|
|
@@ -89,9 +91,11 @@ __export(src_exports, {
|
|
|
89
91
|
ListFoundationModelsCommand: () => ListFoundationModelsCommand,
|
|
90
92
|
ListGuardrailsCommand: () => ListGuardrailsCommand,
|
|
91
93
|
ListGuardrailsResponseFilterSensitiveLog: () => ListGuardrailsResponseFilterSensitiveLog,
|
|
94
|
+
ListModelCopyJobsCommand: () => ListModelCopyJobsCommand,
|
|
92
95
|
ListModelCustomizationJobsCommand: () => ListModelCustomizationJobsCommand,
|
|
93
96
|
ListProvisionedModelThroughputsCommand: () => ListProvisionedModelThroughputsCommand,
|
|
94
97
|
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
98
|
+
ModelCopyJobStatus: () => ModelCopyJobStatus,
|
|
95
99
|
ModelCustomization: () => ModelCustomization,
|
|
96
100
|
ModelCustomizationJobStatus: () => ModelCustomizationJobStatus,
|
|
97
101
|
ModelModality: () => ModelModality,
|
|
@@ -118,6 +122,7 @@ __export(src_exports, {
|
|
|
118
122
|
paginateListCustomModels: () => paginateListCustomModels,
|
|
119
123
|
paginateListEvaluationJobs: () => paginateListEvaluationJobs,
|
|
120
124
|
paginateListGuardrails: () => paginateListGuardrails,
|
|
125
|
+
paginateListModelCopyJobs: () => paginateListModelCopyJobs,
|
|
121
126
|
paginateListModelCustomizationJobs: () => paginateListModelCustomizationJobs,
|
|
122
127
|
paginateListProvisionedModelThroughputs: () => paginateListProvisionedModelThroughputs
|
|
123
128
|
});
|
|
@@ -223,25 +228,27 @@ var _BedrockClient = class _BedrockClient extends import_smithy_client.Client {
|
|
|
223
228
|
constructor(...[configuration]) {
|
|
224
229
|
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
225
230
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
226
|
-
const _config_2 = (0,
|
|
227
|
-
const _config_3 = (0,
|
|
228
|
-
const _config_4 = (0,
|
|
229
|
-
const _config_5 = (0,
|
|
230
|
-
const _config_6 = (0,
|
|
231
|
+
const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
|
|
232
|
+
const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
|
|
233
|
+
const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
|
|
234
|
+
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
235
|
+
const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
|
|
231
236
|
const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
|
|
232
237
|
const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
|
|
233
238
|
super(_config_8);
|
|
234
239
|
this.config = _config_8;
|
|
235
|
-
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
236
|
-
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
237
|
-
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
238
240
|
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
239
241
|
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
240
242
|
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
243
|
+
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
244
|
+
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
245
|
+
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
241
246
|
this.middlewareStack.use(
|
|
242
247
|
(0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
|
243
|
-
httpAuthSchemeParametersProvider:
|
|
244
|
-
identityProviderConfigProvider:
|
|
248
|
+
httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultBedrockHttpAuthSchemeParametersProvider,
|
|
249
|
+
identityProviderConfigProvider: async (config) => new import_core.DefaultIdentityProviderConfig({
|
|
250
|
+
"aws.auth#sigv4": config.credentials
|
|
251
|
+
})
|
|
245
252
|
})
|
|
246
253
|
);
|
|
247
254
|
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
|
@@ -254,14 +261,6 @@ var _BedrockClient = class _BedrockClient extends import_smithy_client.Client {
|
|
|
254
261
|
destroy() {
|
|
255
262
|
super.destroy();
|
|
256
263
|
}
|
|
257
|
-
getDefaultHttpAuthSchemeParametersProvider() {
|
|
258
|
-
return import_httpAuthSchemeProvider.defaultBedrockHttpAuthSchemeParametersProvider;
|
|
259
|
-
}
|
|
260
|
-
getIdentityProviderConfigProvider() {
|
|
261
|
-
return async (config) => new import_core.DefaultIdentityProviderConfig({
|
|
262
|
-
"aws.auth#sigv4": config.credentials
|
|
263
|
-
});
|
|
264
|
-
}
|
|
265
264
|
};
|
|
266
265
|
__name(_BedrockClient, "BedrockClient");
|
|
267
266
|
var BedrockClient = _BedrockClient;
|
|
@@ -557,6 +556,11 @@ var GuardrailStatus = {
|
|
|
557
556
|
UPDATING: "UPDATING",
|
|
558
557
|
VERSIONING: "VERSIONING"
|
|
559
558
|
};
|
|
559
|
+
var ModelCopyJobStatus = {
|
|
560
|
+
COMPLETED: "Completed",
|
|
561
|
+
FAILED: "Failed",
|
|
562
|
+
IN_PROGRESS: "InProgress"
|
|
563
|
+
};
|
|
560
564
|
var CustomizationType = {
|
|
561
565
|
CONTINUED_PRE_TRAINING: "CONTINUED_PRE_TRAINING",
|
|
562
566
|
FINE_TUNING: "FINE_TUNING"
|
|
@@ -826,6 +830,25 @@ var se_CreateGuardrailVersionCommand = /* @__PURE__ */ __name(async (input, cont
|
|
|
826
830
|
b.m("POST").h(headers).b(body);
|
|
827
831
|
return b.build();
|
|
828
832
|
}, "se_CreateGuardrailVersionCommand");
|
|
833
|
+
var se_CreateModelCopyJobCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
834
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
835
|
+
const headers = {
|
|
836
|
+
"content-type": "application/json"
|
|
837
|
+
};
|
|
838
|
+
b.bp("/model-copy-jobs");
|
|
839
|
+
let body;
|
|
840
|
+
body = JSON.stringify(
|
|
841
|
+
(0, import_smithy_client.take)(input, {
|
|
842
|
+
clientRequestToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
843
|
+
modelKmsKeyId: [],
|
|
844
|
+
sourceModelArn: [],
|
|
845
|
+
targetModelName: [],
|
|
846
|
+
targetModelTags: (_) => (0, import_smithy_client._json)(_)
|
|
847
|
+
})
|
|
848
|
+
);
|
|
849
|
+
b.m("POST").h(headers).b(body);
|
|
850
|
+
return b.build();
|
|
851
|
+
}, "se_CreateModelCopyJobCommand");
|
|
829
852
|
var se_CreateModelCustomizationJobCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
830
853
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
831
854
|
const headers = {
|
|
@@ -951,6 +974,15 @@ var se_GetGuardrailCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
951
974
|
b.m("GET").h(headers).q(query).b(body);
|
|
952
975
|
return b.build();
|
|
953
976
|
}, "se_GetGuardrailCommand");
|
|
977
|
+
var se_GetModelCopyJobCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
978
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
979
|
+
const headers = {};
|
|
980
|
+
b.bp("/model-copy-jobs/{jobArn}");
|
|
981
|
+
b.p("jobArn", () => input.jobArn, "{jobArn}", false);
|
|
982
|
+
let body;
|
|
983
|
+
b.m("GET").h(headers).b(body);
|
|
984
|
+
return b.build();
|
|
985
|
+
}, "se_GetModelCopyJobCommand");
|
|
954
986
|
var se_GetModelCustomizationJobCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
955
987
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
956
988
|
const headers = {};
|
|
@@ -990,7 +1022,8 @@ var se_ListCustomModelsCommand = /* @__PURE__ */ __name(async (input, context) =
|
|
|
990
1022
|
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
991
1023
|
[_nT]: [, input[_nT]],
|
|
992
1024
|
[_sB]: [, input[_sB]],
|
|
993
|
-
[_sO]: [, input[_sO]]
|
|
1025
|
+
[_sO]: [, input[_sO]],
|
|
1026
|
+
[_iO]: [() => input.isOwned !== void 0, () => input[_iO].toString()]
|
|
994
1027
|
});
|
|
995
1028
|
let body;
|
|
996
1029
|
b.m("GET").h(headers).q(query).b(body);
|
|
@@ -1041,6 +1074,26 @@ var se_ListGuardrailsCommand = /* @__PURE__ */ __name(async (input, context) =>
|
|
|
1041
1074
|
b.m("GET").h(headers).q(query).b(body);
|
|
1042
1075
|
return b.build();
|
|
1043
1076
|
}, "se_ListGuardrailsCommand");
|
|
1077
|
+
var se_ListModelCopyJobsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1078
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1079
|
+
const headers = {};
|
|
1080
|
+
b.bp("/model-copy-jobs");
|
|
1081
|
+
const query = (0, import_smithy_client.map)({
|
|
1082
|
+
[_cTA]: [() => input.creationTimeAfter !== void 0, () => (0, import_smithy_client.serializeDateTime)(input[_cTA]).toString()],
|
|
1083
|
+
[_cTB]: [() => input.creationTimeBefore !== void 0, () => (0, import_smithy_client.serializeDateTime)(input[_cTB]).toString()],
|
|
1084
|
+
[_sE]: [, input[_sE]],
|
|
1085
|
+
[_sAE]: [, input[_sAE]],
|
|
1086
|
+
[_sMAE]: [, input[_sMAE]],
|
|
1087
|
+
[_oMNC]: [, input[_tMNC]],
|
|
1088
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
1089
|
+
[_nT]: [, input[_nT]],
|
|
1090
|
+
[_sB]: [, input[_sB]],
|
|
1091
|
+
[_sO]: [, input[_sO]]
|
|
1092
|
+
});
|
|
1093
|
+
let body;
|
|
1094
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
1095
|
+
return b.build();
|
|
1096
|
+
}, "se_ListModelCopyJobsCommand");
|
|
1044
1097
|
var se_ListModelCustomizationJobsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1045
1098
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
1046
1099
|
const headers = {};
|
|
@@ -1246,6 +1299,20 @@ var de_CreateGuardrailVersionCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1246
1299
|
Object.assign(contents, doc);
|
|
1247
1300
|
return contents;
|
|
1248
1301
|
}, "de_CreateGuardrailVersionCommand");
|
|
1302
|
+
var de_CreateModelCopyJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1303
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1304
|
+
return de_CommandError(output, context);
|
|
1305
|
+
}
|
|
1306
|
+
const contents = (0, import_smithy_client.map)({
|
|
1307
|
+
$metadata: deserializeMetadata(output)
|
|
1308
|
+
});
|
|
1309
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1310
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1311
|
+
jobArn: import_smithy_client.expectString
|
|
1312
|
+
});
|
|
1313
|
+
Object.assign(contents, doc);
|
|
1314
|
+
return contents;
|
|
1315
|
+
}, "de_CreateModelCopyJobCommand");
|
|
1249
1316
|
var de_CreateModelCustomizationJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1250
1317
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1251
1318
|
return de_CommandError(output, context);
|
|
@@ -1412,6 +1479,30 @@ var de_GetGuardrailCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1412
1479
|
Object.assign(contents, doc);
|
|
1413
1480
|
return contents;
|
|
1414
1481
|
}, "de_GetGuardrailCommand");
|
|
1482
|
+
var de_GetModelCopyJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1483
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1484
|
+
return de_CommandError(output, context);
|
|
1485
|
+
}
|
|
1486
|
+
const contents = (0, import_smithy_client.map)({
|
|
1487
|
+
$metadata: deserializeMetadata(output)
|
|
1488
|
+
});
|
|
1489
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1490
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1491
|
+
creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1492
|
+
failureMessage: import_smithy_client.expectString,
|
|
1493
|
+
jobArn: import_smithy_client.expectString,
|
|
1494
|
+
sourceAccountId: import_smithy_client.expectString,
|
|
1495
|
+
sourceModelArn: import_smithy_client.expectString,
|
|
1496
|
+
sourceModelName: import_smithy_client.expectString,
|
|
1497
|
+
status: import_smithy_client.expectString,
|
|
1498
|
+
targetModelArn: import_smithy_client.expectString,
|
|
1499
|
+
targetModelKmsKeyArn: import_smithy_client.expectString,
|
|
1500
|
+
targetModelName: import_smithy_client.expectString,
|
|
1501
|
+
targetModelTags: import_smithy_client._json
|
|
1502
|
+
});
|
|
1503
|
+
Object.assign(contents, doc);
|
|
1504
|
+
return contents;
|
|
1505
|
+
}, "de_GetModelCopyJobCommand");
|
|
1415
1506
|
var de_GetModelCustomizationJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1416
1507
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1417
1508
|
return de_CommandError(output, context);
|
|
@@ -1545,6 +1636,21 @@ var de_ListGuardrailsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1545
1636
|
Object.assign(contents, doc);
|
|
1546
1637
|
return contents;
|
|
1547
1638
|
}, "de_ListGuardrailsCommand");
|
|
1639
|
+
var de_ListModelCopyJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1640
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1641
|
+
return de_CommandError(output, context);
|
|
1642
|
+
}
|
|
1643
|
+
const contents = (0, import_smithy_client.map)({
|
|
1644
|
+
$metadata: deserializeMetadata(output)
|
|
1645
|
+
});
|
|
1646
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1647
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1648
|
+
modelCopyJobSummaries: (_) => de_ModelCopyJobSummaries(_, context),
|
|
1649
|
+
nextToken: import_smithy_client.expectString
|
|
1650
|
+
});
|
|
1651
|
+
Object.assign(contents, doc);
|
|
1652
|
+
return contents;
|
|
1653
|
+
}, "de_ListModelCopyJobsCommand");
|
|
1548
1654
|
var de_ListModelCustomizationJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1549
1655
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1550
1656
|
return de_CommandError(output, context);
|
|
@@ -1835,7 +1941,8 @@ var de_CustomModelSummary = /* @__PURE__ */ __name((output, context) => {
|
|
|
1835
1941
|
creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1836
1942
|
customizationType: import_smithy_client.expectString,
|
|
1837
1943
|
modelArn: import_smithy_client.expectString,
|
|
1838
|
-
modelName: import_smithy_client.expectString
|
|
1944
|
+
modelName: import_smithy_client.expectString,
|
|
1945
|
+
ownerAccountId: import_smithy_client.expectString
|
|
1839
1946
|
});
|
|
1840
1947
|
}, "de_CustomModelSummary");
|
|
1841
1948
|
var de_CustomModelSummaryList = /* @__PURE__ */ __name((output, context) => {
|
|
@@ -1896,6 +2003,27 @@ var de_GuardrailSummary = /* @__PURE__ */ __name((output, context) => {
|
|
|
1896
2003
|
version: import_smithy_client.expectString
|
|
1897
2004
|
});
|
|
1898
2005
|
}, "de_GuardrailSummary");
|
|
2006
|
+
var de_ModelCopyJobSummaries = /* @__PURE__ */ __name((output, context) => {
|
|
2007
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
2008
|
+
return de_ModelCopyJobSummary(entry, context);
|
|
2009
|
+
});
|
|
2010
|
+
return retVal;
|
|
2011
|
+
}, "de_ModelCopyJobSummaries");
|
|
2012
|
+
var de_ModelCopyJobSummary = /* @__PURE__ */ __name((output, context) => {
|
|
2013
|
+
return (0, import_smithy_client.take)(output, {
|
|
2014
|
+
creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
2015
|
+
failureMessage: import_smithy_client.expectString,
|
|
2016
|
+
jobArn: import_smithy_client.expectString,
|
|
2017
|
+
sourceAccountId: import_smithy_client.expectString,
|
|
2018
|
+
sourceModelArn: import_smithy_client.expectString,
|
|
2019
|
+
sourceModelName: import_smithy_client.expectString,
|
|
2020
|
+
status: import_smithy_client.expectString,
|
|
2021
|
+
targetModelArn: import_smithy_client.expectString,
|
|
2022
|
+
targetModelKmsKeyArn: import_smithy_client.expectString,
|
|
2023
|
+
targetModelName: import_smithy_client.expectString,
|
|
2024
|
+
targetModelTags: import_smithy_client._json
|
|
2025
|
+
});
|
|
2026
|
+
}, "de_ModelCopyJobSummary");
|
|
1899
2027
|
var de_ModelCustomizationJobSummaries = /* @__PURE__ */ __name((output, context) => {
|
|
1900
2028
|
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1901
2029
|
return de_ModelCustomizationJobSummary(entry, context);
|
|
@@ -1970,13 +2098,18 @@ var _cTB = "creationTimeBefore";
|
|
|
1970
2098
|
var _fMAE = "foundationModelArnEquals";
|
|
1971
2099
|
var _gI = "guardrailIdentifier";
|
|
1972
2100
|
var _gV = "guardrailVersion";
|
|
2101
|
+
var _iO = "isOwned";
|
|
1973
2102
|
var _mAE = "modelArnEquals";
|
|
1974
2103
|
var _mR = "maxResults";
|
|
1975
2104
|
var _nC = "nameContains";
|
|
1976
2105
|
var _nT = "nextToken";
|
|
2106
|
+
var _oMNC = "outputModelNameContains";
|
|
2107
|
+
var _sAE = "sourceAccountEquals";
|
|
1977
2108
|
var _sB = "sortBy";
|
|
1978
2109
|
var _sE = "statusEquals";
|
|
2110
|
+
var _sMAE = "sourceModelArnEquals";
|
|
1979
2111
|
var _sO = "sortOrder";
|
|
2112
|
+
var _tMNC = "targetModelNameContains";
|
|
1980
2113
|
|
|
1981
2114
|
// src/commands/CreateEvaluationJobCommand.ts
|
|
1982
2115
|
var _CreateEvaluationJobCommand = class _CreateEvaluationJobCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
@@ -2023,6 +2156,22 @@ var _CreateGuardrailVersionCommand = class _CreateGuardrailVersionCommand extend
|
|
|
2023
2156
|
__name(_CreateGuardrailVersionCommand, "CreateGuardrailVersionCommand");
|
|
2024
2157
|
var CreateGuardrailVersionCommand = _CreateGuardrailVersionCommand;
|
|
2025
2158
|
|
|
2159
|
+
// src/commands/CreateModelCopyJobCommand.ts
|
|
2160
|
+
|
|
2161
|
+
|
|
2162
|
+
|
|
2163
|
+
var _CreateModelCopyJobCommand = class _CreateModelCopyJobCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2164
|
+
...commonParams
|
|
2165
|
+
}).m(function(Command, cs, config, o) {
|
|
2166
|
+
return [
|
|
2167
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2168
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2169
|
+
];
|
|
2170
|
+
}).s("AmazonBedrockControlPlaneService", "CreateModelCopyJob", {}).n("BedrockClient", "CreateModelCopyJobCommand").f(void 0, void 0).ser(se_CreateModelCopyJobCommand).de(de_CreateModelCopyJobCommand).build() {
|
|
2171
|
+
};
|
|
2172
|
+
__name(_CreateModelCopyJobCommand, "CreateModelCopyJobCommand");
|
|
2173
|
+
var CreateModelCopyJobCommand = _CreateModelCopyJobCommand;
|
|
2174
|
+
|
|
2026
2175
|
// src/commands/CreateModelCustomizationJobCommand.ts
|
|
2027
2176
|
|
|
2028
2177
|
|
|
@@ -2183,6 +2332,22 @@ var _GetGuardrailCommand = class _GetGuardrailCommand extends import_smithy_clie
|
|
|
2183
2332
|
__name(_GetGuardrailCommand, "GetGuardrailCommand");
|
|
2184
2333
|
var GetGuardrailCommand = _GetGuardrailCommand;
|
|
2185
2334
|
|
|
2335
|
+
// src/commands/GetModelCopyJobCommand.ts
|
|
2336
|
+
|
|
2337
|
+
|
|
2338
|
+
|
|
2339
|
+
var _GetModelCopyJobCommand = class _GetModelCopyJobCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2340
|
+
...commonParams
|
|
2341
|
+
}).m(function(Command, cs, config, o) {
|
|
2342
|
+
return [
|
|
2343
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2344
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2345
|
+
];
|
|
2346
|
+
}).s("AmazonBedrockControlPlaneService", "GetModelCopyJob", {}).n("BedrockClient", "GetModelCopyJobCommand").f(void 0, void 0).ser(se_GetModelCopyJobCommand).de(de_GetModelCopyJobCommand).build() {
|
|
2347
|
+
};
|
|
2348
|
+
__name(_GetModelCopyJobCommand, "GetModelCopyJobCommand");
|
|
2349
|
+
var GetModelCopyJobCommand = _GetModelCopyJobCommand;
|
|
2350
|
+
|
|
2186
2351
|
// src/commands/GetModelCustomizationJobCommand.ts
|
|
2187
2352
|
|
|
2188
2353
|
|
|
@@ -2295,6 +2460,22 @@ var _ListGuardrailsCommand = class _ListGuardrailsCommand extends import_smithy_
|
|
|
2295
2460
|
__name(_ListGuardrailsCommand, "ListGuardrailsCommand");
|
|
2296
2461
|
var ListGuardrailsCommand = _ListGuardrailsCommand;
|
|
2297
2462
|
|
|
2463
|
+
// src/commands/ListModelCopyJobsCommand.ts
|
|
2464
|
+
|
|
2465
|
+
|
|
2466
|
+
|
|
2467
|
+
var _ListModelCopyJobsCommand = class _ListModelCopyJobsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2468
|
+
...commonParams
|
|
2469
|
+
}).m(function(Command, cs, config, o) {
|
|
2470
|
+
return [
|
|
2471
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2472
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2473
|
+
];
|
|
2474
|
+
}).s("AmazonBedrockControlPlaneService", "ListModelCopyJobs", {}).n("BedrockClient", "ListModelCopyJobsCommand").f(void 0, void 0).ser(se_ListModelCopyJobsCommand).de(de_ListModelCopyJobsCommand).build() {
|
|
2475
|
+
};
|
|
2476
|
+
__name(_ListModelCopyJobsCommand, "ListModelCopyJobsCommand");
|
|
2477
|
+
var ListModelCopyJobsCommand = _ListModelCopyJobsCommand;
|
|
2478
|
+
|
|
2298
2479
|
// src/commands/ListModelCustomizationJobsCommand.ts
|
|
2299
2480
|
|
|
2300
2481
|
|
|
@@ -2460,6 +2641,7 @@ var commands = {
|
|
|
2460
2641
|
CreateEvaluationJobCommand,
|
|
2461
2642
|
CreateGuardrailCommand,
|
|
2462
2643
|
CreateGuardrailVersionCommand,
|
|
2644
|
+
CreateModelCopyJobCommand,
|
|
2463
2645
|
CreateModelCustomizationJobCommand,
|
|
2464
2646
|
CreateProvisionedModelThroughputCommand,
|
|
2465
2647
|
DeleteCustomModelCommand,
|
|
@@ -2470,6 +2652,7 @@ var commands = {
|
|
|
2470
2652
|
GetEvaluationJobCommand,
|
|
2471
2653
|
GetFoundationModelCommand,
|
|
2472
2654
|
GetGuardrailCommand,
|
|
2655
|
+
GetModelCopyJobCommand,
|
|
2473
2656
|
GetModelCustomizationJobCommand,
|
|
2474
2657
|
GetModelInvocationLoggingConfigurationCommand,
|
|
2475
2658
|
GetProvisionedModelThroughputCommand,
|
|
@@ -2477,6 +2660,7 @@ var commands = {
|
|
|
2477
2660
|
ListEvaluationJobsCommand,
|
|
2478
2661
|
ListFoundationModelsCommand,
|
|
2479
2662
|
ListGuardrailsCommand,
|
|
2663
|
+
ListModelCopyJobsCommand,
|
|
2480
2664
|
ListModelCustomizationJobsCommand,
|
|
2481
2665
|
ListProvisionedModelThroughputsCommand,
|
|
2482
2666
|
ListTagsForResourceCommand,
|
|
@@ -2506,6 +2690,10 @@ var paginateListEvaluationJobs = (0, import_core.createPaginator)(BedrockClient,
|
|
|
2506
2690
|
|
|
2507
2691
|
var paginateListGuardrails = (0, import_core.createPaginator)(BedrockClient, ListGuardrailsCommand, "nextToken", "nextToken", "maxResults");
|
|
2508
2692
|
|
|
2693
|
+
// src/pagination/ListModelCopyJobsPaginator.ts
|
|
2694
|
+
|
|
2695
|
+
var paginateListModelCopyJobs = (0, import_core.createPaginator)(BedrockClient, ListModelCopyJobsCommand, "nextToken", "nextToken", "maxResults");
|
|
2696
|
+
|
|
2509
2697
|
// src/pagination/ListModelCustomizationJobsPaginator.ts
|
|
2510
2698
|
|
|
2511
2699
|
var paginateListModelCustomizationJobs = (0, import_core.createPaginator)(BedrockClient, ListModelCustomizationJobsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -2524,6 +2712,7 @@ var paginateListProvisionedModelThroughputs = (0, import_core.createPaginator)(B
|
|
|
2524
2712
|
CreateEvaluationJobCommand,
|
|
2525
2713
|
CreateGuardrailCommand,
|
|
2526
2714
|
CreateGuardrailVersionCommand,
|
|
2715
|
+
CreateModelCopyJobCommand,
|
|
2527
2716
|
CreateModelCustomizationJobCommand,
|
|
2528
2717
|
CreateProvisionedModelThroughputCommand,
|
|
2529
2718
|
DeleteCustomModelCommand,
|
|
@@ -2534,6 +2723,7 @@ var paginateListProvisionedModelThroughputs = (0, import_core.createPaginator)(B
|
|
|
2534
2723
|
GetEvaluationJobCommand,
|
|
2535
2724
|
GetFoundationModelCommand,
|
|
2536
2725
|
GetGuardrailCommand,
|
|
2726
|
+
GetModelCopyJobCommand,
|
|
2537
2727
|
GetModelCustomizationJobCommand,
|
|
2538
2728
|
GetModelInvocationLoggingConfigurationCommand,
|
|
2539
2729
|
GetProvisionedModelThroughputCommand,
|
|
@@ -2541,6 +2731,7 @@ var paginateListProvisionedModelThroughputs = (0, import_core.createPaginator)(B
|
|
|
2541
2731
|
ListEvaluationJobsCommand,
|
|
2542
2732
|
ListFoundationModelsCommand,
|
|
2543
2733
|
ListGuardrailsCommand,
|
|
2734
|
+
ListModelCopyJobsCommand,
|
|
2544
2735
|
ListModelCustomizationJobsCommand,
|
|
2545
2736
|
ListProvisionedModelThroughputsCommand,
|
|
2546
2737
|
ListTagsForResourceCommand,
|
|
@@ -2554,6 +2745,7 @@ var paginateListProvisionedModelThroughputs = (0, import_core.createPaginator)(B
|
|
|
2554
2745
|
paginateListCustomModels,
|
|
2555
2746
|
paginateListEvaluationJobs,
|
|
2556
2747
|
paginateListGuardrails,
|
|
2748
|
+
paginateListModelCopyJobs,
|
|
2557
2749
|
paginateListModelCustomizationJobs,
|
|
2558
2750
|
paginateListProvisionedModelThroughputs,
|
|
2559
2751
|
AccessDeniedException,
|
|
@@ -2581,6 +2773,7 @@ var paginateListProvisionedModelThroughputs = (0, import_core.createPaginator)(B
|
|
|
2581
2773
|
GuardrailManagedWordsType,
|
|
2582
2774
|
TooManyTagsException,
|
|
2583
2775
|
GuardrailStatus,
|
|
2776
|
+
ModelCopyJobStatus,
|
|
2584
2777
|
CustomizationType,
|
|
2585
2778
|
ModelCustomization,
|
|
2586
2779
|
InferenceType,
|
package/dist-es/Bedrock.js
CHANGED
|
@@ -3,6 +3,7 @@ import { BedrockClient } from "./BedrockClient";
|
|
|
3
3
|
import { CreateEvaluationJobCommand, } from "./commands/CreateEvaluationJobCommand";
|
|
4
4
|
import { CreateGuardrailCommand, } from "./commands/CreateGuardrailCommand";
|
|
5
5
|
import { CreateGuardrailVersionCommand, } from "./commands/CreateGuardrailVersionCommand";
|
|
6
|
+
import { CreateModelCopyJobCommand, } from "./commands/CreateModelCopyJobCommand";
|
|
6
7
|
import { CreateModelCustomizationJobCommand, } from "./commands/CreateModelCustomizationJobCommand";
|
|
7
8
|
import { CreateProvisionedModelThroughputCommand, } from "./commands/CreateProvisionedModelThroughputCommand";
|
|
8
9
|
import { DeleteCustomModelCommand, } from "./commands/DeleteCustomModelCommand";
|
|
@@ -13,6 +14,7 @@ import { GetCustomModelCommand, } from "./commands/GetCustomModelCommand";
|
|
|
13
14
|
import { GetEvaluationJobCommand, } from "./commands/GetEvaluationJobCommand";
|
|
14
15
|
import { GetFoundationModelCommand, } from "./commands/GetFoundationModelCommand";
|
|
15
16
|
import { GetGuardrailCommand, } from "./commands/GetGuardrailCommand";
|
|
17
|
+
import { GetModelCopyJobCommand, } from "./commands/GetModelCopyJobCommand";
|
|
16
18
|
import { GetModelCustomizationJobCommand, } from "./commands/GetModelCustomizationJobCommand";
|
|
17
19
|
import { GetModelInvocationLoggingConfigurationCommand, } from "./commands/GetModelInvocationLoggingConfigurationCommand";
|
|
18
20
|
import { GetProvisionedModelThroughputCommand, } from "./commands/GetProvisionedModelThroughputCommand";
|
|
@@ -20,6 +22,7 @@ import { ListCustomModelsCommand, } from "./commands/ListCustomModelsCommand";
|
|
|
20
22
|
import { ListEvaluationJobsCommand, } from "./commands/ListEvaluationJobsCommand";
|
|
21
23
|
import { ListFoundationModelsCommand, } from "./commands/ListFoundationModelsCommand";
|
|
22
24
|
import { ListGuardrailsCommand, } from "./commands/ListGuardrailsCommand";
|
|
25
|
+
import { ListModelCopyJobsCommand, } from "./commands/ListModelCopyJobsCommand";
|
|
23
26
|
import { ListModelCustomizationJobsCommand, } from "./commands/ListModelCustomizationJobsCommand";
|
|
24
27
|
import { ListProvisionedModelThroughputsCommand, } from "./commands/ListProvisionedModelThroughputsCommand";
|
|
25
28
|
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
@@ -34,6 +37,7 @@ const commands = {
|
|
|
34
37
|
CreateEvaluationJobCommand,
|
|
35
38
|
CreateGuardrailCommand,
|
|
36
39
|
CreateGuardrailVersionCommand,
|
|
40
|
+
CreateModelCopyJobCommand,
|
|
37
41
|
CreateModelCustomizationJobCommand,
|
|
38
42
|
CreateProvisionedModelThroughputCommand,
|
|
39
43
|
DeleteCustomModelCommand,
|
|
@@ -44,6 +48,7 @@ const commands = {
|
|
|
44
48
|
GetEvaluationJobCommand,
|
|
45
49
|
GetFoundationModelCommand,
|
|
46
50
|
GetGuardrailCommand,
|
|
51
|
+
GetModelCopyJobCommand,
|
|
47
52
|
GetModelCustomizationJobCommand,
|
|
48
53
|
GetModelInvocationLoggingConfigurationCommand,
|
|
49
54
|
GetProvisionedModelThroughputCommand,
|
|
@@ -51,6 +56,7 @@ const commands = {
|
|
|
51
56
|
ListEvaluationJobsCommand,
|
|
52
57
|
ListFoundationModelsCommand,
|
|
53
58
|
ListGuardrailsCommand,
|
|
59
|
+
ListModelCopyJobsCommand,
|
|
54
60
|
ListModelCustomizationJobsCommand,
|
|
55
61
|
ListProvisionedModelThroughputsCommand,
|
|
56
62
|
ListTagsForResourceCommand,
|
package/dist-es/BedrockClient.js
CHANGED
|
@@ -17,36 +17,30 @@ export class BedrockClient extends __Client {
|
|
|
17
17
|
constructor(...[configuration]) {
|
|
18
18
|
const _config_0 = __getRuntimeConfig(configuration || {});
|
|
19
19
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
20
|
-
const _config_2 =
|
|
21
|
-
const _config_3 =
|
|
22
|
-
const _config_4 =
|
|
23
|
-
const _config_5 =
|
|
24
|
-
const _config_6 =
|
|
20
|
+
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
21
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
22
|
+
const _config_4 = resolveRegionConfig(_config_3);
|
|
23
|
+
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
24
|
+
const _config_6 = resolveEndpointConfig(_config_5);
|
|
25
25
|
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
26
26
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
27
27
|
super(_config_8);
|
|
28
28
|
this.config = _config_8;
|
|
29
|
-
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
30
|
-
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
31
|
-
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
32
29
|
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
33
30
|
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
34
31
|
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
32
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
33
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
34
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
35
35
|
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
36
|
-
httpAuthSchemeParametersProvider:
|
|
37
|
-
identityProviderConfigProvider:
|
|
36
|
+
httpAuthSchemeParametersProvider: defaultBedrockHttpAuthSchemeParametersProvider,
|
|
37
|
+
identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
|
|
38
|
+
"aws.auth#sigv4": config.credentials,
|
|
39
|
+
}),
|
|
38
40
|
}));
|
|
39
41
|
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
40
42
|
}
|
|
41
43
|
destroy() {
|
|
42
44
|
super.destroy();
|
|
43
45
|
}
|
|
44
|
-
getDefaultHttpAuthSchemeParametersProvider() {
|
|
45
|
-
return defaultBedrockHttpAuthSchemeParametersProvider;
|
|
46
|
-
}
|
|
47
|
-
getIdentityProviderConfigProvider() {
|
|
48
|
-
return async (config) => new DefaultIdentityProviderConfig({
|
|
49
|
-
"aws.auth#sigv4": config.credentials,
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
46
|
}
|
|
@@ -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_CreateModelCopyJobCommand, se_CreateModelCopyJobCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class CreateModelCopyJobCommand 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", "CreateModelCopyJob", {})
|
|
19
|
+
.n("BedrockClient", "CreateModelCopyJobCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_CreateModelCopyJobCommand)
|
|
22
|
+
.de(de_CreateModelCopyJobCommand)
|
|
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_GetModelCopyJobCommand, se_GetModelCopyJobCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class GetModelCopyJobCommand 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", "GetModelCopyJob", {})
|
|
19
|
+
.n("BedrockClient", "GetModelCopyJobCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_GetModelCopyJobCommand)
|
|
22
|
+
.de(de_GetModelCopyJobCommand)
|
|
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_ListModelCopyJobsCommand, se_ListModelCopyJobsCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class ListModelCopyJobsCommand 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", "ListModelCopyJobs", {})
|
|
19
|
+
.n("BedrockClient", "ListModelCopyJobsCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_ListModelCopyJobsCommand)
|
|
22
|
+
.de(de_ListModelCopyJobsCommand)
|
|
23
|
+
.build() {
|
|
24
|
+
}
|