@aws-sdk/client-bedrock 3.422.1 → 3.425.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 +40 -0
- package/dist-cjs/Bedrock.js +10 -0
- package/dist-cjs/commands/CreateProvisionedModelThroughputCommand.js +51 -0
- package/dist-cjs/commands/DeleteProvisionedModelThroughputCommand.js +51 -0
- package/dist-cjs/commands/GetProvisionedModelThroughputCommand.js +51 -0
- package/dist-cjs/commands/ListProvisionedModelThroughputsCommand.js +51 -0
- package/dist-cjs/commands/UpdateProvisionedModelThroughputCommand.js +51 -0
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/models/models_0.js +25 -12
- package/dist-cjs/pagination/ListProvisionedModelThroughputsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +386 -1
- package/dist-es/Bedrock.js +10 -0
- package/dist-es/commands/CreateProvisionedModelThroughputCommand.js +47 -0
- package/dist-es/commands/DeleteProvisionedModelThroughputCommand.js +47 -0
- package/dist-es/commands/GetProvisionedModelThroughputCommand.js +47 -0
- package/dist-es/commands/ListProvisionedModelThroughputsCommand.js +47 -0
- package/dist-es/commands/UpdateProvisionedModelThroughputCommand.js +47 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/models/models_0.js +22 -9
- package/dist-es/pagination/ListProvisionedModelThroughputsPaginator.js +25 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +376 -1
- package/dist-types/Bedrock.d.ts +35 -0
- package/dist-types/BedrockClient.d.ts +9 -2
- package/dist-types/commands/CreateModelCustomizationJobCommand.d.ts +8 -8
- package/dist-types/commands/CreateProvisionedModelThroughputCommand.d.ts +106 -0
- package/dist-types/commands/DeleteProvisionedModelThroughputCommand.d.ts +89 -0
- package/dist-types/commands/GetModelCustomizationJobCommand.d.ts +1 -1
- package/dist-types/commands/GetProvisionedModelThroughputCommand.d.ts +100 -0
- package/dist-types/commands/ListModelCustomizationJobsCommand.d.ts +1 -1
- package/dist-types/commands/ListProvisionedModelThroughputsCommand.d.ts +109 -0
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateProvisionedModelThroughputCommand.d.ts +88 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/models_0.d.ts +370 -36
- package/dist-types/pagination/ListProvisionedModelThroughputsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +45 -0
- package/dist-types/ts3.4/Bedrock.d.ts +363 -115
- package/dist-types/ts3.4/BedrockClient.d.ts +238 -182
- package/dist-types/ts3.4/commands/CreateModelCustomizationJobCommand.d.ts +42 -149
- package/dist-types/ts3.4/commands/CreateProvisionedModelThroughputCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteCustomModelCommand.d.ts +39 -89
- package/dist-types/ts3.4/commands/DeleteModelInvocationLoggingConfigurationCommand.d.ts +42 -78
- package/dist-types/ts3.4/commands/DeleteProvisionedModelThroughputCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetCustomModelCommand.d.ts +38 -118
- package/dist-types/ts3.4/commands/GetFoundationModelCommand.d.ts +39 -106
- package/dist-types/ts3.4/commands/GetModelCustomizationJobCommand.d.ts +42 -133
- package/dist-types/ts3.4/commands/GetModelInvocationLoggingConfigurationCommand.d.ts +42 -96
- package/dist-types/ts3.4/commands/GetProvisionedModelThroughputCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListCustomModelsCommand.d.ts +38 -103
- package/dist-types/ts3.4/commands/ListFoundationModelsCommand.d.ts +42 -108
- package/dist-types/ts3.4/commands/ListModelCustomizationJobsCommand.d.ts +42 -107
- package/dist-types/ts3.4/commands/ListProvisionedModelThroughputsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +39 -94
- package/dist-types/ts3.4/commands/PutModelInvocationLoggingConfigurationCommand.d.ts +42 -99
- package/dist-types/ts3.4/commands/StopModelCustomizationJobCommand.d.ts +42 -89
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +35 -96
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +38 -89
- package/dist-types/ts3.4/commands/UpdateProvisionedModelThroughputCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +20 -15
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +33 -22
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -5
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -2
- package/dist-types/ts3.4/extensionConfiguration.d.ts +7 -8
- package/dist-types/ts3.4/index.d.ts +7 -12
- package/dist-types/ts3.4/models/BedrockServiceException.d.ts +8 -13
- package/dist-types/ts3.4/models/index.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +412 -1144
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -8
- package/dist-types/ts3.4/pagination/ListCustomModelsPaginator.d.ts +11 -7
- package/dist-types/ts3.4/pagination/ListModelCustomizationJobsPaginator.d.ts +11 -7
- package/dist-types/ts3.4/pagination/ListProvisionedModelThroughputsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +4 -3
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +245 -137
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +97 -46
- package/dist-types/ts3.4/runtimeConfig.d.ts +97 -46
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +88 -45
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +19 -19
- package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -17
- package/package.json +31 -31
package/README.md
CHANGED
|
@@ -210,6 +210,14 @@ CreateModelCustomizationJob
|
|
|
210
210
|
|
|
211
211
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-bedrock/classes/createmodelcustomizationjobcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-bedrock/interfaces/createmodelcustomizationjobcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-bedrock/interfaces/createmodelcustomizationjobcommandoutput.html)
|
|
212
212
|
|
|
213
|
+
</details>
|
|
214
|
+
<details>
|
|
215
|
+
<summary>
|
|
216
|
+
CreateProvisionedModelThroughput
|
|
217
|
+
</summary>
|
|
218
|
+
|
|
219
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-bedrock/classes/createprovisionedmodelthroughputcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-bedrock/interfaces/createprovisionedmodelthroughputcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-bedrock/interfaces/createprovisionedmodelthroughputcommandoutput.html)
|
|
220
|
+
|
|
213
221
|
</details>
|
|
214
222
|
<details>
|
|
215
223
|
<summary>
|
|
@@ -226,6 +234,14 @@ DeleteModelInvocationLoggingConfiguration
|
|
|
226
234
|
|
|
227
235
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-bedrock/classes/deletemodelinvocationloggingconfigurationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-bedrock/interfaces/deletemodelinvocationloggingconfigurationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-bedrock/interfaces/deletemodelinvocationloggingconfigurationcommandoutput.html)
|
|
228
236
|
|
|
237
|
+
</details>
|
|
238
|
+
<details>
|
|
239
|
+
<summary>
|
|
240
|
+
DeleteProvisionedModelThroughput
|
|
241
|
+
</summary>
|
|
242
|
+
|
|
243
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-bedrock/classes/deleteprovisionedmodelthroughputcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-bedrock/interfaces/deleteprovisionedmodelthroughputcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-bedrock/interfaces/deleteprovisionedmodelthroughputcommandoutput.html)
|
|
244
|
+
|
|
229
245
|
</details>
|
|
230
246
|
<details>
|
|
231
247
|
<summary>
|
|
@@ -258,6 +274,14 @@ GetModelInvocationLoggingConfiguration
|
|
|
258
274
|
|
|
259
275
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-bedrock/classes/getmodelinvocationloggingconfigurationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-bedrock/interfaces/getmodelinvocationloggingconfigurationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-bedrock/interfaces/getmodelinvocationloggingconfigurationcommandoutput.html)
|
|
260
276
|
|
|
277
|
+
</details>
|
|
278
|
+
<details>
|
|
279
|
+
<summary>
|
|
280
|
+
GetProvisionedModelThroughput
|
|
281
|
+
</summary>
|
|
282
|
+
|
|
283
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-bedrock/classes/getprovisionedmodelthroughputcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-bedrock/interfaces/getprovisionedmodelthroughputcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-bedrock/interfaces/getprovisionedmodelthroughputcommandoutput.html)
|
|
284
|
+
|
|
261
285
|
</details>
|
|
262
286
|
<details>
|
|
263
287
|
<summary>
|
|
@@ -282,6 +306,14 @@ ListModelCustomizationJobs
|
|
|
282
306
|
|
|
283
307
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-bedrock/classes/listmodelcustomizationjobscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-bedrock/interfaces/listmodelcustomizationjobscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-bedrock/interfaces/listmodelcustomizationjobscommandoutput.html)
|
|
284
308
|
|
|
309
|
+
</details>
|
|
310
|
+
<details>
|
|
311
|
+
<summary>
|
|
312
|
+
ListProvisionedModelThroughputs
|
|
313
|
+
</summary>
|
|
314
|
+
|
|
315
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-bedrock/classes/listprovisionedmodelthroughputscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-bedrock/interfaces/listprovisionedmodelthroughputscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-bedrock/interfaces/listprovisionedmodelthroughputscommandoutput.html)
|
|
316
|
+
|
|
285
317
|
</details>
|
|
286
318
|
<details>
|
|
287
319
|
<summary>
|
|
@@ -323,3 +355,11 @@ UntagResource
|
|
|
323
355
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-bedrock/classes/untagresourcecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-bedrock/interfaces/untagresourcecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-bedrock/interfaces/untagresourcecommandoutput.html)
|
|
324
356
|
|
|
325
357
|
</details>
|
|
358
|
+
<details>
|
|
359
|
+
<summary>
|
|
360
|
+
UpdateProvisionedModelThroughput
|
|
361
|
+
</summary>
|
|
362
|
+
|
|
363
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-bedrock/classes/updateprovisionedmodelthroughputcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-bedrock/interfaces/updateprovisionedmodelthroughputcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-bedrock/interfaces/updateprovisionedmodelthroughputcommandoutput.html)
|
|
364
|
+
|
|
365
|
+
</details>
|
package/dist-cjs/Bedrock.js
CHANGED
|
@@ -4,36 +4,46 @@ exports.Bedrock = void 0;
|
|
|
4
4
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
5
|
const BedrockClient_1 = require("./BedrockClient");
|
|
6
6
|
const CreateModelCustomizationJobCommand_1 = require("./commands/CreateModelCustomizationJobCommand");
|
|
7
|
+
const CreateProvisionedModelThroughputCommand_1 = require("./commands/CreateProvisionedModelThroughputCommand");
|
|
7
8
|
const DeleteCustomModelCommand_1 = require("./commands/DeleteCustomModelCommand");
|
|
8
9
|
const DeleteModelInvocationLoggingConfigurationCommand_1 = require("./commands/DeleteModelInvocationLoggingConfigurationCommand");
|
|
10
|
+
const DeleteProvisionedModelThroughputCommand_1 = require("./commands/DeleteProvisionedModelThroughputCommand");
|
|
9
11
|
const GetCustomModelCommand_1 = require("./commands/GetCustomModelCommand");
|
|
10
12
|
const GetFoundationModelCommand_1 = require("./commands/GetFoundationModelCommand");
|
|
11
13
|
const GetModelCustomizationJobCommand_1 = require("./commands/GetModelCustomizationJobCommand");
|
|
12
14
|
const GetModelInvocationLoggingConfigurationCommand_1 = require("./commands/GetModelInvocationLoggingConfigurationCommand");
|
|
15
|
+
const GetProvisionedModelThroughputCommand_1 = require("./commands/GetProvisionedModelThroughputCommand");
|
|
13
16
|
const ListCustomModelsCommand_1 = require("./commands/ListCustomModelsCommand");
|
|
14
17
|
const ListFoundationModelsCommand_1 = require("./commands/ListFoundationModelsCommand");
|
|
15
18
|
const ListModelCustomizationJobsCommand_1 = require("./commands/ListModelCustomizationJobsCommand");
|
|
19
|
+
const ListProvisionedModelThroughputsCommand_1 = require("./commands/ListProvisionedModelThroughputsCommand");
|
|
16
20
|
const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
|
|
17
21
|
const PutModelInvocationLoggingConfigurationCommand_1 = require("./commands/PutModelInvocationLoggingConfigurationCommand");
|
|
18
22
|
const StopModelCustomizationJobCommand_1 = require("./commands/StopModelCustomizationJobCommand");
|
|
19
23
|
const TagResourceCommand_1 = require("./commands/TagResourceCommand");
|
|
20
24
|
const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
|
|
25
|
+
const UpdateProvisionedModelThroughputCommand_1 = require("./commands/UpdateProvisionedModelThroughputCommand");
|
|
21
26
|
const commands = {
|
|
22
27
|
CreateModelCustomizationJobCommand: CreateModelCustomizationJobCommand_1.CreateModelCustomizationJobCommand,
|
|
28
|
+
CreateProvisionedModelThroughputCommand: CreateProvisionedModelThroughputCommand_1.CreateProvisionedModelThroughputCommand,
|
|
23
29
|
DeleteCustomModelCommand: DeleteCustomModelCommand_1.DeleteCustomModelCommand,
|
|
24
30
|
DeleteModelInvocationLoggingConfigurationCommand: DeleteModelInvocationLoggingConfigurationCommand_1.DeleteModelInvocationLoggingConfigurationCommand,
|
|
31
|
+
DeleteProvisionedModelThroughputCommand: DeleteProvisionedModelThroughputCommand_1.DeleteProvisionedModelThroughputCommand,
|
|
25
32
|
GetCustomModelCommand: GetCustomModelCommand_1.GetCustomModelCommand,
|
|
26
33
|
GetFoundationModelCommand: GetFoundationModelCommand_1.GetFoundationModelCommand,
|
|
27
34
|
GetModelCustomizationJobCommand: GetModelCustomizationJobCommand_1.GetModelCustomizationJobCommand,
|
|
28
35
|
GetModelInvocationLoggingConfigurationCommand: GetModelInvocationLoggingConfigurationCommand_1.GetModelInvocationLoggingConfigurationCommand,
|
|
36
|
+
GetProvisionedModelThroughputCommand: GetProvisionedModelThroughputCommand_1.GetProvisionedModelThroughputCommand,
|
|
29
37
|
ListCustomModelsCommand: ListCustomModelsCommand_1.ListCustomModelsCommand,
|
|
30
38
|
ListFoundationModelsCommand: ListFoundationModelsCommand_1.ListFoundationModelsCommand,
|
|
31
39
|
ListModelCustomizationJobsCommand: ListModelCustomizationJobsCommand_1.ListModelCustomizationJobsCommand,
|
|
40
|
+
ListProvisionedModelThroughputsCommand: ListProvisionedModelThroughputsCommand_1.ListProvisionedModelThroughputsCommand,
|
|
32
41
|
ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
|
|
33
42
|
PutModelInvocationLoggingConfigurationCommand: PutModelInvocationLoggingConfigurationCommand_1.PutModelInvocationLoggingConfigurationCommand,
|
|
34
43
|
StopModelCustomizationJobCommand: StopModelCustomizationJobCommand_1.StopModelCustomizationJobCommand,
|
|
35
44
|
TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
|
|
36
45
|
UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
|
|
46
|
+
UpdateProvisionedModelThroughputCommand: UpdateProvisionedModelThroughputCommand_1.UpdateProvisionedModelThroughputCommand,
|
|
37
47
|
};
|
|
38
48
|
class Bedrock extends BedrockClient_1.BedrockClient {
|
|
39
49
|
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateProvisionedModelThroughputCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const types_1 = require("@smithy/types");
|
|
9
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
|
+
class CreateProvisionedModelThroughputCommand extends smithy_client_1.Command {
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
constructor(input) {
|
|
20
|
+
super();
|
|
21
|
+
this.input = input;
|
|
22
|
+
}
|
|
23
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
24
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
25
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreateProvisionedModelThroughputCommand.getEndpointParameterInstructions()));
|
|
26
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
27
|
+
const { logger } = configuration;
|
|
28
|
+
const clientName = "BedrockClient";
|
|
29
|
+
const commandName = "CreateProvisionedModelThroughputCommand";
|
|
30
|
+
const handlerExecutionContext = {
|
|
31
|
+
logger,
|
|
32
|
+
clientName,
|
|
33
|
+
commandName,
|
|
34
|
+
inputFilterSensitiveLog: (_) => _,
|
|
35
|
+
outputFilterSensitiveLog: (_) => _,
|
|
36
|
+
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
37
|
+
service: "AmazonBedrockControlPlaneService",
|
|
38
|
+
operation: "CreateProvisionedModelThroughput",
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
const { requestHandler } = configuration;
|
|
42
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
43
|
+
}
|
|
44
|
+
serialize(input, context) {
|
|
45
|
+
return (0, Aws_restJson1_1.se_CreateProvisionedModelThroughputCommand)(input, context);
|
|
46
|
+
}
|
|
47
|
+
deserialize(output, context) {
|
|
48
|
+
return (0, Aws_restJson1_1.de_CreateProvisionedModelThroughputCommand)(output, context);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.CreateProvisionedModelThroughputCommand = CreateProvisionedModelThroughputCommand;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteProvisionedModelThroughputCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const types_1 = require("@smithy/types");
|
|
9
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
|
+
class DeleteProvisionedModelThroughputCommand extends smithy_client_1.Command {
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
constructor(input) {
|
|
20
|
+
super();
|
|
21
|
+
this.input = input;
|
|
22
|
+
}
|
|
23
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
24
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
25
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteProvisionedModelThroughputCommand.getEndpointParameterInstructions()));
|
|
26
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
27
|
+
const { logger } = configuration;
|
|
28
|
+
const clientName = "BedrockClient";
|
|
29
|
+
const commandName = "DeleteProvisionedModelThroughputCommand";
|
|
30
|
+
const handlerExecutionContext = {
|
|
31
|
+
logger,
|
|
32
|
+
clientName,
|
|
33
|
+
commandName,
|
|
34
|
+
inputFilterSensitiveLog: (_) => _,
|
|
35
|
+
outputFilterSensitiveLog: (_) => _,
|
|
36
|
+
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
37
|
+
service: "AmazonBedrockControlPlaneService",
|
|
38
|
+
operation: "DeleteProvisionedModelThroughput",
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
const { requestHandler } = configuration;
|
|
42
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
43
|
+
}
|
|
44
|
+
serialize(input, context) {
|
|
45
|
+
return (0, Aws_restJson1_1.se_DeleteProvisionedModelThroughputCommand)(input, context);
|
|
46
|
+
}
|
|
47
|
+
deserialize(output, context) {
|
|
48
|
+
return (0, Aws_restJson1_1.de_DeleteProvisionedModelThroughputCommand)(output, context);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.DeleteProvisionedModelThroughputCommand = DeleteProvisionedModelThroughputCommand;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetProvisionedModelThroughputCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const types_1 = require("@smithy/types");
|
|
9
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
|
+
class GetProvisionedModelThroughputCommand extends smithy_client_1.Command {
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
constructor(input) {
|
|
20
|
+
super();
|
|
21
|
+
this.input = input;
|
|
22
|
+
}
|
|
23
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
24
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
25
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetProvisionedModelThroughputCommand.getEndpointParameterInstructions()));
|
|
26
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
27
|
+
const { logger } = configuration;
|
|
28
|
+
const clientName = "BedrockClient";
|
|
29
|
+
const commandName = "GetProvisionedModelThroughputCommand";
|
|
30
|
+
const handlerExecutionContext = {
|
|
31
|
+
logger,
|
|
32
|
+
clientName,
|
|
33
|
+
commandName,
|
|
34
|
+
inputFilterSensitiveLog: (_) => _,
|
|
35
|
+
outputFilterSensitiveLog: (_) => _,
|
|
36
|
+
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
37
|
+
service: "AmazonBedrockControlPlaneService",
|
|
38
|
+
operation: "GetProvisionedModelThroughput",
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
const { requestHandler } = configuration;
|
|
42
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
43
|
+
}
|
|
44
|
+
serialize(input, context) {
|
|
45
|
+
return (0, Aws_restJson1_1.se_GetProvisionedModelThroughputCommand)(input, context);
|
|
46
|
+
}
|
|
47
|
+
deserialize(output, context) {
|
|
48
|
+
return (0, Aws_restJson1_1.de_GetProvisionedModelThroughputCommand)(output, context);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.GetProvisionedModelThroughputCommand = GetProvisionedModelThroughputCommand;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListProvisionedModelThroughputsCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const types_1 = require("@smithy/types");
|
|
9
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
|
+
class ListProvisionedModelThroughputsCommand extends smithy_client_1.Command {
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
constructor(input) {
|
|
20
|
+
super();
|
|
21
|
+
this.input = input;
|
|
22
|
+
}
|
|
23
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
24
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
25
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListProvisionedModelThroughputsCommand.getEndpointParameterInstructions()));
|
|
26
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
27
|
+
const { logger } = configuration;
|
|
28
|
+
const clientName = "BedrockClient";
|
|
29
|
+
const commandName = "ListProvisionedModelThroughputsCommand";
|
|
30
|
+
const handlerExecutionContext = {
|
|
31
|
+
logger,
|
|
32
|
+
clientName,
|
|
33
|
+
commandName,
|
|
34
|
+
inputFilterSensitiveLog: (_) => _,
|
|
35
|
+
outputFilterSensitiveLog: (_) => _,
|
|
36
|
+
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
37
|
+
service: "AmazonBedrockControlPlaneService",
|
|
38
|
+
operation: "ListProvisionedModelThroughputs",
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
const { requestHandler } = configuration;
|
|
42
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
43
|
+
}
|
|
44
|
+
serialize(input, context) {
|
|
45
|
+
return (0, Aws_restJson1_1.se_ListProvisionedModelThroughputsCommand)(input, context);
|
|
46
|
+
}
|
|
47
|
+
deserialize(output, context) {
|
|
48
|
+
return (0, Aws_restJson1_1.de_ListProvisionedModelThroughputsCommand)(output, context);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.ListProvisionedModelThroughputsCommand = ListProvisionedModelThroughputsCommand;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateProvisionedModelThroughputCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const types_1 = require("@smithy/types");
|
|
9
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
|
+
class UpdateProvisionedModelThroughputCommand extends smithy_client_1.Command {
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
constructor(input) {
|
|
20
|
+
super();
|
|
21
|
+
this.input = input;
|
|
22
|
+
}
|
|
23
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
24
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
25
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateProvisionedModelThroughputCommand.getEndpointParameterInstructions()));
|
|
26
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
27
|
+
const { logger } = configuration;
|
|
28
|
+
const clientName = "BedrockClient";
|
|
29
|
+
const commandName = "UpdateProvisionedModelThroughputCommand";
|
|
30
|
+
const handlerExecutionContext = {
|
|
31
|
+
logger,
|
|
32
|
+
clientName,
|
|
33
|
+
commandName,
|
|
34
|
+
inputFilterSensitiveLog: (_) => _,
|
|
35
|
+
outputFilterSensitiveLog: (_) => _,
|
|
36
|
+
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
37
|
+
service: "AmazonBedrockControlPlaneService",
|
|
38
|
+
operation: "UpdateProvisionedModelThroughput",
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
const { requestHandler } = configuration;
|
|
42
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
43
|
+
}
|
|
44
|
+
serialize(input, context) {
|
|
45
|
+
return (0, Aws_restJson1_1.se_UpdateProvisionedModelThroughputCommand)(input, context);
|
|
46
|
+
}
|
|
47
|
+
deserialize(output, context) {
|
|
48
|
+
return (0, Aws_restJson1_1.de_UpdateProvisionedModelThroughputCommand)(output, context);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.UpdateProvisionedModelThroughputCommand = UpdateProvisionedModelThroughputCommand;
|
|
@@ -2,17 +2,22 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./CreateModelCustomizationJobCommand"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./CreateProvisionedModelThroughputCommand"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./DeleteCustomModelCommand"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./DeleteModelInvocationLoggingConfigurationCommand"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./DeleteProvisionedModelThroughputCommand"), exports);
|
|
7
9
|
tslib_1.__exportStar(require("./GetCustomModelCommand"), exports);
|
|
8
10
|
tslib_1.__exportStar(require("./GetFoundationModelCommand"), exports);
|
|
9
11
|
tslib_1.__exportStar(require("./GetModelCustomizationJobCommand"), exports);
|
|
10
12
|
tslib_1.__exportStar(require("./GetModelInvocationLoggingConfigurationCommand"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./GetProvisionedModelThroughputCommand"), exports);
|
|
11
14
|
tslib_1.__exportStar(require("./ListCustomModelsCommand"), exports);
|
|
12
15
|
tslib_1.__exportStar(require("./ListFoundationModelsCommand"), exports);
|
|
13
16
|
tslib_1.__exportStar(require("./ListModelCustomizationJobsCommand"), exports);
|
|
17
|
+
tslib_1.__exportStar(require("./ListProvisionedModelThroughputsCommand"), exports);
|
|
14
18
|
tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
|
|
15
19
|
tslib_1.__exportStar(require("./PutModelInvocationLoggingConfigurationCommand"), exports);
|
|
16
20
|
tslib_1.__exportStar(require("./StopModelCustomizationJobCommand"), exports);
|
|
17
21
|
tslib_1.__exportStar(require("./TagResourceCommand"), exports);
|
|
18
22
|
tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
|
|
23
|
+
tslib_1.__exportStar(require("./UpdateProvisionedModelThroughputCommand"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FineTuningJobStatus = exports.SortJobsBy = exports.ModelCustomizationJobStatus = exports.
|
|
3
|
+
exports.FineTuningJobStatus = exports.SortJobsBy = exports.ModelCustomizationJobStatus = exports.SortByProvisionedModels = exports.ProvisionedModelStatus = exports.TooManyTagsException = exports.ServiceQuotaExceededException = exports.CommitmentDuration = exports.SortOrder = exports.SortModelsBy = exports.ModelModality = exports.InferenceType = exports.ModelCustomization = exports.ResourceNotFoundException = exports.ConflictException = exports.ValidationException = exports.ThrottlingException = exports.InternalServerException = exports.AccessDeniedException = void 0;
|
|
4
4
|
const BedrockServiceException_1 = require("./BedrockServiceException");
|
|
5
5
|
class AccessDeniedException extends BedrockServiceException_1.BedrockServiceException {
|
|
6
6
|
constructor(opts) {
|
|
@@ -99,33 +99,46 @@ exports.SortOrder = {
|
|
|
99
99
|
ASCENDING: "Ascending",
|
|
100
100
|
DESCENDING: "Descending",
|
|
101
101
|
};
|
|
102
|
-
|
|
102
|
+
exports.CommitmentDuration = {
|
|
103
|
+
ONE_MONTH: "OneMonth",
|
|
104
|
+
SIX_MONTHS: "SixMonths",
|
|
105
|
+
};
|
|
106
|
+
class ServiceQuotaExceededException extends BedrockServiceException_1.BedrockServiceException {
|
|
103
107
|
constructor(opts) {
|
|
104
108
|
super({
|
|
105
|
-
name: "
|
|
109
|
+
name: "ServiceQuotaExceededException",
|
|
106
110
|
$fault: "client",
|
|
107
111
|
...opts,
|
|
108
112
|
});
|
|
109
|
-
this.name = "
|
|
113
|
+
this.name = "ServiceQuotaExceededException";
|
|
110
114
|
this.$fault = "client";
|
|
111
|
-
Object.setPrototypeOf(this,
|
|
112
|
-
this.resourceName = opts.resourceName;
|
|
115
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
113
116
|
}
|
|
114
117
|
}
|
|
115
|
-
exports.
|
|
116
|
-
class
|
|
118
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
119
|
+
class TooManyTagsException extends BedrockServiceException_1.BedrockServiceException {
|
|
117
120
|
constructor(opts) {
|
|
118
121
|
super({
|
|
119
|
-
name: "
|
|
122
|
+
name: "TooManyTagsException",
|
|
120
123
|
$fault: "client",
|
|
121
124
|
...opts,
|
|
122
125
|
});
|
|
123
|
-
this.name = "
|
|
126
|
+
this.name = "TooManyTagsException";
|
|
124
127
|
this.$fault = "client";
|
|
125
|
-
Object.setPrototypeOf(this,
|
|
128
|
+
Object.setPrototypeOf(this, TooManyTagsException.prototype);
|
|
129
|
+
this.resourceName = opts.resourceName;
|
|
126
130
|
}
|
|
127
131
|
}
|
|
128
|
-
exports.
|
|
132
|
+
exports.TooManyTagsException = TooManyTagsException;
|
|
133
|
+
exports.ProvisionedModelStatus = {
|
|
134
|
+
CREATING: "Creating",
|
|
135
|
+
FAILED: "Failed",
|
|
136
|
+
IN_SERVICE: "InService",
|
|
137
|
+
UPDATING: "Updating",
|
|
138
|
+
};
|
|
139
|
+
exports.SortByProvisionedModels = {
|
|
140
|
+
CREATION_TIME: "CreationTime",
|
|
141
|
+
};
|
|
129
142
|
exports.ModelCustomizationJobStatus = {
|
|
130
143
|
COMPLETED: "Completed",
|
|
131
144
|
FAILED: "Failed",
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListProvisionedModelThroughputs = void 0;
|
|
4
|
+
const BedrockClient_1 = require("../BedrockClient");
|
|
5
|
+
const ListProvisionedModelThroughputsCommand_1 = require("../commands/ListProvisionedModelThroughputsCommand");
|
|
6
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
7
|
+
return await client.send(new ListProvisionedModelThroughputsCommand_1.ListProvisionedModelThroughputsCommand(input), ...args);
|
|
8
|
+
};
|
|
9
|
+
async function* paginateListProvisionedModelThroughputs(config, input, ...additionalArguments) {
|
|
10
|
+
let token = config.startingToken || undefined;
|
|
11
|
+
let hasNext = true;
|
|
12
|
+
let page;
|
|
13
|
+
while (hasNext) {
|
|
14
|
+
input.nextToken = token;
|
|
15
|
+
input["maxResults"] = config.pageSize;
|
|
16
|
+
if (config.client instanceof BedrockClient_1.BedrockClient) {
|
|
17
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
throw new Error("Invalid client, expected Bedrock | BedrockClient");
|
|
21
|
+
}
|
|
22
|
+
yield page;
|
|
23
|
+
const prevToken = token;
|
|
24
|
+
token = page.nextToken;
|
|
25
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
+
}
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
exports.paginateListProvisionedModelThroughputs = paginateListProvisionedModelThroughputs;
|
|
@@ -4,3 +4,4 @@ const tslib_1 = require("tslib");
|
|
|
4
4
|
tslib_1.__exportStar(require("./Interfaces"), exports);
|
|
5
5
|
tslib_1.__exportStar(require("./ListCustomModelsPaginator"), exports);
|
|
6
6
|
tslib_1.__exportStar(require("./ListModelCustomizationJobsPaginator"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./ListProvisionedModelThroughputsPaginator"), exports);
|