@aws-sdk/client-bedrock 3.477.0 → 3.481.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/dist-cjs/commands/CreateModelCustomizationJobCommand.js +18 -41
- package/dist-cjs/commands/CreateProvisionedModelThroughputCommand.js +18 -41
- package/dist-cjs/commands/DeleteCustomModelCommand.js +18 -41
- package/dist-cjs/commands/DeleteModelInvocationLoggingConfigurationCommand.js +18 -41
- package/dist-cjs/commands/DeleteProvisionedModelThroughputCommand.js +18 -41
- package/dist-cjs/commands/GetCustomModelCommand.js +18 -41
- package/dist-cjs/commands/GetFoundationModelCommand.js +18 -41
- package/dist-cjs/commands/GetModelCustomizationJobCommand.js +18 -41
- package/dist-cjs/commands/GetModelInvocationLoggingConfigurationCommand.js +18 -41
- package/dist-cjs/commands/GetProvisionedModelThroughputCommand.js +18 -41
- package/dist-cjs/commands/ListCustomModelsCommand.js +18 -41
- package/dist-cjs/commands/ListFoundationModelsCommand.js +18 -41
- package/dist-cjs/commands/ListModelCustomizationJobsCommand.js +18 -41
- package/dist-cjs/commands/ListProvisionedModelThroughputsCommand.js +18 -41
- package/dist-cjs/commands/ListTagsForResourceCommand.js +18 -41
- package/dist-cjs/commands/PutModelInvocationLoggingConfigurationCommand.js +18 -41
- package/dist-cjs/commands/StopModelCustomizationJobCommand.js +18 -41
- package/dist-cjs/commands/TagResourceCommand.js +18 -41
- package/dist-cjs/commands/UntagResourceCommand.js +18 -41
- package/dist-cjs/commands/UpdateProvisionedModelThroughputCommand.js +18 -41
- package/dist-cjs/endpoint/EndpointParameters.js +7 -1
- package/dist-cjs/pagination/ListCustomModelsPaginator.js +2 -24
- package/dist-cjs/pagination/ListModelCustomizationJobsPaginator.js +2 -24
- package/dist-cjs/pagination/ListProvisionedModelThroughputsPaginator.js +2 -24
- package/dist-es/commands/CreateModelCustomizationJobCommand.js +18 -41
- package/dist-es/commands/CreateProvisionedModelThroughputCommand.js +18 -41
- package/dist-es/commands/DeleteCustomModelCommand.js +18 -41
- package/dist-es/commands/DeleteModelInvocationLoggingConfigurationCommand.js +18 -41
- package/dist-es/commands/DeleteProvisionedModelThroughputCommand.js +18 -41
- package/dist-es/commands/GetCustomModelCommand.js +18 -41
- package/dist-es/commands/GetFoundationModelCommand.js +18 -41
- package/dist-es/commands/GetModelCustomizationJobCommand.js +18 -41
- package/dist-es/commands/GetModelInvocationLoggingConfigurationCommand.js +18 -41
- package/dist-es/commands/GetProvisionedModelThroughputCommand.js +18 -41
- package/dist-es/commands/ListCustomModelsCommand.js +18 -41
- package/dist-es/commands/ListFoundationModelsCommand.js +18 -41
- package/dist-es/commands/ListModelCustomizationJobsCommand.js +18 -41
- package/dist-es/commands/ListProvisionedModelThroughputsCommand.js +18 -41
- package/dist-es/commands/ListTagsForResourceCommand.js +18 -41
- package/dist-es/commands/PutModelInvocationLoggingConfigurationCommand.js +18 -41
- package/dist-es/commands/StopModelCustomizationJobCommand.js +18 -41
- package/dist-es/commands/TagResourceCommand.js +18 -41
- package/dist-es/commands/UntagResourceCommand.js +18 -41
- package/dist-es/commands/UpdateProvisionedModelThroughputCommand.js +18 -41
- package/dist-es/endpoint/EndpointParameters.js +6 -0
- package/dist-es/pagination/ListCustomModelsPaginator.js +2 -23
- package/dist-es/pagination/ListModelCustomizationJobsPaginator.js +2 -23
- package/dist-es/pagination/ListProvisionedModelThroughputsPaginator.js +2 -23
- package/dist-types/commands/CreateModelCustomizationJobCommand.d.ts +6 -21
- package/dist-types/commands/CreateProvisionedModelThroughputCommand.d.ts +6 -21
- package/dist-types/commands/DeleteCustomModelCommand.d.ts +6 -21
- package/dist-types/commands/DeleteModelInvocationLoggingConfigurationCommand.d.ts +6 -21
- package/dist-types/commands/DeleteProvisionedModelThroughputCommand.d.ts +6 -21
- package/dist-types/commands/GetCustomModelCommand.d.ts +6 -21
- package/dist-types/commands/GetFoundationModelCommand.d.ts +6 -21
- package/dist-types/commands/GetModelCustomizationJobCommand.d.ts +6 -21
- package/dist-types/commands/GetModelInvocationLoggingConfigurationCommand.d.ts +6 -21
- package/dist-types/commands/GetProvisionedModelThroughputCommand.d.ts +6 -21
- package/dist-types/commands/ListCustomModelsCommand.d.ts +6 -21
- package/dist-types/commands/ListFoundationModelsCommand.d.ts +6 -21
- package/dist-types/commands/ListModelCustomizationJobsCommand.d.ts +6 -21
- package/dist-types/commands/ListProvisionedModelThroughputsCommand.d.ts +6 -21
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -21
- package/dist-types/commands/PutModelInvocationLoggingConfigurationCommand.d.ts +6 -21
- package/dist-types/commands/StopModelCustomizationJobCommand.d.ts +6 -21
- package/dist-types/commands/TagResourceCommand.d.ts +6 -21
- package/dist-types/commands/UntagResourceCommand.d.ts +6 -21
- package/dist-types/commands/UpdateProvisionedModelThroughputCommand.d.ts +6 -21
- package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
- package/dist-types/pagination/ListCustomModelsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListModelCustomizationJobsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListProvisionedModelThroughputsPaginator.d.ts +1 -1
- package/dist-types/ts3.4/commands/CreateModelCustomizationJobCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/CreateProvisionedModelThroughputCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/DeleteCustomModelCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/DeleteModelInvocationLoggingConfigurationCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/DeleteProvisionedModelThroughputCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/GetCustomModelCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/GetFoundationModelCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/GetModelCustomizationJobCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/GetModelInvocationLoggingConfigurationCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/GetProvisionedModelThroughputCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/ListCustomModelsCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ListFoundationModelsCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/ListModelCustomizationJobsCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/ListProvisionedModelThroughputsCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/PutModelInvocationLoggingConfigurationCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/StopModelCustomizationJobCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/UpdateProvisionedModelThroughputCommand.d.ts +12 -24
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
- package/dist-types/ts3.4/pagination/ListCustomModelsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListModelCustomizationJobsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListProvisionedModelThroughputsPaginator.d.ts +3 -3
- package/package.json +11 -11
|
@@ -1,47 +1,24 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_ListTagsForResourceCommand, se_ListTagsForResourceCommand } from "../protocols/Aws_restJson1";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class ListTagsForResourceCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "BedrockClient";
|
|
26
|
-
const commandName = "ListTagsForResourceCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "AmazonBedrockControlPlaneService",
|
|
35
|
-
operation: "ListTagsForResource",
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
const { requestHandler } = configuration;
|
|
39
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
-
}
|
|
41
|
-
serialize(input, context) {
|
|
42
|
-
return se_ListTagsForResourceCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_ListTagsForResourceCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class ListTagsForResourceCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("AmazonBedrockControlPlaneService", "ListTagsForResource", {})
|
|
19
|
+
.n("BedrockClient", "ListTagsForResourceCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_ListTagsForResourceCommand)
|
|
22
|
+
.de(de_ListTagsForResourceCommand)
|
|
23
|
+
.build() {
|
|
47
24
|
}
|
|
@@ -1,47 +1,24 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_PutModelInvocationLoggingConfigurationCommand, se_PutModelInvocationLoggingConfigurationCommand, } from "../protocols/Aws_restJson1";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class PutModelInvocationLoggingConfigurationCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "BedrockClient";
|
|
26
|
-
const commandName = "PutModelInvocationLoggingConfigurationCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "AmazonBedrockControlPlaneService",
|
|
35
|
-
operation: "PutModelInvocationLoggingConfiguration",
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
const { requestHandler } = configuration;
|
|
39
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
-
}
|
|
41
|
-
serialize(input, context) {
|
|
42
|
-
return se_PutModelInvocationLoggingConfigurationCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_PutModelInvocationLoggingConfigurationCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class PutModelInvocationLoggingConfigurationCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("AmazonBedrockControlPlaneService", "PutModelInvocationLoggingConfiguration", {})
|
|
19
|
+
.n("BedrockClient", "PutModelInvocationLoggingConfigurationCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_PutModelInvocationLoggingConfigurationCommand)
|
|
22
|
+
.de(de_PutModelInvocationLoggingConfigurationCommand)
|
|
23
|
+
.build() {
|
|
47
24
|
}
|
|
@@ -1,47 +1,24 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_StopModelCustomizationJobCommand, se_StopModelCustomizationJobCommand } from "../protocols/Aws_restJson1";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class StopModelCustomizationJobCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "BedrockClient";
|
|
26
|
-
const commandName = "StopModelCustomizationJobCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "AmazonBedrockControlPlaneService",
|
|
35
|
-
operation: "StopModelCustomizationJob",
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
const { requestHandler } = configuration;
|
|
39
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
-
}
|
|
41
|
-
serialize(input, context) {
|
|
42
|
-
return se_StopModelCustomizationJobCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_StopModelCustomizationJobCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class StopModelCustomizationJobCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("AmazonBedrockControlPlaneService", "StopModelCustomizationJob", {})
|
|
19
|
+
.n("BedrockClient", "StopModelCustomizationJobCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_StopModelCustomizationJobCommand)
|
|
22
|
+
.de(de_StopModelCustomizationJobCommand)
|
|
23
|
+
.build() {
|
|
47
24
|
}
|
|
@@ -1,47 +1,24 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_restJson1";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class TagResourceCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "BedrockClient";
|
|
26
|
-
const commandName = "TagResourceCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "AmazonBedrockControlPlaneService",
|
|
35
|
-
operation: "TagResource",
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
const { requestHandler } = configuration;
|
|
39
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
-
}
|
|
41
|
-
serialize(input, context) {
|
|
42
|
-
return se_TagResourceCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_TagResourceCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class TagResourceCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("AmazonBedrockControlPlaneService", "TagResource", {})
|
|
19
|
+
.n("BedrockClient", "TagResourceCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_TagResourceCommand)
|
|
22
|
+
.de(de_TagResourceCommand)
|
|
23
|
+
.build() {
|
|
47
24
|
}
|
|
@@ -1,47 +1,24 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_restJson1";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class UntagResourceCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "BedrockClient";
|
|
26
|
-
const commandName = "UntagResourceCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "AmazonBedrockControlPlaneService",
|
|
35
|
-
operation: "UntagResource",
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
const { requestHandler } = configuration;
|
|
39
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
-
}
|
|
41
|
-
serialize(input, context) {
|
|
42
|
-
return se_UntagResourceCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_UntagResourceCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class UntagResourceCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("AmazonBedrockControlPlaneService", "UntagResource", {})
|
|
19
|
+
.n("BedrockClient", "UntagResourceCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_UntagResourceCommand)
|
|
22
|
+
.de(de_UntagResourceCommand)
|
|
23
|
+
.build() {
|
|
47
24
|
}
|
|
@@ -1,47 +1,24 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_UpdateProvisionedModelThroughputCommand, se_UpdateProvisionedModelThroughputCommand, } from "../protocols/Aws_restJson1";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class UpdateProvisionedModelThroughputCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "BedrockClient";
|
|
26
|
-
const commandName = "UpdateProvisionedModelThroughputCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "AmazonBedrockControlPlaneService",
|
|
35
|
-
operation: "UpdateProvisionedModelThroughput",
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
const { requestHandler } = configuration;
|
|
39
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
-
}
|
|
41
|
-
serialize(input, context) {
|
|
42
|
-
return se_UpdateProvisionedModelThroughputCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_UpdateProvisionedModelThroughputCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class UpdateProvisionedModelThroughputCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("AmazonBedrockControlPlaneService", "UpdateProvisionedModelThroughput", {})
|
|
19
|
+
.n("BedrockClient", "UpdateProvisionedModelThroughputCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_UpdateProvisionedModelThroughputCommand)
|
|
22
|
+
.de(de_UpdateProvisionedModelThroughputCommand)
|
|
23
|
+
.build() {
|
|
47
24
|
}
|
|
@@ -6,3 +6,9 @@ export const resolveClientEndpointParameters = (options) => {
|
|
|
6
6
|
defaultSigningName: "bedrock",
|
|
7
7
|
};
|
|
8
8
|
};
|
|
9
|
+
export const commonParams = {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { BedrockClient } from "../BedrockClient";
|
|
2
3
|
import { ListCustomModelsCommand, } from "../commands/ListCustomModelsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListCustomModelsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListCustomModels(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof BedrockClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Bedrock | BedrockClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListCustomModels = createPaginator(BedrockClient, ListCustomModelsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { BedrockClient } from "../BedrockClient";
|
|
2
3
|
import { ListModelCustomizationJobsCommand, } from "../commands/ListModelCustomizationJobsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListModelCustomizationJobsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListModelCustomizationJobs(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof BedrockClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Bedrock | BedrockClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListModelCustomizationJobs = createPaginator(BedrockClient, ListModelCustomizationJobsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { BedrockClient } from "../BedrockClient";
|
|
2
3
|
import { ListProvisionedModelThroughputsCommand, } from "../commands/ListProvisionedModelThroughputsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListProvisionedModelThroughputsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListProvisionedModelThroughputs(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof BedrockClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Bedrock | BedrockClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListProvisionedModelThroughputs = createPaginator(BedrockClient, ListProvisionedModelThroughputsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
-
import {
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
4
3
|
import { BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockClient";
|
|
5
4
|
import { CreateModelCustomizationJobRequest, CreateModelCustomizationJobResponse } from "../models/models_0";
|
|
6
5
|
/**
|
|
@@ -21,6 +20,10 @@ export interface CreateModelCustomizationJobCommandInput extends CreateModelCust
|
|
|
21
20
|
*/
|
|
22
21
|
export interface CreateModelCustomizationJobCommandOutput extends CreateModelCustomizationJobResponse, __MetadataBearer {
|
|
23
22
|
}
|
|
23
|
+
declare const CreateModelCustomizationJobCommand_base: {
|
|
24
|
+
new (input: CreateModelCustomizationJobCommandInput): import("@smithy/smithy-client").CommandImpl<CreateModelCustomizationJobCommandInput, CreateModelCustomizationJobCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
|
+
};
|
|
24
27
|
/**
|
|
25
28
|
* @public
|
|
26
29
|
* <p>Creates a fine-tuning job to customize a base model.</p>
|
|
@@ -128,23 +131,5 @@ export interface CreateModelCustomizationJobCommandOutput extends CreateModelCus
|
|
|
128
131
|
* <p>Base exception class for all service exceptions from Bedrock service.</p>
|
|
129
132
|
*
|
|
130
133
|
*/
|
|
131
|
-
export declare class CreateModelCustomizationJobCommand extends
|
|
132
|
-
readonly input: CreateModelCustomizationJobCommandInput;
|
|
133
|
-
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
134
|
-
/**
|
|
135
|
-
* @public
|
|
136
|
-
*/
|
|
137
|
-
constructor(input: CreateModelCustomizationJobCommandInput);
|
|
138
|
-
/**
|
|
139
|
-
* @internal
|
|
140
|
-
*/
|
|
141
|
-
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: BedrockClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateModelCustomizationJobCommandInput, CreateModelCustomizationJobCommandOutput>;
|
|
142
|
-
/**
|
|
143
|
-
* @internal
|
|
144
|
-
*/
|
|
145
|
-
private serialize;
|
|
146
|
-
/**
|
|
147
|
-
* @internal
|
|
148
|
-
*/
|
|
149
|
-
private deserialize;
|
|
134
|
+
export declare class CreateModelCustomizationJobCommand extends CreateModelCustomizationJobCommand_base {
|
|
150
135
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
-
import {
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
4
3
|
import { BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockClient";
|
|
5
4
|
import { CreateProvisionedModelThroughputRequest, CreateProvisionedModelThroughputResponse } from "../models/models_0";
|
|
6
5
|
/**
|
|
@@ -21,6 +20,10 @@ export interface CreateProvisionedModelThroughputCommandInput extends CreateProv
|
|
|
21
20
|
*/
|
|
22
21
|
export interface CreateProvisionedModelThroughputCommandOutput extends CreateProvisionedModelThroughputResponse, __MetadataBearer {
|
|
23
22
|
}
|
|
23
|
+
declare const CreateProvisionedModelThroughputCommand_base: {
|
|
24
|
+
new (input: CreateProvisionedModelThroughputCommandInput): import("@smithy/smithy-client").CommandImpl<CreateProvisionedModelThroughputCommandInput, CreateProvisionedModelThroughputCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
|
+
};
|
|
24
27
|
/**
|
|
25
28
|
* @public
|
|
26
29
|
* <p>Creates a provisioned throughput with dedicated capacity for a foundation model or a fine-tuned model.</p>
|
|
@@ -84,23 +87,5 @@ export interface CreateProvisionedModelThroughputCommandOutput extends CreatePro
|
|
|
84
87
|
* <p>Base exception class for all service exceptions from Bedrock service.</p>
|
|
85
88
|
*
|
|
86
89
|
*/
|
|
87
|
-
export declare class CreateProvisionedModelThroughputCommand extends
|
|
88
|
-
readonly input: CreateProvisionedModelThroughputCommandInput;
|
|
89
|
-
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
90
|
-
/**
|
|
91
|
-
* @public
|
|
92
|
-
*/
|
|
93
|
-
constructor(input: CreateProvisionedModelThroughputCommandInput);
|
|
94
|
-
/**
|
|
95
|
-
* @internal
|
|
96
|
-
*/
|
|
97
|
-
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: BedrockClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateProvisionedModelThroughputCommandInput, CreateProvisionedModelThroughputCommandOutput>;
|
|
98
|
-
/**
|
|
99
|
-
* @internal
|
|
100
|
-
*/
|
|
101
|
-
private serialize;
|
|
102
|
-
/**
|
|
103
|
-
* @internal
|
|
104
|
-
*/
|
|
105
|
-
private deserialize;
|
|
90
|
+
export declare class CreateProvisionedModelThroughputCommand extends CreateProvisionedModelThroughputCommand_base {
|
|
106
91
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
-
import {
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
4
3
|
import { BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockClient";
|
|
5
4
|
import { DeleteCustomModelRequest, DeleteCustomModelResponse } from "../models/models_0";
|
|
6
5
|
/**
|
|
@@ -21,6 +20,10 @@ export interface DeleteCustomModelCommandInput extends DeleteCustomModelRequest
|
|
|
21
20
|
*/
|
|
22
21
|
export interface DeleteCustomModelCommandOutput extends DeleteCustomModelResponse, __MetadataBearer {
|
|
23
22
|
}
|
|
23
|
+
declare const DeleteCustomModelCommand_base: {
|
|
24
|
+
new (input: DeleteCustomModelCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteCustomModelCommandInput, DeleteCustomModelCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
|
+
};
|
|
24
27
|
/**
|
|
25
28
|
* @public
|
|
26
29
|
* <p>Deletes a custom model that you created earlier. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html">Custom models</a> in the Bedrock User Guide.</p>
|
|
@@ -67,23 +70,5 @@ export interface DeleteCustomModelCommandOutput extends DeleteCustomModelRespons
|
|
|
67
70
|
* <p>Base exception class for all service exceptions from Bedrock service.</p>
|
|
68
71
|
*
|
|
69
72
|
*/
|
|
70
|
-
export declare class DeleteCustomModelCommand extends
|
|
71
|
-
readonly input: DeleteCustomModelCommandInput;
|
|
72
|
-
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
73
|
-
/**
|
|
74
|
-
* @public
|
|
75
|
-
*/
|
|
76
|
-
constructor(input: DeleteCustomModelCommandInput);
|
|
77
|
-
/**
|
|
78
|
-
* @internal
|
|
79
|
-
*/
|
|
80
|
-
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: BedrockClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteCustomModelCommandInput, DeleteCustomModelCommandOutput>;
|
|
81
|
-
/**
|
|
82
|
-
* @internal
|
|
83
|
-
*/
|
|
84
|
-
private serialize;
|
|
85
|
-
/**
|
|
86
|
-
* @internal
|
|
87
|
-
*/
|
|
88
|
-
private deserialize;
|
|
73
|
+
export declare class DeleteCustomModelCommand extends DeleteCustomModelCommand_base {
|
|
89
74
|
}
|