@aws-sdk/client-amp 3.32.0 → 3.36.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 (219) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/README.md +7 -7
  3. package/dist-cjs/Amp.js +265 -0
  4. package/{dist/cjs → dist-cjs}/AmpClient.js +8 -9
  5. package/dist-cjs/commands/CreateAlertManagerDefinitionCommand.js +60 -0
  6. package/dist-cjs/commands/CreateRuleGroupsNamespaceCommand.js +60 -0
  7. package/{dist/cjs → dist-cjs}/commands/CreateWorkspaceCommand.js +2 -3
  8. package/dist-cjs/commands/DeleteAlertManagerDefinitionCommand.js +60 -0
  9. package/dist-cjs/commands/DeleteRuleGroupsNamespaceCommand.js +60 -0
  10. package/{dist/cjs → dist-cjs}/commands/DeleteWorkspaceCommand.js +2 -3
  11. package/dist-cjs/commands/DescribeAlertManagerDefinitionCommand.js +60 -0
  12. package/dist-cjs/commands/DescribeRuleGroupsNamespaceCommand.js +60 -0
  13. package/{dist/cjs → dist-cjs}/commands/DescribeWorkspaceCommand.js +2 -3
  14. package/dist-cjs/commands/ListRuleGroupsNamespacesCommand.js +60 -0
  15. package/{dist/cjs → dist-cjs}/commands/ListTagsForResourceCommand.js +2 -3
  16. package/{dist/cjs → dist-cjs}/commands/ListWorkspacesCommand.js +2 -3
  17. package/dist-cjs/commands/PutAlertManagerDefinitionCommand.js +60 -0
  18. package/dist-cjs/commands/PutRuleGroupsNamespaceCommand.js +60 -0
  19. package/{dist/cjs → dist-cjs}/commands/TagResourceCommand.js +2 -3
  20. package/{dist/cjs → dist-cjs}/commands/UntagResourceCommand.js +2 -3
  21. package/{dist/cjs → dist-cjs}/commands/UpdateWorkspaceAliasCommand.js +2 -3
  22. package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
  23. package/{dist/cjs → dist-cjs}/index.js +12 -1
  24. package/{dist/cjs → dist-cjs}/models/index.js +0 -1
  25. package/dist-cjs/models/models_0.js +501 -0
  26. package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
  27. package/dist-cjs/pagination/ListRuleGroupsNamespacesPaginator.js +45 -0
  28. package/{dist/cjs → dist-cjs}/pagination/ListWorkspacesPaginator.js +0 -1
  29. package/dist-cjs/protocols/Aws_restJson1.js +2393 -0
  30. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +2 -2
  31. package/{dist/cjs → dist-cjs}/runtimeConfig.js +2 -2
  32. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -1
  33. package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -2
  34. package/dist-cjs/waiters/waitForWorkspaceActive.js +63 -0
  35. package/dist-cjs/waiters/waitForWorkspaceDeleted.js +48 -0
  36. package/dist-es/Amp.js +265 -0
  37. package/{dist/es → dist-es}/AmpClient.js +2 -11
  38. package/dist-es/commands/CreateAlertManagerDefinitionCommand.js +39 -0
  39. package/dist-es/commands/CreateRuleGroupsNamespaceCommand.js +39 -0
  40. package/{dist/es → dist-es}/commands/CreateWorkspaceCommand.js +4 -30
  41. package/dist-es/commands/DeleteAlertManagerDefinitionCommand.js +39 -0
  42. package/dist-es/commands/DeleteRuleGroupsNamespaceCommand.js +39 -0
  43. package/{dist/es → dist-es}/commands/DeleteWorkspaceCommand.js +4 -30
  44. package/dist-es/commands/DescribeAlertManagerDefinitionCommand.js +39 -0
  45. package/dist-es/commands/DescribeRuleGroupsNamespaceCommand.js +39 -0
  46. package/{dist/es → dist-es}/commands/DescribeWorkspaceCommand.js +4 -30
  47. package/dist-es/commands/ListRuleGroupsNamespacesCommand.js +39 -0
  48. package/{dist/es → dist-es}/commands/ListTagsForResourceCommand.js +4 -30
  49. package/{dist/es → dist-es}/commands/ListWorkspacesCommand.js +4 -30
  50. package/dist-es/commands/PutAlertManagerDefinitionCommand.js +39 -0
  51. package/dist-es/commands/PutRuleGroupsNamespaceCommand.js +39 -0
  52. package/{dist/es → dist-es}/commands/TagResourceCommand.js +4 -30
  53. package/{dist/es → dist-es}/commands/UntagResourceCommand.js +4 -30
  54. package/{dist/es → dist-es}/commands/UpdateWorkspaceAliasCommand.js +4 -30
  55. package/{dist/es → dist-es}/endpoints.js +1 -2
  56. package/dist-es/index.js +25 -0
  57. package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
  58. package/dist-es/models/models_0.js +218 -0
  59. package/dist-es/pagination/Interfaces.js +1 -0
  60. package/dist-es/pagination/ListRuleGroupsNamespacesPaginator.js +74 -0
  61. package/{dist/es → dist-es}/pagination/ListWorkspacesPaginator.js +16 -29
  62. package/dist-es/protocols/Aws_restJson1.js +2684 -0
  63. package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
  64. package/{dist/es → dist-es}/runtimeConfig.js +1 -5
  65. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
  66. package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
  67. package/dist-es/waiters/waitForWorkspaceActive.js +69 -0
  68. package/dist-es/waiters/waitForWorkspaceDeleted.js +54 -0
  69. package/dist-types/Amp.d.ts +126 -0
  70. package/{dist/types/ts3.4 → dist-types}/AmpClient.d.ts +149 -140
  71. package/dist-types/commands/CreateAlertManagerDefinitionCommand.d.ts +35 -0
  72. package/dist-types/commands/CreateRuleGroupsNamespaceCommand.d.ts +35 -0
  73. package/{dist/types → dist-types}/commands/CreateWorkspaceCommand.d.ts +2 -2
  74. package/dist-types/commands/DeleteAlertManagerDefinitionCommand.d.ts +35 -0
  75. package/dist-types/commands/DeleteRuleGroupsNamespaceCommand.d.ts +35 -0
  76. package/{dist/types → dist-types}/commands/DeleteWorkspaceCommand.d.ts +2 -2
  77. package/dist-types/commands/DescribeAlertManagerDefinitionCommand.d.ts +35 -0
  78. package/dist-types/commands/DescribeRuleGroupsNamespaceCommand.d.ts +35 -0
  79. package/{dist/types → dist-types}/commands/DescribeWorkspaceCommand.d.ts +2 -2
  80. package/dist-types/commands/ListRuleGroupsNamespacesCommand.d.ts +35 -0
  81. package/{dist/types → dist-types}/commands/ListTagsForResourceCommand.d.ts +2 -2
  82. package/{dist/types → dist-types}/commands/ListWorkspacesCommand.d.ts +2 -2
  83. package/dist-types/commands/PutAlertManagerDefinitionCommand.d.ts +35 -0
  84. package/dist-types/commands/PutRuleGroupsNamespaceCommand.d.ts +35 -0
  85. package/{dist/types → dist-types}/commands/TagResourceCommand.d.ts +2 -2
  86. package/{dist/types → dist-types}/commands/UntagResourceCommand.d.ts +2 -2
  87. package/{dist/types → dist-types}/commands/UpdateWorkspaceAliasCommand.d.ts +2 -2
  88. package/{dist/types → dist-types}/endpoints.d.ts +0 -0
  89. package/dist-types/index.d.ts +25 -0
  90. package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
  91. package/dist-types/models/models_0.d.ts +1103 -0
  92. package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
  93. package/dist-types/pagination/ListRuleGroupsNamespacesPaginator.d.ts +4 -0
  94. package/{dist/types → dist-types}/pagination/ListWorkspacesPaginator.d.ts +1 -1
  95. package/dist-types/protocols/Aws_restJson1.d.ts +53 -0
  96. package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +1 -0
  97. package/{dist/types/ts3.4 → dist-types}/runtimeConfig.d.ts +37 -36
  98. package/{dist/types → dist-types}/runtimeConfig.native.d.ts +1 -0
  99. package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
  100. package/dist-types/ts3.4/Amp.d.ts +126 -0
  101. package/{dist/types → dist-types/ts3.4}/AmpClient.d.ts +149 -140
  102. package/dist-types/ts3.4/commands/CreateAlertManagerDefinitionCommand.d.ts +35 -0
  103. package/dist-types/ts3.4/commands/CreateRuleGroupsNamespaceCommand.d.ts +35 -0
  104. package/{dist/types → dist-types}/ts3.4/commands/CreateWorkspaceCommand.d.ts +2 -2
  105. package/dist-types/ts3.4/commands/DeleteAlertManagerDefinitionCommand.d.ts +35 -0
  106. package/dist-types/ts3.4/commands/DeleteRuleGroupsNamespaceCommand.d.ts +35 -0
  107. package/{dist/types → dist-types}/ts3.4/commands/DeleteWorkspaceCommand.d.ts +2 -2
  108. package/dist-types/ts3.4/commands/DescribeAlertManagerDefinitionCommand.d.ts +35 -0
  109. package/dist-types/ts3.4/commands/DescribeRuleGroupsNamespaceCommand.d.ts +35 -0
  110. package/{dist/types → dist-types}/ts3.4/commands/DescribeWorkspaceCommand.d.ts +2 -2
  111. package/dist-types/ts3.4/commands/ListRuleGroupsNamespacesCommand.d.ts +35 -0
  112. package/{dist/types → dist-types}/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -2
  113. package/{dist/types → dist-types}/ts3.4/commands/ListWorkspacesCommand.d.ts +2 -2
  114. package/dist-types/ts3.4/commands/PutAlertManagerDefinitionCommand.d.ts +35 -0
  115. package/dist-types/ts3.4/commands/PutRuleGroupsNamespaceCommand.d.ts +35 -0
  116. package/{dist/types → dist-types}/ts3.4/commands/TagResourceCommand.d.ts +2 -2
  117. package/{dist/types → dist-types}/ts3.4/commands/UntagResourceCommand.d.ts +2 -2
  118. package/{dist/types → dist-types}/ts3.4/commands/UpdateWorkspaceAliasCommand.d.ts +2 -2
  119. package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
  120. package/dist-types/ts3.4/index.d.ts +25 -0
  121. package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
  122. package/dist-types/ts3.4/models/models_0.d.ts +1103 -0
  123. package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
  124. package/dist-types/ts3.4/pagination/ListRuleGroupsNamespacesPaginator.d.ts +4 -0
  125. package/{dist/types → dist-types}/ts3.4/pagination/ListWorkspacesPaginator.d.ts +1 -1
  126. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +53 -0
  127. package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -0
  128. package/{dist/types → dist-types/ts3.4}/runtimeConfig.d.ts +37 -36
  129. package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -0
  130. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
  131. package/dist-types/ts3.4/waiters/waitForWorkspaceActive.d.ts +14 -0
  132. package/dist-types/ts3.4/waiters/waitForWorkspaceDeleted.d.ts +14 -0
  133. package/dist-types/waiters/waitForWorkspaceActive.d.ts +14 -0
  134. package/dist-types/waiters/waitForWorkspaceDeleted.d.ts +14 -0
  135. package/package.json +53 -49
  136. package/Amp.ts +0 -293
  137. package/AmpClient.ts +0 -265
  138. package/commands/CreateWorkspaceCommand.ts +0 -94
  139. package/commands/DeleteWorkspaceCommand.ts +0 -94
  140. package/commands/DescribeWorkspaceCommand.ts +0 -94
  141. package/commands/ListTagsForResourceCommand.ts +0 -94
  142. package/commands/ListWorkspacesCommand.ts +0 -94
  143. package/commands/TagResourceCommand.ts +0 -94
  144. package/commands/UntagResourceCommand.ts +0 -94
  145. package/commands/UpdateWorkspaceAliasCommand.ts +0 -94
  146. package/dist/cjs/Amp.js +0 -131
  147. package/dist/cjs/Amp.js.map +0 -1
  148. package/dist/cjs/AmpClient.js.map +0 -1
  149. package/dist/cjs/commands/CreateWorkspaceCommand.js.map +0 -1
  150. package/dist/cjs/commands/DeleteWorkspaceCommand.js.map +0 -1
  151. package/dist/cjs/commands/DescribeWorkspaceCommand.js.map +0 -1
  152. package/dist/cjs/commands/ListTagsForResourceCommand.js.map +0 -1
  153. package/dist/cjs/commands/ListWorkspacesCommand.js.map +0 -1
  154. package/dist/cjs/commands/TagResourceCommand.js.map +0 -1
  155. package/dist/cjs/commands/UntagResourceCommand.js.map +0 -1
  156. package/dist/cjs/commands/UpdateWorkspaceAliasCommand.js.map +0 -1
  157. package/dist/cjs/endpoints.js.map +0 -1
  158. package/dist/cjs/index.js.map +0 -1
  159. package/dist/cjs/models/index.js.map +0 -1
  160. package/dist/cjs/models/models_0.js +0 -259
  161. package/dist/cjs/models/models_0.js.map +0 -1
  162. package/dist/cjs/package.json +0 -93
  163. package/dist/cjs/pagination/Interfaces.js.map +0 -1
  164. package/dist/cjs/pagination/ListWorkspacesPaginator.js.map +0 -1
  165. package/dist/cjs/protocols/Aws_restJson1.js +0 -1176
  166. package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
  167. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  168. package/dist/cjs/runtimeConfig.js.map +0 -1
  169. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  170. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  171. package/dist/es/Amp.js +0 -134
  172. package/dist/es/Amp.js.map +0 -1
  173. package/dist/es/AmpClient.js.map +0 -1
  174. package/dist/es/commands/CreateWorkspaceCommand.js.map +0 -1
  175. package/dist/es/commands/DeleteWorkspaceCommand.js.map +0 -1
  176. package/dist/es/commands/DescribeWorkspaceCommand.js.map +0 -1
  177. package/dist/es/commands/ListTagsForResourceCommand.js.map +0 -1
  178. package/dist/es/commands/ListWorkspacesCommand.js.map +0 -1
  179. package/dist/es/commands/TagResourceCommand.js.map +0 -1
  180. package/dist/es/commands/UntagResourceCommand.js.map +0 -1
  181. package/dist/es/commands/UpdateWorkspaceAliasCommand.js.map +0 -1
  182. package/dist/es/endpoints.js.map +0 -1
  183. package/dist/es/index.js +0 -14
  184. package/dist/es/index.js.map +0 -1
  185. package/dist/es/models/index.js +0 -2
  186. package/dist/es/models/index.js.map +0 -1
  187. package/dist/es/models/models_0.js +0 -207
  188. package/dist/es/models/models_0.js.map +0 -1
  189. package/dist/es/package.json +0 -93
  190. package/dist/es/pagination/Interfaces.js +0 -2
  191. package/dist/es/pagination/Interfaces.js.map +0 -1
  192. package/dist/es/pagination/ListWorkspacesPaginator.js.map +0 -1
  193. package/dist/es/protocols/Aws_restJson1.js +0 -1327
  194. package/dist/es/protocols/Aws_restJson1.js.map +0 -1
  195. package/dist/es/runtimeConfig.browser.js.map +0 -1
  196. package/dist/es/runtimeConfig.js.map +0 -1
  197. package/dist/es/runtimeConfig.native.js.map +0 -1
  198. package/dist/es/runtimeConfig.shared.js.map +0 -1
  199. package/dist/types/Amp.d.ts +0 -63
  200. package/dist/types/index.d.ts +0 -13
  201. package/dist/types/models/models_0.d.ts +0 -562
  202. package/dist/types/protocols/Aws_restJson1.d.ts +0 -26
  203. package/dist/types/ts3.4/Amp.d.ts +0 -63
  204. package/dist/types/ts3.4/index.d.ts +0 -13
  205. package/dist/types/ts3.4/models/models_0.d.ts +0 -562
  206. package/dist/types/ts3.4/protocols/Aws_restJson1.d.ts +0 -26
  207. package/endpoints.ts +0 -57
  208. package/index.ts +0 -13
  209. package/jest.config.js +0 -4
  210. package/models/models_0.ts +0 -689
  211. package/pagination/Interfaces.ts +0 -7
  212. package/pagination/ListWorkspacesPaginator.ts +0 -58
  213. package/protocols/Aws_restJson1.ts +0 -1348
  214. package/runtimeConfig.browser.ts +0 -40
  215. package/runtimeConfig.native.ts +0 -16
  216. package/runtimeConfig.shared.ts +0 -16
  217. package/runtimeConfig.ts +0 -45
  218. package/tsconfig.es.json +0 -12
  219. package/tsconfig.json +0 -32
@@ -1,94 +0,0 @@
1
- import { AmpClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AmpClient";
2
- import { DeleteWorkspaceRequest } from "../models/models_0";
3
- import {
4
- deserializeAws_restJson1DeleteWorkspaceCommand,
5
- serializeAws_restJson1DeleteWorkspaceCommand,
6
- } from "../protocols/Aws_restJson1";
7
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
- import { Command as $Command } from "@aws-sdk/smithy-client";
10
- import {
11
- FinalizeHandlerArguments,
12
- Handler,
13
- HandlerExecutionContext,
14
- MiddlewareStack,
15
- HttpHandlerOptions as __HttpHandlerOptions,
16
- MetadataBearer as __MetadataBearer,
17
- SerdeContext as __SerdeContext,
18
- } from "@aws-sdk/types";
19
-
20
- export interface DeleteWorkspaceCommandInput extends DeleteWorkspaceRequest {}
21
- export interface DeleteWorkspaceCommandOutput extends __MetadataBearer {}
22
-
23
- /**
24
- * Deletes an AMP workspace.
25
- * @example
26
- * Use a bare-bones client and the command you need to make an API call.
27
- * ```javascript
28
- * import { AmpClient, DeleteWorkspaceCommand } from "@aws-sdk/client-amp"; // ES Modules import
29
- * // const { AmpClient, DeleteWorkspaceCommand } = require("@aws-sdk/client-amp"); // CommonJS import
30
- * const client = new AmpClient(config);
31
- * const command = new DeleteWorkspaceCommand(input);
32
- * const response = await client.send(command);
33
- * ```
34
- *
35
- * @see {@link DeleteWorkspaceCommandInput} for command's `input` shape.
36
- * @see {@link DeleteWorkspaceCommandOutput} for command's `response` shape.
37
- * @see {@link AmpClientResolvedConfig | config} for command's `input` shape.
38
- *
39
- */
40
- export class DeleteWorkspaceCommand extends $Command<
41
- DeleteWorkspaceCommandInput,
42
- DeleteWorkspaceCommandOutput,
43
- AmpClientResolvedConfig
44
- > {
45
- // Start section: command_properties
46
- // End section: command_properties
47
-
48
- constructor(readonly input: DeleteWorkspaceCommandInput) {
49
- // Start section: command_constructor
50
- super();
51
- // End section: command_constructor
52
- }
53
-
54
- /**
55
- * @internal
56
- */
57
- resolveMiddleware(
58
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
59
- configuration: AmpClientResolvedConfig,
60
- options?: __HttpHandlerOptions
61
- ): Handler<DeleteWorkspaceCommandInput, DeleteWorkspaceCommandOutput> {
62
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
63
-
64
- const stack = clientStack.concat(this.middlewareStack);
65
-
66
- const { logger } = configuration;
67
- const clientName = "AmpClient";
68
- const commandName = "DeleteWorkspaceCommand";
69
- const handlerExecutionContext: HandlerExecutionContext = {
70
- logger,
71
- clientName,
72
- commandName,
73
- inputFilterSensitiveLog: DeleteWorkspaceRequest.filterSensitiveLog,
74
- outputFilterSensitiveLog: (output: any) => output,
75
- };
76
- const { requestHandler } = configuration;
77
- return stack.resolve(
78
- (request: FinalizeHandlerArguments<any>) =>
79
- requestHandler.handle(request.request as __HttpRequest, options || {}),
80
- handlerExecutionContext
81
- );
82
- }
83
-
84
- private serialize(input: DeleteWorkspaceCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
85
- return serializeAws_restJson1DeleteWorkspaceCommand(input, context);
86
- }
87
-
88
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DeleteWorkspaceCommandOutput> {
89
- return deserializeAws_restJson1DeleteWorkspaceCommand(output, context);
90
- }
91
-
92
- // Start section: command_body_extra
93
- // End section: command_body_extra
94
- }
@@ -1,94 +0,0 @@
1
- import { AmpClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AmpClient";
2
- import { DescribeWorkspaceRequest, DescribeWorkspaceResponse } from "../models/models_0";
3
- import {
4
- deserializeAws_restJson1DescribeWorkspaceCommand,
5
- serializeAws_restJson1DescribeWorkspaceCommand,
6
- } from "../protocols/Aws_restJson1";
7
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
- import { Command as $Command } from "@aws-sdk/smithy-client";
10
- import {
11
- FinalizeHandlerArguments,
12
- Handler,
13
- HandlerExecutionContext,
14
- MiddlewareStack,
15
- HttpHandlerOptions as __HttpHandlerOptions,
16
- MetadataBearer as __MetadataBearer,
17
- SerdeContext as __SerdeContext,
18
- } from "@aws-sdk/types";
19
-
20
- export interface DescribeWorkspaceCommandInput extends DescribeWorkspaceRequest {}
21
- export interface DescribeWorkspaceCommandOutput extends DescribeWorkspaceResponse, __MetadataBearer {}
22
-
23
- /**
24
- * Describes an existing AMP workspace.
25
- * @example
26
- * Use a bare-bones client and the command you need to make an API call.
27
- * ```javascript
28
- * import { AmpClient, DescribeWorkspaceCommand } from "@aws-sdk/client-amp"; // ES Modules import
29
- * // const { AmpClient, DescribeWorkspaceCommand } = require("@aws-sdk/client-amp"); // CommonJS import
30
- * const client = new AmpClient(config);
31
- * const command = new DescribeWorkspaceCommand(input);
32
- * const response = await client.send(command);
33
- * ```
34
- *
35
- * @see {@link DescribeWorkspaceCommandInput} for command's `input` shape.
36
- * @see {@link DescribeWorkspaceCommandOutput} for command's `response` shape.
37
- * @see {@link AmpClientResolvedConfig | config} for command's `input` shape.
38
- *
39
- */
40
- export class DescribeWorkspaceCommand extends $Command<
41
- DescribeWorkspaceCommandInput,
42
- DescribeWorkspaceCommandOutput,
43
- AmpClientResolvedConfig
44
- > {
45
- // Start section: command_properties
46
- // End section: command_properties
47
-
48
- constructor(readonly input: DescribeWorkspaceCommandInput) {
49
- // Start section: command_constructor
50
- super();
51
- // End section: command_constructor
52
- }
53
-
54
- /**
55
- * @internal
56
- */
57
- resolveMiddleware(
58
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
59
- configuration: AmpClientResolvedConfig,
60
- options?: __HttpHandlerOptions
61
- ): Handler<DescribeWorkspaceCommandInput, DescribeWorkspaceCommandOutput> {
62
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
63
-
64
- const stack = clientStack.concat(this.middlewareStack);
65
-
66
- const { logger } = configuration;
67
- const clientName = "AmpClient";
68
- const commandName = "DescribeWorkspaceCommand";
69
- const handlerExecutionContext: HandlerExecutionContext = {
70
- logger,
71
- clientName,
72
- commandName,
73
- inputFilterSensitiveLog: DescribeWorkspaceRequest.filterSensitiveLog,
74
- outputFilterSensitiveLog: DescribeWorkspaceResponse.filterSensitiveLog,
75
- };
76
- const { requestHandler } = configuration;
77
- return stack.resolve(
78
- (request: FinalizeHandlerArguments<any>) =>
79
- requestHandler.handle(request.request as __HttpRequest, options || {}),
80
- handlerExecutionContext
81
- );
82
- }
83
-
84
- private serialize(input: DescribeWorkspaceCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
85
- return serializeAws_restJson1DescribeWorkspaceCommand(input, context);
86
- }
87
-
88
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DescribeWorkspaceCommandOutput> {
89
- return deserializeAws_restJson1DescribeWorkspaceCommand(output, context);
90
- }
91
-
92
- // Start section: command_body_extra
93
- // End section: command_body_extra
94
- }
@@ -1,94 +0,0 @@
1
- import { AmpClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AmpClient";
2
- import { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_0";
3
- import {
4
- deserializeAws_restJson1ListTagsForResourceCommand,
5
- serializeAws_restJson1ListTagsForResourceCommand,
6
- } from "../protocols/Aws_restJson1";
7
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
- import { Command as $Command } from "@aws-sdk/smithy-client";
10
- import {
11
- FinalizeHandlerArguments,
12
- Handler,
13
- HandlerExecutionContext,
14
- MiddlewareStack,
15
- HttpHandlerOptions as __HttpHandlerOptions,
16
- MetadataBearer as __MetadataBearer,
17
- SerdeContext as __SerdeContext,
18
- } from "@aws-sdk/types";
19
-
20
- export interface ListTagsForResourceCommandInput extends ListTagsForResourceRequest {}
21
- export interface ListTagsForResourceCommandOutput extends ListTagsForResourceResponse, __MetadataBearer {}
22
-
23
- /**
24
- * Lists the tags you have assigned to the resource.
25
- * @example
26
- * Use a bare-bones client and the command you need to make an API call.
27
- * ```javascript
28
- * import { AmpClient, ListTagsForResourceCommand } from "@aws-sdk/client-amp"; // ES Modules import
29
- * // const { AmpClient, ListTagsForResourceCommand } = require("@aws-sdk/client-amp"); // CommonJS import
30
- * const client = new AmpClient(config);
31
- * const command = new ListTagsForResourceCommand(input);
32
- * const response = await client.send(command);
33
- * ```
34
- *
35
- * @see {@link ListTagsForResourceCommandInput} for command's `input` shape.
36
- * @see {@link ListTagsForResourceCommandOutput} for command's `response` shape.
37
- * @see {@link AmpClientResolvedConfig | config} for command's `input` shape.
38
- *
39
- */
40
- export class ListTagsForResourceCommand extends $Command<
41
- ListTagsForResourceCommandInput,
42
- ListTagsForResourceCommandOutput,
43
- AmpClientResolvedConfig
44
- > {
45
- // Start section: command_properties
46
- // End section: command_properties
47
-
48
- constructor(readonly input: ListTagsForResourceCommandInput) {
49
- // Start section: command_constructor
50
- super();
51
- // End section: command_constructor
52
- }
53
-
54
- /**
55
- * @internal
56
- */
57
- resolveMiddleware(
58
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
59
- configuration: AmpClientResolvedConfig,
60
- options?: __HttpHandlerOptions
61
- ): Handler<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput> {
62
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
63
-
64
- const stack = clientStack.concat(this.middlewareStack);
65
-
66
- const { logger } = configuration;
67
- const clientName = "AmpClient";
68
- const commandName = "ListTagsForResourceCommand";
69
- const handlerExecutionContext: HandlerExecutionContext = {
70
- logger,
71
- clientName,
72
- commandName,
73
- inputFilterSensitiveLog: ListTagsForResourceRequest.filterSensitiveLog,
74
- outputFilterSensitiveLog: ListTagsForResourceResponse.filterSensitiveLog,
75
- };
76
- const { requestHandler } = configuration;
77
- return stack.resolve(
78
- (request: FinalizeHandlerArguments<any>) =>
79
- requestHandler.handle(request.request as __HttpRequest, options || {}),
80
- handlerExecutionContext
81
- );
82
- }
83
-
84
- private serialize(input: ListTagsForResourceCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
85
- return serializeAws_restJson1ListTagsForResourceCommand(input, context);
86
- }
87
-
88
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListTagsForResourceCommandOutput> {
89
- return deserializeAws_restJson1ListTagsForResourceCommand(output, context);
90
- }
91
-
92
- // Start section: command_body_extra
93
- // End section: command_body_extra
94
- }
@@ -1,94 +0,0 @@
1
- import { AmpClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AmpClient";
2
- import { ListWorkspacesRequest, ListWorkspacesResponse } from "../models/models_0";
3
- import {
4
- deserializeAws_restJson1ListWorkspacesCommand,
5
- serializeAws_restJson1ListWorkspacesCommand,
6
- } from "../protocols/Aws_restJson1";
7
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
- import { Command as $Command } from "@aws-sdk/smithy-client";
10
- import {
11
- FinalizeHandlerArguments,
12
- Handler,
13
- HandlerExecutionContext,
14
- MiddlewareStack,
15
- HttpHandlerOptions as __HttpHandlerOptions,
16
- MetadataBearer as __MetadataBearer,
17
- SerdeContext as __SerdeContext,
18
- } from "@aws-sdk/types";
19
-
20
- export interface ListWorkspacesCommandInput extends ListWorkspacesRequest {}
21
- export interface ListWorkspacesCommandOutput extends ListWorkspacesResponse, __MetadataBearer {}
22
-
23
- /**
24
- * Lists all AMP workspaces, including workspaces being created or deleted.
25
- * @example
26
- * Use a bare-bones client and the command you need to make an API call.
27
- * ```javascript
28
- * import { AmpClient, ListWorkspacesCommand } from "@aws-sdk/client-amp"; // ES Modules import
29
- * // const { AmpClient, ListWorkspacesCommand } = require("@aws-sdk/client-amp"); // CommonJS import
30
- * const client = new AmpClient(config);
31
- * const command = new ListWorkspacesCommand(input);
32
- * const response = await client.send(command);
33
- * ```
34
- *
35
- * @see {@link ListWorkspacesCommandInput} for command's `input` shape.
36
- * @see {@link ListWorkspacesCommandOutput} for command's `response` shape.
37
- * @see {@link AmpClientResolvedConfig | config} for command's `input` shape.
38
- *
39
- */
40
- export class ListWorkspacesCommand extends $Command<
41
- ListWorkspacesCommandInput,
42
- ListWorkspacesCommandOutput,
43
- AmpClientResolvedConfig
44
- > {
45
- // Start section: command_properties
46
- // End section: command_properties
47
-
48
- constructor(readonly input: ListWorkspacesCommandInput) {
49
- // Start section: command_constructor
50
- super();
51
- // End section: command_constructor
52
- }
53
-
54
- /**
55
- * @internal
56
- */
57
- resolveMiddleware(
58
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
59
- configuration: AmpClientResolvedConfig,
60
- options?: __HttpHandlerOptions
61
- ): Handler<ListWorkspacesCommandInput, ListWorkspacesCommandOutput> {
62
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
63
-
64
- const stack = clientStack.concat(this.middlewareStack);
65
-
66
- const { logger } = configuration;
67
- const clientName = "AmpClient";
68
- const commandName = "ListWorkspacesCommand";
69
- const handlerExecutionContext: HandlerExecutionContext = {
70
- logger,
71
- clientName,
72
- commandName,
73
- inputFilterSensitiveLog: ListWorkspacesRequest.filterSensitiveLog,
74
- outputFilterSensitiveLog: ListWorkspacesResponse.filterSensitiveLog,
75
- };
76
- const { requestHandler } = configuration;
77
- return stack.resolve(
78
- (request: FinalizeHandlerArguments<any>) =>
79
- requestHandler.handle(request.request as __HttpRequest, options || {}),
80
- handlerExecutionContext
81
- );
82
- }
83
-
84
- private serialize(input: ListWorkspacesCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
85
- return serializeAws_restJson1ListWorkspacesCommand(input, context);
86
- }
87
-
88
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListWorkspacesCommandOutput> {
89
- return deserializeAws_restJson1ListWorkspacesCommand(output, context);
90
- }
91
-
92
- // Start section: command_body_extra
93
- // End section: command_body_extra
94
- }
@@ -1,94 +0,0 @@
1
- import { AmpClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AmpClient";
2
- import { TagResourceRequest, TagResourceResponse } from "../models/models_0";
3
- import {
4
- deserializeAws_restJson1TagResourceCommand,
5
- serializeAws_restJson1TagResourceCommand,
6
- } from "../protocols/Aws_restJson1";
7
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
- import { Command as $Command } from "@aws-sdk/smithy-client";
10
- import {
11
- FinalizeHandlerArguments,
12
- Handler,
13
- HandlerExecutionContext,
14
- MiddlewareStack,
15
- HttpHandlerOptions as __HttpHandlerOptions,
16
- MetadataBearer as __MetadataBearer,
17
- SerdeContext as __SerdeContext,
18
- } from "@aws-sdk/types";
19
-
20
- export interface TagResourceCommandInput extends TagResourceRequest {}
21
- export interface TagResourceCommandOutput extends TagResourceResponse, __MetadataBearer {}
22
-
23
- /**
24
- * Creates tags for the specified resource.
25
- * @example
26
- * Use a bare-bones client and the command you need to make an API call.
27
- * ```javascript
28
- * import { AmpClient, TagResourceCommand } from "@aws-sdk/client-amp"; // ES Modules import
29
- * // const { AmpClient, TagResourceCommand } = require("@aws-sdk/client-amp"); // CommonJS import
30
- * const client = new AmpClient(config);
31
- * const command = new TagResourceCommand(input);
32
- * const response = await client.send(command);
33
- * ```
34
- *
35
- * @see {@link TagResourceCommandInput} for command's `input` shape.
36
- * @see {@link TagResourceCommandOutput} for command's `response` shape.
37
- * @see {@link AmpClientResolvedConfig | config} for command's `input` shape.
38
- *
39
- */
40
- export class TagResourceCommand extends $Command<
41
- TagResourceCommandInput,
42
- TagResourceCommandOutput,
43
- AmpClientResolvedConfig
44
- > {
45
- // Start section: command_properties
46
- // End section: command_properties
47
-
48
- constructor(readonly input: TagResourceCommandInput) {
49
- // Start section: command_constructor
50
- super();
51
- // End section: command_constructor
52
- }
53
-
54
- /**
55
- * @internal
56
- */
57
- resolveMiddleware(
58
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
59
- configuration: AmpClientResolvedConfig,
60
- options?: __HttpHandlerOptions
61
- ): Handler<TagResourceCommandInput, TagResourceCommandOutput> {
62
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
63
-
64
- const stack = clientStack.concat(this.middlewareStack);
65
-
66
- const { logger } = configuration;
67
- const clientName = "AmpClient";
68
- const commandName = "TagResourceCommand";
69
- const handlerExecutionContext: HandlerExecutionContext = {
70
- logger,
71
- clientName,
72
- commandName,
73
- inputFilterSensitiveLog: TagResourceRequest.filterSensitiveLog,
74
- outputFilterSensitiveLog: TagResourceResponse.filterSensitiveLog,
75
- };
76
- const { requestHandler } = configuration;
77
- return stack.resolve(
78
- (request: FinalizeHandlerArguments<any>) =>
79
- requestHandler.handle(request.request as __HttpRequest, options || {}),
80
- handlerExecutionContext
81
- );
82
- }
83
-
84
- private serialize(input: TagResourceCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
85
- return serializeAws_restJson1TagResourceCommand(input, context);
86
- }
87
-
88
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<TagResourceCommandOutput> {
89
- return deserializeAws_restJson1TagResourceCommand(output, context);
90
- }
91
-
92
- // Start section: command_body_extra
93
- // End section: command_body_extra
94
- }
@@ -1,94 +0,0 @@
1
- import { AmpClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AmpClient";
2
- import { UntagResourceRequest, UntagResourceResponse } from "../models/models_0";
3
- import {
4
- deserializeAws_restJson1UntagResourceCommand,
5
- serializeAws_restJson1UntagResourceCommand,
6
- } from "../protocols/Aws_restJson1";
7
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
- import { Command as $Command } from "@aws-sdk/smithy-client";
10
- import {
11
- FinalizeHandlerArguments,
12
- Handler,
13
- HandlerExecutionContext,
14
- MiddlewareStack,
15
- HttpHandlerOptions as __HttpHandlerOptions,
16
- MetadataBearer as __MetadataBearer,
17
- SerdeContext as __SerdeContext,
18
- } from "@aws-sdk/types";
19
-
20
- export interface UntagResourceCommandInput extends UntagResourceRequest {}
21
- export interface UntagResourceCommandOutput extends UntagResourceResponse, __MetadataBearer {}
22
-
23
- /**
24
- * Deletes tags from the specified resource.
25
- * @example
26
- * Use a bare-bones client and the command you need to make an API call.
27
- * ```javascript
28
- * import { AmpClient, UntagResourceCommand } from "@aws-sdk/client-amp"; // ES Modules import
29
- * // const { AmpClient, UntagResourceCommand } = require("@aws-sdk/client-amp"); // CommonJS import
30
- * const client = new AmpClient(config);
31
- * const command = new UntagResourceCommand(input);
32
- * const response = await client.send(command);
33
- * ```
34
- *
35
- * @see {@link UntagResourceCommandInput} for command's `input` shape.
36
- * @see {@link UntagResourceCommandOutput} for command's `response` shape.
37
- * @see {@link AmpClientResolvedConfig | config} for command's `input` shape.
38
- *
39
- */
40
- export class UntagResourceCommand extends $Command<
41
- UntagResourceCommandInput,
42
- UntagResourceCommandOutput,
43
- AmpClientResolvedConfig
44
- > {
45
- // Start section: command_properties
46
- // End section: command_properties
47
-
48
- constructor(readonly input: UntagResourceCommandInput) {
49
- // Start section: command_constructor
50
- super();
51
- // End section: command_constructor
52
- }
53
-
54
- /**
55
- * @internal
56
- */
57
- resolveMiddleware(
58
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
59
- configuration: AmpClientResolvedConfig,
60
- options?: __HttpHandlerOptions
61
- ): Handler<UntagResourceCommandInput, UntagResourceCommandOutput> {
62
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
63
-
64
- const stack = clientStack.concat(this.middlewareStack);
65
-
66
- const { logger } = configuration;
67
- const clientName = "AmpClient";
68
- const commandName = "UntagResourceCommand";
69
- const handlerExecutionContext: HandlerExecutionContext = {
70
- logger,
71
- clientName,
72
- commandName,
73
- inputFilterSensitiveLog: UntagResourceRequest.filterSensitiveLog,
74
- outputFilterSensitiveLog: UntagResourceResponse.filterSensitiveLog,
75
- };
76
- const { requestHandler } = configuration;
77
- return stack.resolve(
78
- (request: FinalizeHandlerArguments<any>) =>
79
- requestHandler.handle(request.request as __HttpRequest, options || {}),
80
- handlerExecutionContext
81
- );
82
- }
83
-
84
- private serialize(input: UntagResourceCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
85
- return serializeAws_restJson1UntagResourceCommand(input, context);
86
- }
87
-
88
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<UntagResourceCommandOutput> {
89
- return deserializeAws_restJson1UntagResourceCommand(output, context);
90
- }
91
-
92
- // Start section: command_body_extra
93
- // End section: command_body_extra
94
- }
@@ -1,94 +0,0 @@
1
- import { AmpClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AmpClient";
2
- import { UpdateWorkspaceAliasRequest } from "../models/models_0";
3
- import {
4
- deserializeAws_restJson1UpdateWorkspaceAliasCommand,
5
- serializeAws_restJson1UpdateWorkspaceAliasCommand,
6
- } from "../protocols/Aws_restJson1";
7
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
- import { Command as $Command } from "@aws-sdk/smithy-client";
10
- import {
11
- FinalizeHandlerArguments,
12
- Handler,
13
- HandlerExecutionContext,
14
- MiddlewareStack,
15
- HttpHandlerOptions as __HttpHandlerOptions,
16
- MetadataBearer as __MetadataBearer,
17
- SerdeContext as __SerdeContext,
18
- } from "@aws-sdk/types";
19
-
20
- export interface UpdateWorkspaceAliasCommandInput extends UpdateWorkspaceAliasRequest {}
21
- export interface UpdateWorkspaceAliasCommandOutput extends __MetadataBearer {}
22
-
23
- /**
24
- * Updates an AMP workspace alias.
25
- * @example
26
- * Use a bare-bones client and the command you need to make an API call.
27
- * ```javascript
28
- * import { AmpClient, UpdateWorkspaceAliasCommand } from "@aws-sdk/client-amp"; // ES Modules import
29
- * // const { AmpClient, UpdateWorkspaceAliasCommand } = require("@aws-sdk/client-amp"); // CommonJS import
30
- * const client = new AmpClient(config);
31
- * const command = new UpdateWorkspaceAliasCommand(input);
32
- * const response = await client.send(command);
33
- * ```
34
- *
35
- * @see {@link UpdateWorkspaceAliasCommandInput} for command's `input` shape.
36
- * @see {@link UpdateWorkspaceAliasCommandOutput} for command's `response` shape.
37
- * @see {@link AmpClientResolvedConfig | config} for command's `input` shape.
38
- *
39
- */
40
- export class UpdateWorkspaceAliasCommand extends $Command<
41
- UpdateWorkspaceAliasCommandInput,
42
- UpdateWorkspaceAliasCommandOutput,
43
- AmpClientResolvedConfig
44
- > {
45
- // Start section: command_properties
46
- // End section: command_properties
47
-
48
- constructor(readonly input: UpdateWorkspaceAliasCommandInput) {
49
- // Start section: command_constructor
50
- super();
51
- // End section: command_constructor
52
- }
53
-
54
- /**
55
- * @internal
56
- */
57
- resolveMiddleware(
58
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
59
- configuration: AmpClientResolvedConfig,
60
- options?: __HttpHandlerOptions
61
- ): Handler<UpdateWorkspaceAliasCommandInput, UpdateWorkspaceAliasCommandOutput> {
62
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
63
-
64
- const stack = clientStack.concat(this.middlewareStack);
65
-
66
- const { logger } = configuration;
67
- const clientName = "AmpClient";
68
- const commandName = "UpdateWorkspaceAliasCommand";
69
- const handlerExecutionContext: HandlerExecutionContext = {
70
- logger,
71
- clientName,
72
- commandName,
73
- inputFilterSensitiveLog: UpdateWorkspaceAliasRequest.filterSensitiveLog,
74
- outputFilterSensitiveLog: (output: any) => output,
75
- };
76
- const { requestHandler } = configuration;
77
- return stack.resolve(
78
- (request: FinalizeHandlerArguments<any>) =>
79
- requestHandler.handle(request.request as __HttpRequest, options || {}),
80
- handlerExecutionContext
81
- );
82
- }
83
-
84
- private serialize(input: UpdateWorkspaceAliasCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
85
- return serializeAws_restJson1UpdateWorkspaceAliasCommand(input, context);
86
- }
87
-
88
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<UpdateWorkspaceAliasCommandOutput> {
89
- return deserializeAws_restJson1UpdateWorkspaceAliasCommand(output, context);
90
- }
91
-
92
- // Start section: command_body_extra
93
- // End section: command_body_extra
94
- }