@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
|
@@ -5,48 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_query_1 = require("../protocols/Aws_query");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Creates a dashboard if it does not already exist, or updates an existing dashboard. If you update a dashboard,
|
|
10
|
-
* the entire contents are replaced with what you specify here.</p>
|
|
11
|
-
* <p>All dashboards in your account are global, not region-specific.</p>
|
|
12
|
-
* <p>A simple way to create a dashboard using <code>PutDashboard</code> is to copy an
|
|
13
|
-
* existing dashboard. To copy an existing dashboard using the console, you can load the dashboard
|
|
14
|
-
* and then use the View/edit source command in the Actions menu to display the JSON block
|
|
15
|
-
* for that dashboard. Another way to copy a dashboard is to
|
|
16
|
-
* use <code>GetDashboard</code>, and then use the data returned
|
|
17
|
-
* within <code>DashboardBody</code> as the template for the new dashboard when you call <code>PutDashboard</code>.</p>
|
|
18
|
-
* <p>When you create a dashboard with <code>PutDashboard</code>, a good practice is to
|
|
19
|
-
* add a text widget at the top of the dashboard with a message that the dashboard was created by script and should
|
|
20
|
-
* not be changed in the console. This message could also point console users to the location
|
|
21
|
-
* of the <code>DashboardBody</code> script or the CloudFormation template used to create the
|
|
22
|
-
* dashboard.</p>
|
|
23
|
-
* @example
|
|
24
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
25
|
-
* ```javascript
|
|
26
|
-
* import { CloudWatchClient, PutDashboardCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
|
|
27
|
-
* // const { CloudWatchClient, PutDashboardCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
|
|
28
|
-
* const client = new CloudWatchClient(config);
|
|
29
|
-
* const command = new PutDashboardCommand(input);
|
|
30
|
-
* const response = await client.send(command);
|
|
31
|
-
* ```
|
|
32
|
-
*
|
|
33
|
-
* @see {@link PutDashboardCommandInput} for command's `input` shape.
|
|
34
|
-
* @see {@link PutDashboardCommandOutput} for command's `response` shape.
|
|
35
|
-
* @see {@link CloudWatchClientResolvedConfig | config} for command's `input` shape.
|
|
36
|
-
*
|
|
37
|
-
*/
|
|
38
8
|
class PutDashboardCommand extends smithy_client_1.Command {
|
|
39
|
-
// Start section: command_properties
|
|
40
|
-
// End section: command_properties
|
|
41
9
|
constructor(input) {
|
|
42
|
-
// Start section: command_constructor
|
|
43
10
|
super();
|
|
44
11
|
this.input = input;
|
|
45
|
-
// End section: command_constructor
|
|
46
12
|
}
|
|
47
|
-
/**
|
|
48
|
-
* @internal
|
|
49
|
-
*/
|
|
50
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
51
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
52
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,39 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_query_1 = require("../protocols/Aws_query");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Creates a Contributor Insights rule. Rules evaluate log events in a
|
|
10
|
-
* CloudWatch Logs log group, enabling you to find contributor data for the log events in that log group. For more information,
|
|
11
|
-
* see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContributorInsights.html">Using Contributor Insights to Analyze High-Cardinality Data</a>.</p>
|
|
12
|
-
* <p>If you create a rule, delete it, and then re-create it with the same name, historical data from the first time
|
|
13
|
-
* the rule was created might not be available.</p>
|
|
14
|
-
* @example
|
|
15
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
16
|
-
* ```javascript
|
|
17
|
-
* import { CloudWatchClient, PutInsightRuleCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
|
|
18
|
-
* // const { CloudWatchClient, PutInsightRuleCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
|
|
19
|
-
* const client = new CloudWatchClient(config);
|
|
20
|
-
* const command = new PutInsightRuleCommand(input);
|
|
21
|
-
* const response = await client.send(command);
|
|
22
|
-
* ```
|
|
23
|
-
*
|
|
24
|
-
* @see {@link PutInsightRuleCommandInput} for command's `input` shape.
|
|
25
|
-
* @see {@link PutInsightRuleCommandOutput} for command's `response` shape.
|
|
26
|
-
* @see {@link CloudWatchClientResolvedConfig | config} for command's `input` shape.
|
|
27
|
-
*
|
|
28
|
-
*/
|
|
29
8
|
class PutInsightRuleCommand extends smithy_client_1.Command {
|
|
30
|
-
// Start section: command_properties
|
|
31
|
-
// End section: command_properties
|
|
32
9
|
constructor(input) {
|
|
33
|
-
// Start section: command_constructor
|
|
34
10
|
super();
|
|
35
11
|
this.input = input;
|
|
36
|
-
// End section: command_constructor
|
|
37
12
|
}
|
|
38
|
-
/**
|
|
39
|
-
* @internal
|
|
40
|
-
*/
|
|
41
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
42
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
43
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,98 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_query_1 = require("../protocols/Aws_query");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Creates or updates an alarm and associates it with the specified metric, metric math expression,
|
|
10
|
-
* or anomaly detection model.</p>
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* <p>Alarms based on anomaly detection models cannot have Auto Scaling actions.</p>
|
|
14
|
-
* <p>When this operation creates an alarm, the alarm state is immediately set to
|
|
15
|
-
* <code>INSUFFICIENT_DATA</code>. The alarm is then evaluated and its state is set
|
|
16
|
-
* appropriately. Any actions associated with the new state are then executed.</p>
|
|
17
|
-
* <p>When you update an existing alarm, its state is left unchanged, but the
|
|
18
|
-
* update completely overwrites the previous configuration of the alarm.</p>
|
|
19
|
-
*
|
|
20
|
-
* <p>If you are an IAM user, you must have
|
|
21
|
-
* Amazon EC2 permissions for some alarm operations:</p>
|
|
22
|
-
* <ul>
|
|
23
|
-
* <li>
|
|
24
|
-
* <p>The <code>iam:CreateServiceLinkedRole</code> for all alarms with EC2 actions</p>
|
|
25
|
-
*
|
|
26
|
-
* </li>
|
|
27
|
-
* <li>
|
|
28
|
-
*
|
|
29
|
-
* <p>The <code>iam:CreateServiceLinkedRole</code> to create an alarm
|
|
30
|
-
* with Systems Manager OpsItem actions.</p>
|
|
31
|
-
* </li>
|
|
32
|
-
* </ul>
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
* <p>The first time you create an alarm in the
|
|
40
|
-
* Management Console, the CLI, or by using the PutMetricAlarm API, CloudWatch
|
|
41
|
-
* creates the necessary service-linked role for you. The service-linked roles
|
|
42
|
-
* are called <code>AWSServiceRoleForCloudWatchEvents</code> and
|
|
43
|
-
* <code>AWSServiceRoleForCloudWatchAlarms_ActionSSM</code>.
|
|
44
|
-
* For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html#iam-term-service-linked-role">Amazon Web Services service-linked role</a>.</p>
|
|
45
|
-
*
|
|
46
|
-
* <p>
|
|
47
|
-
* <b>Cross-account alarms</b>
|
|
48
|
-
* </p>
|
|
49
|
-
*
|
|
50
|
-
* <p>You can set an alarm on metrics in the current account, or in another
|
|
51
|
-
* account. To create a cross-account alarm that watches a metric in a different account, you must have completed the following
|
|
52
|
-
* pre-requisites:</p>
|
|
53
|
-
* <ul>
|
|
54
|
-
* <li>
|
|
55
|
-
* <p>The account where the metrics are located (the <i>sharing account</i>) must
|
|
56
|
-
* already have a sharing role named <b>CloudWatch-CrossAccountSharingRole</b>. If it does not already
|
|
57
|
-
* have this role, you must create it using the instructions in <b>Set up a
|
|
58
|
-
* sharing account</b> in <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html#enable-cross-account-cross-Region">
|
|
59
|
-
* Cross-account cross-Region CloudWatch console</a>. The policy for that
|
|
60
|
-
* role must grant access
|
|
61
|
-
* to the ID of the account where you are creating the alarm.
|
|
62
|
-
* </p>
|
|
63
|
-
* </li>
|
|
64
|
-
* <li>
|
|
65
|
-
* <p>The account where you are creating the alarm (the <i>monitoring account</i>) must
|
|
66
|
-
* already have a service-linked role named
|
|
67
|
-
* <b>AWSServiceRoleForCloudWatchCrossAccount</b> to allow
|
|
68
|
-
* CloudWatch to assume the sharing role in the sharing account. If it does not, you must create it following the directions in <b>Set up a
|
|
69
|
-
* monitoring account</b> in <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Cross-Account-Cross-Region.html#enable-cross-account-cross-Region">
|
|
70
|
-
* Cross-account cross-Region CloudWatch console</a>.</p>
|
|
71
|
-
* </li>
|
|
72
|
-
* </ul>
|
|
73
|
-
* @example
|
|
74
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
75
|
-
* ```javascript
|
|
76
|
-
* import { CloudWatchClient, PutMetricAlarmCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
|
|
77
|
-
* // const { CloudWatchClient, PutMetricAlarmCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
|
|
78
|
-
* const client = new CloudWatchClient(config);
|
|
79
|
-
* const command = new PutMetricAlarmCommand(input);
|
|
80
|
-
* const response = await client.send(command);
|
|
81
|
-
* ```
|
|
82
|
-
*
|
|
83
|
-
* @see {@link PutMetricAlarmCommandInput} for command's `input` shape.
|
|
84
|
-
* @see {@link PutMetricAlarmCommandOutput} for command's `response` shape.
|
|
85
|
-
* @see {@link CloudWatchClientResolvedConfig | config} for command's `input` shape.
|
|
86
|
-
*
|
|
87
|
-
*/
|
|
88
8
|
class PutMetricAlarmCommand extends smithy_client_1.Command {
|
|
89
|
-
// Start section: command_properties
|
|
90
|
-
// End section: command_properties
|
|
91
9
|
constructor(input) {
|
|
92
|
-
// Start section: command_constructor
|
|
93
10
|
super();
|
|
94
11
|
this.input = input;
|
|
95
|
-
// End section: command_constructor
|
|
96
12
|
}
|
|
97
|
-
/**
|
|
98
|
-
* @internal
|
|
99
|
-
*/
|
|
100
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
101
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
102
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,79 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_query_1 = require("../protocols/Aws_query");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Publishes metric data points to Amazon CloudWatch. CloudWatch associates
|
|
10
|
-
* the data points with the specified metric. If the specified metric does not exist,
|
|
11
|
-
* CloudWatch creates the metric. When CloudWatch creates a metric, it can
|
|
12
|
-
* take up to fifteen minutes for the metric to appear in calls to <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_ListMetrics.html">ListMetrics</a>.</p>
|
|
13
|
-
*
|
|
14
|
-
* <p>You can publish either individual data points in the <code>Value</code> field, or
|
|
15
|
-
* arrays of values and the number of times each value occurred during the period by using the
|
|
16
|
-
* <code>Values</code> and <code>Counts</code> fields in the <code>MetricDatum</code> structure. Using
|
|
17
|
-
* the <code>Values</code> and <code>Counts</code> method enables you to publish up to 150 values per metric
|
|
18
|
-
* with one <code>PutMetricData</code> request, and
|
|
19
|
-
* supports retrieving percentile statistics on this data.</p>
|
|
20
|
-
* <p>Each <code>PutMetricData</code> request is limited to 40 KB in size for HTTP POST requests. You can
|
|
21
|
-
* send a payload compressed by gzip. Each request
|
|
22
|
-
* is also limited to no more than 20 different metrics.</p>
|
|
23
|
-
* <p>Although the <code>Value</code> parameter accepts numbers of type
|
|
24
|
-
* <code>Double</code>, CloudWatch rejects values that are either too small
|
|
25
|
-
* or too large. Values must be in the range of -2^360 to 2^360. In addition, special values (for example, NaN, +Infinity,
|
|
26
|
-
* -Infinity) are not supported.</p>
|
|
27
|
-
* <p>You can use up to 10 dimensions per metric to further clarify what data the metric collects. Each dimension
|
|
28
|
-
* consists of a Name and Value pair. For more information about specifying dimensions, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/publishingMetrics.html">Publishing Metrics</a> in the
|
|
29
|
-
* <i>Amazon CloudWatch User Guide</i>.</p>
|
|
30
|
-
*
|
|
31
|
-
* <p>You specify the time stamp to be associated with each data point. You can specify
|
|
32
|
-
* time stamps that are as much as two weeks before the current date, and as much as 2 hours after
|
|
33
|
-
* the current day and time.</p>
|
|
34
|
-
* <p>Data points with time stamps from 24 hours ago or longer can take at least 48
|
|
35
|
-
* hours to become available for <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> or
|
|
36
|
-
* <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a> from the time they
|
|
37
|
-
* are submitted. Data points with time stamps between 3 and 24 hours ago can take as much as 2 hours to become available
|
|
38
|
-
* for for <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> or
|
|
39
|
-
* <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html">GetMetricStatistics</a>.</p>
|
|
40
|
-
* <p>CloudWatch needs raw data points to calculate percentile statistics. If you publish
|
|
41
|
-
* data using a statistic set instead, you can only retrieve
|
|
42
|
-
* percentile statistics for this data if one of the following conditions is true:</p>
|
|
43
|
-
* <ul>
|
|
44
|
-
* <li>
|
|
45
|
-
* <p>The <code>SampleCount</code> value of the statistic set is 1 and <code>Min</code>,
|
|
46
|
-
* <code>Max</code>, and <code>Sum</code> are all equal.</p>
|
|
47
|
-
* </li>
|
|
48
|
-
* <li>
|
|
49
|
-
* <p>The <code>Min</code> and
|
|
50
|
-
* <code>Max</code> are equal, and <code>Sum</code> is equal to <code>Min</code>
|
|
51
|
-
* multiplied by <code>SampleCount</code>.</p>
|
|
52
|
-
* </li>
|
|
53
|
-
* </ul>
|
|
54
|
-
* @example
|
|
55
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
56
|
-
* ```javascript
|
|
57
|
-
* import { CloudWatchClient, PutMetricDataCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
|
|
58
|
-
* // const { CloudWatchClient, PutMetricDataCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
|
|
59
|
-
* const client = new CloudWatchClient(config);
|
|
60
|
-
* const command = new PutMetricDataCommand(input);
|
|
61
|
-
* const response = await client.send(command);
|
|
62
|
-
* ```
|
|
63
|
-
*
|
|
64
|
-
* @see {@link PutMetricDataCommandInput} for command's `input` shape.
|
|
65
|
-
* @see {@link PutMetricDataCommandOutput} for command's `response` shape.
|
|
66
|
-
* @see {@link CloudWatchClientResolvedConfig | config} for command's `input` shape.
|
|
67
|
-
*
|
|
68
|
-
*/
|
|
69
8
|
class PutMetricDataCommand extends smithy_client_1.Command {
|
|
70
|
-
// Start section: command_properties
|
|
71
|
-
// End section: command_properties
|
|
72
9
|
constructor(input) {
|
|
73
|
-
// Start section: command_constructor
|
|
74
10
|
super();
|
|
75
11
|
this.input = input;
|
|
76
|
-
// End section: command_constructor
|
|
77
12
|
}
|
|
78
|
-
/**
|
|
79
|
-
* @internal
|
|
80
|
-
*/
|
|
81
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
82
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
83
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,62 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_query_1 = require("../protocols/Aws_query");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Creates or updates a metric stream. Metric streams can automatically stream CloudWatch metrics
|
|
10
|
-
* to Amazon Web Services destinations including
|
|
11
|
-
* Amazon S3 and to many third-party solutions.</p>
|
|
12
|
-
* <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Metric-Streams.html">
|
|
13
|
-
* Using Metric Streams</a>.</p>
|
|
14
|
-
* <p>To create a metric stream,
|
|
15
|
-
* you must be logged on to an account that has the <code>iam:PassRole</code> permission
|
|
16
|
-
* and either the <code>CloudWatchFullAccess</code>
|
|
17
|
-
* policy or the <code>cloudwatch:PutMetricStream</code>
|
|
18
|
-
* permission.</p>
|
|
19
|
-
* <p>When you create or update a metric stream, you choose one of the following:</p>
|
|
20
|
-
* <ul>
|
|
21
|
-
* <li>
|
|
22
|
-
* <p>Stream metrics from all metric namespaces in the account.</p>
|
|
23
|
-
* </li>
|
|
24
|
-
* <li>
|
|
25
|
-
* <p>Stream metrics from all metric namespaces in the account, except
|
|
26
|
-
* for the namespaces that you list in <code>ExcludeFilters</code>.</p>
|
|
27
|
-
* </li>
|
|
28
|
-
* <li>
|
|
29
|
-
* <p>Stream metrics from only the metric namespaces that you list in
|
|
30
|
-
* <code>IncludeFilters</code>.</p>
|
|
31
|
-
* </li>
|
|
32
|
-
* </ul>
|
|
33
|
-
*
|
|
34
|
-
* <p>When you use <code>PutMetricStream</code> to create a new metric stream, the stream
|
|
35
|
-
* is created in the <code>running</code> state. If you use it to update an existing stream,
|
|
36
|
-
* the state of the stream is not changed.</p>
|
|
37
|
-
* @example
|
|
38
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
39
|
-
* ```javascript
|
|
40
|
-
* import { CloudWatchClient, PutMetricStreamCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
|
|
41
|
-
* // const { CloudWatchClient, PutMetricStreamCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
|
|
42
|
-
* const client = new CloudWatchClient(config);
|
|
43
|
-
* const command = new PutMetricStreamCommand(input);
|
|
44
|
-
* const response = await client.send(command);
|
|
45
|
-
* ```
|
|
46
|
-
*
|
|
47
|
-
* @see {@link PutMetricStreamCommandInput} for command's `input` shape.
|
|
48
|
-
* @see {@link PutMetricStreamCommandOutput} for command's `response` shape.
|
|
49
|
-
* @see {@link CloudWatchClientResolvedConfig | config} for command's `input` shape.
|
|
50
|
-
*
|
|
51
|
-
*/
|
|
52
8
|
class PutMetricStreamCommand extends smithy_client_1.Command {
|
|
53
|
-
// Start section: command_properties
|
|
54
|
-
// End section: command_properties
|
|
55
9
|
constructor(input) {
|
|
56
|
-
// Start section: command_constructor
|
|
57
10
|
super();
|
|
58
11
|
this.input = input;
|
|
59
|
-
// End section: command_constructor
|
|
60
12
|
}
|
|
61
|
-
/**
|
|
62
|
-
* @internal
|
|
63
|
-
*/
|
|
64
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
65
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
66
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,50 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_query_1 = require("../protocols/Aws_query");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Temporarily sets the state of an alarm for testing purposes. When the updated
|
|
10
|
-
* state differs from the previous value, the action configured for
|
|
11
|
-
* the appropriate state is invoked. For example, if your alarm is configured to send an
|
|
12
|
-
* Amazon SNS message when an alarm is triggered, temporarily changing the alarm state to
|
|
13
|
-
* <code>ALARM</code> sends an SNS message.</p>
|
|
14
|
-
* <p>Metric alarms
|
|
15
|
-
* returns to their actual state quickly, often within seconds. Because the metric alarm state change
|
|
16
|
-
* happens quickly, it is typically only visible in the alarm's <b>History</b> tab in the Amazon CloudWatch console or through
|
|
17
|
-
* <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarmHistory.html">DescribeAlarmHistory</a>.</p>
|
|
18
|
-
* <p>If you use <code>SetAlarmState</code> on a composite alarm, the composite alarm is not guaranteed to return
|
|
19
|
-
* to its actual state. It
|
|
20
|
-
* returns to its actual state only once any of its children alarms change state. It is also
|
|
21
|
-
* reevaluated if you update its
|
|
22
|
-
* configuration.</p>
|
|
23
|
-
* <p>If an alarm triggers EC2 Auto Scaling policies or application Auto Scaling policies, you must include
|
|
24
|
-
* information in the <code>StateReasonData</code> parameter to enable the policy to take the correct action.</p>
|
|
25
|
-
* @example
|
|
26
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
27
|
-
* ```javascript
|
|
28
|
-
* import { CloudWatchClient, SetAlarmStateCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
|
|
29
|
-
* // const { CloudWatchClient, SetAlarmStateCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
|
|
30
|
-
* const client = new CloudWatchClient(config);
|
|
31
|
-
* const command = new SetAlarmStateCommand(input);
|
|
32
|
-
* const response = await client.send(command);
|
|
33
|
-
* ```
|
|
34
|
-
*
|
|
35
|
-
* @see {@link SetAlarmStateCommandInput} for command's `input` shape.
|
|
36
|
-
* @see {@link SetAlarmStateCommandOutput} for command's `response` shape.
|
|
37
|
-
* @see {@link CloudWatchClientResolvedConfig | config} for command's `input` shape.
|
|
38
|
-
*
|
|
39
|
-
*/
|
|
40
8
|
class SetAlarmStateCommand extends smithy_client_1.Command {
|
|
41
|
-
// Start section: command_properties
|
|
42
|
-
// End section: command_properties
|
|
43
9
|
constructor(input) {
|
|
44
|
-
// Start section: command_constructor
|
|
45
10
|
super();
|
|
46
11
|
this.input = input;
|
|
47
|
-
// End section: command_constructor
|
|
48
12
|
}
|
|
49
|
-
/**
|
|
50
|
-
* @internal
|
|
51
|
-
*/
|
|
52
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
53
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
54
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_query_1 = require("../protocols/Aws_query");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Starts the streaming of metrics for one or more of your metric streams.</p>
|
|
10
|
-
* @example
|
|
11
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
-
* ```javascript
|
|
13
|
-
* import { CloudWatchClient, StartMetricStreamsCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
|
|
14
|
-
* // const { CloudWatchClient, StartMetricStreamsCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
|
|
15
|
-
* const client = new CloudWatchClient(config);
|
|
16
|
-
* const command = new StartMetricStreamsCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link StartMetricStreamsCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link StartMetricStreamsCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link CloudWatchClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
8
|
class StartMetricStreamsCommand extends smithy_client_1.Command {
|
|
26
|
-
// Start section: command_properties
|
|
27
|
-
// End section: command_properties
|
|
28
9
|
constructor(input) {
|
|
29
|
-
// Start section: command_constructor
|
|
30
10
|
super();
|
|
31
11
|
this.input = input;
|
|
32
|
-
// End section: command_constructor
|
|
33
12
|
}
|
|
34
|
-
/**
|
|
35
|
-
* @internal
|
|
36
|
-
*/
|
|
37
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
38
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
39
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_query_1 = require("../protocols/Aws_query");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Stops the streaming of metrics for one or more of your metric streams.</p>
|
|
10
|
-
* @example
|
|
11
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
-
* ```javascript
|
|
13
|
-
* import { CloudWatchClient, StopMetricStreamsCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
|
|
14
|
-
* // const { CloudWatchClient, StopMetricStreamsCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
|
|
15
|
-
* const client = new CloudWatchClient(config);
|
|
16
|
-
* const command = new StopMetricStreamsCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link StopMetricStreamsCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link StopMetricStreamsCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link CloudWatchClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
8
|
class StopMetricStreamsCommand extends smithy_client_1.Command {
|
|
26
|
-
// Start section: command_properties
|
|
27
|
-
// End section: command_properties
|
|
28
9
|
constructor(input) {
|
|
29
|
-
// Start section: command_constructor
|
|
30
10
|
super();
|
|
31
11
|
this.input = input;
|
|
32
|
-
// End section: command_constructor
|
|
33
12
|
}
|
|
34
|
-
/**
|
|
35
|
-
* @internal
|
|
36
|
-
*/
|
|
37
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
38
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
39
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,45 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_query_1 = require("../protocols/Aws_query");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Assigns one or more tags (key-value pairs) to the specified CloudWatch resource. Currently, the only CloudWatch resources that
|
|
10
|
-
* can be tagged are alarms and Contributor Insights rules.</p>
|
|
11
|
-
* <p>Tags can help you organize and categorize your resources. You can also use them to scope user
|
|
12
|
-
* permissions by granting a user
|
|
13
|
-
* permission to access or change only resources with certain tag values.</p>
|
|
14
|
-
* <p>Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly as strings of characters.</p>
|
|
15
|
-
* <p>You can use the <code>TagResource</code> action with an alarm that already has tags. If you specify a new tag key for the alarm,
|
|
16
|
-
* this tag is appended to the list of tags associated
|
|
17
|
-
* with the alarm. If you specify a tag key that is already associated with the alarm, the new tag value that you specify replaces
|
|
18
|
-
* the previous value for that tag.</p>
|
|
19
|
-
* <p>You can associate as many as 50 tags with a CloudWatch resource.</p>
|
|
20
|
-
* @example
|
|
21
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
22
|
-
* ```javascript
|
|
23
|
-
* import { CloudWatchClient, TagResourceCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
|
|
24
|
-
* // const { CloudWatchClient, TagResourceCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
|
|
25
|
-
* const client = new CloudWatchClient(config);
|
|
26
|
-
* const command = new TagResourceCommand(input);
|
|
27
|
-
* const response = await client.send(command);
|
|
28
|
-
* ```
|
|
29
|
-
*
|
|
30
|
-
* @see {@link TagResourceCommandInput} for command's `input` shape.
|
|
31
|
-
* @see {@link TagResourceCommandOutput} for command's `response` shape.
|
|
32
|
-
* @see {@link CloudWatchClientResolvedConfig | config} for command's `input` shape.
|
|
33
|
-
*
|
|
34
|
-
*/
|
|
35
8
|
class TagResourceCommand extends smithy_client_1.Command {
|
|
36
|
-
// Start section: command_properties
|
|
37
|
-
// End section: command_properties
|
|
38
9
|
constructor(input) {
|
|
39
|
-
// Start section: command_constructor
|
|
40
10
|
super();
|
|
41
11
|
this.input = input;
|
|
42
|
-
// End section: command_constructor
|
|
43
12
|
}
|
|
44
|
-
/**
|
|
45
|
-
* @internal
|
|
46
|
-
*/
|
|
47
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
48
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
49
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_query_1 = require("../protocols/Aws_query");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Removes one or more tags from the specified resource.</p>
|
|
10
|
-
* @example
|
|
11
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
-
* ```javascript
|
|
13
|
-
* import { CloudWatchClient, UntagResourceCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
|
|
14
|
-
* // const { CloudWatchClient, UntagResourceCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
|
|
15
|
-
* const client = new CloudWatchClient(config);
|
|
16
|
-
* const command = new UntagResourceCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link UntagResourceCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link UntagResourceCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link CloudWatchClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
8
|
class UntagResourceCommand extends smithy_client_1.Command {
|
|
26
|
-
// Start section: command_properties
|
|
27
|
-
// End section: command_properties
|
|
28
9
|
constructor(input) {
|
|
29
|
-
// Start section: command_constructor
|
|
30
10
|
super();
|
|
31
11
|
this.input = input;
|
|
32
|
-
// End section: command_constructor
|
|
33
12
|
}
|
|
34
|
-
/**
|
|
35
|
-
* @internal
|
|
36
|
-
*/
|
|
37
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
38
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
39
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./DeleteAlarmsCommand"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./DeleteAnomalyDetectorCommand"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./DeleteDashboardsCommand"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./DeleteInsightRulesCommand"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./DeleteMetricStreamCommand"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./DescribeAlarmHistoryCommand"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./DescribeAlarmsCommand"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./DescribeAlarmsForMetricCommand"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./DescribeAnomalyDetectorsCommand"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./DescribeInsightRulesCommand"), exports);
|
|
14
|
+
tslib_1.__exportStar(require("./DisableAlarmActionsCommand"), exports);
|
|
15
|
+
tslib_1.__exportStar(require("./DisableInsightRulesCommand"), exports);
|
|
16
|
+
tslib_1.__exportStar(require("./EnableAlarmActionsCommand"), exports);
|
|
17
|
+
tslib_1.__exportStar(require("./EnableInsightRulesCommand"), exports);
|
|
18
|
+
tslib_1.__exportStar(require("./GetDashboardCommand"), exports);
|
|
19
|
+
tslib_1.__exportStar(require("./GetInsightRuleReportCommand"), exports);
|
|
20
|
+
tslib_1.__exportStar(require("./GetMetricDataCommand"), exports);
|
|
21
|
+
tslib_1.__exportStar(require("./GetMetricStatisticsCommand"), exports);
|
|
22
|
+
tslib_1.__exportStar(require("./GetMetricStreamCommand"), exports);
|
|
23
|
+
tslib_1.__exportStar(require("./GetMetricWidgetImageCommand"), exports);
|
|
24
|
+
tslib_1.__exportStar(require("./ListDashboardsCommand"), exports);
|
|
25
|
+
tslib_1.__exportStar(require("./ListMetricStreamsCommand"), exports);
|
|
26
|
+
tslib_1.__exportStar(require("./ListMetricsCommand"), exports);
|
|
27
|
+
tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
|
|
28
|
+
tslib_1.__exportStar(require("./PutAnomalyDetectorCommand"), exports);
|
|
29
|
+
tslib_1.__exportStar(require("./PutCompositeAlarmCommand"), exports);
|
|
30
|
+
tslib_1.__exportStar(require("./PutDashboardCommand"), exports);
|
|
31
|
+
tslib_1.__exportStar(require("./PutInsightRuleCommand"), exports);
|
|
32
|
+
tslib_1.__exportStar(require("./PutMetricAlarmCommand"), exports);
|
|
33
|
+
tslib_1.__exportStar(require("./PutMetricDataCommand"), exports);
|
|
34
|
+
tslib_1.__exportStar(require("./PutMetricStreamCommand"), exports);
|
|
35
|
+
tslib_1.__exportStar(require("./SetAlarmStateCommand"), exports);
|
|
36
|
+
tslib_1.__exportStar(require("./StartMetricStreamsCommand"), exports);
|
|
37
|
+
tslib_1.__exportStar(require("./StopMetricStreamsCommand"), exports);
|
|
38
|
+
tslib_1.__exportStar(require("./TagResourceCommand"), exports);
|
|
39
|
+
tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
|
package/dist-cjs/endpoints.js
CHANGED
|
@@ -57,22 +57,27 @@ const partitionHash = {
|
|
|
57
57
|
"us-west-1",
|
|
58
58
|
"us-west-2",
|
|
59
59
|
],
|
|
60
|
+
regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
|
|
60
61
|
hostname: "monitoring.{region}.amazonaws.com",
|
|
61
62
|
},
|
|
62
63
|
"aws-cn": {
|
|
63
64
|
regions: ["cn-north-1", "cn-northwest-1"],
|
|
65
|
+
regionRegex: "^cn\\-\\w+\\-\\d+$",
|
|
64
66
|
hostname: "monitoring.{region}.amazonaws.com.cn",
|
|
65
67
|
},
|
|
66
68
|
"aws-iso": {
|
|
67
|
-
regions: ["us-iso-east-1"],
|
|
69
|
+
regions: ["us-iso-east-1", "us-iso-west-1"],
|
|
70
|
+
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
|
|
68
71
|
hostname: "monitoring.{region}.c2s.ic.gov",
|
|
69
72
|
},
|
|
70
73
|
"aws-iso-b": {
|
|
71
74
|
regions: ["us-isob-east-1"],
|
|
75
|
+
regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
|
|
72
76
|
hostname: "monitoring.{region}.sc2s.sgov.gov",
|
|
73
77
|
},
|
|
74
78
|
"aws-us-gov": {
|
|
75
79
|
regions: ["fips-us-gov-east-1", "fips-us-gov-west-1", "us-gov-east-1", "us-gov-west-1"],
|
|
80
|
+
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
|
|
76
81
|
hostname: "monitoring.{region}.amazonaws.com",
|
|
77
82
|
},
|
|
78
83
|
};
|