@aws-sdk/client-bedrock 3.835.0 → 3.836.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 (54) hide show
  1. package/README.md +48 -0
  2. package/dist-cjs/index.js +417 -120
  3. package/dist-es/Bedrock.js +12 -0
  4. package/dist-es/commands/CreateFoundationModelAgreementCommand.js +22 -0
  5. package/dist-es/commands/CreateModelCustomizationJobCommand.js +1 -1
  6. package/dist-es/commands/DeleteFoundationModelAgreementCommand.js +22 -0
  7. package/dist-es/commands/GetFoundationModelAvailabilityCommand.js +22 -0
  8. package/dist-es/commands/GetModelCustomizationJobCommand.js +1 -1
  9. package/dist-es/commands/GetUseCaseForModelAccessCommand.js +22 -0
  10. package/dist-es/commands/ListFoundationModelAgreementOffersCommand.js +22 -0
  11. package/dist-es/commands/PutUseCaseForModelAccessCommand.js +22 -0
  12. package/dist-es/commands/index.js +6 -0
  13. package/dist-es/models/models_0.js +54 -126
  14. package/dist-es/models/models_1.js +95 -1
  15. package/dist-es/protocols/Aws_restJson1.js +153 -2
  16. package/dist-types/Bedrock.d.ts +43 -0
  17. package/dist-types/BedrockClient.d.ts +8 -2
  18. package/dist-types/commands/CreateFoundationModelAgreementCommand.d.ts +91 -0
  19. package/dist-types/commands/CreateModelCustomizationJobCommand.d.ts +1 -1
  20. package/dist-types/commands/DeleteFoundationModelAgreementCommand.d.ts +88 -0
  21. package/dist-types/commands/GetFoundationModelAvailabilityCommand.d.ts +94 -0
  22. package/dist-types/commands/GetModelCustomizationJobCommand.d.ts +1 -1
  23. package/dist-types/commands/GetUseCaseForModelAccessCommand.d.ts +82 -0
  24. package/dist-types/commands/ListFoundationModelAgreementOffersCommand.d.ts +116 -0
  25. package/dist-types/commands/ListModelCustomizationJobsCommand.d.ts +1 -1
  26. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  27. package/dist-types/commands/PutUseCaseForModelAccessCommand.d.ts +82 -0
  28. package/dist-types/commands/StopModelCustomizationJobCommand.d.ts +1 -1
  29. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  30. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  31. package/dist-types/commands/index.d.ts +6 -0
  32. package/dist-types/models/models_0.d.ts +239 -804
  33. package/dist-types/models/models_1.d.ts +901 -1
  34. package/dist-types/protocols/Aws_restJson1.d.ts +54 -0
  35. package/dist-types/ts3.4/Bedrock.d.ts +109 -0
  36. package/dist-types/ts3.4/BedrockClient.d.ts +36 -0
  37. package/dist-types/ts3.4/commands/CreateFoundationModelAgreementCommand.d.ts +51 -0
  38. package/dist-types/ts3.4/commands/CreateModelCustomizationJobCommand.d.ts +1 -1
  39. package/dist-types/ts3.4/commands/DeleteFoundationModelAgreementCommand.d.ts +51 -0
  40. package/dist-types/ts3.4/commands/GetFoundationModelAvailabilityCommand.d.ts +51 -0
  41. package/dist-types/ts3.4/commands/GetModelCustomizationJobCommand.d.ts +1 -1
  42. package/dist-types/ts3.4/commands/GetUseCaseForModelAccessCommand.d.ts +51 -0
  43. package/dist-types/ts3.4/commands/ListFoundationModelAgreementOffersCommand.d.ts +49 -0
  44. package/dist-types/ts3.4/commands/ListModelCustomizationJobsCommand.d.ts +1 -1
  45. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +1 -1
  46. package/dist-types/ts3.4/commands/PutUseCaseForModelAccessCommand.d.ts +51 -0
  47. package/dist-types/ts3.4/commands/StopModelCustomizationJobCommand.d.ts +1 -1
  48. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
  49. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -1
  50. package/dist-types/ts3.4/commands/index.d.ts +6 -0
  51. package/dist-types/ts3.4/models/models_0.d.ts +107 -425
  52. package/dist-types/ts3.4/models/models_1.d.ts +431 -1
  53. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +72 -0
  54. package/package.json +1 -1
@@ -3,6 +3,7 @@ import { BedrockClient } from "./BedrockClient";
3
3
  import { BatchDeleteEvaluationJobCommand, } from "./commands/BatchDeleteEvaluationJobCommand";
4
4
  import { CreateCustomModelCommand, } from "./commands/CreateCustomModelCommand";
5
5
  import { CreateEvaluationJobCommand, } from "./commands/CreateEvaluationJobCommand";
6
+ import { CreateFoundationModelAgreementCommand, } from "./commands/CreateFoundationModelAgreementCommand";
6
7
  import { CreateGuardrailCommand, } from "./commands/CreateGuardrailCommand";
7
8
  import { CreateGuardrailVersionCommand, } from "./commands/CreateGuardrailVersionCommand";
8
9
  import { CreateInferenceProfileCommand, } from "./commands/CreateInferenceProfileCommand";
@@ -14,6 +15,7 @@ import { CreateModelInvocationJobCommand, } from "./commands/CreateModelInvocati
14
15
  import { CreatePromptRouterCommand, } from "./commands/CreatePromptRouterCommand";
15
16
  import { CreateProvisionedModelThroughputCommand, } from "./commands/CreateProvisionedModelThroughputCommand";
16
17
  import { DeleteCustomModelCommand, } from "./commands/DeleteCustomModelCommand";
18
+ import { DeleteFoundationModelAgreementCommand, } from "./commands/DeleteFoundationModelAgreementCommand";
17
19
  import { DeleteGuardrailCommand, } from "./commands/DeleteGuardrailCommand";
18
20
  import { DeleteImportedModelCommand, } from "./commands/DeleteImportedModelCommand";
19
21
  import { DeleteInferenceProfileCommand, } from "./commands/DeleteInferenceProfileCommand";
@@ -24,6 +26,7 @@ import { DeleteProvisionedModelThroughputCommand, } from "./commands/DeleteProvi
24
26
  import { DeregisterMarketplaceModelEndpointCommand, } from "./commands/DeregisterMarketplaceModelEndpointCommand";
25
27
  import { GetCustomModelCommand, } from "./commands/GetCustomModelCommand";
26
28
  import { GetEvaluationJobCommand, } from "./commands/GetEvaluationJobCommand";
29
+ import { GetFoundationModelAvailabilityCommand, } from "./commands/GetFoundationModelAvailabilityCommand";
27
30
  import { GetFoundationModelCommand, } from "./commands/GetFoundationModelCommand";
28
31
  import { GetGuardrailCommand, } from "./commands/GetGuardrailCommand";
29
32
  import { GetImportedModelCommand, } from "./commands/GetImportedModelCommand";
@@ -36,8 +39,10 @@ import { GetModelInvocationJobCommand, } from "./commands/GetModelInvocationJobC
36
39
  import { GetModelInvocationLoggingConfigurationCommand, } from "./commands/GetModelInvocationLoggingConfigurationCommand";
37
40
  import { GetPromptRouterCommand, } from "./commands/GetPromptRouterCommand";
38
41
  import { GetProvisionedModelThroughputCommand, } from "./commands/GetProvisionedModelThroughputCommand";
42
+ import { GetUseCaseForModelAccessCommand, } from "./commands/GetUseCaseForModelAccessCommand";
39
43
  import { ListCustomModelsCommand, } from "./commands/ListCustomModelsCommand";
40
44
  import { ListEvaluationJobsCommand, } from "./commands/ListEvaluationJobsCommand";
45
+ import { ListFoundationModelAgreementOffersCommand, } from "./commands/ListFoundationModelAgreementOffersCommand";
41
46
  import { ListFoundationModelsCommand, } from "./commands/ListFoundationModelsCommand";
42
47
  import { ListGuardrailsCommand, } from "./commands/ListGuardrailsCommand";
43
48
  import { ListImportedModelsCommand, } from "./commands/ListImportedModelsCommand";
@@ -51,6 +56,7 @@ import { ListPromptRoutersCommand, } from "./commands/ListPromptRoutersCommand";
51
56
  import { ListProvisionedModelThroughputsCommand, } from "./commands/ListProvisionedModelThroughputsCommand";
52
57
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
53
58
  import { PutModelInvocationLoggingConfigurationCommand, } from "./commands/PutModelInvocationLoggingConfigurationCommand";
59
+ import { PutUseCaseForModelAccessCommand, } from "./commands/PutUseCaseForModelAccessCommand";
54
60
  import { RegisterMarketplaceModelEndpointCommand, } from "./commands/RegisterMarketplaceModelEndpointCommand";
55
61
  import { StopEvaluationJobCommand, } from "./commands/StopEvaluationJobCommand";
56
62
  import { StopModelCustomizationJobCommand, } from "./commands/StopModelCustomizationJobCommand";
@@ -64,6 +70,7 @@ const commands = {
64
70
  BatchDeleteEvaluationJobCommand,
65
71
  CreateCustomModelCommand,
66
72
  CreateEvaluationJobCommand,
73
+ CreateFoundationModelAgreementCommand,
67
74
  CreateGuardrailCommand,
68
75
  CreateGuardrailVersionCommand,
69
76
  CreateInferenceProfileCommand,
@@ -75,6 +82,7 @@ const commands = {
75
82
  CreatePromptRouterCommand,
76
83
  CreateProvisionedModelThroughputCommand,
77
84
  DeleteCustomModelCommand,
85
+ DeleteFoundationModelAgreementCommand,
78
86
  DeleteGuardrailCommand,
79
87
  DeleteImportedModelCommand,
80
88
  DeleteInferenceProfileCommand,
@@ -86,6 +94,7 @@ const commands = {
86
94
  GetCustomModelCommand,
87
95
  GetEvaluationJobCommand,
88
96
  GetFoundationModelCommand,
97
+ GetFoundationModelAvailabilityCommand,
89
98
  GetGuardrailCommand,
90
99
  GetImportedModelCommand,
91
100
  GetInferenceProfileCommand,
@@ -97,8 +106,10 @@ const commands = {
97
106
  GetModelInvocationLoggingConfigurationCommand,
98
107
  GetPromptRouterCommand,
99
108
  GetProvisionedModelThroughputCommand,
109
+ GetUseCaseForModelAccessCommand,
100
110
  ListCustomModelsCommand,
101
111
  ListEvaluationJobsCommand,
112
+ ListFoundationModelAgreementOffersCommand,
102
113
  ListFoundationModelsCommand,
103
114
  ListGuardrailsCommand,
104
115
  ListImportedModelsCommand,
@@ -112,6 +123,7 @@ const commands = {
112
123
  ListProvisionedModelThroughputsCommand,
113
124
  ListTagsForResourceCommand,
114
125
  PutModelInvocationLoggingConfigurationCommand,
126
+ PutUseCaseForModelAccessCommand,
115
127
  RegisterMarketplaceModelEndpointCommand,
116
128
  StopEvaluationJobCommand,
117
129
  StopModelCustomizationJobCommand,
@@ -0,0 +1,22 @@
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_CreateFoundationModelAgreementCommand, se_CreateFoundationModelAgreementCommand, } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class CreateFoundationModelAgreementCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("AmazonBedrockControlPlaneService", "CreateFoundationModelAgreement", {})
17
+ .n("BedrockClient", "CreateFoundationModelAgreementCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_CreateFoundationModelAgreementCommand)
20
+ .de(de_CreateFoundationModelAgreementCommand)
21
+ .build() {
22
+ }
@@ -2,7 +2,7 @@ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
4
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { CreateModelCustomizationJobRequestFilterSensitiveLog, } from "../models/models_0";
5
+ import { CreateModelCustomizationJobRequestFilterSensitiveLog, } from "../models/models_1";
6
6
  import { de_CreateModelCustomizationJobCommand, se_CreateModelCustomizationJobCommand, } from "../protocols/Aws_restJson1";
7
7
  export { $Command };
8
8
  export class CreateModelCustomizationJobCommand extends $Command
@@ -0,0 +1,22 @@
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_DeleteFoundationModelAgreementCommand, se_DeleteFoundationModelAgreementCommand, } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class DeleteFoundationModelAgreementCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("AmazonBedrockControlPlaneService", "DeleteFoundationModelAgreement", {})
17
+ .n("BedrockClient", "DeleteFoundationModelAgreementCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_DeleteFoundationModelAgreementCommand)
20
+ .de(de_DeleteFoundationModelAgreementCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
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_GetFoundationModelAvailabilityCommand, se_GetFoundationModelAvailabilityCommand, } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class GetFoundationModelAvailabilityCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("AmazonBedrockControlPlaneService", "GetFoundationModelAvailability", {})
17
+ .n("BedrockClient", "GetFoundationModelAvailabilityCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_GetFoundationModelAvailabilityCommand)
20
+ .de(de_GetFoundationModelAvailabilityCommand)
21
+ .build() {
22
+ }
@@ -2,7 +2,7 @@ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
4
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { GetModelCustomizationJobResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { GetModelCustomizationJobResponseFilterSensitiveLog, } from "../models/models_1";
6
6
  import { de_GetModelCustomizationJobCommand, se_GetModelCustomizationJobCommand } from "../protocols/Aws_restJson1";
7
7
  export { $Command };
8
8
  export class GetModelCustomizationJobCommand extends $Command
@@ -0,0 +1,22 @@
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_GetUseCaseForModelAccessCommand, se_GetUseCaseForModelAccessCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class GetUseCaseForModelAccessCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("AmazonBedrockControlPlaneService", "GetUseCaseForModelAccess", {})
17
+ .n("BedrockClient", "GetUseCaseForModelAccessCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_GetUseCaseForModelAccessCommand)
20
+ .de(de_GetUseCaseForModelAccessCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
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_ListFoundationModelAgreementOffersCommand, se_ListFoundationModelAgreementOffersCommand, } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class ListFoundationModelAgreementOffersCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("AmazonBedrockControlPlaneService", "ListFoundationModelAgreementOffers", {})
17
+ .n("BedrockClient", "ListFoundationModelAgreementOffersCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_ListFoundationModelAgreementOffersCommand)
20
+ .de(de_ListFoundationModelAgreementOffersCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
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_PutUseCaseForModelAccessCommand, se_PutUseCaseForModelAccessCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class PutUseCaseForModelAccessCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("AmazonBedrockControlPlaneService", "PutUseCaseForModelAccess", {})
17
+ .n("BedrockClient", "PutUseCaseForModelAccessCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_PutUseCaseForModelAccessCommand)
20
+ .de(de_PutUseCaseForModelAccessCommand)
21
+ .build() {
22
+ }
@@ -1,6 +1,7 @@
1
1
  export * from "./BatchDeleteEvaluationJobCommand";
2
2
  export * from "./CreateCustomModelCommand";
3
3
  export * from "./CreateEvaluationJobCommand";
4
+ export * from "./CreateFoundationModelAgreementCommand";
4
5
  export * from "./CreateGuardrailCommand";
5
6
  export * from "./CreateGuardrailVersionCommand";
6
7
  export * from "./CreateInferenceProfileCommand";
@@ -12,6 +13,7 @@ export * from "./CreateModelInvocationJobCommand";
12
13
  export * from "./CreatePromptRouterCommand";
13
14
  export * from "./CreateProvisionedModelThroughputCommand";
14
15
  export * from "./DeleteCustomModelCommand";
16
+ export * from "./DeleteFoundationModelAgreementCommand";
15
17
  export * from "./DeleteGuardrailCommand";
16
18
  export * from "./DeleteImportedModelCommand";
17
19
  export * from "./DeleteInferenceProfileCommand";
@@ -22,6 +24,7 @@ export * from "./DeleteProvisionedModelThroughputCommand";
22
24
  export * from "./DeregisterMarketplaceModelEndpointCommand";
23
25
  export * from "./GetCustomModelCommand";
24
26
  export * from "./GetEvaluationJobCommand";
27
+ export * from "./GetFoundationModelAvailabilityCommand";
25
28
  export * from "./GetFoundationModelCommand";
26
29
  export * from "./GetGuardrailCommand";
27
30
  export * from "./GetImportedModelCommand";
@@ -34,8 +37,10 @@ export * from "./GetModelInvocationJobCommand";
34
37
  export * from "./GetModelInvocationLoggingConfigurationCommand";
35
38
  export * from "./GetPromptRouterCommand";
36
39
  export * from "./GetProvisionedModelThroughputCommand";
40
+ export * from "./GetUseCaseForModelAccessCommand";
37
41
  export * from "./ListCustomModelsCommand";
38
42
  export * from "./ListEvaluationJobsCommand";
43
+ export * from "./ListFoundationModelAgreementOffersCommand";
39
44
  export * from "./ListFoundationModelsCommand";
40
45
  export * from "./ListGuardrailsCommand";
41
46
  export * from "./ListImportedModelsCommand";
@@ -49,6 +54,7 @@ export * from "./ListPromptRoutersCommand";
49
54
  export * from "./ListProvisionedModelThroughputsCommand";
50
55
  export * from "./ListTagsForResourceCommand";
51
56
  export * from "./PutModelInvocationLoggingConfigurationCommand";
57
+ export * from "./PutUseCaseForModelAccessCommand";
52
58
  export * from "./RegisterMarketplaceModelEndpointCommand";
53
59
  export * from "./StopEvaluationJobCommand";
54
60
  export * from "./StopModelCustomizationJobCommand";
@@ -12,29 +12,11 @@ export class AccessDeniedException extends __BaseException {
12
12
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
13
13
  }
14
14
  }
15
- export class ConflictException extends __BaseException {
16
- name = "ConflictException";
17
- $fault = "client";
18
- constructor(opts) {
19
- super({
20
- name: "ConflictException",
21
- $fault: "client",
22
- ...opts,
23
- });
24
- Object.setPrototypeOf(this, ConflictException.prototype);
25
- }
26
- }
27
- export var EndpointConfig;
28
- (function (EndpointConfig) {
29
- EndpointConfig.visit = (value, visitor) => {
30
- if (value.sageMaker !== undefined)
31
- return visitor.sageMaker(value.sageMaker);
32
- return visitor._(value.$unknown[0], value.$unknown[1]);
33
- };
34
- })(EndpointConfig || (EndpointConfig = {}));
35
- export const Status = {
36
- INCOMPATIBLE_ENDPOINT: "INCOMPATIBLE_ENDPOINT",
37
- REGISTERED: "REGISTERED",
15
+ export const AgreementStatus = {
16
+ AVAILABLE: "AVAILABLE",
17
+ ERROR: "ERROR",
18
+ NOT_AVAILABLE: "NOT_AVAILABLE",
19
+ PENDING: "PENDING",
38
20
  };
39
21
  export class InternalServerException extends __BaseException {
40
22
  name = "InternalServerException";
@@ -60,18 +42,6 @@ export class ResourceNotFoundException extends __BaseException {
60
42
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
61
43
  }
62
44
  }
63
- export class ServiceQuotaExceededException extends __BaseException {
64
- name = "ServiceQuotaExceededException";
65
- $fault = "client";
66
- constructor(opts) {
67
- super({
68
- name: "ServiceQuotaExceededException",
69
- $fault: "client",
70
- ...opts,
71
- });
72
- Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
73
- }
74
- }
75
45
  export class ThrottlingException extends __BaseException {
76
46
  name = "ThrottlingException";
77
47
  $fault = "client";
@@ -96,6 +66,42 @@ export class ValidationException extends __BaseException {
96
66
  Object.setPrototypeOf(this, ValidationException.prototype);
97
67
  }
98
68
  }
69
+ export class ConflictException extends __BaseException {
70
+ name = "ConflictException";
71
+ $fault = "client";
72
+ constructor(opts) {
73
+ super({
74
+ name: "ConflictException",
75
+ $fault: "client",
76
+ ...opts,
77
+ });
78
+ Object.setPrototypeOf(this, ConflictException.prototype);
79
+ }
80
+ }
81
+ export var EndpointConfig;
82
+ (function (EndpointConfig) {
83
+ EndpointConfig.visit = (value, visitor) => {
84
+ if (value.sageMaker !== undefined)
85
+ return visitor.sageMaker(value.sageMaker);
86
+ return visitor._(value.$unknown[0], value.$unknown[1]);
87
+ };
88
+ })(EndpointConfig || (EndpointConfig = {}));
89
+ export const Status = {
90
+ INCOMPATIBLE_ENDPOINT: "INCOMPATIBLE_ENDPOINT",
91
+ REGISTERED: "REGISTERED",
92
+ };
93
+ export class ServiceQuotaExceededException extends __BaseException {
94
+ name = "ServiceQuotaExceededException";
95
+ $fault = "client";
96
+ constructor(opts) {
97
+ super({
98
+ name: "ServiceQuotaExceededException",
99
+ $fault: "client",
100
+ ...opts,
101
+ });
102
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
103
+ }
104
+ }
99
105
  export class ServiceUnavailableException extends __BaseException {
100
106
  name = "ServiceUnavailableException";
101
107
  $fault = "server";
@@ -479,60 +485,22 @@ export const ProvisionedModelStatus = {
479
485
  export const SortByProvisionedModels = {
480
486
  CREATION_TIME: "CreationTime",
481
487
  };
482
- export const ModelCustomizationJobStatus = {
483
- COMPLETED: "Completed",
484
- FAILED: "Failed",
485
- IN_PROGRESS: "InProgress",
486
- STOPPED: "Stopped",
487
- STOPPING: "Stopping",
488
+ export const AuthorizationStatus = {
489
+ AUTHORIZED: "AUTHORIZED",
490
+ NOT_AUTHORIZED: "NOT_AUTHORIZED",
488
491
  };
489
- export const JobStatusDetails = {
490
- COMPLETED: "Completed",
491
- FAILED: "Failed",
492
- IN_PROGRESS: "InProgress",
493
- NOT_STARTED: "NotStarted",
494
- STOPPED: "Stopped",
495
- STOPPING: "Stopping",
492
+ export const EntitlementAvailability = {
493
+ AVAILABLE: "AVAILABLE",
494
+ NOT_AVAILABLE: "NOT_AVAILABLE",
496
495
  };
497
- export const FineTuningJobStatus = {
498
- COMPLETED: "Completed",
499
- FAILED: "Failed",
500
- IN_PROGRESS: "InProgress",
501
- STOPPED: "Stopped",
502
- STOPPING: "Stopping",
496
+ export const RegionAvailability = {
497
+ AVAILABLE: "AVAILABLE",
498
+ NOT_AVAILABLE: "NOT_AVAILABLE",
499
+ };
500
+ export const OfferType = {
501
+ ALL: "ALL",
502
+ PUBLIC: "PUBLIC",
503
503
  };
504
- export var RetrievalFilter;
505
- (function (RetrievalFilter) {
506
- RetrievalFilter.visit = (value, visitor) => {
507
- if (value.equals !== undefined)
508
- return visitor.equals(value.equals);
509
- if (value.notEquals !== undefined)
510
- return visitor.notEquals(value.notEquals);
511
- if (value.greaterThan !== undefined)
512
- return visitor.greaterThan(value.greaterThan);
513
- if (value.greaterThanOrEquals !== undefined)
514
- return visitor.greaterThanOrEquals(value.greaterThanOrEquals);
515
- if (value.lessThan !== undefined)
516
- return visitor.lessThan(value.lessThan);
517
- if (value.lessThanOrEquals !== undefined)
518
- return visitor.lessThanOrEquals(value.lessThanOrEquals);
519
- if (value.in !== undefined)
520
- return visitor.in(value.in);
521
- if (value.notIn !== undefined)
522
- return visitor.notIn(value.notIn);
523
- if (value.startsWith !== undefined)
524
- return visitor.startsWith(value.startsWith);
525
- if (value.listContains !== undefined)
526
- return visitor.listContains(value.listContains);
527
- if (value.stringContains !== undefined)
528
- return visitor.stringContains(value.stringContains);
529
- if (value.andAll !== undefined)
530
- return visitor.andAll(value.andAll);
531
- if (value.orAll !== undefined)
532
- return visitor.orAll(value.orAll);
533
- return visitor._(value.$unknown[0], value.$unknown[1]);
534
- };
535
- })(RetrievalFilter || (RetrievalFilter = {}));
536
504
  export const RequestMetadataBaseFiltersFilterSensitiveLog = (obj) => ({
537
505
  ...obj,
538
506
  ...(obj.equals && { equals: SENSITIVE_STRING }),
@@ -942,43 +910,3 @@ export const ListPromptRoutersResponseFilterSensitiveLog = (obj) => ({
942
910
  promptRouterSummaries: obj.promptRouterSummaries.map((item) => PromptRouterSummaryFilterSensitiveLog(item)),
943
911
  }),
944
912
  });
945
- export const CreateModelCustomizationJobRequestFilterSensitiveLog = (obj) => ({
946
- ...obj,
947
- ...(obj.trainingDataConfig && { trainingDataConfig: TrainingDataConfigFilterSensitiveLog(obj.trainingDataConfig) }),
948
- ...(obj.customizationConfig && { customizationConfig: obj.customizationConfig }),
949
- });
950
- export const GetModelCustomizationJobResponseFilterSensitiveLog = (obj) => ({
951
- ...obj,
952
- ...(obj.trainingDataConfig && { trainingDataConfig: TrainingDataConfigFilterSensitiveLog(obj.trainingDataConfig) }),
953
- ...(obj.customizationConfig && { customizationConfig: obj.customizationConfig }),
954
- });
955
- export const RetrievalFilterFilterSensitiveLog = (obj) => {
956
- if (obj.equals !== undefined)
957
- return { equals: obj.equals };
958
- if (obj.notEquals !== undefined)
959
- return { notEquals: obj.notEquals };
960
- if (obj.greaterThan !== undefined)
961
- return { greaterThan: obj.greaterThan };
962
- if (obj.greaterThanOrEquals !== undefined)
963
- return { greaterThanOrEquals: obj.greaterThanOrEquals };
964
- if (obj.lessThan !== undefined)
965
- return { lessThan: obj.lessThan };
966
- if (obj.lessThanOrEquals !== undefined)
967
- return { lessThanOrEquals: obj.lessThanOrEquals };
968
- if (obj.in !== undefined)
969
- return { in: obj.in };
970
- if (obj.notIn !== undefined)
971
- return { notIn: obj.notIn };
972
- if (obj.startsWith !== undefined)
973
- return { startsWith: obj.startsWith };
974
- if (obj.listContains !== undefined)
975
- return { listContains: obj.listContains };
976
- if (obj.stringContains !== undefined)
977
- return { stringContains: obj.stringContains };
978
- if (obj.andAll !== undefined)
979
- return { andAll: SENSITIVE_STRING };
980
- if (obj.orAll !== undefined)
981
- return { orAll: SENSITIVE_STRING };
982
- if (obj.$unknown !== undefined)
983
- return { [obj.$unknown[0]]: "UNKNOWN" };
984
- };
@@ -1,5 +1,59 @@
1
1
  import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
- import { EvaluationConfigFilterSensitiveLog, EvaluationModelConfigFilterSensitiveLog, ExternalSourcesRetrieveAndGenerateConfigurationFilterSensitiveLog, GenerationConfigurationFilterSensitiveLog, } from "./models_0";
2
+ import { EvaluationConfigFilterSensitiveLog, EvaluationModelConfigFilterSensitiveLog, ExternalSourcesRetrieveAndGenerateConfigurationFilterSensitiveLog, GenerationConfigurationFilterSensitiveLog, TrainingDataConfigFilterSensitiveLog, } from "./models_0";
3
+ export const ModelCustomizationJobStatus = {
4
+ COMPLETED: "Completed",
5
+ FAILED: "Failed",
6
+ IN_PROGRESS: "InProgress",
7
+ STOPPED: "Stopped",
8
+ STOPPING: "Stopping",
9
+ };
10
+ export const JobStatusDetails = {
11
+ COMPLETED: "Completed",
12
+ FAILED: "Failed",
13
+ IN_PROGRESS: "InProgress",
14
+ NOT_STARTED: "NotStarted",
15
+ STOPPED: "Stopped",
16
+ STOPPING: "Stopping",
17
+ };
18
+ export const FineTuningJobStatus = {
19
+ COMPLETED: "Completed",
20
+ FAILED: "Failed",
21
+ IN_PROGRESS: "InProgress",
22
+ STOPPED: "Stopped",
23
+ STOPPING: "Stopping",
24
+ };
25
+ export var RetrievalFilter;
26
+ (function (RetrievalFilter) {
27
+ RetrievalFilter.visit = (value, visitor) => {
28
+ if (value.equals !== undefined)
29
+ return visitor.equals(value.equals);
30
+ if (value.notEquals !== undefined)
31
+ return visitor.notEquals(value.notEquals);
32
+ if (value.greaterThan !== undefined)
33
+ return visitor.greaterThan(value.greaterThan);
34
+ if (value.greaterThanOrEquals !== undefined)
35
+ return visitor.greaterThanOrEquals(value.greaterThanOrEquals);
36
+ if (value.lessThan !== undefined)
37
+ return visitor.lessThan(value.lessThan);
38
+ if (value.lessThanOrEquals !== undefined)
39
+ return visitor.lessThanOrEquals(value.lessThanOrEquals);
40
+ if (value.in !== undefined)
41
+ return visitor.in(value.in);
42
+ if (value.notIn !== undefined)
43
+ return visitor.notIn(value.notIn);
44
+ if (value.startsWith !== undefined)
45
+ return visitor.startsWith(value.startsWith);
46
+ if (value.listContains !== undefined)
47
+ return visitor.listContains(value.listContains);
48
+ if (value.stringContains !== undefined)
49
+ return visitor.stringContains(value.stringContains);
50
+ if (value.andAll !== undefined)
51
+ return visitor.andAll(value.andAll);
52
+ if (value.orAll !== undefined)
53
+ return visitor.orAll(value.orAll);
54
+ return visitor._(value.$unknown[0], value.$unknown[1]);
55
+ };
56
+ })(RetrievalFilter || (RetrievalFilter = {}));
3
57
  export var KnowledgeBaseConfig;
4
58
  (function (KnowledgeBaseConfig) {
5
59
  KnowledgeBaseConfig.visit = (value, visitor) => {
@@ -30,6 +84,46 @@ export var EvaluationInferenceConfig;
30
84
  return visitor._(value.$unknown[0], value.$unknown[1]);
31
85
  };
32
86
  })(EvaluationInferenceConfig || (EvaluationInferenceConfig = {}));
87
+ export const CreateModelCustomizationJobRequestFilterSensitiveLog = (obj) => ({
88
+ ...obj,
89
+ ...(obj.trainingDataConfig && { trainingDataConfig: TrainingDataConfigFilterSensitiveLog(obj.trainingDataConfig) }),
90
+ ...(obj.customizationConfig && { customizationConfig: obj.customizationConfig }),
91
+ });
92
+ export const GetModelCustomizationJobResponseFilterSensitiveLog = (obj) => ({
93
+ ...obj,
94
+ ...(obj.trainingDataConfig && { trainingDataConfig: TrainingDataConfigFilterSensitiveLog(obj.trainingDataConfig) }),
95
+ ...(obj.customizationConfig && { customizationConfig: obj.customizationConfig }),
96
+ });
97
+ export const RetrievalFilterFilterSensitiveLog = (obj) => {
98
+ if (obj.equals !== undefined)
99
+ return { equals: obj.equals };
100
+ if (obj.notEquals !== undefined)
101
+ return { notEquals: obj.notEquals };
102
+ if (obj.greaterThan !== undefined)
103
+ return { greaterThan: obj.greaterThan };
104
+ if (obj.greaterThanOrEquals !== undefined)
105
+ return { greaterThanOrEquals: obj.greaterThanOrEquals };
106
+ if (obj.lessThan !== undefined)
107
+ return { lessThan: obj.lessThan };
108
+ if (obj.lessThanOrEquals !== undefined)
109
+ return { lessThanOrEquals: obj.lessThanOrEquals };
110
+ if (obj.in !== undefined)
111
+ return { in: obj.in };
112
+ if (obj.notIn !== undefined)
113
+ return { notIn: obj.notIn };
114
+ if (obj.startsWith !== undefined)
115
+ return { startsWith: obj.startsWith };
116
+ if (obj.listContains !== undefined)
117
+ return { listContains: obj.listContains };
118
+ if (obj.stringContains !== undefined)
119
+ return { stringContains: obj.stringContains };
120
+ if (obj.andAll !== undefined)
121
+ return { andAll: SENSITIVE_STRING };
122
+ if (obj.orAll !== undefined)
123
+ return { orAll: SENSITIVE_STRING };
124
+ if (obj.$unknown !== undefined)
125
+ return { [obj.$unknown[0]]: "UNKNOWN" };
126
+ };
33
127
  export const KnowledgeBaseVectorSearchConfigurationFilterSensitiveLog = (obj) => ({
34
128
  ...obj,
35
129
  ...(obj.filter && { filter: SENSITIVE_STRING }),