@aws-sdk/client-amp 3.478.0 → 3.481.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/commands/CreateAlertManagerDefinitionCommand.js +18 -41
- package/dist-cjs/commands/CreateLoggingConfigurationCommand.js +18 -41
- package/dist-cjs/commands/CreateRuleGroupsNamespaceCommand.js +18 -41
- package/dist-cjs/commands/CreateScraperCommand.js +18 -41
- package/dist-cjs/commands/CreateWorkspaceCommand.js +18 -41
- package/dist-cjs/commands/DeleteAlertManagerDefinitionCommand.js +18 -41
- package/dist-cjs/commands/DeleteLoggingConfigurationCommand.js +18 -41
- package/dist-cjs/commands/DeleteRuleGroupsNamespaceCommand.js +18 -41
- package/dist-cjs/commands/DeleteScraperCommand.js +18 -41
- package/dist-cjs/commands/DeleteWorkspaceCommand.js +18 -41
- package/dist-cjs/commands/DescribeAlertManagerDefinitionCommand.js +18 -41
- package/dist-cjs/commands/DescribeLoggingConfigurationCommand.js +18 -41
- package/dist-cjs/commands/DescribeRuleGroupsNamespaceCommand.js +18 -41
- package/dist-cjs/commands/DescribeScraperCommand.js +18 -41
- package/dist-cjs/commands/DescribeWorkspaceCommand.js +18 -41
- package/dist-cjs/commands/GetDefaultScraperConfigurationCommand.js +18 -41
- package/dist-cjs/commands/ListRuleGroupsNamespacesCommand.js +18 -41
- package/dist-cjs/commands/ListScrapersCommand.js +18 -41
- package/dist-cjs/commands/ListTagsForResourceCommand.js +18 -41
- package/dist-cjs/commands/ListWorkspacesCommand.js +18 -41
- package/dist-cjs/commands/PutAlertManagerDefinitionCommand.js +18 -41
- package/dist-cjs/commands/PutRuleGroupsNamespaceCommand.js +18 -41
- package/dist-cjs/commands/TagResourceCommand.js +18 -41
- package/dist-cjs/commands/UntagResourceCommand.js +18 -41
- package/dist-cjs/commands/UpdateLoggingConfigurationCommand.js +18 -41
- package/dist-cjs/commands/UpdateWorkspaceAliasCommand.js +18 -41
- package/dist-cjs/endpoint/EndpointParameters.js +7 -1
- package/dist-cjs/protocols/Aws_restJson1.js +4 -0
- package/dist-es/commands/CreateAlertManagerDefinitionCommand.js +18 -41
- package/dist-es/commands/CreateLoggingConfigurationCommand.js +18 -41
- package/dist-es/commands/CreateRuleGroupsNamespaceCommand.js +18 -41
- package/dist-es/commands/CreateScraperCommand.js +18 -41
- package/dist-es/commands/CreateWorkspaceCommand.js +18 -41
- package/dist-es/commands/DeleteAlertManagerDefinitionCommand.js +18 -41
- package/dist-es/commands/DeleteLoggingConfigurationCommand.js +18 -41
- package/dist-es/commands/DeleteRuleGroupsNamespaceCommand.js +18 -41
- package/dist-es/commands/DeleteScraperCommand.js +18 -41
- package/dist-es/commands/DeleteWorkspaceCommand.js +18 -41
- package/dist-es/commands/DescribeAlertManagerDefinitionCommand.js +18 -41
- package/dist-es/commands/DescribeLoggingConfigurationCommand.js +18 -41
- package/dist-es/commands/DescribeRuleGroupsNamespaceCommand.js +18 -41
- package/dist-es/commands/DescribeScraperCommand.js +18 -41
- package/dist-es/commands/DescribeWorkspaceCommand.js +18 -41
- package/dist-es/commands/GetDefaultScraperConfigurationCommand.js +18 -41
- package/dist-es/commands/ListRuleGroupsNamespacesCommand.js +18 -41
- package/dist-es/commands/ListScrapersCommand.js +18 -41
- package/dist-es/commands/ListTagsForResourceCommand.js +18 -41
- package/dist-es/commands/ListWorkspacesCommand.js +18 -41
- package/dist-es/commands/PutAlertManagerDefinitionCommand.js +18 -41
- package/dist-es/commands/PutRuleGroupsNamespaceCommand.js +18 -41
- package/dist-es/commands/TagResourceCommand.js +18 -41
- package/dist-es/commands/UntagResourceCommand.js +18 -41
- package/dist-es/commands/UpdateLoggingConfigurationCommand.js +18 -41
- package/dist-es/commands/UpdateWorkspaceAliasCommand.js +18 -41
- package/dist-es/endpoint/EndpointParameters.js +6 -0
- package/dist-es/protocols/Aws_restJson1.js +4 -0
- package/dist-types/commands/CreateAlertManagerDefinitionCommand.d.ts +6 -21
- package/dist-types/commands/CreateLoggingConfigurationCommand.d.ts +6 -21
- package/dist-types/commands/CreateRuleGroupsNamespaceCommand.d.ts +6 -21
- package/dist-types/commands/CreateScraperCommand.d.ts +6 -21
- package/dist-types/commands/CreateWorkspaceCommand.d.ts +8 -21
- package/dist-types/commands/DeleteAlertManagerDefinitionCommand.d.ts +6 -21
- package/dist-types/commands/DeleteLoggingConfigurationCommand.d.ts +6 -21
- package/dist-types/commands/DeleteRuleGroupsNamespaceCommand.d.ts +6 -21
- package/dist-types/commands/DeleteScraperCommand.d.ts +6 -21
- package/dist-types/commands/DeleteWorkspaceCommand.d.ts +6 -21
- package/dist-types/commands/DescribeAlertManagerDefinitionCommand.d.ts +6 -21
- package/dist-types/commands/DescribeLoggingConfigurationCommand.d.ts +6 -21
- package/dist-types/commands/DescribeRuleGroupsNamespaceCommand.d.ts +6 -21
- package/dist-types/commands/DescribeScraperCommand.d.ts +6 -21
- package/dist-types/commands/DescribeWorkspaceCommand.d.ts +7 -21
- package/dist-types/commands/GetDefaultScraperConfigurationCommand.d.ts +6 -21
- package/dist-types/commands/ListRuleGroupsNamespacesCommand.d.ts +6 -21
- package/dist-types/commands/ListScrapersCommand.d.ts +6 -21
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -21
- package/dist-types/commands/ListWorkspacesCommand.d.ts +7 -21
- package/dist-types/commands/PutAlertManagerDefinitionCommand.d.ts +6 -21
- package/dist-types/commands/PutRuleGroupsNamespaceCommand.d.ts +6 -21
- package/dist-types/commands/TagResourceCommand.d.ts +6 -21
- package/dist-types/commands/UntagResourceCommand.d.ts +6 -21
- package/dist-types/commands/UpdateLoggingConfigurationCommand.d.ts +6 -21
- package/dist-types/commands/UpdateWorkspaceAliasCommand.d.ts +6 -21
- package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
- package/dist-types/models/models_0.d.ts +20 -0
- package/dist-types/ts3.4/commands/CreateAlertManagerDefinitionCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/CreateLoggingConfigurationCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/CreateRuleGroupsNamespaceCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/CreateScraperCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/CreateWorkspaceCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/DeleteAlertManagerDefinitionCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/DeleteLoggingConfigurationCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/DeleteRuleGroupsNamespaceCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/DeleteScraperCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/DeleteWorkspaceCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/DescribeAlertManagerDefinitionCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/DescribeLoggingConfigurationCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/DescribeRuleGroupsNamespaceCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/DescribeScraperCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/DescribeWorkspaceCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/GetDefaultScraperConfigurationCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/ListRuleGroupsNamespacesCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/ListScrapersCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ListWorkspacesCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/PutAlertManagerDefinitionCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/PutRuleGroupsNamespaceCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/UpdateLoggingConfigurationCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/UpdateWorkspaceAliasCommand.d.ts +12 -24
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
- package/dist-types/ts3.4/models/models_0.d.ts +4 -0
- package/package.json +9 -9
|
@@ -1,47 +1,24 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_ListTagsForResourceCommand, se_ListTagsForResourceCommand } from "../protocols/Aws_restJson1";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class ListTagsForResourceCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "AmpClient";
|
|
26
|
-
const commandName = "ListTagsForResourceCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "AmazonPrometheusService",
|
|
35
|
-
operation: "ListTagsForResource",
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
const { requestHandler } = configuration;
|
|
39
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
-
}
|
|
41
|
-
serialize(input, context) {
|
|
42
|
-
return se_ListTagsForResourceCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_ListTagsForResourceCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class ListTagsForResourceCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("AmazonPrometheusService", "ListTagsForResource", {})
|
|
19
|
+
.n("AmpClient", "ListTagsForResourceCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_ListTagsForResourceCommand)
|
|
22
|
+
.de(de_ListTagsForResourceCommand)
|
|
23
|
+
.build() {
|
|
47
24
|
}
|
|
@@ -1,47 +1,24 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_ListWorkspacesCommand, se_ListWorkspacesCommand } from "../protocols/Aws_restJson1";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class ListWorkspacesCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "AmpClient";
|
|
26
|
-
const commandName = "ListWorkspacesCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "AmazonPrometheusService",
|
|
35
|
-
operation: "ListWorkspaces",
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
const { requestHandler } = configuration;
|
|
39
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
-
}
|
|
41
|
-
serialize(input, context) {
|
|
42
|
-
return se_ListWorkspacesCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_ListWorkspacesCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class ListWorkspacesCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("AmazonPrometheusService", "ListWorkspaces", {})
|
|
19
|
+
.n("AmpClient", "ListWorkspacesCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_ListWorkspacesCommand)
|
|
22
|
+
.de(de_ListWorkspacesCommand)
|
|
23
|
+
.build() {
|
|
47
24
|
}
|
|
@@ -1,47 +1,24 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_PutAlertManagerDefinitionCommand, se_PutAlertManagerDefinitionCommand } from "../protocols/Aws_restJson1";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class PutAlertManagerDefinitionCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "AmpClient";
|
|
26
|
-
const commandName = "PutAlertManagerDefinitionCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "AmazonPrometheusService",
|
|
35
|
-
operation: "PutAlertManagerDefinition",
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
const { requestHandler } = configuration;
|
|
39
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
-
}
|
|
41
|
-
serialize(input, context) {
|
|
42
|
-
return se_PutAlertManagerDefinitionCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_PutAlertManagerDefinitionCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class PutAlertManagerDefinitionCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("AmazonPrometheusService", "PutAlertManagerDefinition", {})
|
|
19
|
+
.n("AmpClient", "PutAlertManagerDefinitionCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_PutAlertManagerDefinitionCommand)
|
|
22
|
+
.de(de_PutAlertManagerDefinitionCommand)
|
|
23
|
+
.build() {
|
|
47
24
|
}
|
|
@@ -1,47 +1,24 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_PutRuleGroupsNamespaceCommand, se_PutRuleGroupsNamespaceCommand } from "../protocols/Aws_restJson1";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class PutRuleGroupsNamespaceCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "AmpClient";
|
|
26
|
-
const commandName = "PutRuleGroupsNamespaceCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "AmazonPrometheusService",
|
|
35
|
-
operation: "PutRuleGroupsNamespace",
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
const { requestHandler } = configuration;
|
|
39
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
-
}
|
|
41
|
-
serialize(input, context) {
|
|
42
|
-
return se_PutRuleGroupsNamespaceCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_PutRuleGroupsNamespaceCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class PutRuleGroupsNamespaceCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("AmazonPrometheusService", "PutRuleGroupsNamespace", {})
|
|
19
|
+
.n("AmpClient", "PutRuleGroupsNamespaceCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_PutRuleGroupsNamespaceCommand)
|
|
22
|
+
.de(de_PutRuleGroupsNamespaceCommand)
|
|
23
|
+
.build() {
|
|
47
24
|
}
|
|
@@ -1,47 +1,24 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_restJson1";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class TagResourceCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "AmpClient";
|
|
26
|
-
const commandName = "TagResourceCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "AmazonPrometheusService",
|
|
35
|
-
operation: "TagResource",
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
const { requestHandler } = configuration;
|
|
39
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
-
}
|
|
41
|
-
serialize(input, context) {
|
|
42
|
-
return se_TagResourceCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_TagResourceCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class TagResourceCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("AmazonPrometheusService", "TagResource", {})
|
|
19
|
+
.n("AmpClient", "TagResourceCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_TagResourceCommand)
|
|
22
|
+
.de(de_TagResourceCommand)
|
|
23
|
+
.build() {
|
|
47
24
|
}
|
|
@@ -1,47 +1,24 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_restJson1";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class UntagResourceCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "AmpClient";
|
|
26
|
-
const commandName = "UntagResourceCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "AmazonPrometheusService",
|
|
35
|
-
operation: "UntagResource",
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
const { requestHandler } = configuration;
|
|
39
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
-
}
|
|
41
|
-
serialize(input, context) {
|
|
42
|
-
return se_UntagResourceCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_UntagResourceCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class UntagResourceCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("AmazonPrometheusService", "UntagResource", {})
|
|
19
|
+
.n("AmpClient", "UntagResourceCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_UntagResourceCommand)
|
|
22
|
+
.de(de_UntagResourceCommand)
|
|
23
|
+
.build() {
|
|
47
24
|
}
|
|
@@ -1,47 +1,24 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_UpdateLoggingConfigurationCommand, se_UpdateLoggingConfigurationCommand } from "../protocols/Aws_restJson1";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class UpdateLoggingConfigurationCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "AmpClient";
|
|
26
|
-
const commandName = "UpdateLoggingConfigurationCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "AmazonPrometheusService",
|
|
35
|
-
operation: "UpdateLoggingConfiguration",
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
const { requestHandler } = configuration;
|
|
39
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
-
}
|
|
41
|
-
serialize(input, context) {
|
|
42
|
-
return se_UpdateLoggingConfigurationCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_UpdateLoggingConfigurationCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class UpdateLoggingConfigurationCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("AmazonPrometheusService", "UpdateLoggingConfiguration", {})
|
|
19
|
+
.n("AmpClient", "UpdateLoggingConfigurationCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_UpdateLoggingConfigurationCommand)
|
|
22
|
+
.de(de_UpdateLoggingConfigurationCommand)
|
|
23
|
+
.build() {
|
|
47
24
|
}
|
|
@@ -1,47 +1,24 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_UpdateWorkspaceAliasCommand, se_UpdateWorkspaceAliasCommand } from "../protocols/Aws_restJson1";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class UpdateWorkspaceAliasCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "AmpClient";
|
|
26
|
-
const commandName = "UpdateWorkspaceAliasCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "AmazonPrometheusService",
|
|
35
|
-
operation: "UpdateWorkspaceAlias",
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
const { requestHandler } = configuration;
|
|
39
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
-
}
|
|
41
|
-
serialize(input, context) {
|
|
42
|
-
return se_UpdateWorkspaceAliasCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_UpdateWorkspaceAliasCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class UpdateWorkspaceAliasCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("AmazonPrometheusService", "UpdateWorkspaceAlias", {})
|
|
19
|
+
.n("AmpClient", "UpdateWorkspaceAliasCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_UpdateWorkspaceAliasCommand)
|
|
22
|
+
.de(de_UpdateWorkspaceAliasCommand)
|
|
23
|
+
.build() {
|
|
47
24
|
}
|
|
@@ -6,3 +6,9 @@ export const resolveClientEndpointParameters = (options) => {
|
|
|
6
6
|
defaultSigningName: "aps",
|
|
7
7
|
};
|
|
8
8
|
};
|
|
9
|
+
export const commonParams = {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
@@ -79,6 +79,7 @@ export const se_CreateWorkspaceCommand = async (input, context) => {
|
|
|
79
79
|
body = JSON.stringify(take(input, {
|
|
80
80
|
alias: [],
|
|
81
81
|
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
82
|
+
kmsKeyArn: [],
|
|
82
83
|
tags: (_) => _json(_),
|
|
83
84
|
}));
|
|
84
85
|
b.m("POST").h(headers).b(body);
|
|
@@ -552,6 +553,7 @@ export const de_CreateWorkspaceCommand = async (output, context) => {
|
|
|
552
553
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
553
554
|
const doc = take(data, {
|
|
554
555
|
arn: __expectString,
|
|
556
|
+
kmsKeyArn: __expectString,
|
|
555
557
|
status: _json,
|
|
556
558
|
tags: _json,
|
|
557
559
|
workspaceId: __expectString,
|
|
@@ -1744,6 +1746,7 @@ const de_WorkspaceDescription = (output, context) => {
|
|
|
1744
1746
|
alias: __expectString,
|
|
1745
1747
|
arn: __expectString,
|
|
1746
1748
|
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1749
|
+
kmsKeyArn: __expectString,
|
|
1747
1750
|
prometheusEndpoint: __expectString,
|
|
1748
1751
|
status: _json,
|
|
1749
1752
|
tags: _json,
|
|
@@ -1755,6 +1758,7 @@ const de_WorkspaceSummary = (output, context) => {
|
|
|
1755
1758
|
alias: __expectString,
|
|
1756
1759
|
arn: __expectString,
|
|
1757
1760
|
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1761
|
+
kmsKeyArn: __expectString,
|
|
1758
1762
|
status: _json,
|
|
1759
1763
|
tags: _json,
|
|
1760
1764
|
workspaceId: __expectString,
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
-
import {
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
4
3
|
import { AmpClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AmpClient";
|
|
5
4
|
import { CreateAlertManagerDefinitionRequest, CreateAlertManagerDefinitionResponse } from "../models/models_0";
|
|
6
5
|
/**
|
|
@@ -21,6 +20,10 @@ export interface CreateAlertManagerDefinitionCommandInput extends CreateAlertMan
|
|
|
21
20
|
*/
|
|
22
21
|
export interface CreateAlertManagerDefinitionCommandOutput extends CreateAlertManagerDefinitionResponse, __MetadataBearer {
|
|
23
22
|
}
|
|
23
|
+
declare const CreateAlertManagerDefinitionCommand_base: {
|
|
24
|
+
new (input: CreateAlertManagerDefinitionCommandInput): import("@smithy/smithy-client").CommandImpl<CreateAlertManagerDefinitionCommandInput, CreateAlertManagerDefinitionCommandOutput, AmpClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
|
+
};
|
|
24
27
|
/**
|
|
25
28
|
* @public
|
|
26
29
|
* Create an alert manager definition.
|
|
@@ -77,23 +80,5 @@ export interface CreateAlertManagerDefinitionCommandOutput extends CreateAlertMa
|
|
|
77
80
|
* <p>Base exception class for all service exceptions from Amp service.</p>
|
|
78
81
|
*
|
|
79
82
|
*/
|
|
80
|
-
export declare class CreateAlertManagerDefinitionCommand extends
|
|
81
|
-
readonly input: CreateAlertManagerDefinitionCommandInput;
|
|
82
|
-
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
83
|
-
/**
|
|
84
|
-
* @public
|
|
85
|
-
*/
|
|
86
|
-
constructor(input: CreateAlertManagerDefinitionCommandInput);
|
|
87
|
-
/**
|
|
88
|
-
* @internal
|
|
89
|
-
*/
|
|
90
|
-
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: AmpClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateAlertManagerDefinitionCommandInput, CreateAlertManagerDefinitionCommandOutput>;
|
|
91
|
-
/**
|
|
92
|
-
* @internal
|
|
93
|
-
*/
|
|
94
|
-
private serialize;
|
|
95
|
-
/**
|
|
96
|
-
* @internal
|
|
97
|
-
*/
|
|
98
|
-
private deserialize;
|
|
83
|
+
export declare class CreateAlertManagerDefinitionCommand extends CreateAlertManagerDefinitionCommand_base {
|
|
99
84
|
}
|