@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.
- package/CHANGELOG.md +44 -0
- package/README.md +7 -7
- package/dist-cjs/Amp.js +265 -0
- package/{dist/cjs → dist-cjs}/AmpClient.js +8 -9
- package/dist-cjs/commands/CreateAlertManagerDefinitionCommand.js +60 -0
- package/dist-cjs/commands/CreateRuleGroupsNamespaceCommand.js +60 -0
- package/{dist/cjs → dist-cjs}/commands/CreateWorkspaceCommand.js +2 -3
- package/dist-cjs/commands/DeleteAlertManagerDefinitionCommand.js +60 -0
- package/dist-cjs/commands/DeleteRuleGroupsNamespaceCommand.js +60 -0
- package/{dist/cjs → dist-cjs}/commands/DeleteWorkspaceCommand.js +2 -3
- package/dist-cjs/commands/DescribeAlertManagerDefinitionCommand.js +60 -0
- package/dist-cjs/commands/DescribeRuleGroupsNamespaceCommand.js +60 -0
- package/{dist/cjs → dist-cjs}/commands/DescribeWorkspaceCommand.js +2 -3
- package/dist-cjs/commands/ListRuleGroupsNamespacesCommand.js +60 -0
- package/{dist/cjs → dist-cjs}/commands/ListTagsForResourceCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListWorkspacesCommand.js +2 -3
- package/dist-cjs/commands/PutAlertManagerDefinitionCommand.js +60 -0
- package/dist-cjs/commands/PutRuleGroupsNamespaceCommand.js +60 -0
- package/{dist/cjs → dist-cjs}/commands/TagResourceCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/UntagResourceCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/UpdateWorkspaceAliasCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
- package/{dist/cjs → dist-cjs}/index.js +12 -1
- package/{dist/cjs → dist-cjs}/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +501 -0
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListRuleGroupsNamespacesPaginator.js +45 -0
- package/{dist/cjs → dist-cjs}/pagination/ListWorkspacesPaginator.js +0 -1
- package/dist-cjs/protocols/Aws_restJson1.js +2393 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +2 -2
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +2 -2
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -1
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -2
- package/dist-cjs/waiters/waitForWorkspaceActive.js +63 -0
- package/dist-cjs/waiters/waitForWorkspaceDeleted.js +48 -0
- package/dist-es/Amp.js +265 -0
- package/{dist/es → dist-es}/AmpClient.js +2 -11
- package/dist-es/commands/CreateAlertManagerDefinitionCommand.js +39 -0
- package/dist-es/commands/CreateRuleGroupsNamespaceCommand.js +39 -0
- package/{dist/es → dist-es}/commands/CreateWorkspaceCommand.js +4 -30
- package/dist-es/commands/DeleteAlertManagerDefinitionCommand.js +39 -0
- package/dist-es/commands/DeleteRuleGroupsNamespaceCommand.js +39 -0
- package/{dist/es → dist-es}/commands/DeleteWorkspaceCommand.js +4 -30
- package/dist-es/commands/DescribeAlertManagerDefinitionCommand.js +39 -0
- package/dist-es/commands/DescribeRuleGroupsNamespaceCommand.js +39 -0
- package/{dist/es → dist-es}/commands/DescribeWorkspaceCommand.js +4 -30
- package/dist-es/commands/ListRuleGroupsNamespacesCommand.js +39 -0
- package/{dist/es → dist-es}/commands/ListTagsForResourceCommand.js +4 -30
- package/{dist/es → dist-es}/commands/ListWorkspacesCommand.js +4 -30
- package/dist-es/commands/PutAlertManagerDefinitionCommand.js +39 -0
- package/dist-es/commands/PutRuleGroupsNamespaceCommand.js +39 -0
- package/{dist/es → dist-es}/commands/TagResourceCommand.js +4 -30
- package/{dist/es → dist-es}/commands/UntagResourceCommand.js +4 -30
- package/{dist/es → dist-es}/commands/UpdateWorkspaceAliasCommand.js +4 -30
- package/{dist/es → dist-es}/endpoints.js +1 -2
- package/dist-es/index.js +25 -0
- package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
- package/dist-es/models/models_0.js +218 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListRuleGroupsNamespacesPaginator.js +74 -0
- package/{dist/es → dist-es}/pagination/ListWorkspacesPaginator.js +16 -29
- package/dist-es/protocols/Aws_restJson1.js +2684 -0
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
- package/dist-es/waiters/waitForWorkspaceActive.js +69 -0
- package/dist-es/waiters/waitForWorkspaceDeleted.js +54 -0
- package/dist-types/Amp.d.ts +126 -0
- package/{dist/types/ts3.4 → dist-types}/AmpClient.d.ts +149 -140
- package/dist-types/commands/CreateAlertManagerDefinitionCommand.d.ts +35 -0
- package/dist-types/commands/CreateRuleGroupsNamespaceCommand.d.ts +35 -0
- package/{dist/types → dist-types}/commands/CreateWorkspaceCommand.d.ts +2 -2
- package/dist-types/commands/DeleteAlertManagerDefinitionCommand.d.ts +35 -0
- package/dist-types/commands/DeleteRuleGroupsNamespaceCommand.d.ts +35 -0
- package/{dist/types → dist-types}/commands/DeleteWorkspaceCommand.d.ts +2 -2
- package/dist-types/commands/DescribeAlertManagerDefinitionCommand.d.ts +35 -0
- package/dist-types/commands/DescribeRuleGroupsNamespaceCommand.d.ts +35 -0
- package/{dist/types → dist-types}/commands/DescribeWorkspaceCommand.d.ts +2 -2
- package/dist-types/commands/ListRuleGroupsNamespacesCommand.d.ts +35 -0
- package/{dist/types → dist-types}/commands/ListTagsForResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListWorkspacesCommand.d.ts +2 -2
- package/dist-types/commands/PutAlertManagerDefinitionCommand.d.ts +35 -0
- package/dist-types/commands/PutRuleGroupsNamespaceCommand.d.ts +35 -0
- package/{dist/types → dist-types}/commands/TagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UntagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdateWorkspaceAliasCommand.d.ts +2 -2
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/dist-types/index.d.ts +25 -0
- package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
- package/dist-types/models/models_0.d.ts +1103 -0
- package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
- package/dist-types/pagination/ListRuleGroupsNamespacesPaginator.d.ts +4 -0
- package/{dist/types → dist-types}/pagination/ListWorkspacesPaginator.d.ts +1 -1
- package/dist-types/protocols/Aws_restJson1.d.ts +53 -0
- package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +1 -0
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.d.ts +37 -36
- package/{dist/types → dist-types}/runtimeConfig.native.d.ts +1 -0
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/dist-types/ts3.4/Amp.d.ts +126 -0
- package/{dist/types → dist-types/ts3.4}/AmpClient.d.ts +149 -140
- package/dist-types/ts3.4/commands/CreateAlertManagerDefinitionCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/CreateRuleGroupsNamespaceCommand.d.ts +35 -0
- package/{dist/types → dist-types}/ts3.4/commands/CreateWorkspaceCommand.d.ts +2 -2
- package/dist-types/ts3.4/commands/DeleteAlertManagerDefinitionCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/DeleteRuleGroupsNamespaceCommand.d.ts +35 -0
- package/{dist/types → dist-types}/ts3.4/commands/DeleteWorkspaceCommand.d.ts +2 -2
- package/dist-types/ts3.4/commands/DescribeAlertManagerDefinitionCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/DescribeRuleGroupsNamespaceCommand.d.ts +35 -0
- package/{dist/types → dist-types}/ts3.4/commands/DescribeWorkspaceCommand.d.ts +2 -2
- package/dist-types/ts3.4/commands/ListRuleGroupsNamespacesCommand.d.ts +35 -0
- package/{dist/types → dist-types}/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListWorkspacesCommand.d.ts +2 -2
- package/dist-types/ts3.4/commands/PutAlertManagerDefinitionCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/PutRuleGroupsNamespaceCommand.d.ts +35 -0
- package/{dist/types → dist-types}/ts3.4/commands/TagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/UntagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/UpdateWorkspaceAliasCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/dist-types/ts3.4/index.d.ts +25 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/dist-types/ts3.4/models/models_0.d.ts +1103 -0
- package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
- package/dist-types/ts3.4/pagination/ListRuleGroupsNamespacesPaginator.d.ts +4 -0
- package/{dist/types → dist-types}/ts3.4/pagination/ListWorkspacesPaginator.d.ts +1 -1
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +53 -0
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.d.ts +37 -36
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
- package/dist-types/ts3.4/waiters/waitForWorkspaceActive.d.ts +14 -0
- package/dist-types/ts3.4/waiters/waitForWorkspaceDeleted.d.ts +14 -0
- package/dist-types/waiters/waitForWorkspaceActive.d.ts +14 -0
- package/dist-types/waiters/waitForWorkspaceDeleted.d.ts +14 -0
- package/package.json +53 -49
- package/Amp.ts +0 -293
- package/AmpClient.ts +0 -265
- package/commands/CreateWorkspaceCommand.ts +0 -94
- package/commands/DeleteWorkspaceCommand.ts +0 -94
- package/commands/DescribeWorkspaceCommand.ts +0 -94
- package/commands/ListTagsForResourceCommand.ts +0 -94
- package/commands/ListWorkspacesCommand.ts +0 -94
- package/commands/TagResourceCommand.ts +0 -94
- package/commands/UntagResourceCommand.ts +0 -94
- package/commands/UpdateWorkspaceAliasCommand.ts +0 -94
- package/dist/cjs/Amp.js +0 -131
- package/dist/cjs/Amp.js.map +0 -1
- package/dist/cjs/AmpClient.js.map +0 -1
- package/dist/cjs/commands/CreateWorkspaceCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteWorkspaceCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeWorkspaceCommand.js.map +0 -1
- package/dist/cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist/cjs/commands/ListWorkspacesCommand.js.map +0 -1
- package/dist/cjs/commands/TagResourceCommand.js.map +0 -1
- package/dist/cjs/commands/UntagResourceCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateWorkspaceAliasCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/index.js.map +0 -1
- package/dist/cjs/models/models_0.js +0 -259
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -93
- package/dist/cjs/pagination/Interfaces.js.map +0 -1
- package/dist/cjs/pagination/ListWorkspacesPaginator.js.map +0 -1
- package/dist/cjs/protocols/Aws_restJson1.js +0 -1176
- package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
- package/dist/cjs/runtimeConfig.browser.js.map +0 -1
- package/dist/cjs/runtimeConfig.js.map +0 -1
- package/dist/cjs/runtimeConfig.native.js.map +0 -1
- package/dist/cjs/runtimeConfig.shared.js.map +0 -1
- package/dist/es/Amp.js +0 -134
- package/dist/es/Amp.js.map +0 -1
- package/dist/es/AmpClient.js.map +0 -1
- package/dist/es/commands/CreateWorkspaceCommand.js.map +0 -1
- package/dist/es/commands/DeleteWorkspaceCommand.js.map +0 -1
- package/dist/es/commands/DescribeWorkspaceCommand.js.map +0 -1
- package/dist/es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist/es/commands/ListWorkspacesCommand.js.map +0 -1
- package/dist/es/commands/TagResourceCommand.js.map +0 -1
- package/dist/es/commands/UntagResourceCommand.js.map +0 -1
- package/dist/es/commands/UpdateWorkspaceAliasCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js +0 -14
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js +0 -2
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js +0 -207
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -93
- package/dist/es/pagination/Interfaces.js +0 -2
- package/dist/es/pagination/Interfaces.js.map +0 -1
- package/dist/es/pagination/ListWorkspacesPaginator.js.map +0 -1
- package/dist/es/protocols/Aws_restJson1.js +0 -1327
- package/dist/es/protocols/Aws_restJson1.js.map +0 -1
- package/dist/es/runtimeConfig.browser.js.map +0 -1
- package/dist/es/runtimeConfig.js.map +0 -1
- package/dist/es/runtimeConfig.native.js.map +0 -1
- package/dist/es/runtimeConfig.shared.js.map +0 -1
- package/dist/types/Amp.d.ts +0 -63
- package/dist/types/index.d.ts +0 -13
- package/dist/types/models/models_0.d.ts +0 -562
- package/dist/types/protocols/Aws_restJson1.d.ts +0 -26
- package/dist/types/ts3.4/Amp.d.ts +0 -63
- package/dist/types/ts3.4/index.d.ts +0 -13
- package/dist/types/ts3.4/models/models_0.d.ts +0 -562
- package/dist/types/ts3.4/protocols/Aws_restJson1.d.ts +0 -26
- package/endpoints.ts +0 -57
- package/index.ts +0 -13
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -689
- package/pagination/Interfaces.ts +0 -7
- package/pagination/ListWorkspacesPaginator.ts +0 -58
- package/protocols/Aws_restJson1.ts +0 -1348
- package/runtimeConfig.browser.ts +0 -40
- package/runtimeConfig.native.ts +0 -16
- package/runtimeConfig.shared.ts +0 -16
- package/runtimeConfig.ts +0 -45
- package/tsconfig.es.json +0 -12
- package/tsconfig.json +0 -32
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,50 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.36.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.35.0...v3.36.0) (2021-10-08)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* publish files in dist-* only ([#2873](https://github.com/aws/aws-sdk-js-v3/issues/2873)) ([53b4243](https://github.com/aws/aws-sdk-js-v3/commit/53b4243b066f25ff2412d5f0dea1036054b2df32))
|
|
12
|
+
* **codegen:** ts-ignore packageInfo imports in codegen ([#2875](https://github.com/aws/aws-sdk-js-v3/issues/2875)) ([99d9267](https://github.com/aws/aws-sdk-js-v3/commit/99d926762193e83a354edec6e9de2b0543449704))
|
|
13
|
+
* **tsconfig:** remove sourceMap ([#2867](https://github.com/aws/aws-sdk-js-v3/issues/2867)) ([d25f526](https://github.com/aws/aws-sdk-js-v3/commit/d25f526627a02a2ca28675fecce66c76b6c97966))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
# [3.35.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.34.0...v3.35.0) (2021-10-04)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Features
|
|
23
|
+
|
|
24
|
+
* **clients:** eslint --fix using esprint ([#2849](https://github.com/aws/aws-sdk-js-v3/issues/2849)) ([94d0a2d](https://github.com/aws/aws-sdk-js-v3/commit/94d0a2d8a0579ee0a742337937ad05735cfbc1ba))
|
|
25
|
+
* **clients:** move source files to 'src' folder ([#2845](https://github.com/aws/aws-sdk-js-v3/issues/2845)) ([e0025cd](https://github.com/aws/aws-sdk-js-v3/commit/e0025cddbba244a41ddf1fd1adb761142e15c22d))
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
# [3.34.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.33.0...v3.34.0) (2021-09-24)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
### Features
|
|
35
|
+
|
|
36
|
+
* **clients:** remove comments from transpiled JS files ([#2817](https://github.com/aws/aws-sdk-js-v3/issues/2817)) ([d01420b](https://github.com/aws/aws-sdk-js-v3/commit/d01420b247966c8ec84c1dd0a1b42512ede10c90))
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
# [3.33.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.32.0...v3.33.0) (2021-09-21)
|
|
43
|
+
|
|
44
|
+
**Note:** Version bump only for package @aws-sdk/client-amp
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
6
50
|
# [3.32.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.31.0...v3.32.0) (2021-09-17)
|
|
7
51
|
|
|
8
52
|
**Note:** Version bump only for package @aws-sdk/client-amp
|
package/README.md
CHANGED
|
@@ -24,16 +24,16 @@ using your favorite package manager:
|
|
|
24
24
|
|
|
25
25
|
The AWS SDK is modulized by clients and commands.
|
|
26
26
|
To send a request, you only need to import the `AmpClient` and
|
|
27
|
-
the commands you need, for example `
|
|
27
|
+
the commands you need, for example `CreateAlertManagerDefinitionCommand`:
|
|
28
28
|
|
|
29
29
|
```js
|
|
30
30
|
// ES5 example
|
|
31
|
-
const { AmpClient,
|
|
31
|
+
const { AmpClient, CreateAlertManagerDefinitionCommand } = require("@aws-sdk/client-amp");
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
```ts
|
|
35
35
|
// ES6+ example
|
|
36
|
-
import { AmpClient,
|
|
36
|
+
import { AmpClient, CreateAlertManagerDefinitionCommand } from "@aws-sdk/client-amp";
|
|
37
37
|
```
|
|
38
38
|
|
|
39
39
|
### Usage
|
|
@@ -52,7 +52,7 @@ const client = new AmpClient({ region: "REGION" });
|
|
|
52
52
|
const params = {
|
|
53
53
|
/** input parameters */
|
|
54
54
|
};
|
|
55
|
-
const command = new
|
|
55
|
+
const command = new CreateAlertManagerDefinitionCommand(params);
|
|
56
56
|
```
|
|
57
57
|
|
|
58
58
|
#### Async/await
|
|
@@ -131,7 +131,7 @@ const client = new AWS.Amp({ region: "REGION" });
|
|
|
131
131
|
|
|
132
132
|
// async/await.
|
|
133
133
|
try {
|
|
134
|
-
const data = await client.
|
|
134
|
+
const data = await client.createAlertManagerDefinition(params);
|
|
135
135
|
// process data.
|
|
136
136
|
} catch (error) {
|
|
137
137
|
// error handling.
|
|
@@ -139,7 +139,7 @@ try {
|
|
|
139
139
|
|
|
140
140
|
// Promises.
|
|
141
141
|
client
|
|
142
|
-
.
|
|
142
|
+
.createAlertManagerDefinition(params)
|
|
143
143
|
.then((data) => {
|
|
144
144
|
// process data.
|
|
145
145
|
})
|
|
@@ -148,7 +148,7 @@ client
|
|
|
148
148
|
});
|
|
149
149
|
|
|
150
150
|
// callbacks.
|
|
151
|
-
client.
|
|
151
|
+
client.createAlertManagerDefinition(params, (err, data) => {
|
|
152
152
|
// proccess err and data.
|
|
153
153
|
});
|
|
154
154
|
```
|
package/dist-cjs/Amp.js
ADDED
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Amp = void 0;
|
|
4
|
+
const AmpClient_1 = require("./AmpClient");
|
|
5
|
+
const CreateAlertManagerDefinitionCommand_1 = require("./commands/CreateAlertManagerDefinitionCommand");
|
|
6
|
+
const CreateRuleGroupsNamespaceCommand_1 = require("./commands/CreateRuleGroupsNamespaceCommand");
|
|
7
|
+
const CreateWorkspaceCommand_1 = require("./commands/CreateWorkspaceCommand");
|
|
8
|
+
const DeleteAlertManagerDefinitionCommand_1 = require("./commands/DeleteAlertManagerDefinitionCommand");
|
|
9
|
+
const DeleteRuleGroupsNamespaceCommand_1 = require("./commands/DeleteRuleGroupsNamespaceCommand");
|
|
10
|
+
const DeleteWorkspaceCommand_1 = require("./commands/DeleteWorkspaceCommand");
|
|
11
|
+
const DescribeAlertManagerDefinitionCommand_1 = require("./commands/DescribeAlertManagerDefinitionCommand");
|
|
12
|
+
const DescribeRuleGroupsNamespaceCommand_1 = require("./commands/DescribeRuleGroupsNamespaceCommand");
|
|
13
|
+
const DescribeWorkspaceCommand_1 = require("./commands/DescribeWorkspaceCommand");
|
|
14
|
+
const ListRuleGroupsNamespacesCommand_1 = require("./commands/ListRuleGroupsNamespacesCommand");
|
|
15
|
+
const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
|
|
16
|
+
const ListWorkspacesCommand_1 = require("./commands/ListWorkspacesCommand");
|
|
17
|
+
const PutAlertManagerDefinitionCommand_1 = require("./commands/PutAlertManagerDefinitionCommand");
|
|
18
|
+
const PutRuleGroupsNamespaceCommand_1 = require("./commands/PutRuleGroupsNamespaceCommand");
|
|
19
|
+
const TagResourceCommand_1 = require("./commands/TagResourceCommand");
|
|
20
|
+
const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
|
|
21
|
+
const UpdateWorkspaceAliasCommand_1 = require("./commands/UpdateWorkspaceAliasCommand");
|
|
22
|
+
/**
|
|
23
|
+
* Amazon Managed Service for Prometheus
|
|
24
|
+
*/
|
|
25
|
+
class Amp extends AmpClient_1.AmpClient {
|
|
26
|
+
createAlertManagerDefinition(args, optionsOrCb, cb) {
|
|
27
|
+
const command = new CreateAlertManagerDefinitionCommand_1.CreateAlertManagerDefinitionCommand(args);
|
|
28
|
+
if (typeof optionsOrCb === "function") {
|
|
29
|
+
this.send(command, optionsOrCb);
|
|
30
|
+
}
|
|
31
|
+
else if (typeof cb === "function") {
|
|
32
|
+
if (typeof optionsOrCb !== "object")
|
|
33
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
34
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
return this.send(command, optionsOrCb);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
createRuleGroupsNamespace(args, optionsOrCb, cb) {
|
|
41
|
+
const command = new CreateRuleGroupsNamespaceCommand_1.CreateRuleGroupsNamespaceCommand(args);
|
|
42
|
+
if (typeof optionsOrCb === "function") {
|
|
43
|
+
this.send(command, optionsOrCb);
|
|
44
|
+
}
|
|
45
|
+
else if (typeof cb === "function") {
|
|
46
|
+
if (typeof optionsOrCb !== "object")
|
|
47
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
48
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
return this.send(command, optionsOrCb);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
createWorkspace(args, optionsOrCb, cb) {
|
|
55
|
+
const command = new CreateWorkspaceCommand_1.CreateWorkspaceCommand(args);
|
|
56
|
+
if (typeof optionsOrCb === "function") {
|
|
57
|
+
this.send(command, optionsOrCb);
|
|
58
|
+
}
|
|
59
|
+
else if (typeof cb === "function") {
|
|
60
|
+
if (typeof optionsOrCb !== "object")
|
|
61
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
62
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
63
|
+
}
|
|
64
|
+
else {
|
|
65
|
+
return this.send(command, optionsOrCb);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
deleteAlertManagerDefinition(args, optionsOrCb, cb) {
|
|
69
|
+
const command = new DeleteAlertManagerDefinitionCommand_1.DeleteAlertManagerDefinitionCommand(args);
|
|
70
|
+
if (typeof optionsOrCb === "function") {
|
|
71
|
+
this.send(command, optionsOrCb);
|
|
72
|
+
}
|
|
73
|
+
else if (typeof cb === "function") {
|
|
74
|
+
if (typeof optionsOrCb !== "object")
|
|
75
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
76
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
77
|
+
}
|
|
78
|
+
else {
|
|
79
|
+
return this.send(command, optionsOrCb);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
deleteRuleGroupsNamespace(args, optionsOrCb, cb) {
|
|
83
|
+
const command = new DeleteRuleGroupsNamespaceCommand_1.DeleteRuleGroupsNamespaceCommand(args);
|
|
84
|
+
if (typeof optionsOrCb === "function") {
|
|
85
|
+
this.send(command, optionsOrCb);
|
|
86
|
+
}
|
|
87
|
+
else if (typeof cb === "function") {
|
|
88
|
+
if (typeof optionsOrCb !== "object")
|
|
89
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
90
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
91
|
+
}
|
|
92
|
+
else {
|
|
93
|
+
return this.send(command, optionsOrCb);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
deleteWorkspace(args, optionsOrCb, cb) {
|
|
97
|
+
const command = new DeleteWorkspaceCommand_1.DeleteWorkspaceCommand(args);
|
|
98
|
+
if (typeof optionsOrCb === "function") {
|
|
99
|
+
this.send(command, optionsOrCb);
|
|
100
|
+
}
|
|
101
|
+
else if (typeof cb === "function") {
|
|
102
|
+
if (typeof optionsOrCb !== "object")
|
|
103
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
104
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
105
|
+
}
|
|
106
|
+
else {
|
|
107
|
+
return this.send(command, optionsOrCb);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
describeAlertManagerDefinition(args, optionsOrCb, cb) {
|
|
111
|
+
const command = new DescribeAlertManagerDefinitionCommand_1.DescribeAlertManagerDefinitionCommand(args);
|
|
112
|
+
if (typeof optionsOrCb === "function") {
|
|
113
|
+
this.send(command, optionsOrCb);
|
|
114
|
+
}
|
|
115
|
+
else if (typeof cb === "function") {
|
|
116
|
+
if (typeof optionsOrCb !== "object")
|
|
117
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
118
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
119
|
+
}
|
|
120
|
+
else {
|
|
121
|
+
return this.send(command, optionsOrCb);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
describeRuleGroupsNamespace(args, optionsOrCb, cb) {
|
|
125
|
+
const command = new DescribeRuleGroupsNamespaceCommand_1.DescribeRuleGroupsNamespaceCommand(args);
|
|
126
|
+
if (typeof optionsOrCb === "function") {
|
|
127
|
+
this.send(command, optionsOrCb);
|
|
128
|
+
}
|
|
129
|
+
else if (typeof cb === "function") {
|
|
130
|
+
if (typeof optionsOrCb !== "object")
|
|
131
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
132
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
133
|
+
}
|
|
134
|
+
else {
|
|
135
|
+
return this.send(command, optionsOrCb);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
describeWorkspace(args, optionsOrCb, cb) {
|
|
139
|
+
const command = new DescribeWorkspaceCommand_1.DescribeWorkspaceCommand(args);
|
|
140
|
+
if (typeof optionsOrCb === "function") {
|
|
141
|
+
this.send(command, optionsOrCb);
|
|
142
|
+
}
|
|
143
|
+
else if (typeof cb === "function") {
|
|
144
|
+
if (typeof optionsOrCb !== "object")
|
|
145
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
146
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
147
|
+
}
|
|
148
|
+
else {
|
|
149
|
+
return this.send(command, optionsOrCb);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
listRuleGroupsNamespaces(args, optionsOrCb, cb) {
|
|
153
|
+
const command = new ListRuleGroupsNamespacesCommand_1.ListRuleGroupsNamespacesCommand(args);
|
|
154
|
+
if (typeof optionsOrCb === "function") {
|
|
155
|
+
this.send(command, optionsOrCb);
|
|
156
|
+
}
|
|
157
|
+
else if (typeof cb === "function") {
|
|
158
|
+
if (typeof optionsOrCb !== "object")
|
|
159
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
160
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
161
|
+
}
|
|
162
|
+
else {
|
|
163
|
+
return this.send(command, optionsOrCb);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
listTagsForResource(args, optionsOrCb, cb) {
|
|
167
|
+
const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
|
|
168
|
+
if (typeof optionsOrCb === "function") {
|
|
169
|
+
this.send(command, optionsOrCb);
|
|
170
|
+
}
|
|
171
|
+
else if (typeof cb === "function") {
|
|
172
|
+
if (typeof optionsOrCb !== "object")
|
|
173
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
174
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
175
|
+
}
|
|
176
|
+
else {
|
|
177
|
+
return this.send(command, optionsOrCb);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
listWorkspaces(args, optionsOrCb, cb) {
|
|
181
|
+
const command = new ListWorkspacesCommand_1.ListWorkspacesCommand(args);
|
|
182
|
+
if (typeof optionsOrCb === "function") {
|
|
183
|
+
this.send(command, optionsOrCb);
|
|
184
|
+
}
|
|
185
|
+
else if (typeof cb === "function") {
|
|
186
|
+
if (typeof optionsOrCb !== "object")
|
|
187
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
188
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
189
|
+
}
|
|
190
|
+
else {
|
|
191
|
+
return this.send(command, optionsOrCb);
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
putAlertManagerDefinition(args, optionsOrCb, cb) {
|
|
195
|
+
const command = new PutAlertManagerDefinitionCommand_1.PutAlertManagerDefinitionCommand(args);
|
|
196
|
+
if (typeof optionsOrCb === "function") {
|
|
197
|
+
this.send(command, optionsOrCb);
|
|
198
|
+
}
|
|
199
|
+
else if (typeof cb === "function") {
|
|
200
|
+
if (typeof optionsOrCb !== "object")
|
|
201
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
202
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
203
|
+
}
|
|
204
|
+
else {
|
|
205
|
+
return this.send(command, optionsOrCb);
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
putRuleGroupsNamespace(args, optionsOrCb, cb) {
|
|
209
|
+
const command = new PutRuleGroupsNamespaceCommand_1.PutRuleGroupsNamespaceCommand(args);
|
|
210
|
+
if (typeof optionsOrCb === "function") {
|
|
211
|
+
this.send(command, optionsOrCb);
|
|
212
|
+
}
|
|
213
|
+
else if (typeof cb === "function") {
|
|
214
|
+
if (typeof optionsOrCb !== "object")
|
|
215
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
216
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
217
|
+
}
|
|
218
|
+
else {
|
|
219
|
+
return this.send(command, optionsOrCb);
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
tagResource(args, optionsOrCb, cb) {
|
|
223
|
+
const command = new TagResourceCommand_1.TagResourceCommand(args);
|
|
224
|
+
if (typeof optionsOrCb === "function") {
|
|
225
|
+
this.send(command, optionsOrCb);
|
|
226
|
+
}
|
|
227
|
+
else if (typeof cb === "function") {
|
|
228
|
+
if (typeof optionsOrCb !== "object")
|
|
229
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
230
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
231
|
+
}
|
|
232
|
+
else {
|
|
233
|
+
return this.send(command, optionsOrCb);
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
untagResource(args, optionsOrCb, cb) {
|
|
237
|
+
const command = new UntagResourceCommand_1.UntagResourceCommand(args);
|
|
238
|
+
if (typeof optionsOrCb === "function") {
|
|
239
|
+
this.send(command, optionsOrCb);
|
|
240
|
+
}
|
|
241
|
+
else if (typeof cb === "function") {
|
|
242
|
+
if (typeof optionsOrCb !== "object")
|
|
243
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
244
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
245
|
+
}
|
|
246
|
+
else {
|
|
247
|
+
return this.send(command, optionsOrCb);
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
updateWorkspaceAlias(args, optionsOrCb, cb) {
|
|
251
|
+
const command = new UpdateWorkspaceAliasCommand_1.UpdateWorkspaceAliasCommand(args);
|
|
252
|
+
if (typeof optionsOrCb === "function") {
|
|
253
|
+
this.send(command, optionsOrCb);
|
|
254
|
+
}
|
|
255
|
+
else if (typeof cb === "function") {
|
|
256
|
+
if (typeof optionsOrCb !== "object")
|
|
257
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
258
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
259
|
+
}
|
|
260
|
+
else {
|
|
261
|
+
return this.send(command, optionsOrCb);
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
exports.Amp = Amp;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AmpClient = void 0;
|
|
4
|
-
const runtimeConfig_1 = require("./runtimeConfig");
|
|
5
4
|
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
6
5
|
const middleware_content_length_1 = require("@aws-sdk/middleware-content-length");
|
|
7
6
|
const middleware_host_header_1 = require("@aws-sdk/middleware-host-header");
|
|
@@ -10,18 +9,19 @@ const middleware_retry_1 = require("@aws-sdk/middleware-retry");
|
|
|
10
9
|
const middleware_signing_1 = require("@aws-sdk/middleware-signing");
|
|
11
10
|
const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
|
|
12
11
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
12
|
+
const runtimeConfig_1 = require("./runtimeConfig");
|
|
13
13
|
/**
|
|
14
14
|
* Amazon Managed Service for Prometheus
|
|
15
15
|
*/
|
|
16
16
|
class AmpClient extends smithy_client_1.Client {
|
|
17
17
|
constructor(configuration) {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
18
|
+
const _config_0 = runtimeConfig_1.getRuntimeConfig(configuration);
|
|
19
|
+
const _config_1 = config_resolver_1.resolveRegionConfig(_config_0);
|
|
20
|
+
const _config_2 = config_resolver_1.resolveEndpointsConfig(_config_1);
|
|
21
|
+
const _config_3 = middleware_retry_1.resolveRetryConfig(_config_2);
|
|
22
|
+
const _config_4 = middleware_host_header_1.resolveHostHeaderConfig(_config_3);
|
|
23
|
+
const _config_5 = middleware_signing_1.resolveAwsAuthConfig(_config_4);
|
|
24
|
+
const _config_6 = middleware_user_agent_1.resolveUserAgentConfig(_config_5);
|
|
25
25
|
super(_config_6);
|
|
26
26
|
this.config = _config_6;
|
|
27
27
|
this.middlewareStack.use(middleware_retry_1.getRetryPlugin(this.config));
|
|
@@ -41,4 +41,3 @@ class AmpClient extends smithy_client_1.Client {
|
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
exports.AmpClient = AmpClient;
|
|
44
|
-
//# sourceMappingURL=AmpClient.js.map
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateAlertManagerDefinitionCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
/**
|
|
9
|
+
* Create an alert manager definition.
|
|
10
|
+
* @example
|
|
11
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
+
* ```javascript
|
|
13
|
+
* import { AmpClient, CreateAlertManagerDefinitionCommand } from "@aws-sdk/client-amp"; // ES Modules import
|
|
14
|
+
* // const { AmpClient, CreateAlertManagerDefinitionCommand } = require("@aws-sdk/client-amp"); // CommonJS import
|
|
15
|
+
* const client = new AmpClient(config);
|
|
16
|
+
* const command = new CreateAlertManagerDefinitionCommand(input);
|
|
17
|
+
* const response = await client.send(command);
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* @see {@link CreateAlertManagerDefinitionCommandInput} for command's `input` shape.
|
|
21
|
+
* @see {@link CreateAlertManagerDefinitionCommandOutput} for command's `response` shape.
|
|
22
|
+
* @see {@link AmpClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
class CreateAlertManagerDefinitionCommand extends smithy_client_1.Command {
|
|
26
|
+
// Start section: command_properties
|
|
27
|
+
// End section: command_properties
|
|
28
|
+
constructor(input) {
|
|
29
|
+
// Start section: command_constructor
|
|
30
|
+
super();
|
|
31
|
+
this.input = input;
|
|
32
|
+
// End section: command_constructor
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* @internal
|
|
36
|
+
*/
|
|
37
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
38
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
39
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
40
|
+
const { logger } = configuration;
|
|
41
|
+
const clientName = "AmpClient";
|
|
42
|
+
const commandName = "CreateAlertManagerDefinitionCommand";
|
|
43
|
+
const handlerExecutionContext = {
|
|
44
|
+
logger,
|
|
45
|
+
clientName,
|
|
46
|
+
commandName,
|
|
47
|
+
inputFilterSensitiveLog: models_0_1.CreateAlertManagerDefinitionRequest.filterSensitiveLog,
|
|
48
|
+
outputFilterSensitiveLog: models_0_1.CreateAlertManagerDefinitionResponse.filterSensitiveLog,
|
|
49
|
+
};
|
|
50
|
+
const { requestHandler } = configuration;
|
|
51
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
52
|
+
}
|
|
53
|
+
serialize(input, context) {
|
|
54
|
+
return Aws_restJson1_1.serializeAws_restJson1CreateAlertManagerDefinitionCommand(input, context);
|
|
55
|
+
}
|
|
56
|
+
deserialize(output, context) {
|
|
57
|
+
return Aws_restJson1_1.deserializeAws_restJson1CreateAlertManagerDefinitionCommand(output, context);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
exports.CreateAlertManagerDefinitionCommand = CreateAlertManagerDefinitionCommand;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateRuleGroupsNamespaceCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
/**
|
|
9
|
+
* Create a rule group namespace.
|
|
10
|
+
* @example
|
|
11
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
+
* ```javascript
|
|
13
|
+
* import { AmpClient, CreateRuleGroupsNamespaceCommand } from "@aws-sdk/client-amp"; // ES Modules import
|
|
14
|
+
* // const { AmpClient, CreateRuleGroupsNamespaceCommand } = require("@aws-sdk/client-amp"); // CommonJS import
|
|
15
|
+
* const client = new AmpClient(config);
|
|
16
|
+
* const command = new CreateRuleGroupsNamespaceCommand(input);
|
|
17
|
+
* const response = await client.send(command);
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* @see {@link CreateRuleGroupsNamespaceCommandInput} for command's `input` shape.
|
|
21
|
+
* @see {@link CreateRuleGroupsNamespaceCommandOutput} for command's `response` shape.
|
|
22
|
+
* @see {@link AmpClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
class CreateRuleGroupsNamespaceCommand extends smithy_client_1.Command {
|
|
26
|
+
// Start section: command_properties
|
|
27
|
+
// End section: command_properties
|
|
28
|
+
constructor(input) {
|
|
29
|
+
// Start section: command_constructor
|
|
30
|
+
super();
|
|
31
|
+
this.input = input;
|
|
32
|
+
// End section: command_constructor
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* @internal
|
|
36
|
+
*/
|
|
37
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
38
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
39
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
40
|
+
const { logger } = configuration;
|
|
41
|
+
const clientName = "AmpClient";
|
|
42
|
+
const commandName = "CreateRuleGroupsNamespaceCommand";
|
|
43
|
+
const handlerExecutionContext = {
|
|
44
|
+
logger,
|
|
45
|
+
clientName,
|
|
46
|
+
commandName,
|
|
47
|
+
inputFilterSensitiveLog: models_0_1.CreateRuleGroupsNamespaceRequest.filterSensitiveLog,
|
|
48
|
+
outputFilterSensitiveLog: models_0_1.CreateRuleGroupsNamespaceResponse.filterSensitiveLog,
|
|
49
|
+
};
|
|
50
|
+
const { requestHandler } = configuration;
|
|
51
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
52
|
+
}
|
|
53
|
+
serialize(input, context) {
|
|
54
|
+
return Aws_restJson1_1.serializeAws_restJson1CreateRuleGroupsNamespaceCommand(input, context);
|
|
55
|
+
}
|
|
56
|
+
deserialize(output, context) {
|
|
57
|
+
return Aws_restJson1_1.deserializeAws_restJson1CreateRuleGroupsNamespaceCommand(output, context);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
exports.CreateRuleGroupsNamespaceCommand = CreateRuleGroupsNamespaceCommand;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CreateWorkspaceCommand = void 0;
|
|
4
|
-
const models_0_1 = require("../models/models_0");
|
|
5
|
-
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
6
4
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
7
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
8
|
/**
|
|
9
9
|
* Creates a new AMP workspace.
|
|
10
10
|
* @example
|
|
@@ -58,4 +58,3 @@ class CreateWorkspaceCommand extends smithy_client_1.Command {
|
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
exports.CreateWorkspaceCommand = CreateWorkspaceCommand;
|
|
61
|
-
//# sourceMappingURL=CreateWorkspaceCommand.js.map
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteAlertManagerDefinitionCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
/**
|
|
9
|
+
* Deletes an alert manager definition.
|
|
10
|
+
* @example
|
|
11
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
+
* ```javascript
|
|
13
|
+
* import { AmpClient, DeleteAlertManagerDefinitionCommand } from "@aws-sdk/client-amp"; // ES Modules import
|
|
14
|
+
* // const { AmpClient, DeleteAlertManagerDefinitionCommand } = require("@aws-sdk/client-amp"); // CommonJS import
|
|
15
|
+
* const client = new AmpClient(config);
|
|
16
|
+
* const command = new DeleteAlertManagerDefinitionCommand(input);
|
|
17
|
+
* const response = await client.send(command);
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* @see {@link DeleteAlertManagerDefinitionCommandInput} for command's `input` shape.
|
|
21
|
+
* @see {@link DeleteAlertManagerDefinitionCommandOutput} for command's `response` shape.
|
|
22
|
+
* @see {@link AmpClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
class DeleteAlertManagerDefinitionCommand extends smithy_client_1.Command {
|
|
26
|
+
// Start section: command_properties
|
|
27
|
+
// End section: command_properties
|
|
28
|
+
constructor(input) {
|
|
29
|
+
// Start section: command_constructor
|
|
30
|
+
super();
|
|
31
|
+
this.input = input;
|
|
32
|
+
// End section: command_constructor
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* @internal
|
|
36
|
+
*/
|
|
37
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
38
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
39
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
40
|
+
const { logger } = configuration;
|
|
41
|
+
const clientName = "AmpClient";
|
|
42
|
+
const commandName = "DeleteAlertManagerDefinitionCommand";
|
|
43
|
+
const handlerExecutionContext = {
|
|
44
|
+
logger,
|
|
45
|
+
clientName,
|
|
46
|
+
commandName,
|
|
47
|
+
inputFilterSensitiveLog: models_0_1.DeleteAlertManagerDefinitionRequest.filterSensitiveLog,
|
|
48
|
+
outputFilterSensitiveLog: (output) => output,
|
|
49
|
+
};
|
|
50
|
+
const { requestHandler } = configuration;
|
|
51
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
52
|
+
}
|
|
53
|
+
serialize(input, context) {
|
|
54
|
+
return Aws_restJson1_1.serializeAws_restJson1DeleteAlertManagerDefinitionCommand(input, context);
|
|
55
|
+
}
|
|
56
|
+
deserialize(output, context) {
|
|
57
|
+
return Aws_restJson1_1.deserializeAws_restJson1DeleteAlertManagerDefinitionCommand(output, context);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
exports.DeleteAlertManagerDefinitionCommand = DeleteAlertManagerDefinitionCommand;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteRuleGroupsNamespaceCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
/**
|
|
9
|
+
* Delete a rule groups namespace.
|
|
10
|
+
* @example
|
|
11
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
+
* ```javascript
|
|
13
|
+
* import { AmpClient, DeleteRuleGroupsNamespaceCommand } from "@aws-sdk/client-amp"; // ES Modules import
|
|
14
|
+
* // const { AmpClient, DeleteRuleGroupsNamespaceCommand } = require("@aws-sdk/client-amp"); // CommonJS import
|
|
15
|
+
* const client = new AmpClient(config);
|
|
16
|
+
* const command = new DeleteRuleGroupsNamespaceCommand(input);
|
|
17
|
+
* const response = await client.send(command);
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* @see {@link DeleteRuleGroupsNamespaceCommandInput} for command's `input` shape.
|
|
21
|
+
* @see {@link DeleteRuleGroupsNamespaceCommandOutput} for command's `response` shape.
|
|
22
|
+
* @see {@link AmpClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
class DeleteRuleGroupsNamespaceCommand extends smithy_client_1.Command {
|
|
26
|
+
// Start section: command_properties
|
|
27
|
+
// End section: command_properties
|
|
28
|
+
constructor(input) {
|
|
29
|
+
// Start section: command_constructor
|
|
30
|
+
super();
|
|
31
|
+
this.input = input;
|
|
32
|
+
// End section: command_constructor
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* @internal
|
|
36
|
+
*/
|
|
37
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
38
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
39
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
40
|
+
const { logger } = configuration;
|
|
41
|
+
const clientName = "AmpClient";
|
|
42
|
+
const commandName = "DeleteRuleGroupsNamespaceCommand";
|
|
43
|
+
const handlerExecutionContext = {
|
|
44
|
+
logger,
|
|
45
|
+
clientName,
|
|
46
|
+
commandName,
|
|
47
|
+
inputFilterSensitiveLog: models_0_1.DeleteRuleGroupsNamespaceRequest.filterSensitiveLog,
|
|
48
|
+
outputFilterSensitiveLog: (output) => output,
|
|
49
|
+
};
|
|
50
|
+
const { requestHandler } = configuration;
|
|
51
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
52
|
+
}
|
|
53
|
+
serialize(input, context) {
|
|
54
|
+
return Aws_restJson1_1.serializeAws_restJson1DeleteRuleGroupsNamespaceCommand(input, context);
|
|
55
|
+
}
|
|
56
|
+
deserialize(output, context) {
|
|
57
|
+
return Aws_restJson1_1.deserializeAws_restJson1DeleteRuleGroupsNamespaceCommand(output, context);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
exports.DeleteRuleGroupsNamespaceCommand = DeleteRuleGroupsNamespaceCommand;
|