@aws-sdk/client-bedrock 3.1046.0 → 3.1048.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -0
- package/dist-cjs/endpoint/endpointResolver.js +2 -2
- package/dist-cjs/index.js +100 -20
- package/dist-cjs/models/errors.js +14 -14
- package/dist-cjs/runtimeConfig.browser.js +5 -5
- package/dist-cjs/runtimeConfig.js +2 -3
- package/dist-cjs/schemas/schemas_0.js +192 -46
- package/dist-es/Bedrock.js +12 -0
- package/dist-es/BedrockClient.js +1 -4
- package/dist-es/commands/BatchDeleteAdvancedPromptOptimizationJobCommand.js +16 -0
- package/dist-es/commands/CreateAdvancedPromptOptimizationJobCommand.js +16 -0
- package/dist-es/commands/GetAdvancedPromptOptimizationJobCommand.js +16 -0
- package/dist-es/commands/ListAdvancedPromptOptimizationJobsCommand.js +16 -0
- package/dist-es/commands/StopAdvancedPromptOptimizationJobCommand.js +16 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/endpoint/endpointResolver.js +1 -1
- package/dist-es/models/enums.js +16 -7
- package/dist-es/models/errors.js +12 -12
- package/dist-es/pagination/ListAdvancedPromptOptimizationJobsPaginator.js +4 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/runtimeConfig.browser.js +1 -1
- package/dist-es/runtimeConfig.js +1 -2
- package/dist-es/runtimeExtensions.js +1 -1
- package/dist-es/schemas/schemas_0.js +180 -34
- package/dist-types/Bedrock.d.ts +43 -0
- package/dist-types/BedrockClient.d.ts +8 -4
- package/dist-types/commands/BatchDeleteAdvancedPromptOptimizationJobCommand.d.ts +102 -0
- package/dist-types/commands/CreateAdvancedPromptOptimizationJobCommand.d.ts +131 -0
- package/dist-types/commands/CreateGuardrailCommand.d.ts +1 -1
- package/dist-types/commands/CreateGuardrailVersionCommand.d.ts +1 -1
- package/dist-types/commands/DeleteGuardrailCommand.d.ts +1 -1
- package/dist-types/commands/GetAdvancedPromptOptimizationJobCommand.d.ts +120 -0
- package/dist-types/commands/GetGuardrailCommand.d.ts +1 -2
- package/dist-types/commands/ListAdvancedPromptOptimizationJobsCommand.d.ts +100 -0
- package/dist-types/commands/StopAdvancedPromptOptimizationJobCommand.d.ts +92 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/enums.d.ts +40 -23
- package/dist-types/models/errors.d.ts +12 -12
- package/dist-types/models/models_0.d.ts +3481 -3544
- package/dist-types/models/models_1.d.ts +417 -2
- package/dist-types/pagination/ListAdvancedPromptOptimizationJobsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/schemas/schemas_0.d.ts +22 -0
- package/dist-types/ts3.4/Bedrock.d.ts +117 -0
- package/dist-types/ts3.4/BedrockClient.d.ts +31 -3
- package/dist-types/ts3.4/commands/BatchDeleteAdvancedPromptOptimizationJobCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/CreateAdvancedPromptOptimizationJobCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/CreateGuardrailCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/CreateGuardrailVersionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteGuardrailCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetAdvancedPromptOptimizationJobCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/GetGuardrailCommand.d.ts +1 -2
- package/dist-types/ts3.4/commands/ListAdvancedPromptOptimizationJobsCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/StopAdvancedPromptOptimizationJobCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/enums.d.ts +20 -9
- package/dist-types/ts3.4/models/errors.d.ts +7 -7
- package/dist-types/ts3.4/models/models_0.d.ts +90 -107
- package/dist-types/ts3.4/models/models_1.d.ts +114 -7
- package/dist-types/ts3.4/pagination/ListAdvancedPromptOptimizationJobsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +22 -0
- package/package.json +7 -15
package/dist-es/Bedrock.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { createAggregatedClient } from "@smithy/core/client";
|
|
2
2
|
import { BedrockClient } from "./BedrockClient";
|
|
3
|
+
import { BatchDeleteAdvancedPromptOptimizationJobCommand, } from "./commands/BatchDeleteAdvancedPromptOptimizationJobCommand";
|
|
3
4
|
import { BatchDeleteEvaluationJobCommand, } from "./commands/BatchDeleteEvaluationJobCommand";
|
|
4
5
|
import { CancelAutomatedReasoningPolicyBuildWorkflowCommand, } from "./commands/CancelAutomatedReasoningPolicyBuildWorkflowCommand";
|
|
6
|
+
import { CreateAdvancedPromptOptimizationJobCommand, } from "./commands/CreateAdvancedPromptOptimizationJobCommand";
|
|
5
7
|
import { CreateAutomatedReasoningPolicyCommand, } from "./commands/CreateAutomatedReasoningPolicyCommand";
|
|
6
8
|
import { CreateAutomatedReasoningPolicyTestCaseCommand, } from "./commands/CreateAutomatedReasoningPolicyTestCaseCommand";
|
|
7
9
|
import { CreateAutomatedReasoningPolicyVersionCommand, } from "./commands/CreateAutomatedReasoningPolicyVersionCommand";
|
|
@@ -36,6 +38,7 @@ import { DeleteProvisionedModelThroughputCommand, } from "./commands/DeleteProvi
|
|
|
36
38
|
import { DeleteResourcePolicyCommand, } from "./commands/DeleteResourcePolicyCommand";
|
|
37
39
|
import { DeregisterMarketplaceModelEndpointCommand, } from "./commands/DeregisterMarketplaceModelEndpointCommand";
|
|
38
40
|
import { ExportAutomatedReasoningPolicyVersionCommand, } from "./commands/ExportAutomatedReasoningPolicyVersionCommand";
|
|
41
|
+
import { GetAdvancedPromptOptimizationJobCommand, } from "./commands/GetAdvancedPromptOptimizationJobCommand";
|
|
39
42
|
import { GetAutomatedReasoningPolicyAnnotationsCommand, } from "./commands/GetAutomatedReasoningPolicyAnnotationsCommand";
|
|
40
43
|
import { GetAutomatedReasoningPolicyBuildWorkflowCommand, } from "./commands/GetAutomatedReasoningPolicyBuildWorkflowCommand";
|
|
41
44
|
import { GetAutomatedReasoningPolicyBuildWorkflowResultAssetsCommand, } from "./commands/GetAutomatedReasoningPolicyBuildWorkflowResultAssetsCommand";
|
|
@@ -61,6 +64,7 @@ import { GetPromptRouterCommand, } from "./commands/GetPromptRouterCommand";
|
|
|
61
64
|
import { GetProvisionedModelThroughputCommand, } from "./commands/GetProvisionedModelThroughputCommand";
|
|
62
65
|
import { GetResourcePolicyCommand, } from "./commands/GetResourcePolicyCommand";
|
|
63
66
|
import { GetUseCaseForModelAccessCommand, } from "./commands/GetUseCaseForModelAccessCommand";
|
|
67
|
+
import { ListAdvancedPromptOptimizationJobsCommand, } from "./commands/ListAdvancedPromptOptimizationJobsCommand";
|
|
64
68
|
import { ListAutomatedReasoningPoliciesCommand, } from "./commands/ListAutomatedReasoningPoliciesCommand";
|
|
65
69
|
import { ListAutomatedReasoningPolicyBuildWorkflowsCommand, } from "./commands/ListAutomatedReasoningPolicyBuildWorkflowsCommand";
|
|
66
70
|
import { ListAutomatedReasoningPolicyTestCasesCommand, } from "./commands/ListAutomatedReasoningPolicyTestCasesCommand";
|
|
@@ -89,6 +93,7 @@ import { PutUseCaseForModelAccessCommand, } from "./commands/PutUseCaseForModelA
|
|
|
89
93
|
import { RegisterMarketplaceModelEndpointCommand, } from "./commands/RegisterMarketplaceModelEndpointCommand";
|
|
90
94
|
import { StartAutomatedReasoningPolicyBuildWorkflowCommand, } from "./commands/StartAutomatedReasoningPolicyBuildWorkflowCommand";
|
|
91
95
|
import { StartAutomatedReasoningPolicyTestWorkflowCommand, } from "./commands/StartAutomatedReasoningPolicyTestWorkflowCommand";
|
|
96
|
+
import { StopAdvancedPromptOptimizationJobCommand, } from "./commands/StopAdvancedPromptOptimizationJobCommand";
|
|
92
97
|
import { StopEvaluationJobCommand, } from "./commands/StopEvaluationJobCommand";
|
|
93
98
|
import { StopModelCustomizationJobCommand, } from "./commands/StopModelCustomizationJobCommand";
|
|
94
99
|
import { StopModelInvocationJobCommand, } from "./commands/StopModelInvocationJobCommand";
|
|
@@ -101,6 +106,7 @@ import { UpdateCustomModelDeploymentCommand, } from "./commands/UpdateCustomMode
|
|
|
101
106
|
import { UpdateGuardrailCommand, } from "./commands/UpdateGuardrailCommand";
|
|
102
107
|
import { UpdateMarketplaceModelEndpointCommand, } from "./commands/UpdateMarketplaceModelEndpointCommand";
|
|
103
108
|
import { UpdateProvisionedModelThroughputCommand, } from "./commands/UpdateProvisionedModelThroughputCommand";
|
|
109
|
+
import { paginateListAdvancedPromptOptimizationJobs } from "./pagination/ListAdvancedPromptOptimizationJobsPaginator";
|
|
104
110
|
import { paginateListAutomatedReasoningPolicies } from "./pagination/ListAutomatedReasoningPoliciesPaginator";
|
|
105
111
|
import { paginateListAutomatedReasoningPolicyBuildWorkflows, } from "./pagination/ListAutomatedReasoningPolicyBuildWorkflowsPaginator";
|
|
106
112
|
import { paginateListAutomatedReasoningPolicyTestCases, } from "./pagination/ListAutomatedReasoningPolicyTestCasesPaginator";
|
|
@@ -120,8 +126,10 @@ import { paginateListModelInvocationJobs } from "./pagination/ListModelInvocatio
|
|
|
120
126
|
import { paginateListPromptRouters } from "./pagination/ListPromptRoutersPaginator";
|
|
121
127
|
import { paginateListProvisionedModelThroughputs } from "./pagination/ListProvisionedModelThroughputsPaginator";
|
|
122
128
|
const commands = {
|
|
129
|
+
BatchDeleteAdvancedPromptOptimizationJobCommand,
|
|
123
130
|
BatchDeleteEvaluationJobCommand,
|
|
124
131
|
CancelAutomatedReasoningPolicyBuildWorkflowCommand,
|
|
132
|
+
CreateAdvancedPromptOptimizationJobCommand,
|
|
125
133
|
CreateAutomatedReasoningPolicyCommand,
|
|
126
134
|
CreateAutomatedReasoningPolicyTestCaseCommand,
|
|
127
135
|
CreateAutomatedReasoningPolicyVersionCommand,
|
|
@@ -156,6 +164,7 @@ const commands = {
|
|
|
156
164
|
DeleteResourcePolicyCommand,
|
|
157
165
|
DeregisterMarketplaceModelEndpointCommand,
|
|
158
166
|
ExportAutomatedReasoningPolicyVersionCommand,
|
|
167
|
+
GetAdvancedPromptOptimizationJobCommand,
|
|
159
168
|
GetAutomatedReasoningPolicyCommand,
|
|
160
169
|
GetAutomatedReasoningPolicyAnnotationsCommand,
|
|
161
170
|
GetAutomatedReasoningPolicyBuildWorkflowCommand,
|
|
@@ -181,6 +190,7 @@ const commands = {
|
|
|
181
190
|
GetProvisionedModelThroughputCommand,
|
|
182
191
|
GetResourcePolicyCommand,
|
|
183
192
|
GetUseCaseForModelAccessCommand,
|
|
193
|
+
ListAdvancedPromptOptimizationJobsCommand,
|
|
184
194
|
ListAutomatedReasoningPoliciesCommand,
|
|
185
195
|
ListAutomatedReasoningPolicyBuildWorkflowsCommand,
|
|
186
196
|
ListAutomatedReasoningPolicyTestCasesCommand,
|
|
@@ -209,6 +219,7 @@ const commands = {
|
|
|
209
219
|
RegisterMarketplaceModelEndpointCommand,
|
|
210
220
|
StartAutomatedReasoningPolicyBuildWorkflowCommand,
|
|
211
221
|
StartAutomatedReasoningPolicyTestWorkflowCommand,
|
|
222
|
+
StopAdvancedPromptOptimizationJobCommand,
|
|
212
223
|
StopEvaluationJobCommand,
|
|
213
224
|
StopModelCustomizationJobCommand,
|
|
214
225
|
StopModelInvocationJobCommand,
|
|
@@ -223,6 +234,7 @@ const commands = {
|
|
|
223
234
|
UpdateProvisionedModelThroughputCommand,
|
|
224
235
|
};
|
|
225
236
|
const paginators = {
|
|
237
|
+
paginateListAdvancedPromptOptimizationJobs,
|
|
226
238
|
paginateListAutomatedReasoningPolicies,
|
|
227
239
|
paginateListAutomatedReasoningPolicyBuildWorkflows,
|
|
228
240
|
paginateListAutomatedReasoningPolicyTestCases,
|
package/dist-es/BedrockClient.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/
|
|
2
|
-
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
3
|
-
import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
|
|
4
|
-
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
1
|
+
import { getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin, getUserAgentPlugin, resolveHostHeaderConfig, resolveUserAgentConfig, } from "@aws-sdk/core/client";
|
|
5
2
|
import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
|
|
6
3
|
import { Client as __Client, } from "@smithy/core/client";
|
|
7
4
|
import { resolveRegionConfig } from "@smithy/core/config";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { BatchDeleteAdvancedPromptOptimizationJob$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class BatchDeleteAdvancedPromptOptimizationJobCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("AmazonBedrockControlPlaneService", "BatchDeleteAdvancedPromptOptimizationJob", {})
|
|
13
|
+
.n("BedrockClient", "BatchDeleteAdvancedPromptOptimizationJobCommand")
|
|
14
|
+
.sc(BatchDeleteAdvancedPromptOptimizationJob$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { CreateAdvancedPromptOptimizationJob$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class CreateAdvancedPromptOptimizationJobCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("AmazonBedrockControlPlaneService", "CreateAdvancedPromptOptimizationJob", {})
|
|
13
|
+
.n("BedrockClient", "CreateAdvancedPromptOptimizationJobCommand")
|
|
14
|
+
.sc(CreateAdvancedPromptOptimizationJob$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { GetAdvancedPromptOptimizationJob$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class GetAdvancedPromptOptimizationJobCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("AmazonBedrockControlPlaneService", "GetAdvancedPromptOptimizationJob", {})
|
|
13
|
+
.n("BedrockClient", "GetAdvancedPromptOptimizationJobCommand")
|
|
14
|
+
.sc(GetAdvancedPromptOptimizationJob$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { ListAdvancedPromptOptimizationJobs$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class ListAdvancedPromptOptimizationJobsCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("AmazonBedrockControlPlaneService", "ListAdvancedPromptOptimizationJobs", {})
|
|
13
|
+
.n("BedrockClient", "ListAdvancedPromptOptimizationJobsCommand")
|
|
14
|
+
.sc(ListAdvancedPromptOptimizationJobs$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { StopAdvancedPromptOptimizationJob$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class StopAdvancedPromptOptimizationJobCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("AmazonBedrockControlPlaneService", "StopAdvancedPromptOptimizationJob", {})
|
|
13
|
+
.n("BedrockClient", "StopAdvancedPromptOptimizationJobCommand")
|
|
14
|
+
.sc(StopAdvancedPromptOptimizationJob$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
export * from "./BatchDeleteAdvancedPromptOptimizationJobCommand";
|
|
1
2
|
export * from "./BatchDeleteEvaluationJobCommand";
|
|
2
3
|
export * from "./CancelAutomatedReasoningPolicyBuildWorkflowCommand";
|
|
4
|
+
export * from "./CreateAdvancedPromptOptimizationJobCommand";
|
|
3
5
|
export * from "./CreateAutomatedReasoningPolicyCommand";
|
|
4
6
|
export * from "./CreateAutomatedReasoningPolicyTestCaseCommand";
|
|
5
7
|
export * from "./CreateAutomatedReasoningPolicyVersionCommand";
|
|
@@ -34,6 +36,7 @@ export * from "./DeleteProvisionedModelThroughputCommand";
|
|
|
34
36
|
export * from "./DeleteResourcePolicyCommand";
|
|
35
37
|
export * from "./DeregisterMarketplaceModelEndpointCommand";
|
|
36
38
|
export * from "./ExportAutomatedReasoningPolicyVersionCommand";
|
|
39
|
+
export * from "./GetAdvancedPromptOptimizationJobCommand";
|
|
37
40
|
export * from "./GetAutomatedReasoningPolicyAnnotationsCommand";
|
|
38
41
|
export * from "./GetAutomatedReasoningPolicyBuildWorkflowCommand";
|
|
39
42
|
export * from "./GetAutomatedReasoningPolicyBuildWorkflowResultAssetsCommand";
|
|
@@ -59,6 +62,7 @@ export * from "./GetPromptRouterCommand";
|
|
|
59
62
|
export * from "./GetProvisionedModelThroughputCommand";
|
|
60
63
|
export * from "./GetResourcePolicyCommand";
|
|
61
64
|
export * from "./GetUseCaseForModelAccessCommand";
|
|
65
|
+
export * from "./ListAdvancedPromptOptimizationJobsCommand";
|
|
62
66
|
export * from "./ListAutomatedReasoningPoliciesCommand";
|
|
63
67
|
export * from "./ListAutomatedReasoningPolicyBuildWorkflowsCommand";
|
|
64
68
|
export * from "./ListAutomatedReasoningPolicyTestCasesCommand";
|
|
@@ -87,6 +91,7 @@ export * from "./PutUseCaseForModelAccessCommand";
|
|
|
87
91
|
export * from "./RegisterMarketplaceModelEndpointCommand";
|
|
88
92
|
export * from "./StartAutomatedReasoningPolicyBuildWorkflowCommand";
|
|
89
93
|
export * from "./StartAutomatedReasoningPolicyTestWorkflowCommand";
|
|
94
|
+
export * from "./StopAdvancedPromptOptimizationJobCommand";
|
|
90
95
|
export * from "./StopEvaluationJobCommand";
|
|
91
96
|
export * from "./StopModelCustomizationJobCommand";
|
|
92
97
|
export * from "./StopModelInvocationJobCommand";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { awsEndpointFunctions } from "@aws-sdk/
|
|
1
|
+
import { awsEndpointFunctions } from "@aws-sdk/core/client";
|
|
2
2
|
import { customEndpointFunctions, decideEndpoint, EndpointCache } from "@smithy/core/endpoints";
|
|
3
3
|
import { bdd } from "./bdd";
|
|
4
4
|
const cache = new EndpointCache({
|
package/dist-es/models/enums.js
CHANGED
|
@@ -9,6 +9,22 @@ export const InputTags = {
|
|
|
9
9
|
export const ConfigurationOwner = {
|
|
10
10
|
ACCOUNT: "ACCOUNT",
|
|
11
11
|
};
|
|
12
|
+
export const AdvancedPromptOptimizationJobStatus = {
|
|
13
|
+
COMPLETED: "Completed",
|
|
14
|
+
DELETING: "Deleting",
|
|
15
|
+
FAILED: "Failed",
|
|
16
|
+
IN_PROGRESS: "InProgress",
|
|
17
|
+
PARTIALLY_COMPLETED: "PartiallyCompleted",
|
|
18
|
+
STOPPED: "Stopped",
|
|
19
|
+
STOPPING: "Stopping",
|
|
20
|
+
};
|
|
21
|
+
export const SortJobsBy = {
|
|
22
|
+
CREATION_TIME: "CreationTime",
|
|
23
|
+
};
|
|
24
|
+
export const SortOrder = {
|
|
25
|
+
ASCENDING: "Ascending",
|
|
26
|
+
DESCENDING: "Descending",
|
|
27
|
+
};
|
|
12
28
|
export const AgreementStatus = {
|
|
13
29
|
AVAILABLE: "AVAILABLE",
|
|
14
30
|
ERROR: "ERROR",
|
|
@@ -96,10 +112,6 @@ export const CustomModelDeploymentUpdateStatus = {
|
|
|
96
112
|
export const SortModelsBy = {
|
|
97
113
|
CREATION_TIME: "CreationTime",
|
|
98
114
|
};
|
|
99
|
-
export const SortOrder = {
|
|
100
|
-
ASCENDING: "Ascending",
|
|
101
|
-
DESCENDING: "Descending",
|
|
102
|
-
};
|
|
103
115
|
export const ReasoningEffort = {
|
|
104
116
|
HIGH: "high",
|
|
105
117
|
LOW: "low",
|
|
@@ -172,9 +184,6 @@ export const EvaluationJobType = {
|
|
|
172
184
|
AUTOMATED: "Automated",
|
|
173
185
|
HUMAN: "Human",
|
|
174
186
|
};
|
|
175
|
-
export const SortJobsBy = {
|
|
176
|
-
CREATION_TIME: "CreationTime",
|
|
177
|
-
};
|
|
178
187
|
export const GuardrailContentFilterAction = {
|
|
179
188
|
BLOCK: "BLOCK",
|
|
180
189
|
NONE: "NONE",
|
package/dist-es/models/errors.js
CHANGED
|
@@ -23,18 +23,6 @@ export class InternalServerException extends __BaseException {
|
|
|
23
23
|
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
export class ResourceNotFoundException extends __BaseException {
|
|
27
|
-
name = "ResourceNotFoundException";
|
|
28
|
-
$fault = "client";
|
|
29
|
-
constructor(opts) {
|
|
30
|
-
super({
|
|
31
|
-
name: "ResourceNotFoundException",
|
|
32
|
-
$fault: "client",
|
|
33
|
-
...opts,
|
|
34
|
-
});
|
|
35
|
-
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
26
|
export class ThrottlingException extends __BaseException {
|
|
39
27
|
name = "ThrottlingException";
|
|
40
28
|
$fault = "client";
|
|
@@ -71,6 +59,18 @@ export class ConflictException extends __BaseException {
|
|
|
71
59
|
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
72
60
|
}
|
|
73
61
|
}
|
|
62
|
+
export class ResourceNotFoundException extends __BaseException {
|
|
63
|
+
name = "ResourceNotFoundException";
|
|
64
|
+
$fault = "client";
|
|
65
|
+
constructor(opts) {
|
|
66
|
+
super({
|
|
67
|
+
name: "ResourceNotFoundException",
|
|
68
|
+
$fault: "client",
|
|
69
|
+
...opts,
|
|
70
|
+
});
|
|
71
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
74
|
export class ServiceQuotaExceededException extends __BaseException {
|
|
75
75
|
name = "ServiceQuotaExceededException";
|
|
76
76
|
$fault = "client";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { BedrockClient } from "../BedrockClient";
|
|
3
|
+
import { ListAdvancedPromptOptimizationJobsCommand, } from "../commands/ListAdvancedPromptOptimizationJobsCommand";
|
|
4
|
+
export const paginateListAdvancedPromptOptimizationJobs = createPaginator(BedrockClient, ListAdvancedPromptOptimizationJobsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from "./Interfaces";
|
|
2
|
+
export * from "./ListAdvancedPromptOptimizationJobsPaginator";
|
|
2
3
|
export * from "./ListAutomatedReasoningPoliciesPaginator";
|
|
3
4
|
export * from "./ListAutomatedReasoningPolicyBuildWorkflowsPaginator";
|
|
4
5
|
export * from "./ListAutomatedReasoningPolicyTestCasesPaginator";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import packageInfo from "../package.json";
|
|
2
2
|
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
3
|
-
import { createDefaultUserAgentProvider } from "@aws-sdk/
|
|
3
|
+
import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
|
|
4
4
|
import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
|
|
5
5
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
|
|
6
6
|
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/core/retry";
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import packageInfo from "../package.json";
|
|
2
|
-
import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core/client";
|
|
2
|
+
import { createDefaultUserAgentProvider, emitWarningIfUnsupportedVersion as awsCheckVersion, NODE_APP_ID_CONFIG_OPTIONS, } from "@aws-sdk/core/client";
|
|
3
3
|
import { AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } from "@aws-sdk/core/httpAuthSchemes";
|
|
4
4
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
5
5
|
import { fromEnvSigningName, nodeProvider } from "@aws-sdk/token-providers";
|
|
6
|
-
import { createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS } from "@aws-sdk/util-user-agent-node";
|
|
7
6
|
import { HttpBearerAuthSigner } from "@smithy/core";
|
|
8
7
|
import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
|
|
9
8
|
import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration
|
|
1
|
+
import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration } from "@aws-sdk/core/client";
|
|
2
2
|
import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/core/client";
|
|
3
3
|
import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/core/protocols";
|
|
4
4
|
import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
|