@aws-sdk/client-bedrock 3.634.0 → 3.637.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.
Files changed (49) hide show
  1. package/README.md +56 -0
  2. package/dist-cjs/index.js +515 -78
  3. package/dist-es/Bedrock.js +14 -0
  4. package/dist-es/commands/BatchDeleteEvaluationJobCommand.js +25 -0
  5. package/dist-es/commands/CreateModelImportJobCommand.js +24 -0
  6. package/dist-es/commands/DeleteImportedModelCommand.js +24 -0
  7. package/dist-es/commands/GetImportedModelCommand.js +24 -0
  8. package/dist-es/commands/GetModelImportJobCommand.js +24 -0
  9. package/dist-es/commands/ListImportedModelsCommand.js +24 -0
  10. package/dist-es/commands/ListModelImportJobsCommand.js +24 -0
  11. package/dist-es/commands/index.js +7 -0
  12. package/dist-es/models/models_0.js +91 -58
  13. package/dist-es/pagination/ListImportedModelsPaginator.js +4 -0
  14. package/dist-es/pagination/ListModelImportJobsPaginator.js +4 -0
  15. package/dist-es/pagination/index.js +2 -0
  16. package/dist-es/protocols/Aws_restJson1.js +250 -3
  17. package/dist-types/Bedrock.d.ts +51 -0
  18. package/dist-types/BedrockClient.d.ts +9 -2
  19. package/dist-types/commands/BatchDeleteEvaluationJobCommand.d.ts +92 -0
  20. package/dist-types/commands/CreateModelImportJobCommand.d.ts +116 -0
  21. package/dist-types/commands/DeleteImportedModelCommand.d.ts +78 -0
  22. package/dist-types/commands/GetEvaluationJobCommand.d.ts +1 -1
  23. package/dist-types/commands/GetImportedModelCommand.d.ts +86 -0
  24. package/dist-types/commands/GetModelImportJobCommand.d.ts +100 -0
  25. package/dist-types/commands/ListEvaluationJobsCommand.d.ts +2 -2
  26. package/dist-types/commands/ListImportedModelsCommand.d.ts +87 -0
  27. package/dist-types/commands/ListModelImportJobsCommand.d.ts +93 -0
  28. package/dist-types/commands/index.d.ts +7 -0
  29. package/dist-types/models/models_0.d.ts +696 -167
  30. package/dist-types/pagination/ListImportedModelsPaginator.d.ts +7 -0
  31. package/dist-types/pagination/ListModelImportJobsPaginator.d.ts +7 -0
  32. package/dist-types/pagination/index.d.ts +2 -0
  33. package/dist-types/protocols/Aws_restJson1.d.ts +63 -0
  34. package/dist-types/ts3.4/Bedrock.d.ts +121 -0
  35. package/dist-types/ts3.4/BedrockClient.d.ts +42 -0
  36. package/dist-types/ts3.4/commands/BatchDeleteEvaluationJobCommand.d.ts +40 -0
  37. package/dist-types/ts3.4/commands/CreateModelImportJobCommand.d.ts +40 -0
  38. package/dist-types/ts3.4/commands/DeleteImportedModelCommand.d.ts +40 -0
  39. package/dist-types/ts3.4/commands/GetImportedModelCommand.d.ts +39 -0
  40. package/dist-types/ts3.4/commands/GetModelImportJobCommand.d.ts +40 -0
  41. package/dist-types/ts3.4/commands/ListImportedModelsCommand.d.ts +40 -0
  42. package/dist-types/ts3.4/commands/ListModelImportJobsCommand.d.ts +40 -0
  43. package/dist-types/ts3.4/commands/index.d.ts +7 -0
  44. package/dist-types/ts3.4/models/models_0.d.ts +193 -45
  45. package/dist-types/ts3.4/pagination/ListImportedModelsPaginator.d.ts +11 -0
  46. package/dist-types/ts3.4/pagination/ListModelImportJobsPaginator.d.ts +11 -0
  47. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  48. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +84 -0
  49. package/package.json +12 -12
@@ -1,22 +1,27 @@
1
1
  import { createAggregatedClient } from "@smithy/smithy-client";
2
2
  import { BedrockClient } from "./BedrockClient";
3
+ import { BatchDeleteEvaluationJobCommand, } from "./commands/BatchDeleteEvaluationJobCommand";
3
4
  import { CreateEvaluationJobCommand, } from "./commands/CreateEvaluationJobCommand";
4
5
  import { CreateGuardrailCommand, } from "./commands/CreateGuardrailCommand";
5
6
  import { CreateGuardrailVersionCommand, } from "./commands/CreateGuardrailVersionCommand";
6
7
  import { CreateModelCopyJobCommand, } from "./commands/CreateModelCopyJobCommand";
7
8
  import { CreateModelCustomizationJobCommand, } from "./commands/CreateModelCustomizationJobCommand";
9
+ import { CreateModelImportJobCommand, } from "./commands/CreateModelImportJobCommand";
8
10
  import { CreateModelInvocationJobCommand, } from "./commands/CreateModelInvocationJobCommand";
9
11
  import { CreateProvisionedModelThroughputCommand, } from "./commands/CreateProvisionedModelThroughputCommand";
10
12
  import { DeleteCustomModelCommand, } from "./commands/DeleteCustomModelCommand";
11
13
  import { DeleteGuardrailCommand, } from "./commands/DeleteGuardrailCommand";
14
+ import { DeleteImportedModelCommand, } from "./commands/DeleteImportedModelCommand";
12
15
  import { DeleteModelInvocationLoggingConfigurationCommand, } from "./commands/DeleteModelInvocationLoggingConfigurationCommand";
13
16
  import { DeleteProvisionedModelThroughputCommand, } from "./commands/DeleteProvisionedModelThroughputCommand";
14
17
  import { GetCustomModelCommand, } from "./commands/GetCustomModelCommand";
15
18
  import { GetEvaluationJobCommand, } from "./commands/GetEvaluationJobCommand";
16
19
  import { GetFoundationModelCommand, } from "./commands/GetFoundationModelCommand";
17
20
  import { GetGuardrailCommand, } from "./commands/GetGuardrailCommand";
21
+ import { GetImportedModelCommand, } from "./commands/GetImportedModelCommand";
18
22
  import { GetModelCopyJobCommand, } from "./commands/GetModelCopyJobCommand";
19
23
  import { GetModelCustomizationJobCommand, } from "./commands/GetModelCustomizationJobCommand";
24
+ import { GetModelImportJobCommand, } from "./commands/GetModelImportJobCommand";
20
25
  import { GetModelInvocationJobCommand, } from "./commands/GetModelInvocationJobCommand";
21
26
  import { GetModelInvocationLoggingConfigurationCommand, } from "./commands/GetModelInvocationLoggingConfigurationCommand";
22
27
  import { GetProvisionedModelThroughputCommand, } from "./commands/GetProvisionedModelThroughputCommand";
@@ -24,8 +29,10 @@ import { ListCustomModelsCommand, } from "./commands/ListCustomModelsCommand";
24
29
  import { ListEvaluationJobsCommand, } from "./commands/ListEvaluationJobsCommand";
25
30
  import { ListFoundationModelsCommand, } from "./commands/ListFoundationModelsCommand";
26
31
  import { ListGuardrailsCommand, } from "./commands/ListGuardrailsCommand";
32
+ import { ListImportedModelsCommand, } from "./commands/ListImportedModelsCommand";
27
33
  import { ListModelCopyJobsCommand, } from "./commands/ListModelCopyJobsCommand";
28
34
  import { ListModelCustomizationJobsCommand, } from "./commands/ListModelCustomizationJobsCommand";
35
+ import { ListModelImportJobsCommand, } from "./commands/ListModelImportJobsCommand";
29
36
  import { ListModelInvocationJobsCommand, } from "./commands/ListModelInvocationJobsCommand";
30
37
  import { ListProvisionedModelThroughputsCommand, } from "./commands/ListProvisionedModelThroughputsCommand";
31
38
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
@@ -38,23 +45,28 @@ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
38
45
  import { UpdateGuardrailCommand, } from "./commands/UpdateGuardrailCommand";
39
46
  import { UpdateProvisionedModelThroughputCommand, } from "./commands/UpdateProvisionedModelThroughputCommand";
40
47
  const commands = {
48
+ BatchDeleteEvaluationJobCommand,
41
49
  CreateEvaluationJobCommand,
42
50
  CreateGuardrailCommand,
43
51
  CreateGuardrailVersionCommand,
44
52
  CreateModelCopyJobCommand,
45
53
  CreateModelCustomizationJobCommand,
54
+ CreateModelImportJobCommand,
46
55
  CreateModelInvocationJobCommand,
47
56
  CreateProvisionedModelThroughputCommand,
48
57
  DeleteCustomModelCommand,
49
58
  DeleteGuardrailCommand,
59
+ DeleteImportedModelCommand,
50
60
  DeleteModelInvocationLoggingConfigurationCommand,
51
61
  DeleteProvisionedModelThroughputCommand,
52
62
  GetCustomModelCommand,
53
63
  GetEvaluationJobCommand,
54
64
  GetFoundationModelCommand,
55
65
  GetGuardrailCommand,
66
+ GetImportedModelCommand,
56
67
  GetModelCopyJobCommand,
57
68
  GetModelCustomizationJobCommand,
69
+ GetModelImportJobCommand,
58
70
  GetModelInvocationJobCommand,
59
71
  GetModelInvocationLoggingConfigurationCommand,
60
72
  GetProvisionedModelThroughputCommand,
@@ -62,8 +74,10 @@ const commands = {
62
74
  ListEvaluationJobsCommand,
63
75
  ListFoundationModelsCommand,
64
76
  ListGuardrailsCommand,
77
+ ListImportedModelsCommand,
65
78
  ListModelCopyJobsCommand,
66
79
  ListModelCustomizationJobsCommand,
80
+ ListModelImportJobsCommand,
67
81
  ListModelInvocationJobsCommand,
68
82
  ListProvisionedModelThroughputsCommand,
69
83
  ListTagsForResourceCommand,
@@ -0,0 +1,25 @@
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 { BatchDeleteEvaluationJobRequestFilterSensitiveLog, BatchDeleteEvaluationJobResponseFilterSensitiveLog, } from "../models/models_0";
6
+ import { de_BatchDeleteEvaluationJobCommand, se_BatchDeleteEvaluationJobCommand } from "../protocols/Aws_restJson1";
7
+ export { $Command };
8
+ export class BatchDeleteEvaluationJobCommand extends $Command
9
+ .classBuilder()
10
+ .ep({
11
+ ...commonParams,
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ ];
18
+ })
19
+ .s("AmazonBedrockControlPlaneService", "BatchDeleteEvaluationJob", {})
20
+ .n("BedrockClient", "BatchDeleteEvaluationJobCommand")
21
+ .f(BatchDeleteEvaluationJobRequestFilterSensitiveLog, BatchDeleteEvaluationJobResponseFilterSensitiveLog)
22
+ .ser(se_BatchDeleteEvaluationJobCommand)
23
+ .de(de_BatchDeleteEvaluationJobCommand)
24
+ .build() {
25
+ }
@@ -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_CreateModelImportJobCommand, se_CreateModelImportJobCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class CreateModelImportJobCommand 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", "CreateModelImportJob", {})
19
+ .n("BedrockClient", "CreateModelImportJobCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_CreateModelImportJobCommand)
22
+ .de(de_CreateModelImportJobCommand)
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_DeleteImportedModelCommand, se_DeleteImportedModelCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class DeleteImportedModelCommand 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", "DeleteImportedModel", {})
19
+ .n("BedrockClient", "DeleteImportedModelCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_DeleteImportedModelCommand)
22
+ .de(de_DeleteImportedModelCommand)
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_GetImportedModelCommand, se_GetImportedModelCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class GetImportedModelCommand 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", "GetImportedModel", {})
19
+ .n("BedrockClient", "GetImportedModelCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_GetImportedModelCommand)
22
+ .de(de_GetImportedModelCommand)
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_GetModelImportJobCommand, se_GetModelImportJobCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class GetModelImportJobCommand 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", "GetModelImportJob", {})
19
+ .n("BedrockClient", "GetModelImportJobCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_GetModelImportJobCommand)
22
+ .de(de_GetModelImportJobCommand)
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_ListImportedModelsCommand, se_ListImportedModelsCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class ListImportedModelsCommand 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", "ListImportedModels", {})
19
+ .n("BedrockClient", "ListImportedModelsCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListImportedModelsCommand)
22
+ .de(de_ListImportedModelsCommand)
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_ListModelImportJobsCommand, se_ListModelImportJobsCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class ListModelImportJobsCommand 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", "ListModelImportJobs", {})
19
+ .n("BedrockClient", "ListModelImportJobsCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListModelImportJobsCommand)
22
+ .de(de_ListModelImportJobsCommand)
23
+ .build() {
24
+ }
@@ -1,20 +1,25 @@
1
+ export * from "./BatchDeleteEvaluationJobCommand";
1
2
  export * from "./CreateEvaluationJobCommand";
2
3
  export * from "./CreateGuardrailCommand";
3
4
  export * from "./CreateGuardrailVersionCommand";
4
5
  export * from "./CreateModelCopyJobCommand";
5
6
  export * from "./CreateModelCustomizationJobCommand";
7
+ export * from "./CreateModelImportJobCommand";
6
8
  export * from "./CreateModelInvocationJobCommand";
7
9
  export * from "./CreateProvisionedModelThroughputCommand";
8
10
  export * from "./DeleteCustomModelCommand";
9
11
  export * from "./DeleteGuardrailCommand";
12
+ export * from "./DeleteImportedModelCommand";
10
13
  export * from "./DeleteModelInvocationLoggingConfigurationCommand";
11
14
  export * from "./DeleteProvisionedModelThroughputCommand";
12
15
  export * from "./GetCustomModelCommand";
13
16
  export * from "./GetEvaluationJobCommand";
14
17
  export * from "./GetFoundationModelCommand";
15
18
  export * from "./GetGuardrailCommand";
19
+ export * from "./GetImportedModelCommand";
16
20
  export * from "./GetModelCopyJobCommand";
17
21
  export * from "./GetModelCustomizationJobCommand";
22
+ export * from "./GetModelImportJobCommand";
18
23
  export * from "./GetModelInvocationJobCommand";
19
24
  export * from "./GetModelInvocationLoggingConfigurationCommand";
20
25
  export * from "./GetProvisionedModelThroughputCommand";
@@ -22,8 +27,10 @@ export * from "./ListCustomModelsCommand";
22
27
  export * from "./ListEvaluationJobsCommand";
23
28
  export * from "./ListFoundationModelsCommand";
24
29
  export * from "./ListGuardrailsCommand";
30
+ export * from "./ListImportedModelsCommand";
25
31
  export * from "./ListModelCopyJobsCommand";
26
32
  export * from "./ListModelCustomizationJobsCommand";
33
+ export * from "./ListModelImportJobsCommand";
27
34
  export * from "./ListModelInvocationJobsCommand";
28
35
  export * from "./ListProvisionedModelThroughputsCommand";
29
36
  export * from "./ListTagsForResourceCommand";
@@ -12,6 +12,14 @@ export class AccessDeniedException extends __BaseException {
12
12
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
13
13
  }
14
14
  }
15
+ export const EvaluationJobStatus = {
16
+ COMPLETED: "Completed",
17
+ DELETING: "Deleting",
18
+ FAILED: "Failed",
19
+ IN_PROGRESS: "InProgress",
20
+ STOPPED: "Stopped",
21
+ STOPPING: "Stopping",
22
+ };
15
23
  export class ConflictException extends __BaseException {
16
24
  constructor(opts) {
17
25
  super({
@@ -24,6 +32,54 @@ export class ConflictException extends __BaseException {
24
32
  Object.setPrototypeOf(this, ConflictException.prototype);
25
33
  }
26
34
  }
35
+ export class InternalServerException extends __BaseException {
36
+ constructor(opts) {
37
+ super({
38
+ name: "InternalServerException",
39
+ $fault: "server",
40
+ ...opts,
41
+ });
42
+ this.name = "InternalServerException";
43
+ this.$fault = "server";
44
+ Object.setPrototypeOf(this, InternalServerException.prototype);
45
+ }
46
+ }
47
+ export class ResourceNotFoundException extends __BaseException {
48
+ constructor(opts) {
49
+ super({
50
+ name: "ResourceNotFoundException",
51
+ $fault: "client",
52
+ ...opts,
53
+ });
54
+ this.name = "ResourceNotFoundException";
55
+ this.$fault = "client";
56
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
57
+ }
58
+ }
59
+ export class ThrottlingException extends __BaseException {
60
+ constructor(opts) {
61
+ super({
62
+ name: "ThrottlingException",
63
+ $fault: "client",
64
+ ...opts,
65
+ });
66
+ this.name = "ThrottlingException";
67
+ this.$fault = "client";
68
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
69
+ }
70
+ }
71
+ export class ValidationException extends __BaseException {
72
+ constructor(opts) {
73
+ super({
74
+ name: "ValidationException",
75
+ $fault: "client",
76
+ ...opts,
77
+ });
78
+ this.name = "ValidationException";
79
+ this.$fault = "client";
80
+ Object.setPrototypeOf(this, ValidationException.prototype);
81
+ }
82
+ }
27
83
  export var EvaluationDatasetLocation;
28
84
  (function (EvaluationDatasetLocation) {
29
85
  EvaluationDatasetLocation.visit = (value, visitor) => {
@@ -65,30 +121,6 @@ export var EvaluationInferenceConfig;
65
121
  return visitor._(value.$unknown[0], value.$unknown[1]);
66
122
  };
67
123
  })(EvaluationInferenceConfig || (EvaluationInferenceConfig = {}));
68
- export class InternalServerException extends __BaseException {
69
- constructor(opts) {
70
- super({
71
- name: "InternalServerException",
72
- $fault: "server",
73
- ...opts,
74
- });
75
- this.name = "InternalServerException";
76
- this.$fault = "server";
77
- Object.setPrototypeOf(this, InternalServerException.prototype);
78
- }
79
- }
80
- export class ResourceNotFoundException extends __BaseException {
81
- constructor(opts) {
82
- super({
83
- name: "ResourceNotFoundException",
84
- $fault: "client",
85
- ...opts,
86
- });
87
- this.name = "ResourceNotFoundException";
88
- this.$fault = "client";
89
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
90
- }
91
- }
92
124
  export class ServiceQuotaExceededException extends __BaseException {
93
125
  constructor(opts) {
94
126
  super({
@@ -101,41 +133,10 @@ export class ServiceQuotaExceededException extends __BaseException {
101
133
  Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
102
134
  }
103
135
  }
104
- export class ThrottlingException extends __BaseException {
105
- constructor(opts) {
106
- super({
107
- name: "ThrottlingException",
108
- $fault: "client",
109
- ...opts,
110
- });
111
- this.name = "ThrottlingException";
112
- this.$fault = "client";
113
- Object.setPrototypeOf(this, ThrottlingException.prototype);
114
- }
115
- }
116
- export class ValidationException extends __BaseException {
117
- constructor(opts) {
118
- super({
119
- name: "ValidationException",
120
- $fault: "client",
121
- ...opts,
122
- });
123
- this.name = "ValidationException";
124
- this.$fault = "client";
125
- Object.setPrototypeOf(this, ValidationException.prototype);
126
- }
127
- }
128
136
  export const EvaluationJobType = {
129
137
  AUTOMATED: "Automated",
130
138
  HUMAN: "Human",
131
139
  };
132
- export const EvaluationJobStatus = {
133
- COMPLETED: "Completed",
134
- FAILED: "Failed",
135
- IN_PROGRESS: "InProgress",
136
- STOPPED: "Stopped",
137
- STOPPING: "Stopping",
138
- };
139
140
  export const SortJobsBy = {
140
141
  CREATION_TIME: "CreationTime",
141
142
  };
@@ -230,6 +231,22 @@ export const ModelCopyJobStatus = {
230
231
  FAILED: "Failed",
231
232
  IN_PROGRESS: "InProgress",
232
233
  };
234
+ export var ModelDataSource;
235
+ (function (ModelDataSource) {
236
+ ModelDataSource.visit = (value, visitor) => {
237
+ if (value.s3DataSource !== undefined)
238
+ return visitor.s3DataSource(value.s3DataSource);
239
+ return visitor._(value.$unknown[0], value.$unknown[1]);
240
+ };
241
+ })(ModelDataSource || (ModelDataSource = {}));
242
+ export const ModelImportJobStatus = {
243
+ COMPLETED: "Completed",
244
+ FAILED: "Failed",
245
+ IN_PROGRESS: "InProgress",
246
+ };
247
+ export const SortModelsBy = {
248
+ CREATION_TIME: "CreationTime",
249
+ };
233
250
  export const S3InputFormat = {
234
251
  JSONL: "JSONL",
235
252
  };
@@ -282,9 +299,6 @@ export const FoundationModelLifecycleStatus = {
282
299
  ACTIVE: "ACTIVE",
283
300
  LEGACY: "LEGACY",
284
301
  };
285
- export const SortModelsBy = {
286
- CREATION_TIME: "CreationTime",
287
- };
288
302
  export const CommitmentDuration = {
289
303
  ONE_MONTH: "OneMonth",
290
304
  SIX_MONTHS: "SixMonths",
@@ -312,6 +326,25 @@ export const FineTuningJobStatus = {
312
326
  STOPPED: "Stopped",
313
327
  STOPPING: "Stopping",
314
328
  };
329
+ export const BatchDeleteEvaluationJobRequestFilterSensitiveLog = (obj) => ({
330
+ ...obj,
331
+ ...(obj.jobIdentifiers && { jobIdentifiers: SENSITIVE_STRING }),
332
+ });
333
+ export const BatchDeleteEvaluationJobErrorFilterSensitiveLog = (obj) => ({
334
+ ...obj,
335
+ ...(obj.jobIdentifier && { jobIdentifier: SENSITIVE_STRING }),
336
+ });
337
+ export const BatchDeleteEvaluationJobItemFilterSensitiveLog = (obj) => ({
338
+ ...obj,
339
+ ...(obj.jobIdentifier && { jobIdentifier: SENSITIVE_STRING }),
340
+ });
341
+ export const BatchDeleteEvaluationJobResponseFilterSensitiveLog = (obj) => ({
342
+ ...obj,
343
+ ...(obj.errors && { errors: obj.errors.map((item) => BatchDeleteEvaluationJobErrorFilterSensitiveLog(item)) }),
344
+ ...(obj.evaluationJobs && {
345
+ evaluationJobs: obj.evaluationJobs.map((item) => BatchDeleteEvaluationJobItemFilterSensitiveLog(item)),
346
+ }),
347
+ });
315
348
  export const EvaluationDatasetFilterSensitiveLog = (obj) => ({
316
349
  ...obj,
317
350
  ...(obj.name && { name: SENSITIVE_STRING }),
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { BedrockClient } from "../BedrockClient";
3
+ import { ListImportedModelsCommand, } from "../commands/ListImportedModelsCommand";
4
+ export const paginateListImportedModels = createPaginator(BedrockClient, ListImportedModelsCommand, "nextToken", "nextToken", "maxResults");
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { BedrockClient } from "../BedrockClient";
3
+ import { ListModelImportJobsCommand, } from "../commands/ListModelImportJobsCommand";
4
+ export const paginateListModelImportJobs = createPaginator(BedrockClient, ListModelImportJobsCommand, "nextToken", "nextToken", "maxResults");
@@ -2,7 +2,9 @@ export * from "./Interfaces";
2
2
  export * from "./ListCustomModelsPaginator";
3
3
  export * from "./ListEvaluationJobsPaginator";
4
4
  export * from "./ListGuardrailsPaginator";
5
+ export * from "./ListImportedModelsPaginator";
5
6
  export * from "./ListModelCopyJobsPaginator";
6
7
  export * from "./ListModelCustomizationJobsPaginator";
8
+ export * from "./ListModelImportJobsPaginator";
7
9
  export * from "./ListModelInvocationJobsPaginator";
8
10
  export * from "./ListProvisionedModelThroughputsPaginator";