@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.
Files changed (97) hide show
  1. package/dist-cjs/commands/CreateModelCustomizationJobCommand.js +18 -41
  2. package/dist-cjs/commands/CreateProvisionedModelThroughputCommand.js +18 -41
  3. package/dist-cjs/commands/DeleteCustomModelCommand.js +18 -41
  4. package/dist-cjs/commands/DeleteModelInvocationLoggingConfigurationCommand.js +18 -41
  5. package/dist-cjs/commands/DeleteProvisionedModelThroughputCommand.js +18 -41
  6. package/dist-cjs/commands/GetCustomModelCommand.js +18 -41
  7. package/dist-cjs/commands/GetFoundationModelCommand.js +18 -41
  8. package/dist-cjs/commands/GetModelCustomizationJobCommand.js +18 -41
  9. package/dist-cjs/commands/GetModelInvocationLoggingConfigurationCommand.js +18 -41
  10. package/dist-cjs/commands/GetProvisionedModelThroughputCommand.js +18 -41
  11. package/dist-cjs/commands/ListCustomModelsCommand.js +18 -41
  12. package/dist-cjs/commands/ListFoundationModelsCommand.js +18 -41
  13. package/dist-cjs/commands/ListModelCustomizationJobsCommand.js +18 -41
  14. package/dist-cjs/commands/ListProvisionedModelThroughputsCommand.js +18 -41
  15. package/dist-cjs/commands/ListTagsForResourceCommand.js +18 -41
  16. package/dist-cjs/commands/PutModelInvocationLoggingConfigurationCommand.js +18 -41
  17. package/dist-cjs/commands/StopModelCustomizationJobCommand.js +18 -41
  18. package/dist-cjs/commands/TagResourceCommand.js +18 -41
  19. package/dist-cjs/commands/UntagResourceCommand.js +18 -41
  20. package/dist-cjs/commands/UpdateProvisionedModelThroughputCommand.js +18 -41
  21. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  22. package/dist-cjs/pagination/ListCustomModelsPaginator.js +2 -24
  23. package/dist-cjs/pagination/ListModelCustomizationJobsPaginator.js +2 -24
  24. package/dist-cjs/pagination/ListProvisionedModelThroughputsPaginator.js +2 -24
  25. package/dist-es/commands/CreateModelCustomizationJobCommand.js +18 -41
  26. package/dist-es/commands/CreateProvisionedModelThroughputCommand.js +18 -41
  27. package/dist-es/commands/DeleteCustomModelCommand.js +18 -41
  28. package/dist-es/commands/DeleteModelInvocationLoggingConfigurationCommand.js +18 -41
  29. package/dist-es/commands/DeleteProvisionedModelThroughputCommand.js +18 -41
  30. package/dist-es/commands/GetCustomModelCommand.js +18 -41
  31. package/dist-es/commands/GetFoundationModelCommand.js +18 -41
  32. package/dist-es/commands/GetModelCustomizationJobCommand.js +18 -41
  33. package/dist-es/commands/GetModelInvocationLoggingConfigurationCommand.js +18 -41
  34. package/dist-es/commands/GetProvisionedModelThroughputCommand.js +18 -41
  35. package/dist-es/commands/ListCustomModelsCommand.js +18 -41
  36. package/dist-es/commands/ListFoundationModelsCommand.js +18 -41
  37. package/dist-es/commands/ListModelCustomizationJobsCommand.js +18 -41
  38. package/dist-es/commands/ListProvisionedModelThroughputsCommand.js +18 -41
  39. package/dist-es/commands/ListTagsForResourceCommand.js +18 -41
  40. package/dist-es/commands/PutModelInvocationLoggingConfigurationCommand.js +18 -41
  41. package/dist-es/commands/StopModelCustomizationJobCommand.js +18 -41
  42. package/dist-es/commands/TagResourceCommand.js +18 -41
  43. package/dist-es/commands/UntagResourceCommand.js +18 -41
  44. package/dist-es/commands/UpdateProvisionedModelThroughputCommand.js +18 -41
  45. package/dist-es/endpoint/EndpointParameters.js +6 -0
  46. package/dist-es/pagination/ListCustomModelsPaginator.js +2 -23
  47. package/dist-es/pagination/ListModelCustomizationJobsPaginator.js +2 -23
  48. package/dist-es/pagination/ListProvisionedModelThroughputsPaginator.js +2 -23
  49. package/dist-types/commands/CreateModelCustomizationJobCommand.d.ts +6 -21
  50. package/dist-types/commands/CreateProvisionedModelThroughputCommand.d.ts +6 -21
  51. package/dist-types/commands/DeleteCustomModelCommand.d.ts +6 -21
  52. package/dist-types/commands/DeleteModelInvocationLoggingConfigurationCommand.d.ts +6 -21
  53. package/dist-types/commands/DeleteProvisionedModelThroughputCommand.d.ts +6 -21
  54. package/dist-types/commands/GetCustomModelCommand.d.ts +6 -21
  55. package/dist-types/commands/GetFoundationModelCommand.d.ts +6 -21
  56. package/dist-types/commands/GetModelCustomizationJobCommand.d.ts +6 -21
  57. package/dist-types/commands/GetModelInvocationLoggingConfigurationCommand.d.ts +6 -21
  58. package/dist-types/commands/GetProvisionedModelThroughputCommand.d.ts +6 -21
  59. package/dist-types/commands/ListCustomModelsCommand.d.ts +6 -21
  60. package/dist-types/commands/ListFoundationModelsCommand.d.ts +6 -21
  61. package/dist-types/commands/ListModelCustomizationJobsCommand.d.ts +6 -21
  62. package/dist-types/commands/ListProvisionedModelThroughputsCommand.d.ts +6 -21
  63. package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -21
  64. package/dist-types/commands/PutModelInvocationLoggingConfigurationCommand.d.ts +6 -21
  65. package/dist-types/commands/StopModelCustomizationJobCommand.d.ts +6 -21
  66. package/dist-types/commands/TagResourceCommand.d.ts +6 -21
  67. package/dist-types/commands/UntagResourceCommand.d.ts +6 -21
  68. package/dist-types/commands/UpdateProvisionedModelThroughputCommand.d.ts +6 -21
  69. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  70. package/dist-types/pagination/ListCustomModelsPaginator.d.ts +1 -1
  71. package/dist-types/pagination/ListModelCustomizationJobsPaginator.d.ts +1 -1
  72. package/dist-types/pagination/ListProvisionedModelThroughputsPaginator.d.ts +1 -1
  73. package/dist-types/ts3.4/commands/CreateModelCustomizationJobCommand.d.ts +12 -24
  74. package/dist-types/ts3.4/commands/CreateProvisionedModelThroughputCommand.d.ts +12 -24
  75. package/dist-types/ts3.4/commands/DeleteCustomModelCommand.d.ts +14 -23
  76. package/dist-types/ts3.4/commands/DeleteModelInvocationLoggingConfigurationCommand.d.ts +12 -24
  77. package/dist-types/ts3.4/commands/DeleteProvisionedModelThroughputCommand.d.ts +12 -24
  78. package/dist-types/ts3.4/commands/GetCustomModelCommand.d.ts +14 -23
  79. package/dist-types/ts3.4/commands/GetFoundationModelCommand.d.ts +14 -23
  80. package/dist-types/ts3.4/commands/GetModelCustomizationJobCommand.d.ts +12 -24
  81. package/dist-types/ts3.4/commands/GetModelInvocationLoggingConfigurationCommand.d.ts +12 -24
  82. package/dist-types/ts3.4/commands/GetProvisionedModelThroughputCommand.d.ts +12 -24
  83. package/dist-types/ts3.4/commands/ListCustomModelsCommand.d.ts +14 -23
  84. package/dist-types/ts3.4/commands/ListFoundationModelsCommand.d.ts +12 -24
  85. package/dist-types/ts3.4/commands/ListModelCustomizationJobsCommand.d.ts +12 -24
  86. package/dist-types/ts3.4/commands/ListProvisionedModelThroughputsCommand.d.ts +12 -24
  87. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +14 -23
  88. package/dist-types/ts3.4/commands/PutModelInvocationLoggingConfigurationCommand.d.ts +12 -24
  89. package/dist-types/ts3.4/commands/StopModelCustomizationJobCommand.d.ts +12 -24
  90. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +14 -23
  91. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +14 -23
  92. package/dist-types/ts3.4/commands/UpdateProvisionedModelThroughputCommand.d.ts +12 -24
  93. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  94. package/dist-types/ts3.4/pagination/ListCustomModelsPaginator.d.ts +3 -3
  95. package/dist-types/ts3.4/pagination/ListModelCustomizationJobsPaginator.d.ts +3 -3
  96. package/dist-types/ts3.4/pagination/ListProvisionedModelThroughputsPaginator.d.ts +3 -3
  97. 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 { SMITHY_CONTEXT_KEY, } from "@smithy/types";
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
- static getEndpointParameterInstructions() {
9
- return {
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
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, ListTagsForResourceCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
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 { SMITHY_CONTEXT_KEY, } from "@smithy/types";
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
- static getEndpointParameterInstructions() {
9
- return {
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
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, PutModelInvocationLoggingConfigurationCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
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 { SMITHY_CONTEXT_KEY, } from "@smithy/types";
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
- static getEndpointParameterInstructions() {
9
- return {
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
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, StopModelCustomizationJobCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
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 { SMITHY_CONTEXT_KEY, } from "@smithy/types";
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
- static getEndpointParameterInstructions() {
9
- return {
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
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, TagResourceCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
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 { SMITHY_CONTEXT_KEY, } from "@smithy/types";
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
- static getEndpointParameterInstructions() {
9
- return {
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
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, UntagResourceCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
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 { SMITHY_CONTEXT_KEY, } from "@smithy/types";
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
- static getEndpointParameterInstructions() {
9
- return {
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
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, UpdateProvisionedModelThroughputCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
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 makePagedClientRequest = async (client, input, ...args) => {
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 makePagedClientRequest = async (client, input, ...args) => {
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 makePagedClientRequest = async (client, input, ...args) => {
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 { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
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 $Command<CreateModelCustomizationJobCommandInput, CreateModelCustomizationJobCommandOutput, BedrockClientResolvedConfig> {
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 { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
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 $Command<CreateProvisionedModelThroughputCommandInput, CreateProvisionedModelThroughputCommandOutput, BedrockClientResolvedConfig> {
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 { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
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 $Command<DeleteCustomModelCommandInput, DeleteCustomModelCommandOutput, BedrockClientResolvedConfig> {
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
  }