@aws-sdk/client-cloudwatch 3.477.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/DeleteAlarmsCommand.js +18 -41
- package/dist-cjs/commands/DeleteAnomalyDetectorCommand.js +18 -41
- package/dist-cjs/commands/DeleteDashboardsCommand.js +18 -41
- package/dist-cjs/commands/DeleteInsightRulesCommand.js +18 -41
- package/dist-cjs/commands/DeleteMetricStreamCommand.js +18 -41
- package/dist-cjs/commands/DescribeAlarmHistoryCommand.js +18 -41
- package/dist-cjs/commands/DescribeAlarmsCommand.js +18 -41
- package/dist-cjs/commands/DescribeAlarmsForMetricCommand.js +18 -41
- package/dist-cjs/commands/DescribeAnomalyDetectorsCommand.js +18 -41
- package/dist-cjs/commands/DescribeInsightRulesCommand.js +18 -41
- package/dist-cjs/commands/DisableAlarmActionsCommand.js +18 -41
- package/dist-cjs/commands/DisableInsightRulesCommand.js +18 -41
- package/dist-cjs/commands/EnableAlarmActionsCommand.js +18 -41
- package/dist-cjs/commands/EnableInsightRulesCommand.js +18 -41
- package/dist-cjs/commands/GetDashboardCommand.js +18 -41
- package/dist-cjs/commands/GetInsightRuleReportCommand.js +18 -41
- package/dist-cjs/commands/GetMetricDataCommand.js +18 -41
- package/dist-cjs/commands/GetMetricStatisticsCommand.js +18 -41
- package/dist-cjs/commands/GetMetricStreamCommand.js +18 -41
- package/dist-cjs/commands/GetMetricWidgetImageCommand.js +18 -41
- package/dist-cjs/commands/ListDashboardsCommand.js +18 -41
- package/dist-cjs/commands/ListManagedInsightRulesCommand.js +18 -41
- package/dist-cjs/commands/ListMetricStreamsCommand.js +18 -41
- package/dist-cjs/commands/ListMetricsCommand.js +18 -41
- package/dist-cjs/commands/ListTagsForResourceCommand.js +18 -41
- package/dist-cjs/commands/PutAnomalyDetectorCommand.js +18 -41
- package/dist-cjs/commands/PutCompositeAlarmCommand.js +18 -41
- package/dist-cjs/commands/PutDashboardCommand.js +18 -41
- package/dist-cjs/commands/PutInsightRuleCommand.js +18 -41
- package/dist-cjs/commands/PutManagedInsightRulesCommand.js +18 -41
- package/dist-cjs/commands/PutMetricAlarmCommand.js +18 -41
- package/dist-cjs/commands/PutMetricDataCommand.js +18 -41
- package/dist-cjs/commands/PutMetricStreamCommand.js +18 -41
- package/dist-cjs/commands/SetAlarmStateCommand.js +18 -41
- package/dist-cjs/commands/StartMetricStreamsCommand.js +18 -41
- package/dist-cjs/commands/StopMetricStreamsCommand.js +18 -41
- package/dist-cjs/commands/TagResourceCommand.js +18 -41
- package/dist-cjs/commands/UntagResourceCommand.js +18 -41
- package/dist-cjs/endpoint/EndpointParameters.js +7 -1
- package/dist-cjs/pagination/DescribeAlarmHistoryPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeAlarmsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeAnomalyDetectorsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeInsightRulesPaginator.js +2 -24
- package/dist-cjs/pagination/GetMetricDataPaginator.js +2 -24
- package/dist-cjs/pagination/ListDashboardsPaginator.js +2 -23
- package/dist-cjs/pagination/ListManagedInsightRulesPaginator.js +2 -24
- package/dist-cjs/pagination/ListMetricStreamsPaginator.js +2 -24
- package/dist-cjs/pagination/ListMetricsPaginator.js +2 -23
- package/dist-es/commands/DeleteAlarmsCommand.js +18 -41
- package/dist-es/commands/DeleteAnomalyDetectorCommand.js +18 -41
- package/dist-es/commands/DeleteDashboardsCommand.js +18 -41
- package/dist-es/commands/DeleteInsightRulesCommand.js +18 -41
- package/dist-es/commands/DeleteMetricStreamCommand.js +18 -41
- package/dist-es/commands/DescribeAlarmHistoryCommand.js +18 -41
- package/dist-es/commands/DescribeAlarmsCommand.js +18 -41
- package/dist-es/commands/DescribeAlarmsForMetricCommand.js +18 -41
- package/dist-es/commands/DescribeAnomalyDetectorsCommand.js +18 -41
- package/dist-es/commands/DescribeInsightRulesCommand.js +18 -41
- package/dist-es/commands/DisableAlarmActionsCommand.js +18 -41
- package/dist-es/commands/DisableInsightRulesCommand.js +18 -41
- package/dist-es/commands/EnableAlarmActionsCommand.js +18 -41
- package/dist-es/commands/EnableInsightRulesCommand.js +18 -41
- package/dist-es/commands/GetDashboardCommand.js +18 -41
- package/dist-es/commands/GetInsightRuleReportCommand.js +18 -41
- package/dist-es/commands/GetMetricDataCommand.js +18 -41
- package/dist-es/commands/GetMetricStatisticsCommand.js +18 -41
- package/dist-es/commands/GetMetricStreamCommand.js +18 -41
- package/dist-es/commands/GetMetricWidgetImageCommand.js +18 -41
- package/dist-es/commands/ListDashboardsCommand.js +18 -41
- package/dist-es/commands/ListManagedInsightRulesCommand.js +18 -41
- package/dist-es/commands/ListMetricStreamsCommand.js +18 -41
- package/dist-es/commands/ListMetricsCommand.js +18 -41
- package/dist-es/commands/ListTagsForResourceCommand.js +18 -41
- package/dist-es/commands/PutAnomalyDetectorCommand.js +18 -41
- package/dist-es/commands/PutCompositeAlarmCommand.js +18 -41
- package/dist-es/commands/PutDashboardCommand.js +18 -41
- package/dist-es/commands/PutInsightRuleCommand.js +18 -41
- package/dist-es/commands/PutManagedInsightRulesCommand.js +18 -41
- package/dist-es/commands/PutMetricAlarmCommand.js +18 -41
- package/dist-es/commands/PutMetricDataCommand.js +18 -41
- package/dist-es/commands/PutMetricStreamCommand.js +18 -41
- package/dist-es/commands/SetAlarmStateCommand.js +18 -41
- package/dist-es/commands/StartMetricStreamsCommand.js +18 -41
- package/dist-es/commands/StopMetricStreamsCommand.js +18 -41
- package/dist-es/commands/TagResourceCommand.js +18 -41
- package/dist-es/commands/UntagResourceCommand.js +18 -41
- package/dist-es/endpoint/EndpointParameters.js +6 -0
- package/dist-es/pagination/DescribeAlarmHistoryPaginator.js +2 -23
- package/dist-es/pagination/DescribeAlarmsPaginator.js +2 -23
- package/dist-es/pagination/DescribeAnomalyDetectorsPaginator.js +2 -23
- package/dist-es/pagination/DescribeInsightRulesPaginator.js +2 -23
- package/dist-es/pagination/GetMetricDataPaginator.js +2 -23
- package/dist-es/pagination/ListDashboardsPaginator.js +2 -22
- package/dist-es/pagination/ListManagedInsightRulesPaginator.js +2 -23
- package/dist-es/pagination/ListMetricStreamsPaginator.js +2 -23
- package/dist-es/pagination/ListMetricsPaginator.js +2 -22
- package/dist-types/commands/DeleteAlarmsCommand.d.ts +6 -21
- package/dist-types/commands/DeleteAnomalyDetectorCommand.d.ts +6 -21
- package/dist-types/commands/DeleteDashboardsCommand.d.ts +6 -21
- package/dist-types/commands/DeleteInsightRulesCommand.d.ts +6 -21
- package/dist-types/commands/DeleteMetricStreamCommand.d.ts +6 -21
- package/dist-types/commands/DescribeAlarmHistoryCommand.d.ts +6 -21
- package/dist-types/commands/DescribeAlarmsCommand.d.ts +6 -21
- package/dist-types/commands/DescribeAlarmsForMetricCommand.d.ts +6 -21
- package/dist-types/commands/DescribeAnomalyDetectorsCommand.d.ts +6 -21
- package/dist-types/commands/DescribeInsightRulesCommand.d.ts +6 -21
- package/dist-types/commands/DisableAlarmActionsCommand.d.ts +6 -21
- package/dist-types/commands/DisableInsightRulesCommand.d.ts +6 -21
- package/dist-types/commands/EnableAlarmActionsCommand.d.ts +6 -21
- package/dist-types/commands/EnableInsightRulesCommand.d.ts +6 -21
- package/dist-types/commands/GetDashboardCommand.d.ts +6 -21
- package/dist-types/commands/GetInsightRuleReportCommand.d.ts +6 -21
- package/dist-types/commands/GetMetricDataCommand.d.ts +6 -21
- package/dist-types/commands/GetMetricStatisticsCommand.d.ts +6 -21
- package/dist-types/commands/GetMetricStreamCommand.d.ts +6 -21
- package/dist-types/commands/GetMetricWidgetImageCommand.d.ts +6 -21
- package/dist-types/commands/ListDashboardsCommand.d.ts +6 -21
- package/dist-types/commands/ListManagedInsightRulesCommand.d.ts +6 -21
- package/dist-types/commands/ListMetricStreamsCommand.d.ts +6 -21
- package/dist-types/commands/ListMetricsCommand.d.ts +6 -21
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -21
- package/dist-types/commands/PutAnomalyDetectorCommand.d.ts +6 -21
- package/dist-types/commands/PutCompositeAlarmCommand.d.ts +6 -21
- package/dist-types/commands/PutDashboardCommand.d.ts +6 -21
- package/dist-types/commands/PutInsightRuleCommand.d.ts +6 -21
- package/dist-types/commands/PutManagedInsightRulesCommand.d.ts +6 -21
- package/dist-types/commands/PutMetricAlarmCommand.d.ts +6 -21
- package/dist-types/commands/PutMetricDataCommand.d.ts +6 -21
- package/dist-types/commands/PutMetricStreamCommand.d.ts +6 -21
- package/dist-types/commands/SetAlarmStateCommand.d.ts +6 -21
- package/dist-types/commands/StartMetricStreamsCommand.d.ts +6 -21
- package/dist-types/commands/StopMetricStreamsCommand.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/endpoint/EndpointParameters.d.ts +18 -0
- package/dist-types/pagination/DescribeAlarmHistoryPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeAlarmsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeAnomalyDetectorsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeInsightRulesPaginator.d.ts +1 -1
- package/dist-types/pagination/GetMetricDataPaginator.d.ts +1 -1
- package/dist-types/pagination/ListDashboardsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListManagedInsightRulesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListMetricStreamsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListMetricsPaginator.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteAlarmsCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/DeleteAnomalyDetectorCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/DeleteDashboardsCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/DeleteInsightRulesCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/DeleteMetricStreamCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/DescribeAlarmHistoryCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/DescribeAlarmsCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/DescribeAlarmsForMetricCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/DescribeAnomalyDetectorsCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/DescribeInsightRulesCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/DisableAlarmActionsCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/DisableInsightRulesCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/EnableAlarmActionsCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/EnableInsightRulesCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/GetDashboardCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/GetInsightRuleReportCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/GetMetricDataCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/GetMetricStatisticsCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/GetMetricStreamCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/GetMetricWidgetImageCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/ListDashboardsCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ListManagedInsightRulesCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/ListMetricStreamsCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ListMetricsCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/PutAnomalyDetectorCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/PutCompositeAlarmCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/PutDashboardCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/PutInsightRuleCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/PutManagedInsightRulesCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/PutMetricAlarmCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/PutMetricDataCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/PutMetricStreamCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/SetAlarmStateCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/StartMetricStreamsCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/StopMetricStreamsCommand.d.ts +14 -23
- 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/endpoint/EndpointParameters.d.ts +18 -0
- package/dist-types/ts3.4/pagination/DescribeAlarmHistoryPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeAlarmsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeAnomalyDetectorsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeInsightRulesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetMetricDataPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListDashboardsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListManagedInsightRulesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListMetricStreamsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListMetricsPaginator.d.ts +3 -3
- package/package.json +11 -10
|
@@ -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_PutMetricAlarmCommand, se_PutMetricAlarmCommand } from "../protocols/Aws_query";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class PutMetricAlarmCommand 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 = "CloudWatchClient";
|
|
26
|
-
const commandName = "PutMetricAlarmCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "GraniteServiceVersion20100801",
|
|
35
|
-
operation: "PutMetricAlarm",
|
|
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_PutMetricAlarmCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_PutMetricAlarmCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class PutMetricAlarmCommand 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("GraniteServiceVersion20100801", "PutMetricAlarm", {})
|
|
19
|
+
.n("CloudWatchClient", "PutMetricAlarmCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_PutMetricAlarmCommand)
|
|
22
|
+
.de(de_PutMetricAlarmCommand)
|
|
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_PutMetricDataCommand, se_PutMetricDataCommand } from "../protocols/Aws_query";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class PutMetricDataCommand 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 = "CloudWatchClient";
|
|
26
|
-
const commandName = "PutMetricDataCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "GraniteServiceVersion20100801",
|
|
35
|
-
operation: "PutMetricData",
|
|
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_PutMetricDataCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_PutMetricDataCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class PutMetricDataCommand 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("GraniteServiceVersion20100801", "PutMetricData", {})
|
|
19
|
+
.n("CloudWatchClient", "PutMetricDataCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_PutMetricDataCommand)
|
|
22
|
+
.de(de_PutMetricDataCommand)
|
|
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_PutMetricStreamCommand, se_PutMetricStreamCommand } from "../protocols/Aws_query";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class PutMetricStreamCommand 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 = "CloudWatchClient";
|
|
26
|
-
const commandName = "PutMetricStreamCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "GraniteServiceVersion20100801",
|
|
35
|
-
operation: "PutMetricStream",
|
|
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_PutMetricStreamCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_PutMetricStreamCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class PutMetricStreamCommand 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("GraniteServiceVersion20100801", "PutMetricStream", {})
|
|
19
|
+
.n("CloudWatchClient", "PutMetricStreamCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_PutMetricStreamCommand)
|
|
22
|
+
.de(de_PutMetricStreamCommand)
|
|
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_SetAlarmStateCommand, se_SetAlarmStateCommand } from "../protocols/Aws_query";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class SetAlarmStateCommand 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 = "CloudWatchClient";
|
|
26
|
-
const commandName = "SetAlarmStateCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "GraniteServiceVersion20100801",
|
|
35
|
-
operation: "SetAlarmState",
|
|
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_SetAlarmStateCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_SetAlarmStateCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class SetAlarmStateCommand 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("GraniteServiceVersion20100801", "SetAlarmState", {})
|
|
19
|
+
.n("CloudWatchClient", "SetAlarmStateCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_SetAlarmStateCommand)
|
|
22
|
+
.de(de_SetAlarmStateCommand)
|
|
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_StartMetricStreamsCommand, se_StartMetricStreamsCommand } from "../protocols/Aws_query";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class StartMetricStreamsCommand 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 = "CloudWatchClient";
|
|
26
|
-
const commandName = "StartMetricStreamsCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "GraniteServiceVersion20100801",
|
|
35
|
-
operation: "StartMetricStreams",
|
|
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_StartMetricStreamsCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_StartMetricStreamsCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class StartMetricStreamsCommand 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("GraniteServiceVersion20100801", "StartMetricStreams", {})
|
|
19
|
+
.n("CloudWatchClient", "StartMetricStreamsCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_StartMetricStreamsCommand)
|
|
22
|
+
.de(de_StartMetricStreamsCommand)
|
|
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_StopMetricStreamsCommand, se_StopMetricStreamsCommand } from "../protocols/Aws_query";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class StopMetricStreamsCommand 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 = "CloudWatchClient";
|
|
26
|
-
const commandName = "StopMetricStreamsCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "GraniteServiceVersion20100801",
|
|
35
|
-
operation: "StopMetricStreams",
|
|
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_StopMetricStreamsCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_StopMetricStreamsCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class StopMetricStreamsCommand 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("GraniteServiceVersion20100801", "StopMetricStreams", {})
|
|
19
|
+
.n("CloudWatchClient", "StopMetricStreamsCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_StopMetricStreamsCommand)
|
|
22
|
+
.de(de_StopMetricStreamsCommand)
|
|
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_query";
|
|
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 = "CloudWatchClient";
|
|
26
|
-
const commandName = "TagResourceCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "GraniteServiceVersion20100801",
|
|
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("GraniteServiceVersion20100801", "TagResource", {})
|
|
19
|
+
.n("CloudWatchClient", "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_query";
|
|
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 = "CloudWatchClient";
|
|
26
|
-
const commandName = "UntagResourceCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "GraniteServiceVersion20100801",
|
|
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("GraniteServiceVersion20100801", "UntagResource", {})
|
|
19
|
+
.n("CloudWatchClient", "UntagResourceCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_UntagResourceCommand)
|
|
22
|
+
.de(de_UntagResourceCommand)
|
|
23
|
+
.build() {
|
|
47
24
|
}
|
|
@@ -6,3 +6,9 @@ export const resolveClientEndpointParameters = (options) => {
|
|
|
6
6
|
defaultSigningName: "monitoring",
|
|
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
|
+
};
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { CloudWatchClient } from "../CloudWatchClient";
|
|
2
3
|
import { DescribeAlarmHistoryCommand, } from "../commands/DescribeAlarmHistoryCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeAlarmHistoryCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeAlarmHistory(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxRecords"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof CloudWatchClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected CloudWatch | CloudWatchClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateDescribeAlarmHistory = createPaginator(CloudWatchClient, DescribeAlarmHistoryCommand, "NextToken", "NextToken", "MaxRecords");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { CloudWatchClient } from "../CloudWatchClient";
|
|
2
3
|
import { DescribeAlarmsCommand, } from "../commands/DescribeAlarmsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeAlarmsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeAlarms(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxRecords"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof CloudWatchClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected CloudWatch | CloudWatchClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateDescribeAlarms = createPaginator(CloudWatchClient, DescribeAlarmsCommand, "NextToken", "NextToken", "MaxRecords");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { CloudWatchClient } from "../CloudWatchClient";
|
|
2
3
|
import { DescribeAnomalyDetectorsCommand, } from "../commands/DescribeAnomalyDetectorsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeAnomalyDetectorsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeAnomalyDetectors(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof CloudWatchClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected CloudWatch | CloudWatchClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateDescribeAnomalyDetectors = createPaginator(CloudWatchClient, DescribeAnomalyDetectorsCommand, "NextToken", "NextToken", "MaxResults");
|