@aws-sdk/client-cloudwatch 3.36.0 → 3.39.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +42 -0
- package/dist-cjs/CloudWatch.js +0 -17
- package/dist-cjs/CloudWatchClient.js +0 -22
- package/dist-cjs/commands/DeleteAlarmsCommand.js +0 -39
- package/dist-cjs/commands/DeleteAnomalyDetectorCommand.js +0 -24
- package/dist-cjs/commands/DeleteDashboardsCommand.js +0 -26
- package/dist-cjs/commands/DeleteInsightRulesCommand.js +0 -27
- package/dist-cjs/commands/DeleteMetricStreamCommand.js +0 -24
- package/dist-cjs/commands/DescribeAlarmHistoryCommand.js +0 -26
- package/dist-cjs/commands/DescribeAlarmsCommand.js +0 -25
- package/dist-cjs/commands/DescribeAlarmsForMetricCommand.js +0 -28
- package/dist-cjs/commands/DescribeAnomalyDetectorsCommand.js +0 -26
- package/dist-cjs/commands/DescribeInsightRulesCommand.js +0 -27
- package/dist-cjs/commands/DisableAlarmActionsCommand.js +0 -25
- package/dist-cjs/commands/DisableInsightRulesCommand.js +0 -25
- package/dist-cjs/commands/EnableAlarmActionsCommand.js +0 -24
- package/dist-cjs/commands/EnableInsightRulesCommand.js +0 -24
- package/dist-cjs/commands/GetDashboardCommand.js +0 -27
- package/dist-cjs/commands/GetInsightRuleReportCommand.js +0 -60
- package/dist-cjs/commands/GetMetricDataCommand.js +0 -59
- package/dist-cjs/commands/GetMetricStatisticsCommand.js +0 -75
- package/dist-cjs/commands/GetMetricStreamCommand.js +0 -24
- package/dist-cjs/commands/GetMetricWidgetImageCommand.js +0 -41
- package/dist-cjs/commands/ListDashboardsCommand.js +0 -32
- package/dist-cjs/commands/ListMetricStreamsCommand.js +0 -24
- package/dist-cjs/commands/ListMetricsCommand.js +0 -37
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -25
- package/dist-cjs/commands/PutAnomalyDetectorCommand.js +0 -26
- package/dist-cjs/commands/PutCompositeAlarmCommand.js +0 -59
- package/dist-cjs/commands/PutDashboardCommand.js +0 -37
- package/dist-cjs/commands/PutInsightRuleCommand.js +0 -28
- package/dist-cjs/commands/PutMetricAlarmCommand.js +0 -87
- package/dist-cjs/commands/PutMetricDataCommand.js +0 -68
- package/dist-cjs/commands/PutMetricStreamCommand.js +0 -51
- package/dist-cjs/commands/SetAlarmStateCommand.js +0 -39
- package/dist-cjs/commands/StartMetricStreamsCommand.js +0 -24
- package/dist-cjs/commands/StopMetricStreamsCommand.js +0 -24
- package/dist-cjs/commands/TagResourceCommand.js +0 -34
- package/dist-cjs/commands/UntagResourceCommand.js +0 -24
- package/dist-cjs/commands/index.js +39 -0
- package/dist-cjs/endpoints.js +6 -1
- package/dist-cjs/index.js +5 -48
- package/dist-cjs/models/models_0.js +0 -315
- package/dist-cjs/pagination/DescribeAlarmHistoryPaginator.js +0 -10
- package/dist-cjs/pagination/DescribeAlarmsPaginator.js +0 -10
- package/dist-cjs/pagination/DescribeInsightRulesPaginator.js +0 -10
- package/dist-cjs/pagination/GetMetricDataPaginator.js +0 -10
- package/dist-cjs/pagination/ListDashboardsPaginator.js +0 -10
- package/dist-cjs/pagination/ListMetricStreamsPaginator.js +0 -10
- package/dist-cjs/pagination/ListMetricsPaginator.js +0 -10
- package/dist-cjs/pagination/index.js +11 -0
- package/dist-cjs/protocols/Aws_query.js +0 -2
- package/dist-cjs/runtimeConfig.browser.js +1 -5
- package/dist-cjs/runtimeConfig.js +1 -5
- package/dist-cjs/runtimeConfig.native.js +0 -3
- package/dist-cjs/runtimeConfig.shared.js +0 -3
- package/dist-cjs/waiters/index.js +5 -0
- package/dist-cjs/waiters/waitForAlarmExists.js +0 -9
- package/dist-cjs/waiters/waitForCompositeAlarmExists.js +0 -9
- package/dist-es/commands/index.js +36 -0
- package/dist-es/endpoints.js +6 -1
- package/dist-es/index.js +5 -48
- package/dist-es/pagination/index.js +8 -0
- package/dist-es/waiters/index.js +2 -0
- package/dist-types/commands/index.d.ts +36 -0
- package/dist-types/index.d.ts +5 -48
- package/dist-types/pagination/index.d.ts +8 -0
- package/dist-types/ts3.4/CloudWatch.d.ts +37 -536
- package/dist-types/ts3.4/CloudWatchClient.d.ts +24 -103
- package/dist-types/ts3.4/commands/DeleteAlarmsCommand.d.ts +2 -35
- package/dist-types/ts3.4/commands/DeleteAnomalyDetectorCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DeleteDashboardsCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/DeleteInsightRulesCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/DeleteMetricStreamCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeAlarmHistoryCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/DescribeAlarmsCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DescribeAlarmsForMetricCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/DescribeAnomalyDetectorsCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/DescribeInsightRulesCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/DisableAlarmActionsCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DisableInsightRulesCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/EnableAlarmActionsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/EnableInsightRulesCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetDashboardCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/GetInsightRuleReportCommand.d.ts +2 -56
- package/dist-types/ts3.4/commands/GetMetricDataCommand.d.ts +2 -55
- package/dist-types/ts3.4/commands/GetMetricStatisticsCommand.d.ts +2 -71
- package/dist-types/ts3.4/commands/GetMetricStreamCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetMetricWidgetImageCommand.d.ts +2 -37
- package/dist-types/ts3.4/commands/ListDashboardsCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/ListMetricStreamsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListMetricsCommand.d.ts +2 -33
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/PutAnomalyDetectorCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/PutCompositeAlarmCommand.d.ts +2 -55
- package/dist-types/ts3.4/commands/PutDashboardCommand.d.ts +2 -33
- package/dist-types/ts3.4/commands/PutInsightRuleCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/PutMetricAlarmCommand.d.ts +2 -83
- package/dist-types/ts3.4/commands/PutMetricDataCommand.d.ts +2 -64
- package/dist-types/ts3.4/commands/PutMetricStreamCommand.d.ts +2 -47
- package/dist-types/ts3.4/commands/SetAlarmStateCommand.d.ts +2 -35
- package/dist-types/ts3.4/commands/StartMetricStreamsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/StopMetricStreamsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -30
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/index.d.ts +36 -0
- package/dist-types/ts3.4/index.d.ts +5 -48
- package/dist-types/ts3.4/models/models_0.d.ts +481 -2223
- package/dist-types/ts3.4/pagination/index.d.ts +8 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/dist-types/ts3.4/waiters/index.d.ts +2 -0
- package/dist-types/ts3.4/waiters/waitForAlarmExists.d.ts +2 -9
- package/dist-types/ts3.4/waiters/waitForCompositeAlarmExists.d.ts +2 -9
- package/dist-types/waiters/index.d.ts +2 -0
- package/package.json +33 -33
|
@@ -4,22 +4,13 @@ exports.paginateDescribeAlarmHistory = void 0;
|
|
|
4
4
|
const CloudWatch_1 = require("../CloudWatch");
|
|
5
5
|
const CloudWatchClient_1 = require("../CloudWatchClient");
|
|
6
6
|
const DescribeAlarmHistoryCommand_1 = require("../commands/DescribeAlarmHistoryCommand");
|
|
7
|
-
/**
|
|
8
|
-
* @private
|
|
9
|
-
*/
|
|
10
7
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
11
|
-
// @ts-ignore
|
|
12
8
|
return await client.send(new DescribeAlarmHistoryCommand_1.DescribeAlarmHistoryCommand(input), ...args);
|
|
13
9
|
};
|
|
14
|
-
/**
|
|
15
|
-
* @private
|
|
16
|
-
*/
|
|
17
10
|
const makePagedRequest = async (client, input, ...args) => {
|
|
18
|
-
// @ts-ignore
|
|
19
11
|
return await client.describeAlarmHistory(input, ...args);
|
|
20
12
|
};
|
|
21
13
|
async function* paginateDescribeAlarmHistory(config, input, ...additionalArguments) {
|
|
22
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
23
14
|
let token = config.startingToken || undefined;
|
|
24
15
|
let hasNext = true;
|
|
25
16
|
let page;
|
|
@@ -39,7 +30,6 @@ async function* paginateDescribeAlarmHistory(config, input, ...additionalArgumen
|
|
|
39
30
|
token = page.NextToken;
|
|
40
31
|
hasNext = !!token;
|
|
41
32
|
}
|
|
42
|
-
// @ts-ignore
|
|
43
33
|
return undefined;
|
|
44
34
|
}
|
|
45
35
|
exports.paginateDescribeAlarmHistory = paginateDescribeAlarmHistory;
|
|
@@ -4,22 +4,13 @@ exports.paginateDescribeAlarms = void 0;
|
|
|
4
4
|
const CloudWatch_1 = require("../CloudWatch");
|
|
5
5
|
const CloudWatchClient_1 = require("../CloudWatchClient");
|
|
6
6
|
const DescribeAlarmsCommand_1 = require("../commands/DescribeAlarmsCommand");
|
|
7
|
-
/**
|
|
8
|
-
* @private
|
|
9
|
-
*/
|
|
10
7
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
11
|
-
// @ts-ignore
|
|
12
8
|
return await client.send(new DescribeAlarmsCommand_1.DescribeAlarmsCommand(input), ...args);
|
|
13
9
|
};
|
|
14
|
-
/**
|
|
15
|
-
* @private
|
|
16
|
-
*/
|
|
17
10
|
const makePagedRequest = async (client, input, ...args) => {
|
|
18
|
-
// @ts-ignore
|
|
19
11
|
return await client.describeAlarms(input, ...args);
|
|
20
12
|
};
|
|
21
13
|
async function* paginateDescribeAlarms(config, input, ...additionalArguments) {
|
|
22
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
23
14
|
let token = config.startingToken || undefined;
|
|
24
15
|
let hasNext = true;
|
|
25
16
|
let page;
|
|
@@ -39,7 +30,6 @@ async function* paginateDescribeAlarms(config, input, ...additionalArguments) {
|
|
|
39
30
|
token = page.NextToken;
|
|
40
31
|
hasNext = !!token;
|
|
41
32
|
}
|
|
42
|
-
// @ts-ignore
|
|
43
33
|
return undefined;
|
|
44
34
|
}
|
|
45
35
|
exports.paginateDescribeAlarms = paginateDescribeAlarms;
|
|
@@ -4,22 +4,13 @@ exports.paginateDescribeInsightRules = void 0;
|
|
|
4
4
|
const CloudWatch_1 = require("../CloudWatch");
|
|
5
5
|
const CloudWatchClient_1 = require("../CloudWatchClient");
|
|
6
6
|
const DescribeInsightRulesCommand_1 = require("../commands/DescribeInsightRulesCommand");
|
|
7
|
-
/**
|
|
8
|
-
* @private
|
|
9
|
-
*/
|
|
10
7
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
11
|
-
// @ts-ignore
|
|
12
8
|
return await client.send(new DescribeInsightRulesCommand_1.DescribeInsightRulesCommand(input), ...args);
|
|
13
9
|
};
|
|
14
|
-
/**
|
|
15
|
-
* @private
|
|
16
|
-
*/
|
|
17
10
|
const makePagedRequest = async (client, input, ...args) => {
|
|
18
|
-
// @ts-ignore
|
|
19
11
|
return await client.describeInsightRules(input, ...args);
|
|
20
12
|
};
|
|
21
13
|
async function* paginateDescribeInsightRules(config, input, ...additionalArguments) {
|
|
22
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
23
14
|
let token = config.startingToken || undefined;
|
|
24
15
|
let hasNext = true;
|
|
25
16
|
let page;
|
|
@@ -39,7 +30,6 @@ async function* paginateDescribeInsightRules(config, input, ...additionalArgumen
|
|
|
39
30
|
token = page.NextToken;
|
|
40
31
|
hasNext = !!token;
|
|
41
32
|
}
|
|
42
|
-
// @ts-ignore
|
|
43
33
|
return undefined;
|
|
44
34
|
}
|
|
45
35
|
exports.paginateDescribeInsightRules = paginateDescribeInsightRules;
|
|
@@ -4,22 +4,13 @@ exports.paginateGetMetricData = void 0;
|
|
|
4
4
|
const CloudWatch_1 = require("../CloudWatch");
|
|
5
5
|
const CloudWatchClient_1 = require("../CloudWatchClient");
|
|
6
6
|
const GetMetricDataCommand_1 = require("../commands/GetMetricDataCommand");
|
|
7
|
-
/**
|
|
8
|
-
* @private
|
|
9
|
-
*/
|
|
10
7
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
11
|
-
// @ts-ignore
|
|
12
8
|
return await client.send(new GetMetricDataCommand_1.GetMetricDataCommand(input), ...args);
|
|
13
9
|
};
|
|
14
|
-
/**
|
|
15
|
-
* @private
|
|
16
|
-
*/
|
|
17
10
|
const makePagedRequest = async (client, input, ...args) => {
|
|
18
|
-
// @ts-ignore
|
|
19
11
|
return await client.getMetricData(input, ...args);
|
|
20
12
|
};
|
|
21
13
|
async function* paginateGetMetricData(config, input, ...additionalArguments) {
|
|
22
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
23
14
|
let token = config.startingToken || undefined;
|
|
24
15
|
let hasNext = true;
|
|
25
16
|
let page;
|
|
@@ -39,7 +30,6 @@ async function* paginateGetMetricData(config, input, ...additionalArguments) {
|
|
|
39
30
|
token = page.NextToken;
|
|
40
31
|
hasNext = !!token;
|
|
41
32
|
}
|
|
42
|
-
// @ts-ignore
|
|
43
33
|
return undefined;
|
|
44
34
|
}
|
|
45
35
|
exports.paginateGetMetricData = paginateGetMetricData;
|
|
@@ -4,22 +4,13 @@ exports.paginateListDashboards = void 0;
|
|
|
4
4
|
const CloudWatch_1 = require("../CloudWatch");
|
|
5
5
|
const CloudWatchClient_1 = require("../CloudWatchClient");
|
|
6
6
|
const ListDashboardsCommand_1 = require("../commands/ListDashboardsCommand");
|
|
7
|
-
/**
|
|
8
|
-
* @private
|
|
9
|
-
*/
|
|
10
7
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
11
|
-
// @ts-ignore
|
|
12
8
|
return await client.send(new ListDashboardsCommand_1.ListDashboardsCommand(input), ...args);
|
|
13
9
|
};
|
|
14
|
-
/**
|
|
15
|
-
* @private
|
|
16
|
-
*/
|
|
17
10
|
const makePagedRequest = async (client, input, ...args) => {
|
|
18
|
-
// @ts-ignore
|
|
19
11
|
return await client.listDashboards(input, ...args);
|
|
20
12
|
};
|
|
21
13
|
async function* paginateListDashboards(config, input, ...additionalArguments) {
|
|
22
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
23
14
|
let token = config.startingToken || undefined;
|
|
24
15
|
let hasNext = true;
|
|
25
16
|
let page;
|
|
@@ -38,7 +29,6 @@ async function* paginateListDashboards(config, input, ...additionalArguments) {
|
|
|
38
29
|
token = page.NextToken;
|
|
39
30
|
hasNext = !!token;
|
|
40
31
|
}
|
|
41
|
-
// @ts-ignore
|
|
42
32
|
return undefined;
|
|
43
33
|
}
|
|
44
34
|
exports.paginateListDashboards = paginateListDashboards;
|
|
@@ -4,22 +4,13 @@ exports.paginateListMetricStreams = void 0;
|
|
|
4
4
|
const CloudWatch_1 = require("../CloudWatch");
|
|
5
5
|
const CloudWatchClient_1 = require("../CloudWatchClient");
|
|
6
6
|
const ListMetricStreamsCommand_1 = require("../commands/ListMetricStreamsCommand");
|
|
7
|
-
/**
|
|
8
|
-
* @private
|
|
9
|
-
*/
|
|
10
7
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
11
|
-
// @ts-ignore
|
|
12
8
|
return await client.send(new ListMetricStreamsCommand_1.ListMetricStreamsCommand(input), ...args);
|
|
13
9
|
};
|
|
14
|
-
/**
|
|
15
|
-
* @private
|
|
16
|
-
*/
|
|
17
10
|
const makePagedRequest = async (client, input, ...args) => {
|
|
18
|
-
// @ts-ignore
|
|
19
11
|
return await client.listMetricStreams(input, ...args);
|
|
20
12
|
};
|
|
21
13
|
async function* paginateListMetricStreams(config, input, ...additionalArguments) {
|
|
22
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
23
14
|
let token = config.startingToken || undefined;
|
|
24
15
|
let hasNext = true;
|
|
25
16
|
let page;
|
|
@@ -39,7 +30,6 @@ async function* paginateListMetricStreams(config, input, ...additionalArguments)
|
|
|
39
30
|
token = page.NextToken;
|
|
40
31
|
hasNext = !!token;
|
|
41
32
|
}
|
|
42
|
-
// @ts-ignore
|
|
43
33
|
return undefined;
|
|
44
34
|
}
|
|
45
35
|
exports.paginateListMetricStreams = paginateListMetricStreams;
|
|
@@ -4,22 +4,13 @@ exports.paginateListMetrics = void 0;
|
|
|
4
4
|
const CloudWatch_1 = require("../CloudWatch");
|
|
5
5
|
const CloudWatchClient_1 = require("../CloudWatchClient");
|
|
6
6
|
const ListMetricsCommand_1 = require("../commands/ListMetricsCommand");
|
|
7
|
-
/**
|
|
8
|
-
* @private
|
|
9
|
-
*/
|
|
10
7
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
11
|
-
// @ts-ignore
|
|
12
8
|
return await client.send(new ListMetricsCommand_1.ListMetricsCommand(input), ...args);
|
|
13
9
|
};
|
|
14
|
-
/**
|
|
15
|
-
* @private
|
|
16
|
-
*/
|
|
17
10
|
const makePagedRequest = async (client, input, ...args) => {
|
|
18
|
-
// @ts-ignore
|
|
19
11
|
return await client.listMetrics(input, ...args);
|
|
20
12
|
};
|
|
21
13
|
async function* paginateListMetrics(config, input, ...additionalArguments) {
|
|
22
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
23
14
|
let token = config.startingToken || undefined;
|
|
24
15
|
let hasNext = true;
|
|
25
16
|
let page;
|
|
@@ -38,7 +29,6 @@ async function* paginateListMetrics(config, input, ...additionalArguments) {
|
|
|
38
29
|
token = page.NextToken;
|
|
39
30
|
hasNext = !!token;
|
|
40
31
|
}
|
|
41
|
-
// @ts-ignore
|
|
42
32
|
return undefined;
|
|
43
33
|
}
|
|
44
34
|
exports.paginateListMetrics = paginateListMetrics;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./DescribeAlarmHistoryPaginator"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./DescribeAlarmsPaginator"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./DescribeInsightRulesPaginator"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./GetMetricDataPaginator"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./Interfaces"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./ListDashboardsPaginator"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./ListMetricStreamsPaginator"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./ListMetricsPaginator"), exports);
|
|
@@ -5340,14 +5340,12 @@ const deserializeMetadata = (output) => {
|
|
|
5340
5340
|
cfId: output.headers["x-amz-cf-id"],
|
|
5341
5341
|
});
|
|
5342
5342
|
};
|
|
5343
|
-
// Collect low-level response body stream to Uint8Array.
|
|
5344
5343
|
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
5345
5344
|
if (streamBody instanceof Uint8Array) {
|
|
5346
5345
|
return Promise.resolve(streamBody);
|
|
5347
5346
|
}
|
|
5348
5347
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
5349
5348
|
};
|
|
5350
|
-
// Encode Uint8Array data into string with utf-8.
|
|
5351
5349
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
5352
5350
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
5353
5351
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
|
|
6
|
-
const package_json_1 = tslib_1.__importDefault(require("../package.json")); // eslint-disable-line
|
|
5
|
+
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
7
6
|
const sha256_browser_1 = require("@aws-crypto/sha256-browser");
|
|
8
7
|
const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
|
|
9
8
|
const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
|
|
@@ -13,9 +12,6 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
|
|
|
13
12
|
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
14
13
|
const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
|
|
15
14
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
16
|
-
/**
|
|
17
|
-
* @internal
|
|
18
|
-
*/
|
|
19
15
|
const getRuntimeConfig = (config) => {
|
|
20
16
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
21
17
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
|
|
6
|
-
const package_json_1 = tslib_1.__importDefault(require("../package.json")); // eslint-disable-line
|
|
5
|
+
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
7
6
|
const client_sts_1 = require("@aws-sdk/client-sts");
|
|
8
7
|
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
9
8
|
const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
|
|
@@ -17,9 +16,6 @@ const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
|
17
16
|
const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
18
17
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
19
18
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
20
|
-
/**
|
|
21
|
-
* @internal
|
|
22
|
-
*/
|
|
23
19
|
const getRuntimeConfig = (config) => {
|
|
24
20
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
25
21
|
smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
|
|
@@ -3,9 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
5
5
|
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
6
|
-
/**
|
|
7
|
-
* @internal
|
|
8
|
-
*/
|
|
9
6
|
const getRuntimeConfig = (config) => {
|
|
10
7
|
var _a;
|
|
11
8
|
const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config);
|
|
@@ -3,9 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const url_parser_1 = require("@aws-sdk/url-parser");
|
|
5
5
|
const endpoints_1 = require("./endpoints");
|
|
6
|
-
/**
|
|
7
|
-
* @internal
|
|
8
|
-
*/
|
|
9
6
|
const getRuntimeConfig = (config) => {
|
|
10
7
|
var _a, _b, _c, _d, _e;
|
|
11
8
|
return ({
|
|
@@ -24,20 +24,11 @@ const checkState = async (client, input) => {
|
|
|
24
24
|
}
|
|
25
25
|
return { state: util_waiter_1.WaiterState.RETRY, reason };
|
|
26
26
|
};
|
|
27
|
-
/**
|
|
28
|
-
*
|
|
29
|
-
* @deprecated Use waitUntilAlarmExists instead. waitForAlarmExists does not throw error in non-success cases.
|
|
30
|
-
*/
|
|
31
27
|
const waitForAlarmExists = async (params, input) => {
|
|
32
28
|
const serviceDefaults = { minDelay: 5, maxDelay: 120 };
|
|
33
29
|
return util_waiter_1.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
34
30
|
};
|
|
35
31
|
exports.waitForAlarmExists = waitForAlarmExists;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @param params - Waiter configuration options.
|
|
39
|
-
* @param input - The input to DescribeAlarmsCommand for polling.
|
|
40
|
-
*/
|
|
41
32
|
const waitUntilAlarmExists = async (params, input) => {
|
|
42
33
|
const serviceDefaults = { minDelay: 5, maxDelay: 120 };
|
|
43
34
|
const result = await util_waiter_1.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
@@ -24,20 +24,11 @@ const checkState = async (client, input) => {
|
|
|
24
24
|
}
|
|
25
25
|
return { state: util_waiter_1.WaiterState.RETRY, reason };
|
|
26
26
|
};
|
|
27
|
-
/**
|
|
28
|
-
*
|
|
29
|
-
* @deprecated Use waitUntilCompositeAlarmExists instead. waitForCompositeAlarmExists does not throw error in non-success cases.
|
|
30
|
-
*/
|
|
31
27
|
const waitForCompositeAlarmExists = async (params, input) => {
|
|
32
28
|
const serviceDefaults = { minDelay: 5, maxDelay: 120 };
|
|
33
29
|
return util_waiter_1.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
34
30
|
};
|
|
35
31
|
exports.waitForCompositeAlarmExists = waitForCompositeAlarmExists;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @param params - Waiter configuration options.
|
|
39
|
-
* @param input - The input to DescribeAlarmsCommand for polling.
|
|
40
|
-
*/
|
|
41
32
|
const waitUntilCompositeAlarmExists = async (params, input) => {
|
|
42
33
|
const serviceDefaults = { minDelay: 5, maxDelay: 120 };
|
|
43
34
|
const result = await util_waiter_1.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export * from "./DeleteAlarmsCommand";
|
|
2
|
+
export * from "./DeleteAnomalyDetectorCommand";
|
|
3
|
+
export * from "./DeleteDashboardsCommand";
|
|
4
|
+
export * from "./DeleteInsightRulesCommand";
|
|
5
|
+
export * from "./DeleteMetricStreamCommand";
|
|
6
|
+
export * from "./DescribeAlarmHistoryCommand";
|
|
7
|
+
export * from "./DescribeAlarmsCommand";
|
|
8
|
+
export * from "./DescribeAlarmsForMetricCommand";
|
|
9
|
+
export * from "./DescribeAnomalyDetectorsCommand";
|
|
10
|
+
export * from "./DescribeInsightRulesCommand";
|
|
11
|
+
export * from "./DisableAlarmActionsCommand";
|
|
12
|
+
export * from "./DisableInsightRulesCommand";
|
|
13
|
+
export * from "./EnableAlarmActionsCommand";
|
|
14
|
+
export * from "./EnableInsightRulesCommand";
|
|
15
|
+
export * from "./GetDashboardCommand";
|
|
16
|
+
export * from "./GetInsightRuleReportCommand";
|
|
17
|
+
export * from "./GetMetricDataCommand";
|
|
18
|
+
export * from "./GetMetricStatisticsCommand";
|
|
19
|
+
export * from "./GetMetricStreamCommand";
|
|
20
|
+
export * from "./GetMetricWidgetImageCommand";
|
|
21
|
+
export * from "./ListDashboardsCommand";
|
|
22
|
+
export * from "./ListMetricStreamsCommand";
|
|
23
|
+
export * from "./ListMetricsCommand";
|
|
24
|
+
export * from "./ListTagsForResourceCommand";
|
|
25
|
+
export * from "./PutAnomalyDetectorCommand";
|
|
26
|
+
export * from "./PutCompositeAlarmCommand";
|
|
27
|
+
export * from "./PutDashboardCommand";
|
|
28
|
+
export * from "./PutInsightRuleCommand";
|
|
29
|
+
export * from "./PutMetricAlarmCommand";
|
|
30
|
+
export * from "./PutMetricDataCommand";
|
|
31
|
+
export * from "./PutMetricStreamCommand";
|
|
32
|
+
export * from "./SetAlarmStateCommand";
|
|
33
|
+
export * from "./StartMetricStreamsCommand";
|
|
34
|
+
export * from "./StopMetricStreamsCommand";
|
|
35
|
+
export * from "./TagResourceCommand";
|
|
36
|
+
export * from "./UntagResourceCommand";
|
package/dist-es/endpoints.js
CHANGED
|
@@ -55,22 +55,27 @@ var partitionHash = {
|
|
|
55
55
|
"us-west-1",
|
|
56
56
|
"us-west-2",
|
|
57
57
|
],
|
|
58
|
+
regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
|
|
58
59
|
hostname: "monitoring.{region}.amazonaws.com",
|
|
59
60
|
},
|
|
60
61
|
"aws-cn": {
|
|
61
62
|
regions: ["cn-north-1", "cn-northwest-1"],
|
|
63
|
+
regionRegex: "^cn\\-\\w+\\-\\d+$",
|
|
62
64
|
hostname: "monitoring.{region}.amazonaws.com.cn",
|
|
63
65
|
},
|
|
64
66
|
"aws-iso": {
|
|
65
|
-
regions: ["us-iso-east-1"],
|
|
67
|
+
regions: ["us-iso-east-1", "us-iso-west-1"],
|
|
68
|
+
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
|
|
66
69
|
hostname: "monitoring.{region}.c2s.ic.gov",
|
|
67
70
|
},
|
|
68
71
|
"aws-iso-b": {
|
|
69
72
|
regions: ["us-isob-east-1"],
|
|
73
|
+
regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
|
|
70
74
|
hostname: "monitoring.{region}.sc2s.sgov.gov",
|
|
71
75
|
},
|
|
72
76
|
"aws-us-gov": {
|
|
73
77
|
regions: ["fips-us-gov-east-1", "fips-us-gov-west-1", "us-gov-east-1", "us-gov-west-1"],
|
|
78
|
+
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
|
|
74
79
|
hostname: "monitoring.{region}.amazonaws.com",
|
|
75
80
|
},
|
|
76
81
|
};
|
package/dist-es/index.js
CHANGED
|
@@ -1,49 +1,6 @@
|
|
|
1
|
-
export * from "./CloudWatchClient";
|
|
2
1
|
export * from "./CloudWatch";
|
|
3
|
-
export * from "./
|
|
4
|
-
export * from "./commands
|
|
5
|
-
export * from "./
|
|
6
|
-
export * from "./
|
|
7
|
-
export * from "./
|
|
8
|
-
export * from "./commands/DescribeAlarmHistoryCommand";
|
|
9
|
-
export * from "./pagination/DescribeAlarmHistoryPaginator";
|
|
10
|
-
export * from "./commands/DescribeAlarmsCommand";
|
|
11
|
-
export * from "./pagination/DescribeAlarmsPaginator";
|
|
12
|
-
export * from "./waiters/waitForAlarmExists";
|
|
13
|
-
export * from "./waiters/waitForCompositeAlarmExists";
|
|
14
|
-
export * from "./commands/DescribeAlarmsForMetricCommand";
|
|
15
|
-
export * from "./commands/DescribeAnomalyDetectorsCommand";
|
|
16
|
-
export * from "./commands/DescribeInsightRulesCommand";
|
|
17
|
-
export * from "./pagination/DescribeInsightRulesPaginator";
|
|
18
|
-
export * from "./commands/DisableAlarmActionsCommand";
|
|
19
|
-
export * from "./commands/DisableInsightRulesCommand";
|
|
20
|
-
export * from "./commands/EnableAlarmActionsCommand";
|
|
21
|
-
export * from "./commands/EnableInsightRulesCommand";
|
|
22
|
-
export * from "./commands/GetDashboardCommand";
|
|
23
|
-
export * from "./commands/GetInsightRuleReportCommand";
|
|
24
|
-
export * from "./commands/GetMetricDataCommand";
|
|
25
|
-
export * from "./pagination/GetMetricDataPaginator";
|
|
26
|
-
export * from "./commands/GetMetricStatisticsCommand";
|
|
27
|
-
export * from "./commands/GetMetricStreamCommand";
|
|
28
|
-
export * from "./commands/GetMetricWidgetImageCommand";
|
|
29
|
-
export * from "./commands/ListDashboardsCommand";
|
|
30
|
-
export * from "./pagination/ListDashboardsPaginator";
|
|
31
|
-
export * from "./commands/ListMetricsCommand";
|
|
32
|
-
export * from "./pagination/ListMetricsPaginator";
|
|
33
|
-
export * from "./commands/ListMetricStreamsCommand";
|
|
34
|
-
export * from "./pagination/ListMetricStreamsPaginator";
|
|
35
|
-
export * from "./commands/ListTagsForResourceCommand";
|
|
36
|
-
export * from "./commands/PutAnomalyDetectorCommand";
|
|
37
|
-
export * from "./commands/PutCompositeAlarmCommand";
|
|
38
|
-
export * from "./commands/PutDashboardCommand";
|
|
39
|
-
export * from "./commands/PutInsightRuleCommand";
|
|
40
|
-
export * from "./commands/PutMetricAlarmCommand";
|
|
41
|
-
export * from "./commands/PutMetricDataCommand";
|
|
42
|
-
export * from "./commands/PutMetricStreamCommand";
|
|
43
|
-
export * from "./commands/SetAlarmStateCommand";
|
|
44
|
-
export * from "./commands/StartMetricStreamsCommand";
|
|
45
|
-
export * from "./commands/StopMetricStreamsCommand";
|
|
46
|
-
export * from "./commands/TagResourceCommand";
|
|
47
|
-
export * from "./commands/UntagResourceCommand";
|
|
48
|
-
export * from "./pagination/Interfaces";
|
|
49
|
-
export * from "./models/index";
|
|
2
|
+
export * from "./CloudWatchClient";
|
|
3
|
+
export * from "./commands";
|
|
4
|
+
export * from "./models";
|
|
5
|
+
export * from "./pagination";
|
|
6
|
+
export * from "./waiters";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from "./DescribeAlarmHistoryPaginator";
|
|
2
|
+
export * from "./DescribeAlarmsPaginator";
|
|
3
|
+
export * from "./DescribeInsightRulesPaginator";
|
|
4
|
+
export * from "./GetMetricDataPaginator";
|
|
5
|
+
export * from "./Interfaces";
|
|
6
|
+
export * from "./ListDashboardsPaginator";
|
|
7
|
+
export * from "./ListMetricStreamsPaginator";
|
|
8
|
+
export * from "./ListMetricsPaginator";
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export * from "./DeleteAlarmsCommand";
|
|
2
|
+
export * from "./DeleteAnomalyDetectorCommand";
|
|
3
|
+
export * from "./DeleteDashboardsCommand";
|
|
4
|
+
export * from "./DeleteInsightRulesCommand";
|
|
5
|
+
export * from "./DeleteMetricStreamCommand";
|
|
6
|
+
export * from "./DescribeAlarmHistoryCommand";
|
|
7
|
+
export * from "./DescribeAlarmsCommand";
|
|
8
|
+
export * from "./DescribeAlarmsForMetricCommand";
|
|
9
|
+
export * from "./DescribeAnomalyDetectorsCommand";
|
|
10
|
+
export * from "./DescribeInsightRulesCommand";
|
|
11
|
+
export * from "./DisableAlarmActionsCommand";
|
|
12
|
+
export * from "./DisableInsightRulesCommand";
|
|
13
|
+
export * from "./EnableAlarmActionsCommand";
|
|
14
|
+
export * from "./EnableInsightRulesCommand";
|
|
15
|
+
export * from "./GetDashboardCommand";
|
|
16
|
+
export * from "./GetInsightRuleReportCommand";
|
|
17
|
+
export * from "./GetMetricDataCommand";
|
|
18
|
+
export * from "./GetMetricStatisticsCommand";
|
|
19
|
+
export * from "./GetMetricStreamCommand";
|
|
20
|
+
export * from "./GetMetricWidgetImageCommand";
|
|
21
|
+
export * from "./ListDashboardsCommand";
|
|
22
|
+
export * from "./ListMetricStreamsCommand";
|
|
23
|
+
export * from "./ListMetricsCommand";
|
|
24
|
+
export * from "./ListTagsForResourceCommand";
|
|
25
|
+
export * from "./PutAnomalyDetectorCommand";
|
|
26
|
+
export * from "./PutCompositeAlarmCommand";
|
|
27
|
+
export * from "./PutDashboardCommand";
|
|
28
|
+
export * from "./PutInsightRuleCommand";
|
|
29
|
+
export * from "./PutMetricAlarmCommand";
|
|
30
|
+
export * from "./PutMetricDataCommand";
|
|
31
|
+
export * from "./PutMetricStreamCommand";
|
|
32
|
+
export * from "./SetAlarmStateCommand";
|
|
33
|
+
export * from "./StartMetricStreamsCommand";
|
|
34
|
+
export * from "./StopMetricStreamsCommand";
|
|
35
|
+
export * from "./TagResourceCommand";
|
|
36
|
+
export * from "./UntagResourceCommand";
|
package/dist-types/index.d.ts
CHANGED
|
@@ -1,49 +1,6 @@
|
|
|
1
|
-
export * from "./CloudWatchClient";
|
|
2
1
|
export * from "./CloudWatch";
|
|
3
|
-
export * from "./
|
|
4
|
-
export * from "./commands
|
|
5
|
-
export * from "./
|
|
6
|
-
export * from "./
|
|
7
|
-
export * from "./
|
|
8
|
-
export * from "./commands/DescribeAlarmHistoryCommand";
|
|
9
|
-
export * from "./pagination/DescribeAlarmHistoryPaginator";
|
|
10
|
-
export * from "./commands/DescribeAlarmsCommand";
|
|
11
|
-
export * from "./pagination/DescribeAlarmsPaginator";
|
|
12
|
-
export * from "./waiters/waitForAlarmExists";
|
|
13
|
-
export * from "./waiters/waitForCompositeAlarmExists";
|
|
14
|
-
export * from "./commands/DescribeAlarmsForMetricCommand";
|
|
15
|
-
export * from "./commands/DescribeAnomalyDetectorsCommand";
|
|
16
|
-
export * from "./commands/DescribeInsightRulesCommand";
|
|
17
|
-
export * from "./pagination/DescribeInsightRulesPaginator";
|
|
18
|
-
export * from "./commands/DisableAlarmActionsCommand";
|
|
19
|
-
export * from "./commands/DisableInsightRulesCommand";
|
|
20
|
-
export * from "./commands/EnableAlarmActionsCommand";
|
|
21
|
-
export * from "./commands/EnableInsightRulesCommand";
|
|
22
|
-
export * from "./commands/GetDashboardCommand";
|
|
23
|
-
export * from "./commands/GetInsightRuleReportCommand";
|
|
24
|
-
export * from "./commands/GetMetricDataCommand";
|
|
25
|
-
export * from "./pagination/GetMetricDataPaginator";
|
|
26
|
-
export * from "./commands/GetMetricStatisticsCommand";
|
|
27
|
-
export * from "./commands/GetMetricStreamCommand";
|
|
28
|
-
export * from "./commands/GetMetricWidgetImageCommand";
|
|
29
|
-
export * from "./commands/ListDashboardsCommand";
|
|
30
|
-
export * from "./pagination/ListDashboardsPaginator";
|
|
31
|
-
export * from "./commands/ListMetricsCommand";
|
|
32
|
-
export * from "./pagination/ListMetricsPaginator";
|
|
33
|
-
export * from "./commands/ListMetricStreamsCommand";
|
|
34
|
-
export * from "./pagination/ListMetricStreamsPaginator";
|
|
35
|
-
export * from "./commands/ListTagsForResourceCommand";
|
|
36
|
-
export * from "./commands/PutAnomalyDetectorCommand";
|
|
37
|
-
export * from "./commands/PutCompositeAlarmCommand";
|
|
38
|
-
export * from "./commands/PutDashboardCommand";
|
|
39
|
-
export * from "./commands/PutInsightRuleCommand";
|
|
40
|
-
export * from "./commands/PutMetricAlarmCommand";
|
|
41
|
-
export * from "./commands/PutMetricDataCommand";
|
|
42
|
-
export * from "./commands/PutMetricStreamCommand";
|
|
43
|
-
export * from "./commands/SetAlarmStateCommand";
|
|
44
|
-
export * from "./commands/StartMetricStreamsCommand";
|
|
45
|
-
export * from "./commands/StopMetricStreamsCommand";
|
|
46
|
-
export * from "./commands/TagResourceCommand";
|
|
47
|
-
export * from "./commands/UntagResourceCommand";
|
|
48
|
-
export * from "./pagination/Interfaces";
|
|
49
|
-
export * from "./models/index";
|
|
2
|
+
export * from "./CloudWatchClient";
|
|
3
|
+
export * from "./commands";
|
|
4
|
+
export * from "./models";
|
|
5
|
+
export * from "./pagination";
|
|
6
|
+
export * from "./waiters";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from "./DescribeAlarmHistoryPaginator";
|
|
2
|
+
export * from "./DescribeAlarmsPaginator";
|
|
3
|
+
export * from "./DescribeInsightRulesPaginator";
|
|
4
|
+
export * from "./GetMetricDataPaginator";
|
|
5
|
+
export * from "./Interfaces";
|
|
6
|
+
export * from "./ListDashboardsPaginator";
|
|
7
|
+
export * from "./ListMetricStreamsPaginator";
|
|
8
|
+
export * from "./ListMetricsPaginator";
|