@aws-sdk/client-amp 3.35.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 (171) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist-cjs/Amp.js +0 -1
  3. package/dist-cjs/AmpClient.js +0 -1
  4. package/dist-cjs/commands/CreateAlertManagerDefinitionCommand.js +0 -1
  5. package/dist-cjs/commands/CreateRuleGroupsNamespaceCommand.js +0 -1
  6. package/dist-cjs/commands/CreateWorkspaceCommand.js +0 -1
  7. package/dist-cjs/commands/DeleteAlertManagerDefinitionCommand.js +0 -1
  8. package/dist-cjs/commands/DeleteRuleGroupsNamespaceCommand.js +0 -1
  9. package/dist-cjs/commands/DeleteWorkspaceCommand.js +0 -1
  10. package/dist-cjs/commands/DescribeAlertManagerDefinitionCommand.js +0 -1
  11. package/dist-cjs/commands/DescribeRuleGroupsNamespaceCommand.js +0 -1
  12. package/dist-cjs/commands/DescribeWorkspaceCommand.js +0 -1
  13. package/dist-cjs/commands/ListRuleGroupsNamespacesCommand.js +0 -1
  14. package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -1
  15. package/dist-cjs/commands/ListWorkspacesCommand.js +0 -1
  16. package/dist-cjs/commands/PutAlertManagerDefinitionCommand.js +0 -1
  17. package/dist-cjs/commands/PutRuleGroupsNamespaceCommand.js +0 -1
  18. package/dist-cjs/commands/TagResourceCommand.js +0 -1
  19. package/dist-cjs/commands/UntagResourceCommand.js +0 -1
  20. package/dist-cjs/commands/UpdateWorkspaceAliasCommand.js +0 -1
  21. package/dist-cjs/endpoints.js +0 -1
  22. package/dist-cjs/index.js +0 -1
  23. package/dist-cjs/models/index.js +0 -1
  24. package/dist-cjs/models/models_0.js +0 -1
  25. package/dist-cjs/pagination/Interfaces.js +0 -1
  26. package/dist-cjs/pagination/ListRuleGroupsNamespacesPaginator.js +0 -1
  27. package/dist-cjs/pagination/ListWorkspacesPaginator.js +0 -1
  28. package/dist-cjs/protocols/Aws_restJson1.js +0 -1
  29. package/dist-cjs/runtimeConfig.browser.js +2 -3
  30. package/dist-cjs/runtimeConfig.js +3 -4
  31. package/dist-cjs/runtimeConfig.native.js +0 -1
  32. package/dist-cjs/runtimeConfig.shared.js +0 -1
  33. package/dist-cjs/waiters/waitForWorkspaceActive.js +0 -1
  34. package/dist-cjs/waiters/waitForWorkspaceDeleted.js +0 -1
  35. package/dist-es/Amp.js +0 -1
  36. package/dist-es/AmpClient.js +0 -1
  37. package/dist-es/commands/CreateAlertManagerDefinitionCommand.js +0 -1
  38. package/dist-es/commands/CreateRuleGroupsNamespaceCommand.js +0 -1
  39. package/dist-es/commands/CreateWorkspaceCommand.js +0 -1
  40. package/dist-es/commands/DeleteAlertManagerDefinitionCommand.js +0 -1
  41. package/dist-es/commands/DeleteRuleGroupsNamespaceCommand.js +0 -1
  42. package/dist-es/commands/DeleteWorkspaceCommand.js +0 -1
  43. package/dist-es/commands/DescribeAlertManagerDefinitionCommand.js +0 -1
  44. package/dist-es/commands/DescribeRuleGroupsNamespaceCommand.js +0 -1
  45. package/dist-es/commands/DescribeWorkspaceCommand.js +0 -1
  46. package/dist-es/commands/ListRuleGroupsNamespacesCommand.js +0 -1
  47. package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
  48. package/dist-es/commands/ListWorkspacesCommand.js +0 -1
  49. package/dist-es/commands/PutAlertManagerDefinitionCommand.js +0 -1
  50. package/dist-es/commands/PutRuleGroupsNamespaceCommand.js +0 -1
  51. package/dist-es/commands/TagResourceCommand.js +0 -1
  52. package/dist-es/commands/UntagResourceCommand.js +0 -1
  53. package/dist-es/commands/UpdateWorkspaceAliasCommand.js +0 -1
  54. package/dist-es/endpoints.js +0 -1
  55. package/dist-es/index.js +0 -1
  56. package/dist-es/models/index.js +0 -1
  57. package/dist-es/models/models_0.js +0 -1
  58. package/dist-es/pagination/Interfaces.js +0 -1
  59. package/dist-es/pagination/ListRuleGroupsNamespacesPaginator.js +0 -1
  60. package/dist-es/pagination/ListWorkspacesPaginator.js +0 -1
  61. package/dist-es/protocols/Aws_restJson1.js +0 -1
  62. package/dist-es/runtimeConfig.browser.js +1 -2
  63. package/dist-es/runtimeConfig.js +2 -3
  64. package/dist-es/runtimeConfig.native.js +0 -1
  65. package/dist-es/runtimeConfig.shared.js +0 -1
  66. package/dist-es/waiters/waitForWorkspaceActive.js +0 -1
  67. package/dist-es/waiters/waitForWorkspaceDeleted.js +0 -1
  68. package/package.json +34 -31
  69. package/dist-cjs/Amp.js.map +0 -1
  70. package/dist-cjs/AmpClient.js.map +0 -1
  71. package/dist-cjs/commands/CreateAlertManagerDefinitionCommand.js.map +0 -1
  72. package/dist-cjs/commands/CreateRuleGroupsNamespaceCommand.js.map +0 -1
  73. package/dist-cjs/commands/CreateWorkspaceCommand.js.map +0 -1
  74. package/dist-cjs/commands/DeleteAlertManagerDefinitionCommand.js.map +0 -1
  75. package/dist-cjs/commands/DeleteRuleGroupsNamespaceCommand.js.map +0 -1
  76. package/dist-cjs/commands/DeleteWorkspaceCommand.js.map +0 -1
  77. package/dist-cjs/commands/DescribeAlertManagerDefinitionCommand.js.map +0 -1
  78. package/dist-cjs/commands/DescribeRuleGroupsNamespaceCommand.js.map +0 -1
  79. package/dist-cjs/commands/DescribeWorkspaceCommand.js.map +0 -1
  80. package/dist-cjs/commands/ListRuleGroupsNamespacesCommand.js.map +0 -1
  81. package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
  82. package/dist-cjs/commands/ListWorkspacesCommand.js.map +0 -1
  83. package/dist-cjs/commands/PutAlertManagerDefinitionCommand.js.map +0 -1
  84. package/dist-cjs/commands/PutRuleGroupsNamespaceCommand.js.map +0 -1
  85. package/dist-cjs/commands/TagResourceCommand.js.map +0 -1
  86. package/dist-cjs/commands/UntagResourceCommand.js.map +0 -1
  87. package/dist-cjs/commands/UpdateWorkspaceAliasCommand.js.map +0 -1
  88. package/dist-cjs/endpoints.js.map +0 -1
  89. package/dist-cjs/index.js.map +0 -1
  90. package/dist-cjs/models/index.js.map +0 -1
  91. package/dist-cjs/models/models_0.js.map +0 -1
  92. package/dist-cjs/pagination/Interfaces.js.map +0 -1
  93. package/dist-cjs/pagination/ListRuleGroupsNamespacesPaginator.js.map +0 -1
  94. package/dist-cjs/pagination/ListWorkspacesPaginator.js.map +0 -1
  95. package/dist-cjs/protocols/Aws_restJson1.js.map +0 -1
  96. package/dist-cjs/runtimeConfig.browser.js.map +0 -1
  97. package/dist-cjs/runtimeConfig.js.map +0 -1
  98. package/dist-cjs/runtimeConfig.native.js.map +0 -1
  99. package/dist-cjs/runtimeConfig.shared.js.map +0 -1
  100. package/dist-cjs/waiters/waitForWorkspaceActive.js.map +0 -1
  101. package/dist-cjs/waiters/waitForWorkspaceDeleted.js.map +0 -1
  102. package/dist-es/Amp.js.map +0 -1
  103. package/dist-es/AmpClient.js.map +0 -1
  104. package/dist-es/commands/CreateAlertManagerDefinitionCommand.js.map +0 -1
  105. package/dist-es/commands/CreateRuleGroupsNamespaceCommand.js.map +0 -1
  106. package/dist-es/commands/CreateWorkspaceCommand.js.map +0 -1
  107. package/dist-es/commands/DeleteAlertManagerDefinitionCommand.js.map +0 -1
  108. package/dist-es/commands/DeleteRuleGroupsNamespaceCommand.js.map +0 -1
  109. package/dist-es/commands/DeleteWorkspaceCommand.js.map +0 -1
  110. package/dist-es/commands/DescribeAlertManagerDefinitionCommand.js.map +0 -1
  111. package/dist-es/commands/DescribeRuleGroupsNamespaceCommand.js.map +0 -1
  112. package/dist-es/commands/DescribeWorkspaceCommand.js.map +0 -1
  113. package/dist-es/commands/ListRuleGroupsNamespacesCommand.js.map +0 -1
  114. package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
  115. package/dist-es/commands/ListWorkspacesCommand.js.map +0 -1
  116. package/dist-es/commands/PutAlertManagerDefinitionCommand.js.map +0 -1
  117. package/dist-es/commands/PutRuleGroupsNamespaceCommand.js.map +0 -1
  118. package/dist-es/commands/TagResourceCommand.js.map +0 -1
  119. package/dist-es/commands/UntagResourceCommand.js.map +0 -1
  120. package/dist-es/commands/UpdateWorkspaceAliasCommand.js.map +0 -1
  121. package/dist-es/endpoints.js.map +0 -1
  122. package/dist-es/index.js.map +0 -1
  123. package/dist-es/models/index.js.map +0 -1
  124. package/dist-es/models/models_0.js.map +0 -1
  125. package/dist-es/pagination/Interfaces.js.map +0 -1
  126. package/dist-es/pagination/ListRuleGroupsNamespacesPaginator.js.map +0 -1
  127. package/dist-es/pagination/ListWorkspacesPaginator.js.map +0 -1
  128. package/dist-es/protocols/Aws_restJson1.js.map +0 -1
  129. package/dist-es/runtimeConfig.browser.js.map +0 -1
  130. package/dist-es/runtimeConfig.js.map +0 -1
  131. package/dist-es/runtimeConfig.native.js.map +0 -1
  132. package/dist-es/runtimeConfig.shared.js.map +0 -1
  133. package/dist-es/waiters/waitForWorkspaceActive.js.map +0 -1
  134. package/dist-es/waiters/waitForWorkspaceDeleted.js.map +0 -1
  135. package/jest.config.js +0 -4
  136. package/src/Amp.ts +0 -627
  137. package/src/AmpClient.ts +0 -320
  138. package/src/commands/CreateAlertManagerDefinitionCommand.ts +0 -100
  139. package/src/commands/CreateRuleGroupsNamespaceCommand.ts +0 -98
  140. package/src/commands/CreateWorkspaceCommand.ts +0 -95
  141. package/src/commands/DeleteAlertManagerDefinitionCommand.ts +0 -98
  142. package/src/commands/DeleteRuleGroupsNamespaceCommand.ts +0 -98
  143. package/src/commands/DeleteWorkspaceCommand.ts +0 -95
  144. package/src/commands/DescribeAlertManagerDefinitionCommand.ts +0 -103
  145. package/src/commands/DescribeRuleGroupsNamespaceCommand.ts +0 -100
  146. package/src/commands/DescribeWorkspaceCommand.ts +0 -95
  147. package/src/commands/ListRuleGroupsNamespacesCommand.ts +0 -95
  148. package/src/commands/ListTagsForResourceCommand.ts +0 -95
  149. package/src/commands/ListWorkspacesCommand.ts +0 -95
  150. package/src/commands/PutAlertManagerDefinitionCommand.ts +0 -98
  151. package/src/commands/PutRuleGroupsNamespaceCommand.ts +0 -95
  152. package/src/commands/TagResourceCommand.ts +0 -95
  153. package/src/commands/UntagResourceCommand.ts +0 -95
  154. package/src/commands/UpdateWorkspaceAliasCommand.ts +0 -95
  155. package/src/endpoints.ts +0 -57
  156. package/src/index.ts +0 -25
  157. package/src/models/index.ts +0 -1
  158. package/src/models/models_0.ts +0 -1347
  159. package/src/pagination/Interfaces.ts +0 -8
  160. package/src/pagination/ListRuleGroupsNamespacesPaginator.ts +0 -59
  161. package/src/pagination/ListWorkspacesPaginator.ts +0 -59
  162. package/src/protocols/Aws_restJson1.ts +0 -2735
  163. package/src/runtimeConfig.browser.ts +0 -41
  164. package/src/runtimeConfig.native.ts +0 -17
  165. package/src/runtimeConfig.shared.ts +0 -17
  166. package/src/runtimeConfig.ts +0 -46
  167. package/src/waiters/waitForWorkspaceActive.ts +0 -63
  168. package/src/waiters/waitForWorkspaceDeleted.ts +0 -50
  169. package/tsconfig.es.json +0 -10
  170. package/tsconfig.json +0 -33
  171. package/tsconfig.types.json +0 -9
@@ -1,95 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { AmpClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AmpClient";
15
- import { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_restJson1ListTagsForResourceCommand,
18
- serializeAws_restJson1ListTagsForResourceCommand,
19
- } from "../protocols/Aws_restJson1";
20
-
21
- export interface ListTagsForResourceCommandInput extends ListTagsForResourceRequest {}
22
- export interface ListTagsForResourceCommandOutput extends ListTagsForResourceResponse, __MetadataBearer {}
23
-
24
- /**
25
- * Lists the tags you have assigned to the resource.
26
- * @example
27
- * Use a bare-bones client and the command you need to make an API call.
28
- * ```javascript
29
- * import { AmpClient, ListTagsForResourceCommand } from "@aws-sdk/client-amp"; // ES Modules import
30
- * // const { AmpClient, ListTagsForResourceCommand } = require("@aws-sdk/client-amp"); // CommonJS import
31
- * const client = new AmpClient(config);
32
- * const command = new ListTagsForResourceCommand(input);
33
- * const response = await client.send(command);
34
- * ```
35
- *
36
- * @see {@link ListTagsForResourceCommandInput} for command's `input` shape.
37
- * @see {@link ListTagsForResourceCommandOutput} for command's `response` shape.
38
- * @see {@link AmpClientResolvedConfig | config} for command's `input` shape.
39
- *
40
- */
41
- export class ListTagsForResourceCommand extends $Command<
42
- ListTagsForResourceCommandInput,
43
- ListTagsForResourceCommandOutput,
44
- AmpClientResolvedConfig
45
- > {
46
- // Start section: command_properties
47
- // End section: command_properties
48
-
49
- constructor(readonly input: ListTagsForResourceCommandInput) {
50
- // Start section: command_constructor
51
- super();
52
- // End section: command_constructor
53
- }
54
-
55
- /**
56
- * @internal
57
- */
58
- resolveMiddleware(
59
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
60
- configuration: AmpClientResolvedConfig,
61
- options?: __HttpHandlerOptions
62
- ): Handler<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput> {
63
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
64
-
65
- const stack = clientStack.concat(this.middlewareStack);
66
-
67
- const { logger } = configuration;
68
- const clientName = "AmpClient";
69
- const commandName = "ListTagsForResourceCommand";
70
- const handlerExecutionContext: HandlerExecutionContext = {
71
- logger,
72
- clientName,
73
- commandName,
74
- inputFilterSensitiveLog: ListTagsForResourceRequest.filterSensitiveLog,
75
- outputFilterSensitiveLog: ListTagsForResourceResponse.filterSensitiveLog,
76
- };
77
- const { requestHandler } = configuration;
78
- return stack.resolve(
79
- (request: FinalizeHandlerArguments<any>) =>
80
- requestHandler.handle(request.request as __HttpRequest, options || {}),
81
- handlerExecutionContext
82
- );
83
- }
84
-
85
- private serialize(input: ListTagsForResourceCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
86
- return serializeAws_restJson1ListTagsForResourceCommand(input, context);
87
- }
88
-
89
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListTagsForResourceCommandOutput> {
90
- return deserializeAws_restJson1ListTagsForResourceCommand(output, context);
91
- }
92
-
93
- // Start section: command_body_extra
94
- // End section: command_body_extra
95
- }
@@ -1,95 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { AmpClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AmpClient";
15
- import { ListWorkspacesRequest, ListWorkspacesResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_restJson1ListWorkspacesCommand,
18
- serializeAws_restJson1ListWorkspacesCommand,
19
- } from "../protocols/Aws_restJson1";
20
-
21
- export interface ListWorkspacesCommandInput extends ListWorkspacesRequest {}
22
- export interface ListWorkspacesCommandOutput extends ListWorkspacesResponse, __MetadataBearer {}
23
-
24
- /**
25
- * Lists all AMP workspaces, including workspaces being created or deleted.
26
- * @example
27
- * Use a bare-bones client and the command you need to make an API call.
28
- * ```javascript
29
- * import { AmpClient, ListWorkspacesCommand } from "@aws-sdk/client-amp"; // ES Modules import
30
- * // const { AmpClient, ListWorkspacesCommand } = require("@aws-sdk/client-amp"); // CommonJS import
31
- * const client = new AmpClient(config);
32
- * const command = new ListWorkspacesCommand(input);
33
- * const response = await client.send(command);
34
- * ```
35
- *
36
- * @see {@link ListWorkspacesCommandInput} for command's `input` shape.
37
- * @see {@link ListWorkspacesCommandOutput} for command's `response` shape.
38
- * @see {@link AmpClientResolvedConfig | config} for command's `input` shape.
39
- *
40
- */
41
- export class ListWorkspacesCommand extends $Command<
42
- ListWorkspacesCommandInput,
43
- ListWorkspacesCommandOutput,
44
- AmpClientResolvedConfig
45
- > {
46
- // Start section: command_properties
47
- // End section: command_properties
48
-
49
- constructor(readonly input: ListWorkspacesCommandInput) {
50
- // Start section: command_constructor
51
- super();
52
- // End section: command_constructor
53
- }
54
-
55
- /**
56
- * @internal
57
- */
58
- resolveMiddleware(
59
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
60
- configuration: AmpClientResolvedConfig,
61
- options?: __HttpHandlerOptions
62
- ): Handler<ListWorkspacesCommandInput, ListWorkspacesCommandOutput> {
63
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
64
-
65
- const stack = clientStack.concat(this.middlewareStack);
66
-
67
- const { logger } = configuration;
68
- const clientName = "AmpClient";
69
- const commandName = "ListWorkspacesCommand";
70
- const handlerExecutionContext: HandlerExecutionContext = {
71
- logger,
72
- clientName,
73
- commandName,
74
- inputFilterSensitiveLog: ListWorkspacesRequest.filterSensitiveLog,
75
- outputFilterSensitiveLog: ListWorkspacesResponse.filterSensitiveLog,
76
- };
77
- const { requestHandler } = configuration;
78
- return stack.resolve(
79
- (request: FinalizeHandlerArguments<any>) =>
80
- requestHandler.handle(request.request as __HttpRequest, options || {}),
81
- handlerExecutionContext
82
- );
83
- }
84
-
85
- private serialize(input: ListWorkspacesCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
86
- return serializeAws_restJson1ListWorkspacesCommand(input, context);
87
- }
88
-
89
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListWorkspacesCommandOutput> {
90
- return deserializeAws_restJson1ListWorkspacesCommand(output, context);
91
- }
92
-
93
- // Start section: command_body_extra
94
- // End section: command_body_extra
95
- }
@@ -1,98 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { AmpClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AmpClient";
15
- import { PutAlertManagerDefinitionRequest, PutAlertManagerDefinitionResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_restJson1PutAlertManagerDefinitionCommand,
18
- serializeAws_restJson1PutAlertManagerDefinitionCommand,
19
- } from "../protocols/Aws_restJson1";
20
-
21
- export interface PutAlertManagerDefinitionCommandInput extends PutAlertManagerDefinitionRequest {}
22
- export interface PutAlertManagerDefinitionCommandOutput extends PutAlertManagerDefinitionResponse, __MetadataBearer {}
23
-
24
- /**
25
- * Update an alert manager definition.
26
- * @example
27
- * Use a bare-bones client and the command you need to make an API call.
28
- * ```javascript
29
- * import { AmpClient, PutAlertManagerDefinitionCommand } from "@aws-sdk/client-amp"; // ES Modules import
30
- * // const { AmpClient, PutAlertManagerDefinitionCommand } = require("@aws-sdk/client-amp"); // CommonJS import
31
- * const client = new AmpClient(config);
32
- * const command = new PutAlertManagerDefinitionCommand(input);
33
- * const response = await client.send(command);
34
- * ```
35
- *
36
- * @see {@link PutAlertManagerDefinitionCommandInput} for command's `input` shape.
37
- * @see {@link PutAlertManagerDefinitionCommandOutput} for command's `response` shape.
38
- * @see {@link AmpClientResolvedConfig | config} for command's `input` shape.
39
- *
40
- */
41
- export class PutAlertManagerDefinitionCommand extends $Command<
42
- PutAlertManagerDefinitionCommandInput,
43
- PutAlertManagerDefinitionCommandOutput,
44
- AmpClientResolvedConfig
45
- > {
46
- // Start section: command_properties
47
- // End section: command_properties
48
-
49
- constructor(readonly input: PutAlertManagerDefinitionCommandInput) {
50
- // Start section: command_constructor
51
- super();
52
- // End section: command_constructor
53
- }
54
-
55
- /**
56
- * @internal
57
- */
58
- resolveMiddleware(
59
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
60
- configuration: AmpClientResolvedConfig,
61
- options?: __HttpHandlerOptions
62
- ): Handler<PutAlertManagerDefinitionCommandInput, PutAlertManagerDefinitionCommandOutput> {
63
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
64
-
65
- const stack = clientStack.concat(this.middlewareStack);
66
-
67
- const { logger } = configuration;
68
- const clientName = "AmpClient";
69
- const commandName = "PutAlertManagerDefinitionCommand";
70
- const handlerExecutionContext: HandlerExecutionContext = {
71
- logger,
72
- clientName,
73
- commandName,
74
- inputFilterSensitiveLog: PutAlertManagerDefinitionRequest.filterSensitiveLog,
75
- outputFilterSensitiveLog: PutAlertManagerDefinitionResponse.filterSensitiveLog,
76
- };
77
- const { requestHandler } = configuration;
78
- return stack.resolve(
79
- (request: FinalizeHandlerArguments<any>) =>
80
- requestHandler.handle(request.request as __HttpRequest, options || {}),
81
- handlerExecutionContext
82
- );
83
- }
84
-
85
- private serialize(input: PutAlertManagerDefinitionCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
86
- return serializeAws_restJson1PutAlertManagerDefinitionCommand(input, context);
87
- }
88
-
89
- private deserialize(
90
- output: __HttpResponse,
91
- context: __SerdeContext
92
- ): Promise<PutAlertManagerDefinitionCommandOutput> {
93
- return deserializeAws_restJson1PutAlertManagerDefinitionCommand(output, context);
94
- }
95
-
96
- // Start section: command_body_extra
97
- // End section: command_body_extra
98
- }
@@ -1,95 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { AmpClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AmpClient";
15
- import { PutRuleGroupsNamespaceRequest, PutRuleGroupsNamespaceResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_restJson1PutRuleGroupsNamespaceCommand,
18
- serializeAws_restJson1PutRuleGroupsNamespaceCommand,
19
- } from "../protocols/Aws_restJson1";
20
-
21
- export interface PutRuleGroupsNamespaceCommandInput extends PutRuleGroupsNamespaceRequest {}
22
- export interface PutRuleGroupsNamespaceCommandOutput extends PutRuleGroupsNamespaceResponse, __MetadataBearer {}
23
-
24
- /**
25
- * Update a rule groups namespace.
26
- * @example
27
- * Use a bare-bones client and the command you need to make an API call.
28
- * ```javascript
29
- * import { AmpClient, PutRuleGroupsNamespaceCommand } from "@aws-sdk/client-amp"; // ES Modules import
30
- * // const { AmpClient, PutRuleGroupsNamespaceCommand } = require("@aws-sdk/client-amp"); // CommonJS import
31
- * const client = new AmpClient(config);
32
- * const command = new PutRuleGroupsNamespaceCommand(input);
33
- * const response = await client.send(command);
34
- * ```
35
- *
36
- * @see {@link PutRuleGroupsNamespaceCommandInput} for command's `input` shape.
37
- * @see {@link PutRuleGroupsNamespaceCommandOutput} for command's `response` shape.
38
- * @see {@link AmpClientResolvedConfig | config} for command's `input` shape.
39
- *
40
- */
41
- export class PutRuleGroupsNamespaceCommand extends $Command<
42
- PutRuleGroupsNamespaceCommandInput,
43
- PutRuleGroupsNamespaceCommandOutput,
44
- AmpClientResolvedConfig
45
- > {
46
- // Start section: command_properties
47
- // End section: command_properties
48
-
49
- constructor(readonly input: PutRuleGroupsNamespaceCommandInput) {
50
- // Start section: command_constructor
51
- super();
52
- // End section: command_constructor
53
- }
54
-
55
- /**
56
- * @internal
57
- */
58
- resolveMiddleware(
59
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
60
- configuration: AmpClientResolvedConfig,
61
- options?: __HttpHandlerOptions
62
- ): Handler<PutRuleGroupsNamespaceCommandInput, PutRuleGroupsNamespaceCommandOutput> {
63
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
64
-
65
- const stack = clientStack.concat(this.middlewareStack);
66
-
67
- const { logger } = configuration;
68
- const clientName = "AmpClient";
69
- const commandName = "PutRuleGroupsNamespaceCommand";
70
- const handlerExecutionContext: HandlerExecutionContext = {
71
- logger,
72
- clientName,
73
- commandName,
74
- inputFilterSensitiveLog: PutRuleGroupsNamespaceRequest.filterSensitiveLog,
75
- outputFilterSensitiveLog: PutRuleGroupsNamespaceResponse.filterSensitiveLog,
76
- };
77
- const { requestHandler } = configuration;
78
- return stack.resolve(
79
- (request: FinalizeHandlerArguments<any>) =>
80
- requestHandler.handle(request.request as __HttpRequest, options || {}),
81
- handlerExecutionContext
82
- );
83
- }
84
-
85
- private serialize(input: PutRuleGroupsNamespaceCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
86
- return serializeAws_restJson1PutRuleGroupsNamespaceCommand(input, context);
87
- }
88
-
89
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<PutRuleGroupsNamespaceCommandOutput> {
90
- return deserializeAws_restJson1PutRuleGroupsNamespaceCommand(output, context);
91
- }
92
-
93
- // Start section: command_body_extra
94
- // End section: command_body_extra
95
- }
@@ -1,95 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { AmpClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AmpClient";
15
- import { TagResourceRequest, TagResourceResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_restJson1TagResourceCommand,
18
- serializeAws_restJson1TagResourceCommand,
19
- } from "../protocols/Aws_restJson1";
20
-
21
- export interface TagResourceCommandInput extends TagResourceRequest {}
22
- export interface TagResourceCommandOutput extends TagResourceResponse, __MetadataBearer {}
23
-
24
- /**
25
- * Creates tags for the specified resource.
26
- * @example
27
- * Use a bare-bones client and the command you need to make an API call.
28
- * ```javascript
29
- * import { AmpClient, TagResourceCommand } from "@aws-sdk/client-amp"; // ES Modules import
30
- * // const { AmpClient, TagResourceCommand } = require("@aws-sdk/client-amp"); // CommonJS import
31
- * const client = new AmpClient(config);
32
- * const command = new TagResourceCommand(input);
33
- * const response = await client.send(command);
34
- * ```
35
- *
36
- * @see {@link TagResourceCommandInput} for command's `input` shape.
37
- * @see {@link TagResourceCommandOutput} for command's `response` shape.
38
- * @see {@link AmpClientResolvedConfig | config} for command's `input` shape.
39
- *
40
- */
41
- export class TagResourceCommand extends $Command<
42
- TagResourceCommandInput,
43
- TagResourceCommandOutput,
44
- AmpClientResolvedConfig
45
- > {
46
- // Start section: command_properties
47
- // End section: command_properties
48
-
49
- constructor(readonly input: TagResourceCommandInput) {
50
- // Start section: command_constructor
51
- super();
52
- // End section: command_constructor
53
- }
54
-
55
- /**
56
- * @internal
57
- */
58
- resolveMiddleware(
59
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
60
- configuration: AmpClientResolvedConfig,
61
- options?: __HttpHandlerOptions
62
- ): Handler<TagResourceCommandInput, TagResourceCommandOutput> {
63
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
64
-
65
- const stack = clientStack.concat(this.middlewareStack);
66
-
67
- const { logger } = configuration;
68
- const clientName = "AmpClient";
69
- const commandName = "TagResourceCommand";
70
- const handlerExecutionContext: HandlerExecutionContext = {
71
- logger,
72
- clientName,
73
- commandName,
74
- inputFilterSensitiveLog: TagResourceRequest.filterSensitiveLog,
75
- outputFilterSensitiveLog: TagResourceResponse.filterSensitiveLog,
76
- };
77
- const { requestHandler } = configuration;
78
- return stack.resolve(
79
- (request: FinalizeHandlerArguments<any>) =>
80
- requestHandler.handle(request.request as __HttpRequest, options || {}),
81
- handlerExecutionContext
82
- );
83
- }
84
-
85
- private serialize(input: TagResourceCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
86
- return serializeAws_restJson1TagResourceCommand(input, context);
87
- }
88
-
89
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<TagResourceCommandOutput> {
90
- return deserializeAws_restJson1TagResourceCommand(output, context);
91
- }
92
-
93
- // Start section: command_body_extra
94
- // End section: command_body_extra
95
- }
@@ -1,95 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { AmpClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AmpClient";
15
- import { UntagResourceRequest, UntagResourceResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_restJson1UntagResourceCommand,
18
- serializeAws_restJson1UntagResourceCommand,
19
- } from "../protocols/Aws_restJson1";
20
-
21
- export interface UntagResourceCommandInput extends UntagResourceRequest {}
22
- export interface UntagResourceCommandOutput extends UntagResourceResponse, __MetadataBearer {}
23
-
24
- /**
25
- * Deletes tags from the specified resource.
26
- * @example
27
- * Use a bare-bones client and the command you need to make an API call.
28
- * ```javascript
29
- * import { AmpClient, UntagResourceCommand } from "@aws-sdk/client-amp"; // ES Modules import
30
- * // const { AmpClient, UntagResourceCommand } = require("@aws-sdk/client-amp"); // CommonJS import
31
- * const client = new AmpClient(config);
32
- * const command = new UntagResourceCommand(input);
33
- * const response = await client.send(command);
34
- * ```
35
- *
36
- * @see {@link UntagResourceCommandInput} for command's `input` shape.
37
- * @see {@link UntagResourceCommandOutput} for command's `response` shape.
38
- * @see {@link AmpClientResolvedConfig | config} for command's `input` shape.
39
- *
40
- */
41
- export class UntagResourceCommand extends $Command<
42
- UntagResourceCommandInput,
43
- UntagResourceCommandOutput,
44
- AmpClientResolvedConfig
45
- > {
46
- // Start section: command_properties
47
- // End section: command_properties
48
-
49
- constructor(readonly input: UntagResourceCommandInput) {
50
- // Start section: command_constructor
51
- super();
52
- // End section: command_constructor
53
- }
54
-
55
- /**
56
- * @internal
57
- */
58
- resolveMiddleware(
59
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
60
- configuration: AmpClientResolvedConfig,
61
- options?: __HttpHandlerOptions
62
- ): Handler<UntagResourceCommandInput, UntagResourceCommandOutput> {
63
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
64
-
65
- const stack = clientStack.concat(this.middlewareStack);
66
-
67
- const { logger } = configuration;
68
- const clientName = "AmpClient";
69
- const commandName = "UntagResourceCommand";
70
- const handlerExecutionContext: HandlerExecutionContext = {
71
- logger,
72
- clientName,
73
- commandName,
74
- inputFilterSensitiveLog: UntagResourceRequest.filterSensitiveLog,
75
- outputFilterSensitiveLog: UntagResourceResponse.filterSensitiveLog,
76
- };
77
- const { requestHandler } = configuration;
78
- return stack.resolve(
79
- (request: FinalizeHandlerArguments<any>) =>
80
- requestHandler.handle(request.request as __HttpRequest, options || {}),
81
- handlerExecutionContext
82
- );
83
- }
84
-
85
- private serialize(input: UntagResourceCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
86
- return serializeAws_restJson1UntagResourceCommand(input, context);
87
- }
88
-
89
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<UntagResourceCommandOutput> {
90
- return deserializeAws_restJson1UntagResourceCommand(output, context);
91
- }
92
-
93
- // Start section: command_body_extra
94
- // End section: command_body_extra
95
- }
@@ -1,95 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { AmpClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AmpClient";
15
- import { UpdateWorkspaceAliasRequest } from "../models/models_0";
16
- import {
17
- deserializeAws_restJson1UpdateWorkspaceAliasCommand,
18
- serializeAws_restJson1UpdateWorkspaceAliasCommand,
19
- } from "../protocols/Aws_restJson1";
20
-
21
- export interface UpdateWorkspaceAliasCommandInput extends UpdateWorkspaceAliasRequest {}
22
- export interface UpdateWorkspaceAliasCommandOutput extends __MetadataBearer {}
23
-
24
- /**
25
- * Updates an AMP workspace alias.
26
- * @example
27
- * Use a bare-bones client and the command you need to make an API call.
28
- * ```javascript
29
- * import { AmpClient, UpdateWorkspaceAliasCommand } from "@aws-sdk/client-amp"; // ES Modules import
30
- * // const { AmpClient, UpdateWorkspaceAliasCommand } = require("@aws-sdk/client-amp"); // CommonJS import
31
- * const client = new AmpClient(config);
32
- * const command = new UpdateWorkspaceAliasCommand(input);
33
- * const response = await client.send(command);
34
- * ```
35
- *
36
- * @see {@link UpdateWorkspaceAliasCommandInput} for command's `input` shape.
37
- * @see {@link UpdateWorkspaceAliasCommandOutput} for command's `response` shape.
38
- * @see {@link AmpClientResolvedConfig | config} for command's `input` shape.
39
- *
40
- */
41
- export class UpdateWorkspaceAliasCommand extends $Command<
42
- UpdateWorkspaceAliasCommandInput,
43
- UpdateWorkspaceAliasCommandOutput,
44
- AmpClientResolvedConfig
45
- > {
46
- // Start section: command_properties
47
- // End section: command_properties
48
-
49
- constructor(readonly input: UpdateWorkspaceAliasCommandInput) {
50
- // Start section: command_constructor
51
- super();
52
- // End section: command_constructor
53
- }
54
-
55
- /**
56
- * @internal
57
- */
58
- resolveMiddleware(
59
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
60
- configuration: AmpClientResolvedConfig,
61
- options?: __HttpHandlerOptions
62
- ): Handler<UpdateWorkspaceAliasCommandInput, UpdateWorkspaceAliasCommandOutput> {
63
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
64
-
65
- const stack = clientStack.concat(this.middlewareStack);
66
-
67
- const { logger } = configuration;
68
- const clientName = "AmpClient";
69
- const commandName = "UpdateWorkspaceAliasCommand";
70
- const handlerExecutionContext: HandlerExecutionContext = {
71
- logger,
72
- clientName,
73
- commandName,
74
- inputFilterSensitiveLog: UpdateWorkspaceAliasRequest.filterSensitiveLog,
75
- outputFilterSensitiveLog: (output: any) => output,
76
- };
77
- const { requestHandler } = configuration;
78
- return stack.resolve(
79
- (request: FinalizeHandlerArguments<any>) =>
80
- requestHandler.handle(request.request as __HttpRequest, options || {}),
81
- handlerExecutionContext
82
- );
83
- }
84
-
85
- private serialize(input: UpdateWorkspaceAliasCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
86
- return serializeAws_restJson1UpdateWorkspaceAliasCommand(input, context);
87
- }
88
-
89
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<UpdateWorkspaceAliasCommandOutput> {
90
- return deserializeAws_restJson1UpdateWorkspaceAliasCommand(output, context);
91
- }
92
-
93
- // Start section: command_body_extra
94
- // End section: command_body_extra
95
- }