@aws-sdk/client-cloudwatch 3.476.0 → 3.478.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/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-cjs/protocols/Aws_query.js +1242 -1039
- 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-es/protocols/Aws_query.js +1242 -1039
- 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/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 +7 -6
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribeAlarmHistory = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const CloudWatchClient_1 = require("../CloudWatchClient");
|
|
5
6
|
const DescribeAlarmHistoryCommand_1 = require("../commands/DescribeAlarmHistoryCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeAlarmHistoryCommand_1.DescribeAlarmHistoryCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeAlarmHistory(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxRecords"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof CloudWatchClient_1.CloudWatchClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected CloudWatch | CloudWatchClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateDescribeAlarmHistory = paginateDescribeAlarmHistory;
|
|
7
|
+
exports.paginateDescribeAlarmHistory = (0, core_1.createPaginator)(CloudWatchClient_1.CloudWatchClient, DescribeAlarmHistoryCommand_1.DescribeAlarmHistoryCommand, "NextToken", "NextToken", "MaxRecords");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribeAlarms = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const CloudWatchClient_1 = require("../CloudWatchClient");
|
|
5
6
|
const DescribeAlarmsCommand_1 = require("../commands/DescribeAlarmsCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeAlarmsCommand_1.DescribeAlarmsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeAlarms(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxRecords"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof CloudWatchClient_1.CloudWatchClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected CloudWatch | CloudWatchClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateDescribeAlarms = paginateDescribeAlarms;
|
|
7
|
+
exports.paginateDescribeAlarms = (0, core_1.createPaginator)(CloudWatchClient_1.CloudWatchClient, DescribeAlarmsCommand_1.DescribeAlarmsCommand, "NextToken", "NextToken", "MaxRecords");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribeAnomalyDetectors = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const CloudWatchClient_1 = require("../CloudWatchClient");
|
|
5
6
|
const DescribeAnomalyDetectorsCommand_1 = require("../commands/DescribeAnomalyDetectorsCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeAnomalyDetectorsCommand_1.DescribeAnomalyDetectorsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeAnomalyDetectors(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof CloudWatchClient_1.CloudWatchClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected CloudWatch | CloudWatchClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateDescribeAnomalyDetectors = paginateDescribeAnomalyDetectors;
|
|
7
|
+
exports.paginateDescribeAnomalyDetectors = (0, core_1.createPaginator)(CloudWatchClient_1.CloudWatchClient, DescribeAnomalyDetectorsCommand_1.DescribeAnomalyDetectorsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribeInsightRules = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const CloudWatchClient_1 = require("../CloudWatchClient");
|
|
5
6
|
const DescribeInsightRulesCommand_1 = require("../commands/DescribeInsightRulesCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeInsightRulesCommand_1.DescribeInsightRulesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeInsightRules(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof CloudWatchClient_1.CloudWatchClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected CloudWatch | CloudWatchClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateDescribeInsightRules = paginateDescribeInsightRules;
|
|
7
|
+
exports.paginateDescribeInsightRules = (0, core_1.createPaginator)(CloudWatchClient_1.CloudWatchClient, DescribeInsightRulesCommand_1.DescribeInsightRulesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateGetMetricData = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const CloudWatchClient_1 = require("../CloudWatchClient");
|
|
5
6
|
const GetMetricDataCommand_1 = require("../commands/GetMetricDataCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new GetMetricDataCommand_1.GetMetricDataCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateGetMetricData(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxDatapoints"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof CloudWatchClient_1.CloudWatchClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected CloudWatch | CloudWatchClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateGetMetricData = paginateGetMetricData;
|
|
7
|
+
exports.paginateGetMetricData = (0, core_1.createPaginator)(CloudWatchClient_1.CloudWatchClient, GetMetricDataCommand_1.GetMetricDataCommand, "NextToken", "NextToken", "MaxDatapoints");
|
|
@@ -1,28 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListDashboards = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const CloudWatchClient_1 = require("../CloudWatchClient");
|
|
5
6
|
const ListDashboardsCommand_1 = require("../commands/ListDashboardsCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListDashboardsCommand_1.ListDashboardsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListDashboards(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
if (config.client instanceof CloudWatchClient_1.CloudWatchClient) {
|
|
16
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
17
|
-
}
|
|
18
|
-
else {
|
|
19
|
-
throw new Error("Invalid client, expected CloudWatch | CloudWatchClient");
|
|
20
|
-
}
|
|
21
|
-
yield page;
|
|
22
|
-
const prevToken = token;
|
|
23
|
-
token = page.NextToken;
|
|
24
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
25
|
-
}
|
|
26
|
-
return undefined;
|
|
27
|
-
}
|
|
28
|
-
exports.paginateListDashboards = paginateListDashboards;
|
|
7
|
+
exports.paginateListDashboards = (0, core_1.createPaginator)(CloudWatchClient_1.CloudWatchClient, ListDashboardsCommand_1.ListDashboardsCommand, "NextToken", "NextToken", "");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListManagedInsightRules = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const CloudWatchClient_1 = require("../CloudWatchClient");
|
|
5
6
|
const ListManagedInsightRulesCommand_1 = require("../commands/ListManagedInsightRulesCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListManagedInsightRulesCommand_1.ListManagedInsightRulesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListManagedInsightRules(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof CloudWatchClient_1.CloudWatchClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected CloudWatch | CloudWatchClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListManagedInsightRules = paginateListManagedInsightRules;
|
|
7
|
+
exports.paginateListManagedInsightRules = (0, core_1.createPaginator)(CloudWatchClient_1.CloudWatchClient, ListManagedInsightRulesCommand_1.ListManagedInsightRulesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListMetricStreams = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const CloudWatchClient_1 = require("../CloudWatchClient");
|
|
5
6
|
const ListMetricStreamsCommand_1 = require("../commands/ListMetricStreamsCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListMetricStreamsCommand_1.ListMetricStreamsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListMetricStreams(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof CloudWatchClient_1.CloudWatchClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected CloudWatch | CloudWatchClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListMetricStreams = paginateListMetricStreams;
|
|
7
|
+
exports.paginateListMetricStreams = (0, core_1.createPaginator)(CloudWatchClient_1.CloudWatchClient, ListMetricStreamsCommand_1.ListMetricStreamsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,28 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListMetrics = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const CloudWatchClient_1 = require("../CloudWatchClient");
|
|
5
6
|
const ListMetricsCommand_1 = require("../commands/ListMetricsCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListMetricsCommand_1.ListMetricsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListMetrics(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
if (config.client instanceof CloudWatchClient_1.CloudWatchClient) {
|
|
16
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
17
|
-
}
|
|
18
|
-
else {
|
|
19
|
-
throw new Error("Invalid client, expected CloudWatch | CloudWatchClient");
|
|
20
|
-
}
|
|
21
|
-
yield page;
|
|
22
|
-
const prevToken = token;
|
|
23
|
-
token = page.NextToken;
|
|
24
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
25
|
-
}
|
|
26
|
-
return undefined;
|
|
27
|
-
}
|
|
28
|
-
exports.paginateListMetrics = paginateListMetrics;
|
|
7
|
+
exports.paginateListMetrics = (0, core_1.createPaginator)(CloudWatchClient_1.CloudWatchClient, ListMetricsCommand_1.ListMetricsCommand, "NextToken", "NextToken", "");
|