@aws-sdk/client-bedrock 3.798.0 → 3.800.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/dist-cjs/index.js +41 -1
- package/dist-cjs/runtimeConfig.js +1 -0
- package/dist-es/models/models_0.js +8 -0
- package/dist-es/protocols/Aws_restJson1.js +30 -0
- package/dist-es/runtimeConfig.js +2 -1
- package/dist-types/commands/GetModelCustomizationJobCommand.d.ts +17 -0
- package/dist-types/commands/ListModelCustomizationJobsCommand.d.ts +17 -0
- package/dist-types/models/models_0.d.ts +133 -3
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +32 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -4
- package/package.json +5 -5
package/dist-cjs/index.js
CHANGED
|
@@ -155,6 +155,7 @@ __export(index_exports, {
|
|
|
155
155
|
InternalServerException: () => InternalServerException,
|
|
156
156
|
InvocationLogSource: () => InvocationLogSource,
|
|
157
157
|
InvocationLogsConfigFilterSensitiveLog: () => InvocationLogsConfigFilterSensitiveLog,
|
|
158
|
+
JobStatusDetails: () => JobStatusDetails,
|
|
158
159
|
KnowledgeBaseConfig: () => KnowledgeBaseConfig,
|
|
159
160
|
KnowledgeBaseConfigFilterSensitiveLog: () => KnowledgeBaseConfigFilterSensitiveLog,
|
|
160
161
|
KnowledgeBaseRetrievalConfigurationFilterSensitiveLog: () => KnowledgeBaseRetrievalConfigurationFilterSensitiveLog,
|
|
@@ -926,6 +927,14 @@ var ModelCustomizationJobStatus = {
|
|
|
926
927
|
STOPPED: "Stopped",
|
|
927
928
|
STOPPING: "Stopping"
|
|
928
929
|
};
|
|
930
|
+
var JobStatusDetails = {
|
|
931
|
+
COMPLETED: "Completed",
|
|
932
|
+
FAILED: "Failed",
|
|
933
|
+
IN_PROGRESS: "InProgress",
|
|
934
|
+
NOT_STARTED: "NotStarted",
|
|
935
|
+
STOPPED: "Stopped",
|
|
936
|
+
STOPPING: "Stopping"
|
|
937
|
+
};
|
|
929
938
|
var FineTuningJobStatus = {
|
|
930
939
|
COMPLETED: "Completed",
|
|
931
940
|
FAILED: "Failed",
|
|
@@ -2791,6 +2800,7 @@ var de_GetModelCustomizationJobCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2791
2800
|
outputModelName: import_smithy_client.expectString,
|
|
2792
2801
|
roleArn: import_smithy_client.expectString,
|
|
2793
2802
|
status: import_smithy_client.expectString,
|
|
2803
|
+
statusDetails: /* @__PURE__ */ __name((_) => de_StatusDetails(_, context), "statusDetails"),
|
|
2794
2804
|
trainingDataConfig: import_smithy_client._json,
|
|
2795
2805
|
trainingMetrics: /* @__PURE__ */ __name((_) => de_TrainingMetrics(_, context), "trainingMetrics"),
|
|
2796
2806
|
validationDataConfig: import_smithy_client._json,
|
|
@@ -3712,6 +3722,13 @@ var de_CustomModelSummaryList = /* @__PURE__ */ __name((output, context) => {
|
|
|
3712
3722
|
});
|
|
3713
3723
|
return retVal;
|
|
3714
3724
|
}, "de_CustomModelSummaryList");
|
|
3725
|
+
var de_DataProcessingDetails = /* @__PURE__ */ __name((output, context) => {
|
|
3726
|
+
return (0, import_smithy_client.take)(output, {
|
|
3727
|
+
creationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "creationTime"),
|
|
3728
|
+
lastModifiedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "lastModifiedTime"),
|
|
3729
|
+
status: import_smithy_client.expectString
|
|
3730
|
+
});
|
|
3731
|
+
}, "de_DataProcessingDetails");
|
|
3715
3732
|
var de_EvaluationConfig = /* @__PURE__ */ __name((output, context) => {
|
|
3716
3733
|
if (output.automated != null) {
|
|
3717
3734
|
return {
|
|
@@ -3982,7 +3999,8 @@ var de_ModelCustomizationJobSummary = /* @__PURE__ */ __name((output, context) =
|
|
|
3982
3999
|
jobArn: import_smithy_client.expectString,
|
|
3983
4000
|
jobName: import_smithy_client.expectString,
|
|
3984
4001
|
lastModifiedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "lastModifiedTime"),
|
|
3985
|
-
status: import_smithy_client.expectString
|
|
4002
|
+
status: import_smithy_client.expectString,
|
|
4003
|
+
statusDetails: /* @__PURE__ */ __name((_) => de_StatusDetails(_, context), "statusDetails")
|
|
3986
4004
|
});
|
|
3987
4005
|
}, "de_ModelCustomizationJobSummary");
|
|
3988
4006
|
var de_ModelImportJobSummaries = /* @__PURE__ */ __name((output, context) => {
|
|
@@ -4202,6 +4220,13 @@ var de_RoutingCriteria = /* @__PURE__ */ __name((output, context) => {
|
|
|
4202
4220
|
responseQualityDifference: import_smithy_client.limitedParseDouble
|
|
4203
4221
|
});
|
|
4204
4222
|
}, "de_RoutingCriteria");
|
|
4223
|
+
var de_StatusDetails = /* @__PURE__ */ __name((output, context) => {
|
|
4224
|
+
return (0, import_smithy_client.take)(output, {
|
|
4225
|
+
dataProcessingDetails: /* @__PURE__ */ __name((_) => de_DataProcessingDetails(_, context), "dataProcessingDetails"),
|
|
4226
|
+
trainingDetails: /* @__PURE__ */ __name((_) => de_TrainingDetails(_, context), "trainingDetails"),
|
|
4227
|
+
validationDetails: /* @__PURE__ */ __name((_) => de_ValidationDetails(_, context), "validationDetails")
|
|
4228
|
+
});
|
|
4229
|
+
}, "de_StatusDetails");
|
|
4205
4230
|
var de_TextInferenceConfig = /* @__PURE__ */ __name((output, context) => {
|
|
4206
4231
|
return (0, import_smithy_client.take)(output, {
|
|
4207
4232
|
maxTokens: import_smithy_client.expectInt32,
|
|
@@ -4210,11 +4235,25 @@ var de_TextInferenceConfig = /* @__PURE__ */ __name((output, context) => {
|
|
|
4210
4235
|
topP: import_smithy_client.limitedParseFloat32
|
|
4211
4236
|
});
|
|
4212
4237
|
}, "de_TextInferenceConfig");
|
|
4238
|
+
var de_TrainingDetails = /* @__PURE__ */ __name((output, context) => {
|
|
4239
|
+
return (0, import_smithy_client.take)(output, {
|
|
4240
|
+
creationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "creationTime"),
|
|
4241
|
+
lastModifiedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "lastModifiedTime"),
|
|
4242
|
+
status: import_smithy_client.expectString
|
|
4243
|
+
});
|
|
4244
|
+
}, "de_TrainingDetails");
|
|
4213
4245
|
var de_TrainingMetrics = /* @__PURE__ */ __name((output, context) => {
|
|
4214
4246
|
return (0, import_smithy_client.take)(output, {
|
|
4215
4247
|
trainingLoss: import_smithy_client.limitedParseFloat32
|
|
4216
4248
|
});
|
|
4217
4249
|
}, "de_TrainingMetrics");
|
|
4250
|
+
var de_ValidationDetails = /* @__PURE__ */ __name((output, context) => {
|
|
4251
|
+
return (0, import_smithy_client.take)(output, {
|
|
4252
|
+
creationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "creationTime"),
|
|
4253
|
+
lastModifiedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "lastModifiedTime"),
|
|
4254
|
+
status: import_smithy_client.expectString
|
|
4255
|
+
});
|
|
4256
|
+
}, "de_ValidationDetails");
|
|
4218
4257
|
var de_ValidationMetrics = /* @__PURE__ */ __name((output, context) => {
|
|
4219
4258
|
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
4220
4259
|
return de_ValidatorMetric(entry, context);
|
|
@@ -5406,6 +5445,7 @@ var paginateListProvisionedModelThroughputs = (0, import_core.createPaginator)(B
|
|
|
5406
5445
|
ProvisionedModelStatus,
|
|
5407
5446
|
SortByProvisionedModels,
|
|
5408
5447
|
ModelCustomizationJobStatus,
|
|
5448
|
+
JobStatusDetails,
|
|
5409
5449
|
FineTuningJobStatus,
|
|
5410
5450
|
RetrievalFilter,
|
|
5411
5451
|
KnowledgeBaseConfig,
|
|
@@ -29,6 +29,7 @@ const getRuntimeConfig = (config) => {
|
|
|
29
29
|
...config,
|
|
30
30
|
runtime: "node",
|
|
31
31
|
defaultsMode,
|
|
32
|
+
authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, profileConfig),
|
|
32
33
|
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
|
|
33
34
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
|
|
34
35
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
@@ -472,6 +472,14 @@ export const ModelCustomizationJobStatus = {
|
|
|
472
472
|
STOPPED: "Stopped",
|
|
473
473
|
STOPPING: "Stopping",
|
|
474
474
|
};
|
|
475
|
+
export const JobStatusDetails = {
|
|
476
|
+
COMPLETED: "Completed",
|
|
477
|
+
FAILED: "Failed",
|
|
478
|
+
IN_PROGRESS: "InProgress",
|
|
479
|
+
NOT_STARTED: "NotStarted",
|
|
480
|
+
STOPPED: "Stopped",
|
|
481
|
+
STOPPING: "Stopping",
|
|
482
|
+
};
|
|
475
483
|
export const FineTuningJobStatus = {
|
|
476
484
|
COMPLETED: "Completed",
|
|
477
485
|
FAILED: "Failed",
|
|
@@ -1283,6 +1283,7 @@ export const de_GetModelCustomizationJobCommand = async (output, context) => {
|
|
|
1283
1283
|
outputModelName: __expectString,
|
|
1284
1284
|
roleArn: __expectString,
|
|
1285
1285
|
status: __expectString,
|
|
1286
|
+
statusDetails: (_) => de_StatusDetails(_, context),
|
|
1286
1287
|
trainingDataConfig: _json,
|
|
1287
1288
|
trainingMetrics: (_) => de_TrainingMetrics(_, context),
|
|
1288
1289
|
validationDataConfig: _json,
|
|
@@ -2220,6 +2221,13 @@ const de_CustomModelSummaryList = (output, context) => {
|
|
|
2220
2221
|
});
|
|
2221
2222
|
return retVal;
|
|
2222
2223
|
};
|
|
2224
|
+
const de_DataProcessingDetails = (output, context) => {
|
|
2225
|
+
return take(output, {
|
|
2226
|
+
creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2227
|
+
lastModifiedTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2228
|
+
status: __expectString,
|
|
2229
|
+
});
|
|
2230
|
+
};
|
|
2223
2231
|
const de_EvaluationConfig = (output, context) => {
|
|
2224
2232
|
if (output.automated != null) {
|
|
2225
2233
|
return {
|
|
@@ -2509,6 +2517,7 @@ const de_ModelCustomizationJobSummary = (output, context) => {
|
|
|
2509
2517
|
jobName: __expectString,
|
|
2510
2518
|
lastModifiedTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2511
2519
|
status: __expectString,
|
|
2520
|
+
statusDetails: (_) => de_StatusDetails(_, context),
|
|
2512
2521
|
});
|
|
2513
2522
|
};
|
|
2514
2523
|
const de_ModelImportJobSummaries = (output, context) => {
|
|
@@ -2742,6 +2751,13 @@ const de_RoutingCriteria = (output, context) => {
|
|
|
2742
2751
|
responseQualityDifference: __limitedParseDouble,
|
|
2743
2752
|
});
|
|
2744
2753
|
};
|
|
2754
|
+
const de_StatusDetails = (output, context) => {
|
|
2755
|
+
return take(output, {
|
|
2756
|
+
dataProcessingDetails: (_) => de_DataProcessingDetails(_, context),
|
|
2757
|
+
trainingDetails: (_) => de_TrainingDetails(_, context),
|
|
2758
|
+
validationDetails: (_) => de_ValidationDetails(_, context),
|
|
2759
|
+
});
|
|
2760
|
+
};
|
|
2745
2761
|
const de_TextInferenceConfig = (output, context) => {
|
|
2746
2762
|
return take(output, {
|
|
2747
2763
|
maxTokens: __expectInt32,
|
|
@@ -2750,11 +2766,25 @@ const de_TextInferenceConfig = (output, context) => {
|
|
|
2750
2766
|
topP: __limitedParseFloat32,
|
|
2751
2767
|
});
|
|
2752
2768
|
};
|
|
2769
|
+
const de_TrainingDetails = (output, context) => {
|
|
2770
|
+
return take(output, {
|
|
2771
|
+
creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2772
|
+
lastModifiedTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2773
|
+
status: __expectString,
|
|
2774
|
+
});
|
|
2775
|
+
};
|
|
2753
2776
|
const de_TrainingMetrics = (output, context) => {
|
|
2754
2777
|
return take(output, {
|
|
2755
2778
|
trainingLoss: __limitedParseFloat32,
|
|
2756
2779
|
});
|
|
2757
2780
|
};
|
|
2781
|
+
const de_ValidationDetails = (output, context) => {
|
|
2782
|
+
return take(output, {
|
|
2783
|
+
creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2784
|
+
lastModifiedTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2785
|
+
status: __expectString,
|
|
2786
|
+
});
|
|
2787
|
+
};
|
|
2758
2788
|
const de_ValidationMetrics = (output, context) => {
|
|
2759
2789
|
const retVal = (output || [])
|
|
2760
2790
|
.filter((e) => e != null)
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import packageInfo from "../package.json";
|
|
2
|
-
import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
|
|
2
|
+
import { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
|
|
3
3
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
4
4
|
import { NODE_APP_ID_CONFIG_OPTIONS, createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-node";
|
|
5
5
|
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
|
|
@@ -25,6 +25,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
25
25
|
...config,
|
|
26
26
|
runtime: "node",
|
|
27
27
|
defaultsMode,
|
|
28
|
+
authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, profileConfig),
|
|
28
29
|
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
29
30
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
|
|
30
31
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
@@ -49,6 +49,23 @@ declare const GetModelCustomizationJobCommand_base: {
|
|
|
49
49
|
* // roleArn: "STRING_VALUE", // required
|
|
50
50
|
* // status: "InProgress" || "Completed" || "Failed" || "Stopping" || "Stopped",
|
|
51
51
|
* // failureMessage: "STRING_VALUE",
|
|
52
|
+
* // statusDetails: { // StatusDetails
|
|
53
|
+
* // validationDetails: { // ValidationDetails
|
|
54
|
+
* // status: "InProgress" || "Completed" || "Stopping" || "Stopped" || "Failed" || "NotStarted",
|
|
55
|
+
* // creationTime: new Date("TIMESTAMP"),
|
|
56
|
+
* // lastModifiedTime: new Date("TIMESTAMP"),
|
|
57
|
+
* // },
|
|
58
|
+
* // dataProcessingDetails: { // DataProcessingDetails
|
|
59
|
+
* // status: "InProgress" || "Completed" || "Stopping" || "Stopped" || "Failed" || "NotStarted",
|
|
60
|
+
* // creationTime: new Date("TIMESTAMP"),
|
|
61
|
+
* // lastModifiedTime: new Date("TIMESTAMP"),
|
|
62
|
+
* // },
|
|
63
|
+
* // trainingDetails: { // TrainingDetails
|
|
64
|
+
* // status: "InProgress" || "Completed" || "Stopping" || "Stopped" || "Failed" || "NotStarted",
|
|
65
|
+
* // creationTime: new Date("TIMESTAMP"),
|
|
66
|
+
* // lastModifiedTime: new Date("TIMESTAMP"),
|
|
67
|
+
* // },
|
|
68
|
+
* // },
|
|
52
69
|
* // creationTime: new Date("TIMESTAMP"), // required
|
|
53
70
|
* // lastModifiedTime: new Date("TIMESTAMP"),
|
|
54
71
|
* // endTime: new Date("TIMESTAMP"),
|
|
@@ -57,6 +57,23 @@ declare const ListModelCustomizationJobsCommand_base: {
|
|
|
57
57
|
* // jobName: "STRING_VALUE", // required
|
|
58
58
|
* // status: "InProgress" || "Completed" || "Failed" || "Stopping" || "Stopped", // required
|
|
59
59
|
* // lastModifiedTime: new Date("TIMESTAMP"),
|
|
60
|
+
* // statusDetails: { // StatusDetails
|
|
61
|
+
* // validationDetails: { // ValidationDetails
|
|
62
|
+
* // status: "InProgress" || "Completed" || "Stopping" || "Stopped" || "Failed" || "NotStarted",
|
|
63
|
+
* // creationTime: new Date("TIMESTAMP"),
|
|
64
|
+
* // lastModifiedTime: new Date("TIMESTAMP"),
|
|
65
|
+
* // },
|
|
66
|
+
* // dataProcessingDetails: { // DataProcessingDetails
|
|
67
|
+
* // status: "InProgress" || "Completed" || "Stopping" || "Stopped" || "Failed" || "NotStarted",
|
|
68
|
+
* // creationTime: new Date("TIMESTAMP"),
|
|
69
|
+
* // lastModifiedTime: new Date("TIMESTAMP"),
|
|
70
|
+
* // },
|
|
71
|
+
* // trainingDetails: { // TrainingDetails
|
|
72
|
+
* // status: "InProgress" || "Completed" || "Stopping" || "Stopped" || "Failed" || "NotStarted",
|
|
73
|
+
* // creationTime: new Date("TIMESTAMP"),
|
|
74
|
+
* // lastModifiedTime: new Date("TIMESTAMP"),
|
|
75
|
+
* // },
|
|
76
|
+
* // },
|
|
60
77
|
* // creationTime: new Date("TIMESTAMP"), // required
|
|
61
78
|
* // endTime: new Date("TIMESTAMP"),
|
|
62
79
|
* // customModelArn: "STRING_VALUE",
|
|
@@ -5652,7 +5652,7 @@ export type CustomizationConfig = CustomizationConfig.DistillationConfigMember |
|
|
|
5652
5652
|
*/
|
|
5653
5653
|
export declare namespace CustomizationConfig {
|
|
5654
5654
|
/**
|
|
5655
|
-
* <p>The
|
|
5655
|
+
* <p>The Distillation configuration for the custom model.</p>
|
|
5656
5656
|
* @public
|
|
5657
5657
|
*/
|
|
5658
5658
|
interface DistillationConfigMember {
|
|
@@ -5744,8 +5744,8 @@ export interface RequestMetadataBaseFilters {
|
|
|
5744
5744
|
}
|
|
5745
5745
|
/**
|
|
5746
5746
|
* <p>Rules for filtering invocation logs. A filter can be a mapping of a metadata
|
|
5747
|
-
*
|
|
5748
|
-
*
|
|
5747
|
+
* key to a value that it should or should not equal (a base filter), or a list of base filters
|
|
5748
|
+
* that are all applied with <code>AND</code> or <code>OR</code> logical operators</p>
|
|
5749
5749
|
* @public
|
|
5750
5750
|
*/
|
|
5751
5751
|
export type RequestMetadataFilters = RequestMetadataFilters.AndAllMember | RequestMetadataFilters.EqualsMember | RequestMetadataFilters.NotEqualsMember | RequestMetadataFilters.OrAllMember | RequestMetadataFilters.$UnknownMember;
|
|
@@ -7119,6 +7119,126 @@ export declare const ModelCustomizationJobStatus: {
|
|
|
7119
7119
|
* @public
|
|
7120
7120
|
*/
|
|
7121
7121
|
export type ModelCustomizationJobStatus = (typeof ModelCustomizationJobStatus)[keyof typeof ModelCustomizationJobStatus];
|
|
7122
|
+
/**
|
|
7123
|
+
* @public
|
|
7124
|
+
* @enum
|
|
7125
|
+
*/
|
|
7126
|
+
export declare const JobStatusDetails: {
|
|
7127
|
+
readonly COMPLETED: "Completed";
|
|
7128
|
+
readonly FAILED: "Failed";
|
|
7129
|
+
readonly IN_PROGRESS: "InProgress";
|
|
7130
|
+
readonly NOT_STARTED: "NotStarted";
|
|
7131
|
+
readonly STOPPED: "Stopped";
|
|
7132
|
+
readonly STOPPING: "Stopping";
|
|
7133
|
+
};
|
|
7134
|
+
/**
|
|
7135
|
+
* @public
|
|
7136
|
+
*/
|
|
7137
|
+
export type JobStatusDetails = (typeof JobStatusDetails)[keyof typeof JobStatusDetails];
|
|
7138
|
+
/**
|
|
7139
|
+
* <p>For a Distillation job, the status details for the data processing sub-task of the job.</p>
|
|
7140
|
+
* @public
|
|
7141
|
+
*/
|
|
7142
|
+
export interface DataProcessingDetails {
|
|
7143
|
+
/**
|
|
7144
|
+
* <p>The status of the data processing sub-task of the job.</p>
|
|
7145
|
+
* @public
|
|
7146
|
+
*/
|
|
7147
|
+
status?: JobStatusDetails | undefined;
|
|
7148
|
+
/**
|
|
7149
|
+
* <p>The start time of the data processing sub-task of the job.</p>
|
|
7150
|
+
* @public
|
|
7151
|
+
*/
|
|
7152
|
+
creationTime?: Date | undefined;
|
|
7153
|
+
/**
|
|
7154
|
+
* <p>The latest update to the data processing sub-task of the job.</p>
|
|
7155
|
+
* @public
|
|
7156
|
+
*/
|
|
7157
|
+
lastModifiedTime?: Date | undefined;
|
|
7158
|
+
}
|
|
7159
|
+
/**
|
|
7160
|
+
* <p>For a Distillation job, the status details for the training sub-task of the job.</p>
|
|
7161
|
+
* @public
|
|
7162
|
+
*/
|
|
7163
|
+
export interface TrainingDetails {
|
|
7164
|
+
/**
|
|
7165
|
+
* <p>The status of the training sub-task of the job.</p>
|
|
7166
|
+
* @public
|
|
7167
|
+
*/
|
|
7168
|
+
status?: JobStatusDetails | undefined;
|
|
7169
|
+
/**
|
|
7170
|
+
* <p>The start time of the training sub-task of the job.</p>
|
|
7171
|
+
* @public
|
|
7172
|
+
*/
|
|
7173
|
+
creationTime?: Date | undefined;
|
|
7174
|
+
/**
|
|
7175
|
+
* <p>The latest update to the training sub-task of the job.</p>
|
|
7176
|
+
* @public
|
|
7177
|
+
*/
|
|
7178
|
+
lastModifiedTime?: Date | undefined;
|
|
7179
|
+
}
|
|
7180
|
+
/**
|
|
7181
|
+
* <p>For a Distillation job, the status details for the validation sub-task of the job.</p>
|
|
7182
|
+
* @public
|
|
7183
|
+
*/
|
|
7184
|
+
export interface ValidationDetails {
|
|
7185
|
+
/**
|
|
7186
|
+
* <p>The status of the validation sub-task of the job.</p>
|
|
7187
|
+
* @public
|
|
7188
|
+
*/
|
|
7189
|
+
status?: JobStatusDetails | undefined;
|
|
7190
|
+
/**
|
|
7191
|
+
* <p>The start time of the validation sub-task of the job.</p>
|
|
7192
|
+
* @public
|
|
7193
|
+
*/
|
|
7194
|
+
creationTime?: Date | undefined;
|
|
7195
|
+
/**
|
|
7196
|
+
* <p>The latest update to the validation sub-task of the job.</p>
|
|
7197
|
+
* @public
|
|
7198
|
+
*/
|
|
7199
|
+
lastModifiedTime?: Date | undefined;
|
|
7200
|
+
}
|
|
7201
|
+
/**
|
|
7202
|
+
* <p>For a Distillation job, the status details for sub-tasks of the job. Possible statuses for each sub-task include the following:</p>
|
|
7203
|
+
* <ul>
|
|
7204
|
+
* <li>
|
|
7205
|
+
* <p>NotStarted</p>
|
|
7206
|
+
* </li>
|
|
7207
|
+
* <li>
|
|
7208
|
+
* <p>InProgress</p>
|
|
7209
|
+
* </li>
|
|
7210
|
+
* <li>
|
|
7211
|
+
* <p>Completed</p>
|
|
7212
|
+
* </li>
|
|
7213
|
+
* <li>
|
|
7214
|
+
* <p>Stopping</p>
|
|
7215
|
+
* </li>
|
|
7216
|
+
* <li>
|
|
7217
|
+
* <p>Stopped</p>
|
|
7218
|
+
* </li>
|
|
7219
|
+
* <li>
|
|
7220
|
+
* <p>Failed</p>
|
|
7221
|
+
* </li>
|
|
7222
|
+
* </ul>
|
|
7223
|
+
* @public
|
|
7224
|
+
*/
|
|
7225
|
+
export interface StatusDetails {
|
|
7226
|
+
/**
|
|
7227
|
+
* <p>The status details for the validation sub-task of the job.</p>
|
|
7228
|
+
* @public
|
|
7229
|
+
*/
|
|
7230
|
+
validationDetails?: ValidationDetails | undefined;
|
|
7231
|
+
/**
|
|
7232
|
+
* <p>The status details for the data processing sub-task of the job.</p>
|
|
7233
|
+
* @public
|
|
7234
|
+
*/
|
|
7235
|
+
dataProcessingDetails?: DataProcessingDetails | undefined;
|
|
7236
|
+
/**
|
|
7237
|
+
* <p>The status details for the training sub-task of the job.</p>
|
|
7238
|
+
* @public
|
|
7239
|
+
*/
|
|
7240
|
+
trainingDetails?: TrainingDetails | undefined;
|
|
7241
|
+
}
|
|
7122
7242
|
/**
|
|
7123
7243
|
* @public
|
|
7124
7244
|
*/
|
|
@@ -7164,6 +7284,11 @@ export interface GetModelCustomizationJobResponse {
|
|
|
7164
7284
|
* @public
|
|
7165
7285
|
*/
|
|
7166
7286
|
failureMessage?: string | undefined;
|
|
7287
|
+
/**
|
|
7288
|
+
* <p>For a Distillation job, the details about the statuses of the sub-tasks of the customization job. </p>
|
|
7289
|
+
* @public
|
|
7290
|
+
*/
|
|
7291
|
+
statusDetails?: StatusDetails | undefined;
|
|
7167
7292
|
/**
|
|
7168
7293
|
* <p>Time that the resource was created.</p>
|
|
7169
7294
|
* @public
|
|
@@ -7325,6 +7450,11 @@ export interface ModelCustomizationJobSummary {
|
|
|
7325
7450
|
* @public
|
|
7326
7451
|
*/
|
|
7327
7452
|
lastModifiedTime?: Date | undefined;
|
|
7453
|
+
/**
|
|
7454
|
+
* <p>Details about the status of the data processing sub-task of the job.</p>
|
|
7455
|
+
* @public
|
|
7456
|
+
*/
|
|
7457
|
+
statusDetails?: StatusDetails | undefined;
|
|
7328
7458
|
/**
|
|
7329
7459
|
* <p>Creation time of the custom model. </p>
|
|
7330
7460
|
* @public
|
|
@@ -6,6 +6,7 @@ import { BedrockClientConfig } from "./BedrockClient";
|
|
|
6
6
|
export declare const getRuntimeConfig: (config: BedrockClientConfig) => {
|
|
7
7
|
runtime: string;
|
|
8
8
|
defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
|
|
9
|
+
authSchemePreference: string[] | import("@smithy/types").Provider<string[]>;
|
|
9
10
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
10
11
|
credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit | undefined) => import("@smithy/types").MemoizedProvider<import("@smithy/types").AwsCredentialIdentity>);
|
|
11
12
|
defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-node").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
|
|
@@ -38,7 +39,6 @@ export declare const getRuntimeConfig: (config: BedrockClientConfig) => {
|
|
|
38
39
|
}) => import("@smithy/types").EndpointV2;
|
|
39
40
|
tls?: boolean | undefined;
|
|
40
41
|
serviceConfiguredEndpoint?: undefined;
|
|
41
|
-
authSchemePreference?: string[] | import("@smithy/types").Provider<string[]> | undefined;
|
|
42
42
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
43
43
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").BedrockHttpAuthSchemeProvider;
|
|
44
44
|
credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
|
|
@@ -1869,6 +1869,36 @@ export declare const ModelCustomizationJobStatus: {
|
|
|
1869
1869
|
};
|
|
1870
1870
|
export type ModelCustomizationJobStatus =
|
|
1871
1871
|
(typeof ModelCustomizationJobStatus)[keyof typeof ModelCustomizationJobStatus];
|
|
1872
|
+
export declare const JobStatusDetails: {
|
|
1873
|
+
readonly COMPLETED: "Completed";
|
|
1874
|
+
readonly FAILED: "Failed";
|
|
1875
|
+
readonly IN_PROGRESS: "InProgress";
|
|
1876
|
+
readonly NOT_STARTED: "NotStarted";
|
|
1877
|
+
readonly STOPPED: "Stopped";
|
|
1878
|
+
readonly STOPPING: "Stopping";
|
|
1879
|
+
};
|
|
1880
|
+
export type JobStatusDetails =
|
|
1881
|
+
(typeof JobStatusDetails)[keyof typeof JobStatusDetails];
|
|
1882
|
+
export interface DataProcessingDetails {
|
|
1883
|
+
status?: JobStatusDetails | undefined;
|
|
1884
|
+
creationTime?: Date | undefined;
|
|
1885
|
+
lastModifiedTime?: Date | undefined;
|
|
1886
|
+
}
|
|
1887
|
+
export interface TrainingDetails {
|
|
1888
|
+
status?: JobStatusDetails | undefined;
|
|
1889
|
+
creationTime?: Date | undefined;
|
|
1890
|
+
lastModifiedTime?: Date | undefined;
|
|
1891
|
+
}
|
|
1892
|
+
export interface ValidationDetails {
|
|
1893
|
+
status?: JobStatusDetails | undefined;
|
|
1894
|
+
creationTime?: Date | undefined;
|
|
1895
|
+
lastModifiedTime?: Date | undefined;
|
|
1896
|
+
}
|
|
1897
|
+
export interface StatusDetails {
|
|
1898
|
+
validationDetails?: ValidationDetails | undefined;
|
|
1899
|
+
dataProcessingDetails?: DataProcessingDetails | undefined;
|
|
1900
|
+
trainingDetails?: TrainingDetails | undefined;
|
|
1901
|
+
}
|
|
1872
1902
|
export interface GetModelCustomizationJobResponse {
|
|
1873
1903
|
jobArn: string | undefined;
|
|
1874
1904
|
jobName: string | undefined;
|
|
@@ -1878,6 +1908,7 @@ export interface GetModelCustomizationJobResponse {
|
|
|
1878
1908
|
roleArn: string | undefined;
|
|
1879
1909
|
status?: ModelCustomizationJobStatus | undefined;
|
|
1880
1910
|
failureMessage?: string | undefined;
|
|
1911
|
+
statusDetails?: StatusDetails | undefined;
|
|
1881
1912
|
creationTime: Date | undefined;
|
|
1882
1913
|
lastModifiedTime?: Date | undefined;
|
|
1883
1914
|
endTime?: Date | undefined;
|
|
@@ -1918,6 +1949,7 @@ export interface ModelCustomizationJobSummary {
|
|
|
1918
1949
|
jobName: string | undefined;
|
|
1919
1950
|
status: ModelCustomizationJobStatus | undefined;
|
|
1920
1951
|
lastModifiedTime?: Date | undefined;
|
|
1952
|
+
statusDetails?: StatusDetails | undefined;
|
|
1921
1953
|
creationTime: Date | undefined;
|
|
1922
1954
|
endTime?: Date | undefined;
|
|
1923
1955
|
customModelArn?: string | undefined;
|
|
@@ -5,6 +5,7 @@ export declare const getRuntimeConfig: (config: BedrockClientConfig) => {
|
|
|
5
5
|
defaultsMode: import("@smithy/types").Provider<
|
|
6
6
|
import("@smithy/smithy-client").ResolvedDefaultsMode
|
|
7
7
|
>;
|
|
8
|
+
authSchemePreference: string[] | import("@smithy/types").Provider<string[]>;
|
|
8
9
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
9
10
|
credentialDefaultProvider:
|
|
10
11
|
| ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
|
|
@@ -73,10 +74,6 @@ export declare const getRuntimeConfig: (config: BedrockClientConfig) => {
|
|
|
73
74
|
) => import("@smithy/types").EndpointV2;
|
|
74
75
|
tls?: boolean | undefined;
|
|
75
76
|
serviceConfiguredEndpoint?: undefined;
|
|
76
|
-
authSchemePreference?:
|
|
77
|
-
| string[]
|
|
78
|
-
| import("@smithy/types").Provider<string[]>
|
|
79
|
-
| undefined;
|
|
80
77
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
81
78
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").BedrockHttpAuthSchemeProvider;
|
|
82
79
|
credentials?:
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-bedrock",
|
|
3
3
|
"description": "AWS SDK for JavaScript Bedrock Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.800.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-bedrock",
|
|
@@ -20,17 +20,17 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/core": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/core": "3.799.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.799.0",
|
|
25
25
|
"@aws-sdk/middleware-host-header": "3.775.0",
|
|
26
26
|
"@aws-sdk/middleware-logger": "3.775.0",
|
|
27
27
|
"@aws-sdk/middleware-recursion-detection": "3.775.0",
|
|
28
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
28
|
+
"@aws-sdk/middleware-user-agent": "3.799.0",
|
|
29
29
|
"@aws-sdk/region-config-resolver": "3.775.0",
|
|
30
30
|
"@aws-sdk/types": "3.775.0",
|
|
31
31
|
"@aws-sdk/util-endpoints": "3.787.0",
|
|
32
32
|
"@aws-sdk/util-user-agent-browser": "3.775.0",
|
|
33
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
33
|
+
"@aws-sdk/util-user-agent-node": "3.799.0",
|
|
34
34
|
"@smithy/config-resolver": "^4.1.0",
|
|
35
35
|
"@smithy/core": "^3.3.0",
|
|
36
36
|
"@smithy/fetch-http-handler": "^5.0.2",
|