@aws-sdk/client-bedrock 3.705.0 → 3.706.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 (56) hide show
  1. package/README.md +72 -0
  2. package/dist-cjs/index.js +614 -27
  3. package/dist-es/Bedrock.js +18 -0
  4. package/dist-es/commands/CreateMarketplaceModelEndpointCommand.js +22 -0
  5. package/dist-es/commands/DeleteMarketplaceModelEndpointCommand.js +22 -0
  6. package/dist-es/commands/DeregisterMarketplaceModelEndpointCommand.js +22 -0
  7. package/dist-es/commands/GetMarketplaceModelEndpointCommand.js +22 -0
  8. package/dist-es/commands/GetPromptRouterCommand.js +23 -0
  9. package/dist-es/commands/ListMarketplaceModelEndpointsCommand.js +22 -0
  10. package/dist-es/commands/ListPromptRoutersCommand.js +23 -0
  11. package/dist-es/commands/RegisterMarketplaceModelEndpointCommand.js +22 -0
  12. package/dist-es/commands/UpdateMarketplaceModelEndpointCommand.js +22 -0
  13. package/dist-es/commands/index.js +9 -0
  14. package/dist-es/models/models_0.js +96 -20
  15. package/dist-es/pagination/ListMarketplaceModelEndpointsPaginator.js +4 -0
  16. package/dist-es/pagination/ListPromptRoutersPaginator.js +4 -0
  17. package/dist-es/pagination/index.js +2 -0
  18. package/dist-es/protocols/Aws_restJson1.js +314 -1
  19. package/dist-types/Bedrock.d.ts +65 -0
  20. package/dist-types/BedrockClient.d.ts +11 -2
  21. package/dist-types/commands/CreateGuardrailCommand.d.ts +6 -0
  22. package/dist-types/commands/CreateMarketplaceModelEndpointCommand.d.ts +143 -0
  23. package/dist-types/commands/DeleteMarketplaceModelEndpointCommand.d.ts +84 -0
  24. package/dist-types/commands/DeregisterMarketplaceModelEndpointCommand.d.ts +89 -0
  25. package/dist-types/commands/GetGuardrailCommand.d.ts +6 -0
  26. package/dist-types/commands/GetMarketplaceModelEndpointCommand.d.ts +111 -0
  27. package/dist-types/commands/GetPromptRouterCommand.d.ts +103 -0
  28. package/dist-types/commands/ListMarketplaceModelEndpointsCommand.d.ts +99 -0
  29. package/dist-types/commands/ListPromptRoutersCommand.d.ts +106 -0
  30. package/dist-types/commands/RegisterMarketplaceModelEndpointCommand.d.ts +116 -0
  31. package/dist-types/commands/UpdateGuardrailCommand.d.ts +6 -0
  32. package/dist-types/commands/UpdateMarketplaceModelEndpointCommand.d.ts +135 -0
  33. package/dist-types/commands/index.d.ts +9 -0
  34. package/dist-types/models/models_0.d.ts +736 -97
  35. package/dist-types/pagination/ListMarketplaceModelEndpointsPaginator.d.ts +7 -0
  36. package/dist-types/pagination/ListPromptRoutersPaginator.d.ts +7 -0
  37. package/dist-types/pagination/index.d.ts +2 -0
  38. package/dist-types/protocols/Aws_restJson1.d.ts +81 -0
  39. package/dist-types/ts3.4/Bedrock.d.ts +161 -0
  40. package/dist-types/ts3.4/BedrockClient.d.ts +54 -0
  41. package/dist-types/ts3.4/commands/CreateMarketplaceModelEndpointCommand.d.ts +51 -0
  42. package/dist-types/ts3.4/commands/DeleteMarketplaceModelEndpointCommand.d.ts +51 -0
  43. package/dist-types/ts3.4/commands/DeregisterMarketplaceModelEndpointCommand.d.ts +51 -0
  44. package/dist-types/ts3.4/commands/GetMarketplaceModelEndpointCommand.d.ts +51 -0
  45. package/dist-types/ts3.4/commands/GetPromptRouterCommand.d.ts +50 -0
  46. package/dist-types/ts3.4/commands/ListMarketplaceModelEndpointsCommand.d.ts +51 -0
  47. package/dist-types/ts3.4/commands/ListPromptRoutersCommand.d.ts +51 -0
  48. package/dist-types/ts3.4/commands/RegisterMarketplaceModelEndpointCommand.d.ts +51 -0
  49. package/dist-types/ts3.4/commands/UpdateMarketplaceModelEndpointCommand.d.ts +51 -0
  50. package/dist-types/ts3.4/commands/index.d.ts +9 -0
  51. package/dist-types/ts3.4/models/models_0.d.ts +229 -41
  52. package/dist-types/ts3.4/pagination/ListMarketplaceModelEndpointsPaginator.d.ts +11 -0
  53. package/dist-types/ts3.4/pagination/ListPromptRoutersPaginator.d.ts +11 -0
  54. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  55. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +108 -0
  56. package/package.json +1 -1
@@ -5,6 +5,7 @@ import { CreateEvaluationJobCommand, } from "./commands/CreateEvaluationJobComma
5
5
  import { CreateGuardrailCommand, } from "./commands/CreateGuardrailCommand";
6
6
  import { CreateGuardrailVersionCommand, } from "./commands/CreateGuardrailVersionCommand";
7
7
  import { CreateInferenceProfileCommand, } from "./commands/CreateInferenceProfileCommand";
8
+ import { CreateMarketplaceModelEndpointCommand, } from "./commands/CreateMarketplaceModelEndpointCommand";
8
9
  import { CreateModelCopyJobCommand, } from "./commands/CreateModelCopyJobCommand";
9
10
  import { CreateModelCustomizationJobCommand, } from "./commands/CreateModelCustomizationJobCommand";
10
11
  import { CreateModelImportJobCommand, } from "./commands/CreateModelImportJobCommand";
@@ -14,19 +15,23 @@ import { DeleteCustomModelCommand, } from "./commands/DeleteCustomModelCommand";
14
15
  import { DeleteGuardrailCommand, } from "./commands/DeleteGuardrailCommand";
15
16
  import { DeleteImportedModelCommand, } from "./commands/DeleteImportedModelCommand";
16
17
  import { DeleteInferenceProfileCommand, } from "./commands/DeleteInferenceProfileCommand";
18
+ import { DeleteMarketplaceModelEndpointCommand, } from "./commands/DeleteMarketplaceModelEndpointCommand";
17
19
  import { DeleteModelInvocationLoggingConfigurationCommand, } from "./commands/DeleteModelInvocationLoggingConfigurationCommand";
18
20
  import { DeleteProvisionedModelThroughputCommand, } from "./commands/DeleteProvisionedModelThroughputCommand";
21
+ import { DeregisterMarketplaceModelEndpointCommand, } from "./commands/DeregisterMarketplaceModelEndpointCommand";
19
22
  import { GetCustomModelCommand, } from "./commands/GetCustomModelCommand";
20
23
  import { GetEvaluationJobCommand, } from "./commands/GetEvaluationJobCommand";
21
24
  import { GetFoundationModelCommand, } from "./commands/GetFoundationModelCommand";
22
25
  import { GetGuardrailCommand, } from "./commands/GetGuardrailCommand";
23
26
  import { GetImportedModelCommand, } from "./commands/GetImportedModelCommand";
24
27
  import { GetInferenceProfileCommand, } from "./commands/GetInferenceProfileCommand";
28
+ import { GetMarketplaceModelEndpointCommand, } from "./commands/GetMarketplaceModelEndpointCommand";
25
29
  import { GetModelCopyJobCommand, } from "./commands/GetModelCopyJobCommand";
26
30
  import { GetModelCustomizationJobCommand, } from "./commands/GetModelCustomizationJobCommand";
27
31
  import { GetModelImportJobCommand, } from "./commands/GetModelImportJobCommand";
28
32
  import { GetModelInvocationJobCommand, } from "./commands/GetModelInvocationJobCommand";
29
33
  import { GetModelInvocationLoggingConfigurationCommand, } from "./commands/GetModelInvocationLoggingConfigurationCommand";
34
+ import { GetPromptRouterCommand, } from "./commands/GetPromptRouterCommand";
30
35
  import { GetProvisionedModelThroughputCommand, } from "./commands/GetProvisionedModelThroughputCommand";
31
36
  import { ListCustomModelsCommand, } from "./commands/ListCustomModelsCommand";
32
37
  import { ListEvaluationJobsCommand, } from "./commands/ListEvaluationJobsCommand";
@@ -34,19 +39,23 @@ import { ListFoundationModelsCommand, } from "./commands/ListFoundationModelsCom
34
39
  import { ListGuardrailsCommand, } from "./commands/ListGuardrailsCommand";
35
40
  import { ListImportedModelsCommand, } from "./commands/ListImportedModelsCommand";
36
41
  import { ListInferenceProfilesCommand, } from "./commands/ListInferenceProfilesCommand";
42
+ import { ListMarketplaceModelEndpointsCommand, } from "./commands/ListMarketplaceModelEndpointsCommand";
37
43
  import { ListModelCopyJobsCommand, } from "./commands/ListModelCopyJobsCommand";
38
44
  import { ListModelCustomizationJobsCommand, } from "./commands/ListModelCustomizationJobsCommand";
39
45
  import { ListModelImportJobsCommand, } from "./commands/ListModelImportJobsCommand";
40
46
  import { ListModelInvocationJobsCommand, } from "./commands/ListModelInvocationJobsCommand";
47
+ import { ListPromptRoutersCommand, } from "./commands/ListPromptRoutersCommand";
41
48
  import { ListProvisionedModelThroughputsCommand, } from "./commands/ListProvisionedModelThroughputsCommand";
42
49
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
43
50
  import { PutModelInvocationLoggingConfigurationCommand, } from "./commands/PutModelInvocationLoggingConfigurationCommand";
51
+ import { RegisterMarketplaceModelEndpointCommand, } from "./commands/RegisterMarketplaceModelEndpointCommand";
44
52
  import { StopEvaluationJobCommand, } from "./commands/StopEvaluationJobCommand";
45
53
  import { StopModelCustomizationJobCommand, } from "./commands/StopModelCustomizationJobCommand";
46
54
  import { StopModelInvocationJobCommand, } from "./commands/StopModelInvocationJobCommand";
47
55
  import { TagResourceCommand } from "./commands/TagResourceCommand";
48
56
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
49
57
  import { UpdateGuardrailCommand, } from "./commands/UpdateGuardrailCommand";
58
+ import { UpdateMarketplaceModelEndpointCommand, } from "./commands/UpdateMarketplaceModelEndpointCommand";
50
59
  import { UpdateProvisionedModelThroughputCommand, } from "./commands/UpdateProvisionedModelThroughputCommand";
51
60
  const commands = {
52
61
  BatchDeleteEvaluationJobCommand,
@@ -54,6 +63,7 @@ const commands = {
54
63
  CreateGuardrailCommand,
55
64
  CreateGuardrailVersionCommand,
56
65
  CreateInferenceProfileCommand,
66
+ CreateMarketplaceModelEndpointCommand,
57
67
  CreateModelCopyJobCommand,
58
68
  CreateModelCustomizationJobCommand,
59
69
  CreateModelImportJobCommand,
@@ -63,19 +73,23 @@ const commands = {
63
73
  DeleteGuardrailCommand,
64
74
  DeleteImportedModelCommand,
65
75
  DeleteInferenceProfileCommand,
76
+ DeleteMarketplaceModelEndpointCommand,
66
77
  DeleteModelInvocationLoggingConfigurationCommand,
67
78
  DeleteProvisionedModelThroughputCommand,
79
+ DeregisterMarketplaceModelEndpointCommand,
68
80
  GetCustomModelCommand,
69
81
  GetEvaluationJobCommand,
70
82
  GetFoundationModelCommand,
71
83
  GetGuardrailCommand,
72
84
  GetImportedModelCommand,
73
85
  GetInferenceProfileCommand,
86
+ GetMarketplaceModelEndpointCommand,
74
87
  GetModelCopyJobCommand,
75
88
  GetModelCustomizationJobCommand,
76
89
  GetModelImportJobCommand,
77
90
  GetModelInvocationJobCommand,
78
91
  GetModelInvocationLoggingConfigurationCommand,
92
+ GetPromptRouterCommand,
79
93
  GetProvisionedModelThroughputCommand,
80
94
  ListCustomModelsCommand,
81
95
  ListEvaluationJobsCommand,
@@ -83,19 +97,23 @@ const commands = {
83
97
  ListGuardrailsCommand,
84
98
  ListImportedModelsCommand,
85
99
  ListInferenceProfilesCommand,
100
+ ListMarketplaceModelEndpointsCommand,
86
101
  ListModelCopyJobsCommand,
87
102
  ListModelCustomizationJobsCommand,
88
103
  ListModelImportJobsCommand,
89
104
  ListModelInvocationJobsCommand,
105
+ ListPromptRoutersCommand,
90
106
  ListProvisionedModelThroughputsCommand,
91
107
  ListTagsForResourceCommand,
92
108
  PutModelInvocationLoggingConfigurationCommand,
109
+ RegisterMarketplaceModelEndpointCommand,
93
110
  StopEvaluationJobCommand,
94
111
  StopModelCustomizationJobCommand,
95
112
  StopModelInvocationJobCommand,
96
113
  TagResourceCommand,
97
114
  UntagResourceCommand,
98
115
  UpdateGuardrailCommand,
116
+ UpdateMarketplaceModelEndpointCommand,
99
117
  UpdateProvisionedModelThroughputCommand,
100
118
  };
101
119
  export class Bedrock extends BedrockClient {
@@ -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_CreateMarketplaceModelEndpointCommand, se_CreateMarketplaceModelEndpointCommand, } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class CreateMarketplaceModelEndpointCommand 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", "CreateMarketplaceModelEndpoint", {})
17
+ .n("BedrockClient", "CreateMarketplaceModelEndpointCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_CreateMarketplaceModelEndpointCommand)
20
+ .de(de_CreateMarketplaceModelEndpointCommand)
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_DeleteMarketplaceModelEndpointCommand, se_DeleteMarketplaceModelEndpointCommand, } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class DeleteMarketplaceModelEndpointCommand 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", "DeleteMarketplaceModelEndpoint", {})
17
+ .n("BedrockClient", "DeleteMarketplaceModelEndpointCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_DeleteMarketplaceModelEndpointCommand)
20
+ .de(de_DeleteMarketplaceModelEndpointCommand)
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_DeregisterMarketplaceModelEndpointCommand, se_DeregisterMarketplaceModelEndpointCommand, } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class DeregisterMarketplaceModelEndpointCommand 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", "DeregisterMarketplaceModelEndpoint", {})
17
+ .n("BedrockClient", "DeregisterMarketplaceModelEndpointCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_DeregisterMarketplaceModelEndpointCommand)
20
+ .de(de_DeregisterMarketplaceModelEndpointCommand)
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_GetMarketplaceModelEndpointCommand, se_GetMarketplaceModelEndpointCommand, } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class GetMarketplaceModelEndpointCommand 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", "GetMarketplaceModelEndpoint", {})
17
+ .n("BedrockClient", "GetMarketplaceModelEndpointCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_GetMarketplaceModelEndpointCommand)
20
+ .de(de_GetMarketplaceModelEndpointCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,23 @@
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 { GetPromptRouterResponseFilterSensitiveLog, } from "../models/models_0";
6
+ import { de_GetPromptRouterCommand, se_GetPromptRouterCommand } from "../protocols/Aws_restJson1";
7
+ export { $Command };
8
+ export class GetPromptRouterCommand extends $Command
9
+ .classBuilder()
10
+ .ep(commonParams)
11
+ .m(function (Command, cs, config, o) {
12
+ return [
13
+ getSerdePlugin(config, this.serialize, this.deserialize),
14
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
15
+ ];
16
+ })
17
+ .s("AmazonBedrockControlPlaneService", "GetPromptRouter", {})
18
+ .n("BedrockClient", "GetPromptRouterCommand")
19
+ .f(void 0, GetPromptRouterResponseFilterSensitiveLog)
20
+ .ser(se_GetPromptRouterCommand)
21
+ .de(de_GetPromptRouterCommand)
22
+ .build() {
23
+ }
@@ -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_ListMarketplaceModelEndpointsCommand, se_ListMarketplaceModelEndpointsCommand, } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class ListMarketplaceModelEndpointsCommand 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", "ListMarketplaceModelEndpoints", {})
17
+ .n("BedrockClient", "ListMarketplaceModelEndpointsCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_ListMarketplaceModelEndpointsCommand)
20
+ .de(de_ListMarketplaceModelEndpointsCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,23 @@
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 { ListPromptRoutersResponseFilterSensitiveLog, } from "../models/models_0";
6
+ import { de_ListPromptRoutersCommand, se_ListPromptRoutersCommand } from "../protocols/Aws_restJson1";
7
+ export { $Command };
8
+ export class ListPromptRoutersCommand extends $Command
9
+ .classBuilder()
10
+ .ep(commonParams)
11
+ .m(function (Command, cs, config, o) {
12
+ return [
13
+ getSerdePlugin(config, this.serialize, this.deserialize),
14
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
15
+ ];
16
+ })
17
+ .s("AmazonBedrockControlPlaneService", "ListPromptRouters", {})
18
+ .n("BedrockClient", "ListPromptRoutersCommand")
19
+ .f(void 0, ListPromptRoutersResponseFilterSensitiveLog)
20
+ .ser(se_ListPromptRoutersCommand)
21
+ .de(de_ListPromptRoutersCommand)
22
+ .build() {
23
+ }
@@ -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_RegisterMarketplaceModelEndpointCommand, se_RegisterMarketplaceModelEndpointCommand, } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class RegisterMarketplaceModelEndpointCommand 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", "RegisterMarketplaceModelEndpoint", {})
17
+ .n("BedrockClient", "RegisterMarketplaceModelEndpointCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_RegisterMarketplaceModelEndpointCommand)
20
+ .de(de_RegisterMarketplaceModelEndpointCommand)
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_UpdateMarketplaceModelEndpointCommand, se_UpdateMarketplaceModelEndpointCommand, } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class UpdateMarketplaceModelEndpointCommand 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", "UpdateMarketplaceModelEndpoint", {})
17
+ .n("BedrockClient", "UpdateMarketplaceModelEndpointCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_UpdateMarketplaceModelEndpointCommand)
20
+ .de(de_UpdateMarketplaceModelEndpointCommand)
21
+ .build() {
22
+ }
@@ -3,6 +3,7 @@ export * from "./CreateEvaluationJobCommand";
3
3
  export * from "./CreateGuardrailCommand";
4
4
  export * from "./CreateGuardrailVersionCommand";
5
5
  export * from "./CreateInferenceProfileCommand";
6
+ export * from "./CreateMarketplaceModelEndpointCommand";
6
7
  export * from "./CreateModelCopyJobCommand";
7
8
  export * from "./CreateModelCustomizationJobCommand";
8
9
  export * from "./CreateModelImportJobCommand";
@@ -12,19 +13,23 @@ export * from "./DeleteCustomModelCommand";
12
13
  export * from "./DeleteGuardrailCommand";
13
14
  export * from "./DeleteImportedModelCommand";
14
15
  export * from "./DeleteInferenceProfileCommand";
16
+ export * from "./DeleteMarketplaceModelEndpointCommand";
15
17
  export * from "./DeleteModelInvocationLoggingConfigurationCommand";
16
18
  export * from "./DeleteProvisionedModelThroughputCommand";
19
+ export * from "./DeregisterMarketplaceModelEndpointCommand";
17
20
  export * from "./GetCustomModelCommand";
18
21
  export * from "./GetEvaluationJobCommand";
19
22
  export * from "./GetFoundationModelCommand";
20
23
  export * from "./GetGuardrailCommand";
21
24
  export * from "./GetImportedModelCommand";
22
25
  export * from "./GetInferenceProfileCommand";
26
+ export * from "./GetMarketplaceModelEndpointCommand";
23
27
  export * from "./GetModelCopyJobCommand";
24
28
  export * from "./GetModelCustomizationJobCommand";
25
29
  export * from "./GetModelImportJobCommand";
26
30
  export * from "./GetModelInvocationJobCommand";
27
31
  export * from "./GetModelInvocationLoggingConfigurationCommand";
32
+ export * from "./GetPromptRouterCommand";
28
33
  export * from "./GetProvisionedModelThroughputCommand";
29
34
  export * from "./ListCustomModelsCommand";
30
35
  export * from "./ListEvaluationJobsCommand";
@@ -32,17 +37,21 @@ export * from "./ListFoundationModelsCommand";
32
37
  export * from "./ListGuardrailsCommand";
33
38
  export * from "./ListImportedModelsCommand";
34
39
  export * from "./ListInferenceProfilesCommand";
40
+ export * from "./ListMarketplaceModelEndpointsCommand";
35
41
  export * from "./ListModelCopyJobsCommand";
36
42
  export * from "./ListModelCustomizationJobsCommand";
37
43
  export * from "./ListModelImportJobsCommand";
38
44
  export * from "./ListModelInvocationJobsCommand";
45
+ export * from "./ListPromptRoutersCommand";
39
46
  export * from "./ListProvisionedModelThroughputsCommand";
40
47
  export * from "./ListTagsForResourceCommand";
41
48
  export * from "./PutModelInvocationLoggingConfigurationCommand";
49
+ export * from "./RegisterMarketplaceModelEndpointCommand";
42
50
  export * from "./StopEvaluationJobCommand";
43
51
  export * from "./StopModelCustomizationJobCommand";
44
52
  export * from "./StopModelInvocationJobCommand";
45
53
  export * from "./TagResourceCommand";
46
54
  export * from "./UntagResourceCommand";
47
55
  export * from "./UpdateGuardrailCommand";
56
+ export * from "./UpdateMarketplaceModelEndpointCommand";
48
57
  export * from "./UpdateProvisionedModelThroughputCommand";
@@ -12,14 +12,6 @@ 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
- };
23
15
  export class ConflictException extends __BaseException {
24
16
  constructor(opts) {
25
17
  super({
@@ -32,6 +24,18 @@ export class ConflictException extends __BaseException {
32
24
  Object.setPrototypeOf(this, ConflictException.prototype);
33
25
  }
34
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",
38
+ };
35
39
  export class InternalServerException extends __BaseException {
36
40
  constructor(opts) {
37
41
  super({
@@ -56,6 +60,18 @@ export class ResourceNotFoundException extends __BaseException {
56
60
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
57
61
  }
58
62
  }
63
+ export class ServiceQuotaExceededException extends __BaseException {
64
+ constructor(opts) {
65
+ super({
66
+ name: "ServiceQuotaExceededException",
67
+ $fault: "client",
68
+ ...opts,
69
+ });
70
+ this.name = "ServiceQuotaExceededException";
71
+ this.$fault = "client";
72
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
73
+ }
74
+ }
59
75
  export class ThrottlingException extends __BaseException {
60
76
  constructor(opts) {
61
77
  super({
@@ -80,6 +96,26 @@ export class ValidationException extends __BaseException {
80
96
  Object.setPrototypeOf(this, ValidationException.prototype);
81
97
  }
82
98
  }
99
+ export class ServiceUnavailableException extends __BaseException {
100
+ constructor(opts) {
101
+ super({
102
+ name: "ServiceUnavailableException",
103
+ $fault: "server",
104
+ ...opts,
105
+ });
106
+ this.name = "ServiceUnavailableException";
107
+ this.$fault = "server";
108
+ Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
109
+ }
110
+ }
111
+ export const EvaluationJobStatus = {
112
+ COMPLETED: "Completed",
113
+ DELETING: "Deleting",
114
+ FAILED: "Failed",
115
+ IN_PROGRESS: "InProgress",
116
+ STOPPED: "Stopped",
117
+ STOPPING: "Stopping",
118
+ };
83
119
  export const ApplicationType = {
84
120
  MODEL_EVALUATION: "ModelEvaluation",
85
121
  RAG_EVALUATION: "RagEvaluation",
@@ -140,18 +176,6 @@ export const RetrieveAndGenerateType = {
140
176
  EXTERNAL_SOURCES: "EXTERNAL_SOURCES",
141
177
  KNOWLEDGE_BASE: "KNOWLEDGE_BASE",
142
178
  };
143
- export class ServiceQuotaExceededException extends __BaseException {
144
- constructor(opts) {
145
- super({
146
- name: "ServiceQuotaExceededException",
147
- $fault: "client",
148
- ...opts,
149
- });
150
- this.name = "ServiceQuotaExceededException";
151
- this.$fault = "client";
152
- Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
153
- }
154
- }
155
179
  export const EvaluationJobType = {
156
180
  AUTOMATED: "Automated",
157
181
  HUMAN: "Human",
@@ -163,6 +187,10 @@ export const SortOrder = {
163
187
  ASCENDING: "Ascending",
164
188
  DESCENDING: "Descending",
165
189
  };
190
+ export const GuardrailModality = {
191
+ IMAGE: "IMAGE",
192
+ TEXT: "TEXT",
193
+ };
166
194
  export const GuardrailFilterStrength = {
167
195
  HIGH: "HIGH",
168
196
  LOW: "LOW",
@@ -365,6 +393,13 @@ export const FoundationModelLifecycleStatus = {
365
393
  ACTIVE: "ACTIVE",
366
394
  LEGACY: "LEGACY",
367
395
  };
396
+ export const PromptRouterStatus = {
397
+ AVAILABLE: "AVAILABLE",
398
+ };
399
+ export const PromptRouterType = {
400
+ CUSTOM: "custom",
401
+ DEFAULT: "default",
402
+ };
368
403
  export const CommitmentDuration = {
369
404
  ONE_MONTH: "OneMonth",
370
405
  SIX_MONTHS: "SixMonths",
@@ -563,6 +598,17 @@ export const StopEvaluationJobRequestFilterSensitiveLog = (obj) => ({
563
598
  ...obj,
564
599
  ...(obj.jobIdentifier && { jobIdentifier: SENSITIVE_STRING }),
565
600
  });
601
+ export const GuardrailContentFilterConfigFilterSensitiveLog = (obj) => ({
602
+ ...obj,
603
+ ...(obj.inputModalities && { inputModalities: SENSITIVE_STRING }),
604
+ ...(obj.outputModalities && { outputModalities: SENSITIVE_STRING }),
605
+ });
606
+ export const GuardrailContentPolicyConfigFilterSensitiveLog = (obj) => ({
607
+ ...obj,
608
+ ...(obj.filtersConfig && {
609
+ filtersConfig: obj.filtersConfig.map((item) => GuardrailContentFilterConfigFilterSensitiveLog(item)),
610
+ }),
611
+ });
566
612
  export const GuardrailTopicConfigFilterSensitiveLog = (obj) => ({
567
613
  ...obj,
568
614
  ...(obj.name && { name: SENSITIVE_STRING }),
@@ -582,6 +628,9 @@ export const CreateGuardrailRequestFilterSensitiveLog = (obj) => ({
582
628
  ...(obj.topicPolicyConfig && {
583
629
  topicPolicyConfig: GuardrailTopicPolicyConfigFilterSensitiveLog(obj.topicPolicyConfig),
584
630
  }),
631
+ ...(obj.contentPolicyConfig && {
632
+ contentPolicyConfig: GuardrailContentPolicyConfigFilterSensitiveLog(obj.contentPolicyConfig),
633
+ }),
585
634
  ...(obj.blockedInputMessaging && { blockedInputMessaging: SENSITIVE_STRING }),
586
635
  ...(obj.blockedOutputsMessaging && { blockedOutputsMessaging: SENSITIVE_STRING }),
587
636
  });
@@ -589,6 +638,15 @@ export const CreateGuardrailVersionRequestFilterSensitiveLog = (obj) => ({
589
638
  ...obj,
590
639
  ...(obj.description && { description: SENSITIVE_STRING }),
591
640
  });
641
+ export const GuardrailContentFilterFilterSensitiveLog = (obj) => ({
642
+ ...obj,
643
+ ...(obj.inputModalities && { inputModalities: SENSITIVE_STRING }),
644
+ ...(obj.outputModalities && { outputModalities: SENSITIVE_STRING }),
645
+ });
646
+ export const GuardrailContentPolicyFilterSensitiveLog = (obj) => ({
647
+ ...obj,
648
+ ...(obj.filters && { filters: obj.filters.map((item) => GuardrailContentFilterFilterSensitiveLog(item)) }),
649
+ });
592
650
  export const GuardrailTopicFilterSensitiveLog = (obj) => ({
593
651
  ...obj,
594
652
  ...(obj.name && { name: SENSITIVE_STRING }),
@@ -604,6 +662,7 @@ export const GetGuardrailResponseFilterSensitiveLog = (obj) => ({
604
662
  ...(obj.name && { name: SENSITIVE_STRING }),
605
663
  ...(obj.description && { description: SENSITIVE_STRING }),
606
664
  ...(obj.topicPolicy && { topicPolicy: GuardrailTopicPolicyFilterSensitiveLog(obj.topicPolicy) }),
665
+ ...(obj.contentPolicy && { contentPolicy: GuardrailContentPolicyFilterSensitiveLog(obj.contentPolicy) }),
607
666
  ...(obj.statusReasons && { statusReasons: SENSITIVE_STRING }),
608
667
  ...(obj.failureRecommendations && { failureRecommendations: SENSITIVE_STRING }),
609
668
  ...(obj.blockedInputMessaging && { blockedInputMessaging: SENSITIVE_STRING }),
@@ -625,6 +684,9 @@ export const UpdateGuardrailRequestFilterSensitiveLog = (obj) => ({
625
684
  ...(obj.topicPolicyConfig && {
626
685
  topicPolicyConfig: GuardrailTopicPolicyConfigFilterSensitiveLog(obj.topicPolicyConfig),
627
686
  }),
687
+ ...(obj.contentPolicyConfig && {
688
+ contentPolicyConfig: GuardrailContentPolicyConfigFilterSensitiveLog(obj.contentPolicyConfig),
689
+ }),
628
690
  ...(obj.blockedInputMessaging && { blockedInputMessaging: SENSITIVE_STRING }),
629
691
  ...(obj.blockedOutputsMessaging && { blockedOutputsMessaging: SENSITIVE_STRING }),
630
692
  });
@@ -700,6 +762,20 @@ export const GetCustomModelResponseFilterSensitiveLog = (obj) => ({
700
762
  ...(obj.trainingDataConfig && { trainingDataConfig: TrainingDataConfigFilterSensitiveLog(obj.trainingDataConfig) }),
701
763
  ...(obj.customizationConfig && { customizationConfig: obj.customizationConfig }),
702
764
  });
765
+ export const GetPromptRouterResponseFilterSensitiveLog = (obj) => ({
766
+ ...obj,
767
+ ...(obj.description && { description: SENSITIVE_STRING }),
768
+ });
769
+ export const PromptRouterSummaryFilterSensitiveLog = (obj) => ({
770
+ ...obj,
771
+ ...(obj.description && { description: SENSITIVE_STRING }),
772
+ });
773
+ export const ListPromptRoutersResponseFilterSensitiveLog = (obj) => ({
774
+ ...obj,
775
+ ...(obj.promptRouterSummaries && {
776
+ promptRouterSummaries: obj.promptRouterSummaries.map((item) => PromptRouterSummaryFilterSensitiveLog(item)),
777
+ }),
778
+ });
703
779
  export const CreateModelCustomizationJobRequestFilterSensitiveLog = (obj) => ({
704
780
  ...obj,
705
781
  ...(obj.trainingDataConfig && { trainingDataConfig: TrainingDataConfigFilterSensitiveLog(obj.trainingDataConfig) }),
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { BedrockClient } from "../BedrockClient";
3
+ import { ListMarketplaceModelEndpointsCommand, } from "../commands/ListMarketplaceModelEndpointsCommand";
4
+ export const paginateListMarketplaceModelEndpoints = createPaginator(BedrockClient, ListMarketplaceModelEndpointsCommand, "nextToken", "nextToken", "maxResults");
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { BedrockClient } from "../BedrockClient";
3
+ import { ListPromptRoutersCommand, } from "../commands/ListPromptRoutersCommand";
4
+ export const paginateListPromptRouters = createPaginator(BedrockClient, ListPromptRoutersCommand, "nextToken", "nextToken", "maxResults");
@@ -4,8 +4,10 @@ export * from "./ListEvaluationJobsPaginator";
4
4
  export * from "./ListGuardrailsPaginator";
5
5
  export * from "./ListImportedModelsPaginator";
6
6
  export * from "./ListInferenceProfilesPaginator";
7
+ export * from "./ListMarketplaceModelEndpointsPaginator";
7
8
  export * from "./ListModelCopyJobsPaginator";
8
9
  export * from "./ListModelCustomizationJobsPaginator";
9
10
  export * from "./ListModelImportJobsPaginator";
10
11
  export * from "./ListModelInvocationJobsPaginator";
12
+ export * from "./ListPromptRoutersPaginator";
11
13
  export * from "./ListProvisionedModelThroughputsPaginator";