@aws-sdk/client-cloudwatch 3.929.0 → 3.930.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/index.js +1379 -4670
- package/dist-cjs/runtimeConfig.shared.js +7 -0
- package/dist-es/CloudWatchClient.js +2 -0
- package/dist-es/commands/DeleteAlarmsCommand.js +3 -9
- package/dist-es/commands/DeleteAnomalyDetectorCommand.js +3 -9
- package/dist-es/commands/DeleteDashboardsCommand.js +3 -9
- package/dist-es/commands/DeleteInsightRulesCommand.js +3 -9
- package/dist-es/commands/DeleteMetricStreamCommand.js +3 -9
- package/dist-es/commands/DescribeAlarmContributorsCommand.js +3 -9
- package/dist-es/commands/DescribeAlarmHistoryCommand.js +3 -9
- package/dist-es/commands/DescribeAlarmsCommand.js +3 -9
- package/dist-es/commands/DescribeAlarmsForMetricCommand.js +3 -9
- package/dist-es/commands/DescribeAnomalyDetectorsCommand.js +3 -9
- package/dist-es/commands/DescribeInsightRulesCommand.js +3 -9
- package/dist-es/commands/DisableAlarmActionsCommand.js +3 -9
- package/dist-es/commands/DisableInsightRulesCommand.js +3 -9
- package/dist-es/commands/EnableAlarmActionsCommand.js +3 -9
- package/dist-es/commands/EnableInsightRulesCommand.js +3 -9
- package/dist-es/commands/GetDashboardCommand.js +3 -9
- package/dist-es/commands/GetInsightRuleReportCommand.js +3 -9
- package/dist-es/commands/GetMetricDataCommand.js +3 -9
- package/dist-es/commands/GetMetricStatisticsCommand.js +3 -9
- package/dist-es/commands/GetMetricStreamCommand.js +3 -9
- package/dist-es/commands/GetMetricWidgetImageCommand.js +3 -9
- package/dist-es/commands/ListDashboardsCommand.js +3 -9
- package/dist-es/commands/ListManagedInsightRulesCommand.js +3 -9
- package/dist-es/commands/ListMetricStreamsCommand.js +3 -9
- package/dist-es/commands/ListMetricsCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/PutAnomalyDetectorCommand.js +3 -9
- package/dist-es/commands/PutCompositeAlarmCommand.js +3 -9
- package/dist-es/commands/PutDashboardCommand.js +3 -9
- package/dist-es/commands/PutInsightRuleCommand.js +3 -9
- package/dist-es/commands/PutManagedInsightRulesCommand.js +3 -9
- package/dist-es/commands/PutMetricAlarmCommand.js +3 -9
- package/dist-es/commands/PutMetricDataCommand.js +2 -6
- package/dist-es/commands/PutMetricStreamCommand.js +3 -9
- package/dist-es/commands/SetAlarmStateCommand.js +3 -9
- package/dist-es/commands/StartMetricStreamsCommand.js +3 -9
- package/dist-es/commands/StopMetricStreamsCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/runtimeConfig.shared.js +7 -0
- package/dist-es/schemas/schemas_0.js +1345 -0
- package/dist-types/CloudWatchClient.d.ts +10 -1
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +218 -0
- package/dist-types/ts3.4/CloudWatchClient.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +223 -0
- package/package.json +35 -35
- package/dist-es/protocols/Aws_query.js +0 -4425
- package/dist-types/protocols/Aws_query.d.ts +0 -353
- package/dist-types/ts3.4/protocols/Aws_query.d.ts +0 -473
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { ListManagedInsightRules } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class ListManagedInsightRulesCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("GraniteServiceVersion20100801", "ListManagedInsightRules", {})
|
|
17
13
|
.n("CloudWatchClient", "ListManagedInsightRulesCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_ListManagedInsightRulesCommand)
|
|
20
|
-
.de(de_ListManagedInsightRulesCommand)
|
|
14
|
+
.sc(ListManagedInsightRules)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { ListMetricStreams } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class ListMetricStreamsCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("GraniteServiceVersion20100801", "ListMetricStreams", {})
|
|
17
13
|
.n("CloudWatchClient", "ListMetricStreamsCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_ListMetricStreamsCommand)
|
|
20
|
-
.de(de_ListMetricStreamsCommand)
|
|
14
|
+
.sc(ListMetricStreams)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { ListMetrics } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class ListMetricsCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("GraniteServiceVersion20100801", "ListMetrics", {})
|
|
17
13
|
.n("CloudWatchClient", "ListMetricsCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_ListMetricsCommand)
|
|
20
|
-
.de(de_ListMetricsCommand)
|
|
14
|
+
.sc(ListMetrics)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { ListTagsForResource } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class ListTagsForResourceCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("GraniteServiceVersion20100801", "ListTagsForResource", {})
|
|
17
13
|
.n("CloudWatchClient", "ListTagsForResourceCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_ListTagsForResourceCommand)
|
|
20
|
-
.de(de_ListTagsForResourceCommand)
|
|
14
|
+
.sc(ListTagsForResource)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { PutAnomalyDetector } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class PutAnomalyDetectorCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("GraniteServiceVersion20100801", "PutAnomalyDetector", {})
|
|
17
13
|
.n("CloudWatchClient", "PutAnomalyDetectorCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_PutAnomalyDetectorCommand)
|
|
20
|
-
.de(de_PutAnomalyDetectorCommand)
|
|
14
|
+
.sc(PutAnomalyDetector)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { PutCompositeAlarm } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class PutCompositeAlarmCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("GraniteServiceVersion20100801", "PutCompositeAlarm", {})
|
|
17
13
|
.n("CloudWatchClient", "PutCompositeAlarmCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_PutCompositeAlarmCommand)
|
|
20
|
-
.de(de_PutCompositeAlarmCommand)
|
|
14
|
+
.sc(PutCompositeAlarm)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { PutDashboard } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class PutDashboardCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("GraniteServiceVersion20100801", "PutDashboard", {})
|
|
17
13
|
.n("CloudWatchClient", "PutDashboardCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_PutDashboardCommand)
|
|
20
|
-
.de(de_PutDashboardCommand)
|
|
14
|
+
.sc(PutDashboard)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { PutInsightRule } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class PutInsightRuleCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("GraniteServiceVersion20100801", "PutInsightRule", {})
|
|
17
13
|
.n("CloudWatchClient", "PutInsightRuleCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_PutInsightRuleCommand)
|
|
20
|
-
.de(de_PutInsightRuleCommand)
|
|
14
|
+
.sc(PutInsightRule)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { PutManagedInsightRules } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class PutManagedInsightRulesCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("GraniteServiceVersion20100801", "PutManagedInsightRules", {})
|
|
17
13
|
.n("CloudWatchClient", "PutManagedInsightRulesCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_PutManagedInsightRulesCommand)
|
|
20
|
-
.de(de_PutManagedInsightRulesCommand)
|
|
14
|
+
.sc(PutManagedInsightRules)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { PutMetricAlarm } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class PutMetricAlarmCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("GraniteServiceVersion20100801", "PutMetricAlarm", {})
|
|
17
13
|
.n("CloudWatchClient", "PutMetricAlarmCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_PutMetricAlarmCommand)
|
|
20
|
-
.de(de_PutMetricAlarmCommand)
|
|
14
|
+
.sc(PutMetricAlarm)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import { getCompressionPlugin } from "@smithy/middleware-compression";
|
|
2
2
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
3
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
4
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
5
4
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
6
|
-
import {
|
|
5
|
+
import { PutMetricData } from "../schemas/schemas_0";
|
|
7
6
|
export { $Command };
|
|
8
7
|
export class PutMetricDataCommand extends $Command
|
|
9
8
|
.classBuilder()
|
|
10
9
|
.ep(commonParams)
|
|
11
10
|
.m(function (Command, cs, config, o) {
|
|
12
11
|
return [
|
|
13
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
14
12
|
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
15
13
|
getCompressionPlugin(config, {
|
|
16
14
|
encodings: ["gzip"],
|
|
@@ -19,8 +17,6 @@ export class PutMetricDataCommand extends $Command
|
|
|
19
17
|
})
|
|
20
18
|
.s("GraniteServiceVersion20100801", "PutMetricData", {})
|
|
21
19
|
.n("CloudWatchClient", "PutMetricDataCommand")
|
|
22
|
-
.
|
|
23
|
-
.ser(se_PutMetricDataCommand)
|
|
24
|
-
.de(de_PutMetricDataCommand)
|
|
20
|
+
.sc(PutMetricData)
|
|
25
21
|
.build() {
|
|
26
22
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { PutMetricStream } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class PutMetricStreamCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("GraniteServiceVersion20100801", "PutMetricStream", {})
|
|
17
13
|
.n("CloudWatchClient", "PutMetricStreamCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_PutMetricStreamCommand)
|
|
20
|
-
.de(de_PutMetricStreamCommand)
|
|
14
|
+
.sc(PutMetricStream)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { SetAlarmState } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class SetAlarmStateCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("GraniteServiceVersion20100801", "SetAlarmState", {})
|
|
17
13
|
.n("CloudWatchClient", "SetAlarmStateCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_SetAlarmStateCommand)
|
|
20
|
-
.de(de_SetAlarmStateCommand)
|
|
14
|
+
.sc(SetAlarmState)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { StartMetricStreams } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class StartMetricStreamsCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("GraniteServiceVersion20100801", "StartMetricStreams", {})
|
|
17
13
|
.n("CloudWatchClient", "StartMetricStreamsCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_StartMetricStreamsCommand)
|
|
20
|
-
.de(de_StartMetricStreamsCommand)
|
|
14
|
+
.sc(StartMetricStreams)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { StopMetricStreams } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class StopMetricStreamsCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("GraniteServiceVersion20100801", "StopMetricStreams", {})
|
|
17
13
|
.n("CloudWatchClient", "StopMetricStreamsCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_StopMetricStreamsCommand)
|
|
20
|
-
.de(de_StopMetricStreamsCommand)
|
|
14
|
+
.sc(StopMetricStreams)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { TagResource } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class TagResourceCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("GraniteServiceVersion20100801", "TagResource", {})
|
|
17
13
|
.n("CloudWatchClient", "TagResourceCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_TagResourceCommand)
|
|
20
|
-
.de(de_TagResourceCommand)
|
|
14
|
+
.sc(TagResource)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { UntagResource } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class UntagResourceCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("GraniteServiceVersion20100801", "UntagResource", {})
|
|
17
13
|
.n("CloudWatchClient", "UntagResourceCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_UntagResourceCommand)
|
|
20
|
-
.de(de_UntagResourceCommand)
|
|
14
|
+
.sc(UntagResource)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AwsSdkSigV4Signer } from "@aws-sdk/core";
|
|
2
|
+
import { AwsQueryProtocol } from "@aws-sdk/core/protocols";
|
|
2
3
|
import { NoOpLogger } from "@smithy/smithy-client";
|
|
3
4
|
import { parseUrl } from "@smithy/url-parser";
|
|
4
5
|
import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
@@ -22,6 +23,12 @@ export const getRuntimeConfig = (config) => {
|
|
|
22
23
|
},
|
|
23
24
|
],
|
|
24
25
|
logger: config?.logger ?? new NoOpLogger(),
|
|
26
|
+
protocol: config?.protocol ??
|
|
27
|
+
new AwsQueryProtocol({
|
|
28
|
+
defaultNamespace: "com.amazonaws.cloudwatch",
|
|
29
|
+
xmlNamespace: "http://monitoring.amazonaws.com/doc/2010-08-01/",
|
|
30
|
+
version: "2010-08-01",
|
|
31
|
+
}),
|
|
25
32
|
serviceId: config?.serviceId ?? "CloudWatch",
|
|
26
33
|
urlParser: config?.urlParser ?? parseUrl,
|
|
27
34
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|