@aws-sdk/client-cloudwatch 3.298.0 → 3.300.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.
Files changed (45) hide show
  1. package/dist-cjs/endpoint/ruleset.js +3 -3
  2. package/dist-es/endpoint/ruleset.js +3 -3
  3. package/dist-types/CloudWatch.d.ts +7 -5
  4. package/dist-types/commands/DeleteAlarmsCommand.d.ts +9 -2
  5. package/dist-types/commands/DeleteAnomalyDetectorCommand.d.ts +46 -0
  6. package/dist-types/commands/DeleteDashboardsCommand.d.ts +5 -0
  7. package/dist-types/commands/DeleteInsightRulesCommand.d.ts +5 -0
  8. package/dist-types/commands/DeleteMetricStreamCommand.d.ts +3 -0
  9. package/dist-types/commands/DescribeAlarmHistoryCommand.d.ts +12 -0
  10. package/dist-types/commands/DescribeAlarmsCommand.d.ts +15 -0
  11. package/dist-types/commands/DescribeAlarmsForMetricCommand.d.ts +14 -0
  12. package/dist-types/commands/DescribeAnomalyDetectorsCommand.d.ts +15 -0
  13. package/dist-types/commands/DescribeInsightRulesCommand.d.ts +4 -0
  14. package/dist-types/commands/DisableAlarmActionsCommand.d.ts +5 -0
  15. package/dist-types/commands/DisableInsightRulesCommand.d.ts +5 -0
  16. package/dist-types/commands/EnableAlarmActionsCommand.d.ts +5 -0
  17. package/dist-types/commands/EnableInsightRulesCommand.d.ts +5 -0
  18. package/dist-types/commands/GetDashboardCommand.d.ts +3 -0
  19. package/dist-types/commands/GetInsightRuleReportCommand.d.ts +11 -0
  20. package/dist-types/commands/GetMetricDataCommand.d.ts +35 -0
  21. package/dist-types/commands/GetMetricStatisticsCommand.d.ts +20 -0
  22. package/dist-types/commands/GetMetricStreamCommand.d.ts +3 -0
  23. package/dist-types/commands/GetMetricWidgetImageCommand.d.ts +4 -0
  24. package/dist-types/commands/ListDashboardsCommand.d.ts +4 -0
  25. package/dist-types/commands/ListManagedInsightRulesCommand.d.ts +5 -0
  26. package/dist-types/commands/ListMetricStreamsCommand.d.ts +4 -0
  27. package/dist-types/commands/ListMetricsCommand.d.ts +14 -0
  28. package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -0
  29. package/dist-types/commands/PutAnomalyDetectorCommand.d.ts +55 -0
  30. package/dist-types/commands/PutCompositeAlarmCommand.d.ts +24 -0
  31. package/dist-types/commands/PutDashboardCommand.d.ts +4 -0
  32. package/dist-types/commands/PutInsightRuleCommand.d.ts +11 -0
  33. package/dist-types/commands/PutManagedInsightRulesCommand.d.ts +14 -0
  34. package/dist-types/commands/PutMetricAlarmCommand.d.ts +67 -3
  35. package/dist-types/commands/PutMetricDataCommand.d.ts +30 -0
  36. package/dist-types/commands/PutMetricStreamCommand.d.ts +36 -0
  37. package/dist-types/commands/SetAlarmStateCommand.d.ts +6 -0
  38. package/dist-types/commands/StartMetricStreamsCommand.d.ts +5 -0
  39. package/dist-types/commands/StopMetricStreamsCommand.d.ts +5 -0
  40. package/dist-types/commands/TagResourceCommand.d.ts +9 -0
  41. package/dist-types/commands/UntagResourceCommand.d.ts +6 -0
  42. package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  43. package/dist-types/models/models_0.d.ts +262 -50
  44. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
  45. package/package.json +12 -12
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
- const t = "fn", u = "argv", v = "ref";
5
- const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = "getAttr", i = { "required": true, "default": false, "type": "Boolean" }, j = { [v]: "Endpoint" }, k = { [t]: "booleanEquals", [u]: [{ [v]: "UseFIPS" }, true] }, l = { [t]: "booleanEquals", [u]: [{ [v]: "UseDualStack" }, true] }, m = {}, n = { [t]: "booleanEquals", [u]: [true, { [t]: h, [u]: [{ [v]: d }, "supportsFIPS"] }] }, o = { [v]: d }, p = { [t]: "booleanEquals", [u]: [true, { [t]: h, [u]: [o, "supportsDualStack"] }] }, q = { "url": "https://monitoring.{Region}.{PartitionResult#dnsSuffix}", "properties": {}, "headers": {} }, r = [k], s = [l];
6
- const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: i, UseFIPS: i, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [t]: "aws.partition", [u]: [{ [v]: "Region" }], assign: d }], type: e, rules: [{ conditions: [{ [t]: "isSet", [u]: [j] }], type: e, rules: [{ conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: j, properties: m, headers: m }, type: g }] }] }, { conditions: [k, l], type: e, rules: [{ conditions: [n, p], type: e, rules: [{ endpoint: { url: "https://monitoring-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: g }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: r, type: e, rules: [{ conditions: [n], type: e, rules: [{ type: e, rules: [{ conditions: [{ [t]: "stringEquals", [u]: ["aws-us-gov", { [t]: h, [u]: [o, "name"] }] }], endpoint: q, type: g }, { endpoint: { url: "https://monitoring-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: g }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: s, type: e, rules: [{ conditions: [p], type: e, rules: [{ endpoint: { url: "https://monitoring.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: g }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { endpoint: q, type: g }] }] };
4
+ const s = "required", t = "fn", u = "argv", v = "ref";
5
+ const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = "getAttr", g = { [s]: false, "type": "String" }, h = { [s]: true, "default": false, "type": "Boolean" }, i = { [v]: "Endpoint" }, j = { [t]: "booleanEquals", [u]: [{ [v]: "UseFIPS" }, true] }, k = { [t]: "booleanEquals", [u]: [{ [v]: "UseDualStack" }, true] }, l = {}, m = { [t]: "booleanEquals", [u]: [true, { [t]: f, [u]: [{ [v]: e }, "supportsFIPS"] }] }, n = { [v]: e }, o = { [t]: "booleanEquals", [u]: [true, { [t]: f, [u]: [n, "supportsDualStack"] }] }, p = [j], q = [k], r = [{ [v]: "Region" }];
6
+ const _data = { version: "1.0", parameters: { Region: g, UseDualStack: h, UseFIPS: h, Endpoint: g }, rules: [{ conditions: [{ [t]: a, [u]: [i] }], type: b, rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: i, properties: l, headers: l }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [t]: a, [u]: r }], type: b, rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: e }], type: b, rules: [{ conditions: [j, k], type: b, rules: [{ conditions: [m, o], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://monitoring-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: p, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ conditions: [{ [t]: "stringEquals", [u]: ["aws-us-gov", { [t]: f, [u]: [n, "name"] }] }], endpoint: { url: "https://monitoring.{Region}.amazonaws.com", properties: l, headers: l }, type: d }, { endpoint: { url: "https://monitoring-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: q, type: b, rules: [{ conditions: [o], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://monitoring.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://monitoring.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
7
7
  exports.ruleSet = _data;
@@ -1,4 +1,4 @@
1
- const t = "fn", u = "argv", v = "ref";
2
- const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = "getAttr", i = { "required": true, "default": false, "type": "Boolean" }, j = { [v]: "Endpoint" }, k = { [t]: "booleanEquals", [u]: [{ [v]: "UseFIPS" }, true] }, l = { [t]: "booleanEquals", [u]: [{ [v]: "UseDualStack" }, true] }, m = {}, n = { [t]: "booleanEquals", [u]: [true, { [t]: h, [u]: [{ [v]: d }, "supportsFIPS"] }] }, o = { [v]: d }, p = { [t]: "booleanEquals", [u]: [true, { [t]: h, [u]: [o, "supportsDualStack"] }] }, q = { "url": "https://monitoring.{Region}.{PartitionResult#dnsSuffix}", "properties": {}, "headers": {} }, r = [k], s = [l];
3
- const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: i, UseFIPS: i, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [t]: "aws.partition", [u]: [{ [v]: "Region" }], assign: d }], type: e, rules: [{ conditions: [{ [t]: "isSet", [u]: [j] }], type: e, rules: [{ conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: j, properties: m, headers: m }, type: g }] }] }, { conditions: [k, l], type: e, rules: [{ conditions: [n, p], type: e, rules: [{ endpoint: { url: "https://monitoring-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: g }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: r, type: e, rules: [{ conditions: [n], type: e, rules: [{ type: e, rules: [{ conditions: [{ [t]: "stringEquals", [u]: ["aws-us-gov", { [t]: h, [u]: [o, "name"] }] }], endpoint: q, type: g }, { endpoint: { url: "https://monitoring-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: g }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: s, type: e, rules: [{ conditions: [p], type: e, rules: [{ endpoint: { url: "https://monitoring.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: g }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { endpoint: q, type: g }] }] };
1
+ const s = "required", t = "fn", u = "argv", v = "ref";
2
+ const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = "getAttr", g = { [s]: false, "type": "String" }, h = { [s]: true, "default": false, "type": "Boolean" }, i = { [v]: "Endpoint" }, j = { [t]: "booleanEquals", [u]: [{ [v]: "UseFIPS" }, true] }, k = { [t]: "booleanEquals", [u]: [{ [v]: "UseDualStack" }, true] }, l = {}, m = { [t]: "booleanEquals", [u]: [true, { [t]: f, [u]: [{ [v]: e }, "supportsFIPS"] }] }, n = { [v]: e }, o = { [t]: "booleanEquals", [u]: [true, { [t]: f, [u]: [n, "supportsDualStack"] }] }, p = [j], q = [k], r = [{ [v]: "Region" }];
3
+ const _data = { version: "1.0", parameters: { Region: g, UseDualStack: h, UseFIPS: h, Endpoint: g }, rules: [{ conditions: [{ [t]: a, [u]: [i] }], type: b, rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: i, properties: l, headers: l }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [t]: a, [u]: r }], type: b, rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: e }], type: b, rules: [{ conditions: [j, k], type: b, rules: [{ conditions: [m, o], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://monitoring-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: p, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ conditions: [{ [t]: "stringEquals", [u]: ["aws-us-gov", { [t]: f, [u]: [n, "name"] }] }], endpoint: { url: "https://monitoring.{Region}.amazonaws.com", properties: l, headers: l }, type: d }, { endpoint: { url: "https://monitoring-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: q, type: b, rules: [{ conditions: [o], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://monitoring.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://monitoring.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
4
4
  export const ruleSet = _data;
@@ -61,8 +61,10 @@ export declare class CloudWatch extends CloudWatchClient {
61
61
  * than one composite alarm. For example, you could delete 99 metric alarms and one composite alarms with one operation, but you can't
62
62
  * delete two composite alarms with one operation.</p>
63
63
  * <p>
64
- * In the event of an error, no alarms are
65
- * deleted.</p>
64
+ * If you specify an incorrect alarm name or make any other error in the operation, no alarms are
65
+ * deleted. To confirm that alarms were deleted successfully, you can use
66
+ * the <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarms.html">DescribeAlarms</a> operation after using
67
+ * <code>DeleteAlarms</code>.</p>
66
68
  * <note>
67
69
  * <p>It is possible to create a loop or cycle of composite alarms, where composite alarm A depends on composite alarm B, and
68
70
  * composite alarm B also depends on composite alarm A. In this scenario, you can't delete any composite alarm that is part of the cycle
@@ -578,11 +580,11 @@ export declare class CloudWatch extends CloudWatchClient {
578
580
  * Amazon EC2 permissions for some alarm operations:</p>
579
581
  * <ul>
580
582
  * <li>
581
- * <p>The <code>iam:CreateServiceLinkedRole</code> for all alarms with EC2 actions</p>
583
+ * <p>The <code>iam:CreateServiceLinkedRole</code> permission for all alarms with EC2 actions</p>
582
584
  * </li>
583
585
  * <li>
584
- * <p>The <code>iam:CreateServiceLinkedRole</code> to create an alarm
585
- * with Systems Manager OpsItem actions.</p>
586
+ * <p>The <code>iam:CreateServiceLinkedRole</code> permissions to create an alarm
587
+ * with Systems Manager OpsItem or response plan actions.</p>
586
588
  * </li>
587
589
  * </ul>
588
590
  * <p>The first time you create an alarm in the
@@ -23,8 +23,10 @@ export interface DeleteAlarmsCommandOutput extends __MetadataBearer {
23
23
  * than one composite alarm. For example, you could delete 99 metric alarms and one composite alarms with one operation, but you can't
24
24
  * delete two composite alarms with one operation.</p>
25
25
  * <p>
26
- * In the event of an error, no alarms are
27
- * deleted.</p>
26
+ * If you specify an incorrect alarm name or make any other error in the operation, no alarms are
27
+ * deleted. To confirm that alarms were deleted successfully, you can use
28
+ * the <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarms.html">DescribeAlarms</a> operation after using
29
+ * <code>DeleteAlarms</code>.</p>
28
30
  * <note>
29
31
  * <p>It is possible to create a loop or cycle of composite alarms, where composite alarm A depends on composite alarm B, and
30
32
  * composite alarm B also depends on composite alarm A. In this scenario, you can't delete any composite alarm that is part of the cycle
@@ -41,6 +43,11 @@ export interface DeleteAlarmsCommandOutput extends __MetadataBearer {
41
43
  * import { CloudWatchClient, DeleteAlarmsCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
42
44
  * // const { CloudWatchClient, DeleteAlarmsCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
43
45
  * const client = new CloudWatchClient(config);
46
+ * const input = {
47
+ * AlarmNames: [ // required
48
+ * "STRING_VALUE",
49
+ * ],
50
+ * };
44
51
  * const command = new DeleteAlarmsCommand(input);
45
52
  * const response = await client.send(command);
46
53
  * ```
@@ -34,6 +34,52 @@ export interface DeleteAnomalyDetectorCommandOutput extends DeleteAnomalyDetecto
34
34
  * import { CloudWatchClient, DeleteAnomalyDetectorCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
35
35
  * // const { CloudWatchClient, DeleteAnomalyDetectorCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
36
36
  * const client = new CloudWatchClient(config);
37
+ * const input = {
38
+ * Namespace: "STRING_VALUE",
39
+ * MetricName: "STRING_VALUE",
40
+ * Dimensions: [
41
+ * {
42
+ * Name: "STRING_VALUE", // required
43
+ * Value: "STRING_VALUE", // required
44
+ * },
45
+ * ],
46
+ * Stat: "STRING_VALUE",
47
+ * SingleMetricAnomalyDetector: {
48
+ * Namespace: "STRING_VALUE",
49
+ * MetricName: "STRING_VALUE",
50
+ * Dimensions: [
51
+ * {
52
+ * Name: "STRING_VALUE", // required
53
+ * Value: "STRING_VALUE", // required
54
+ * },
55
+ * ],
56
+ * Stat: "STRING_VALUE",
57
+ * },
58
+ * MetricMathAnomalyDetector: {
59
+ * MetricDataQueries: [
60
+ * {
61
+ * Id: "STRING_VALUE", // required
62
+ * MetricStat: {
63
+ * Metric: {
64
+ * Namespace: "STRING_VALUE",
65
+ * MetricName: "STRING_VALUE",
66
+ * Dimensions: [
67
+ * "<Dimensions>",
68
+ * ],
69
+ * },
70
+ * Period: Number("int"), // required
71
+ * Stat: "STRING_VALUE", // required
72
+ * Unit: "Seconds" || "Microseconds" || "Milliseconds" || "Bytes" || "Kilobytes" || "Megabytes" || "Gigabytes" || "Terabytes" || "Bits" || "Kilobits" || "Megabits" || "Gigabits" || "Terabits" || "Percent" || "Count" || "Bytes/Second" || "Kilobytes/Second" || "Megabytes/Second" || "Gigabytes/Second" || "Terabytes/Second" || "Bits/Second" || "Kilobits/Second" || "Megabits/Second" || "Gigabits/Second" || "Terabits/Second" || "Count/Second" || "None",
73
+ * },
74
+ * Expression: "STRING_VALUE",
75
+ * Label: "STRING_VALUE",
76
+ * ReturnData: true || false,
77
+ * Period: Number("int"),
78
+ * AccountId: "STRING_VALUE",
79
+ * },
80
+ * ],
81
+ * },
82
+ * };
37
83
  * const command = new DeleteAnomalyDetectorCommand(input);
38
84
  * const response = await client.send(command);
39
85
  * ```
@@ -28,6 +28,11 @@ export interface DeleteDashboardsCommandOutput extends DeleteDashboardsOutput, _
28
28
  * import { CloudWatchClient, DeleteDashboardsCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
29
29
  * // const { CloudWatchClient, DeleteDashboardsCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
30
30
  * const client = new CloudWatchClient(config);
31
+ * const input = {
32
+ * DashboardNames: [ // required
33
+ * "STRING_VALUE",
34
+ * ],
35
+ * };
31
36
  * const command = new DeleteDashboardsCommand(input);
32
37
  * const response = await client.send(command);
33
38
  * ```
@@ -29,6 +29,11 @@ export interface DeleteInsightRulesCommandOutput extends DeleteInsightRulesOutpu
29
29
  * import { CloudWatchClient, DeleteInsightRulesCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
30
30
  * // const { CloudWatchClient, DeleteInsightRulesCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
31
31
  * const client = new CloudWatchClient(config);
32
+ * const input = {
33
+ * RuleNames: [ // required
34
+ * "STRING_VALUE",
35
+ * ],
36
+ * };
32
37
  * const command = new DeleteInsightRulesCommand(input);
33
38
  * const response = await client.send(command);
34
39
  * ```
@@ -26,6 +26,9 @@ export interface DeleteMetricStreamCommandOutput extends DeleteMetricStreamOutpu
26
26
  * import { CloudWatchClient, DeleteMetricStreamCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
27
27
  * // const { CloudWatchClient, DeleteMetricStreamCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
28
28
  * const client = new CloudWatchClient(config);
29
+ * const input = {
30
+ * Name: "STRING_VALUE", // required
31
+ * };
29
32
  * const command = new DeleteMetricStreamCommand(input);
30
33
  * const response = await client.send(command);
31
34
  * ```
@@ -31,6 +31,18 @@ export interface DescribeAlarmHistoryCommandOutput extends DescribeAlarmHistoryO
31
31
  * import { CloudWatchClient, DescribeAlarmHistoryCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
32
32
  * // const { CloudWatchClient, DescribeAlarmHistoryCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
33
33
  * const client = new CloudWatchClient(config);
34
+ * const input = {
35
+ * AlarmName: "STRING_VALUE",
36
+ * AlarmTypes: [
37
+ * "CompositeAlarm" || "MetricAlarm",
38
+ * ],
39
+ * HistoryItemType: "ConfigurationUpdate" || "StateUpdate" || "Action",
40
+ * StartDate: new Date("TIMESTAMP"),
41
+ * EndDate: new Date("TIMESTAMP"),
42
+ * MaxRecords: Number("int"),
43
+ * NextToken: "STRING_VALUE",
44
+ * ScanBy: "TimestampDescending" || "TimestampAscending",
45
+ * };
34
46
  * const command = new DescribeAlarmHistoryCommand(input);
35
47
  * const response = await client.send(command);
36
48
  * ```
@@ -30,6 +30,21 @@ export interface DescribeAlarmsCommandOutput extends DescribeAlarmsOutput, __Met
30
30
  * import { CloudWatchClient, DescribeAlarmsCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
31
31
  * // const { CloudWatchClient, DescribeAlarmsCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
32
32
  * const client = new CloudWatchClient(config);
33
+ * const input = {
34
+ * AlarmNames: [
35
+ * "STRING_VALUE",
36
+ * ],
37
+ * AlarmNamePrefix: "STRING_VALUE",
38
+ * AlarmTypes: [
39
+ * "CompositeAlarm" || "MetricAlarm",
40
+ * ],
41
+ * ChildrenOfAlarmName: "STRING_VALUE",
42
+ * ParentsOfAlarmName: "STRING_VALUE",
43
+ * StateValue: "OK" || "ALARM" || "INSUFFICIENT_DATA",
44
+ * ActionPrefix: "STRING_VALUE",
45
+ * MaxRecords: Number("int"),
46
+ * NextToken: "STRING_VALUE",
47
+ * };
33
48
  * const command = new DescribeAlarmsCommand(input);
34
49
  * const response = await client.send(command);
35
50
  * ```
@@ -30,6 +30,20 @@ export interface DescribeAlarmsForMetricCommandOutput extends DescribeAlarmsForM
30
30
  * import { CloudWatchClient, DescribeAlarmsForMetricCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
31
31
  * // const { CloudWatchClient, DescribeAlarmsForMetricCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
32
32
  * const client = new CloudWatchClient(config);
33
+ * const input = {
34
+ * MetricName: "STRING_VALUE", // required
35
+ * Namespace: "STRING_VALUE", // required
36
+ * Statistic: "SampleCount" || "Average" || "Sum" || "Minimum" || "Maximum",
37
+ * ExtendedStatistic: "STRING_VALUE",
38
+ * Dimensions: [
39
+ * {
40
+ * Name: "STRING_VALUE", // required
41
+ * Value: "STRING_VALUE", // required
42
+ * },
43
+ * ],
44
+ * Period: Number("int"),
45
+ * Unit: "Seconds" || "Microseconds" || "Milliseconds" || "Bytes" || "Kilobytes" || "Megabytes" || "Gigabytes" || "Terabytes" || "Bits" || "Kilobits" || "Megabits" || "Gigabits" || "Terabits" || "Percent" || "Count" || "Bytes/Second" || "Kilobytes/Second" || "Megabytes/Second" || "Gigabytes/Second" || "Terabytes/Second" || "Bits/Second" || "Kilobits/Second" || "Megabits/Second" || "Gigabits/Second" || "Terabits/Second" || "Count/Second" || "None",
46
+ * };
33
47
  * const command = new DescribeAlarmsForMetricCommand(input);
34
48
  * const response = await client.send(command);
35
49
  * ```
@@ -32,6 +32,21 @@ export interface DescribeAnomalyDetectorsCommandOutput extends DescribeAnomalyDe
32
32
  * import { CloudWatchClient, DescribeAnomalyDetectorsCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
33
33
  * // const { CloudWatchClient, DescribeAnomalyDetectorsCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
34
34
  * const client = new CloudWatchClient(config);
35
+ * const input = {
36
+ * NextToken: "STRING_VALUE",
37
+ * MaxResults: Number("int"),
38
+ * Namespace: "STRING_VALUE",
39
+ * MetricName: "STRING_VALUE",
40
+ * Dimensions: [
41
+ * {
42
+ * Name: "STRING_VALUE", // required
43
+ * Value: "STRING_VALUE", // required
44
+ * },
45
+ * ],
46
+ * AnomalyDetectorTypes: [
47
+ * "SINGLE_METRIC" || "METRIC_MATH",
48
+ * ],
49
+ * };
35
50
  * const command = new DescribeAnomalyDetectorsCommand(input);
36
51
  * const response = await client.send(command);
37
52
  * ```
@@ -28,6 +28,10 @@ export interface DescribeInsightRulesCommandOutput extends DescribeInsightRulesO
28
28
  * import { CloudWatchClient, DescribeInsightRulesCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
29
29
  * // const { CloudWatchClient, DescribeInsightRulesCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
30
30
  * const client = new CloudWatchClient(config);
31
+ * const input = {
32
+ * NextToken: "STRING_VALUE",
33
+ * MaxResults: Number("int"),
34
+ * };
31
35
  * const command = new DescribeInsightRulesCommand(input);
32
36
  * const response = await client.send(command);
33
37
  * ```
@@ -27,6 +27,11 @@ export interface DisableAlarmActionsCommandOutput extends __MetadataBearer {
27
27
  * import { CloudWatchClient, DisableAlarmActionsCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
28
28
  * // const { CloudWatchClient, DisableAlarmActionsCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
29
29
  * const client = new CloudWatchClient(config);
30
+ * const input = {
31
+ * AlarmNames: [ // required
32
+ * "STRING_VALUE",
33
+ * ],
34
+ * };
30
35
  * const command = new DisableAlarmActionsCommand(input);
31
36
  * const response = await client.send(command);
32
37
  * ```
@@ -27,6 +27,11 @@ export interface DisableInsightRulesCommandOutput extends DisableInsightRulesOut
27
27
  * import { CloudWatchClient, DisableInsightRulesCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
28
28
  * // const { CloudWatchClient, DisableInsightRulesCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
29
29
  * const client = new CloudWatchClient(config);
30
+ * const input = {
31
+ * RuleNames: [ // required
32
+ * "STRING_VALUE",
33
+ * ],
34
+ * };
30
35
  * const command = new DisableInsightRulesCommand(input);
31
36
  * const response = await client.send(command);
32
37
  * ```
@@ -26,6 +26,11 @@ export interface EnableAlarmActionsCommandOutput extends __MetadataBearer {
26
26
  * import { CloudWatchClient, EnableAlarmActionsCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
27
27
  * // const { CloudWatchClient, EnableAlarmActionsCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
28
28
  * const client = new CloudWatchClient(config);
29
+ * const input = {
30
+ * AlarmNames: [ // required
31
+ * "STRING_VALUE",
32
+ * ],
33
+ * };
29
34
  * const command = new EnableAlarmActionsCommand(input);
30
35
  * const response = await client.send(command);
31
36
  * ```
@@ -26,6 +26,11 @@ export interface EnableInsightRulesCommandOutput extends EnableInsightRulesOutpu
26
26
  * import { CloudWatchClient, EnableInsightRulesCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
27
27
  * // const { CloudWatchClient, EnableInsightRulesCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
28
28
  * const client = new CloudWatchClient(config);
29
+ * const input = {
30
+ * RuleNames: [ // required
31
+ * "STRING_VALUE",
32
+ * ],
33
+ * };
29
34
  * const command = new EnableInsightRulesCommand(input);
30
35
  * const response = await client.send(command);
31
36
  * ```
@@ -29,6 +29,9 @@ export interface GetDashboardCommandOutput extends GetDashboardOutput, __Metadat
29
29
  * import { CloudWatchClient, GetDashboardCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
30
30
  * // const { CloudWatchClient, GetDashboardCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
31
31
  * const client = new CloudWatchClient(config);
32
+ * const input = {
33
+ * DashboardName: "STRING_VALUE", // required
34
+ * };
32
35
  * const command = new GetDashboardCommand(input);
33
36
  * const response = await client.send(command);
34
37
  * ```
@@ -62,6 +62,17 @@ export interface GetInsightRuleReportCommandOutput extends GetInsightRuleReportO
62
62
  * import { CloudWatchClient, GetInsightRuleReportCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
63
63
  * // const { CloudWatchClient, GetInsightRuleReportCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
64
64
  * const client = new CloudWatchClient(config);
65
+ * const input = {
66
+ * RuleName: "STRING_VALUE", // required
67
+ * StartTime: new Date("TIMESTAMP"), // required
68
+ * EndTime: new Date("TIMESTAMP"), // required
69
+ * Period: Number("int"), // required
70
+ * MaxContributorCount: Number("int"),
71
+ * Metrics: [
72
+ * "STRING_VALUE",
73
+ * ],
74
+ * OrderBy: "STRING_VALUE",
75
+ * };
65
76
  * const command = new GetInsightRuleReportCommand(input);
66
77
  * const response = await client.send(command);
67
78
  * ```
@@ -73,6 +73,41 @@ export interface GetMetricDataCommandOutput extends GetMetricDataOutput, __Metad
73
73
  * import { CloudWatchClient, GetMetricDataCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
74
74
  * // const { CloudWatchClient, GetMetricDataCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
75
75
  * const client = new CloudWatchClient(config);
76
+ * const input = {
77
+ * MetricDataQueries: [ // required
78
+ * {
79
+ * Id: "STRING_VALUE", // required
80
+ * MetricStat: {
81
+ * Metric: {
82
+ * Namespace: "STRING_VALUE",
83
+ * MetricName: "STRING_VALUE",
84
+ * Dimensions: [
85
+ * {
86
+ * Name: "STRING_VALUE", // required
87
+ * Value: "STRING_VALUE", // required
88
+ * },
89
+ * ],
90
+ * },
91
+ * Period: Number("int"), // required
92
+ * Stat: "STRING_VALUE", // required
93
+ * Unit: "Seconds" || "Microseconds" || "Milliseconds" || "Bytes" || "Kilobytes" || "Megabytes" || "Gigabytes" || "Terabytes" || "Bits" || "Kilobits" || "Megabits" || "Gigabits" || "Terabits" || "Percent" || "Count" || "Bytes/Second" || "Kilobytes/Second" || "Megabytes/Second" || "Gigabytes/Second" || "Terabytes/Second" || "Bits/Second" || "Kilobits/Second" || "Megabits/Second" || "Gigabits/Second" || "Terabits/Second" || "Count/Second" || "None",
94
+ * },
95
+ * Expression: "STRING_VALUE",
96
+ * Label: "STRING_VALUE",
97
+ * ReturnData: true || false,
98
+ * Period: Number("int"),
99
+ * AccountId: "STRING_VALUE",
100
+ * },
101
+ * ],
102
+ * StartTime: new Date("TIMESTAMP"), // required
103
+ * EndTime: new Date("TIMESTAMP"), // required
104
+ * NextToken: "STRING_VALUE",
105
+ * ScanBy: "TimestampDescending" || "TimestampAscending",
106
+ * MaxDatapoints: Number("int"),
107
+ * LabelOptions: {
108
+ * Timezone: "STRING_VALUE",
109
+ * },
110
+ * };
76
111
  * const command = new GetMetricDataCommand(input);
77
112
  * const response = await client.send(command);
78
113
  * ```
@@ -72,6 +72,26 @@ export interface GetMetricStatisticsCommandOutput extends GetMetricStatisticsOut
72
72
  * import { CloudWatchClient, GetMetricStatisticsCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
73
73
  * // const { CloudWatchClient, GetMetricStatisticsCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
74
74
  * const client = new CloudWatchClient(config);
75
+ * const input = {
76
+ * Namespace: "STRING_VALUE", // required
77
+ * MetricName: "STRING_VALUE", // required
78
+ * Dimensions: [
79
+ * {
80
+ * Name: "STRING_VALUE", // required
81
+ * Value: "STRING_VALUE", // required
82
+ * },
83
+ * ],
84
+ * StartTime: new Date("TIMESTAMP"), // required
85
+ * EndTime: new Date("TIMESTAMP"), // required
86
+ * Period: Number("int"), // required
87
+ * Statistics: [
88
+ * "SampleCount" || "Average" || "Sum" || "Minimum" || "Maximum",
89
+ * ],
90
+ * ExtendedStatistics: [
91
+ * "STRING_VALUE",
92
+ * ],
93
+ * Unit: "Seconds" || "Microseconds" || "Milliseconds" || "Bytes" || "Kilobytes" || "Megabytes" || "Gigabytes" || "Terabytes" || "Bits" || "Kilobits" || "Megabits" || "Gigabits" || "Terabits" || "Percent" || "Count" || "Bytes/Second" || "Kilobytes/Second" || "Megabytes/Second" || "Gigabytes/Second" || "Terabytes/Second" || "Bits/Second" || "Kilobits/Second" || "Megabits/Second" || "Gigabits/Second" || "Terabits/Second" || "Count/Second" || "None",
94
+ * };
75
95
  * const command = new GetMetricStatisticsCommand(input);
76
96
  * const response = await client.send(command);
77
97
  * ```
@@ -26,6 +26,9 @@ export interface GetMetricStreamCommandOutput extends GetMetricStreamOutput, __M
26
26
  * import { CloudWatchClient, GetMetricStreamCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
27
27
  * // const { CloudWatchClient, GetMetricStreamCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
28
28
  * const client = new CloudWatchClient(config);
29
+ * const input = {
30
+ * Name: "STRING_VALUE", // required
31
+ * };
29
32
  * const command = new GetMetricStreamCommand(input);
30
33
  * const response = await client.send(command);
31
34
  * ```
@@ -41,6 +41,10 @@ export interface GetMetricWidgetImageCommandOutput extends GetMetricWidgetImageO
41
41
  * import { CloudWatchClient, GetMetricWidgetImageCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
42
42
  * // const { CloudWatchClient, GetMetricWidgetImageCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
43
43
  * const client = new CloudWatchClient(config);
44
+ * const input = {
45
+ * MetricWidget: "STRING_VALUE", // required
46
+ * OutputFormat: "STRING_VALUE",
47
+ * };
44
48
  * const command = new GetMetricWidgetImageCommand(input);
45
49
  * const response = await client.send(command);
46
50
  * ```
@@ -34,6 +34,10 @@ export interface ListDashboardsCommandOutput extends ListDashboardsOutput, __Met
34
34
  * import { CloudWatchClient, ListDashboardsCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
35
35
  * // const { CloudWatchClient, ListDashboardsCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
36
36
  * const client = new CloudWatchClient(config);
37
+ * const input = {
38
+ * DashboardNamePrefix: "STRING_VALUE",
39
+ * NextToken: "STRING_VALUE",
40
+ * };
37
41
  * const command = new ListDashboardsCommand(input);
38
42
  * const response = await client.send(command);
39
43
  * ```
@@ -32,6 +32,11 @@ export interface ListManagedInsightRulesCommandOutput extends ListManagedInsight
32
32
  * import { CloudWatchClient, ListManagedInsightRulesCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
33
33
  * // const { CloudWatchClient, ListManagedInsightRulesCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
34
34
  * const client = new CloudWatchClient(config);
35
+ * const input = {
36
+ * ResourceARN: "STRING_VALUE", // required
37
+ * NextToken: "STRING_VALUE",
38
+ * MaxResults: Number("int"),
39
+ * };
35
40
  * const command = new ListManagedInsightRulesCommand(input);
36
41
  * const response = await client.send(command);
37
42
  * ```
@@ -26,6 +26,10 @@ export interface ListMetricStreamsCommandOutput extends ListMetricStreamsOutput,
26
26
  * import { CloudWatchClient, ListMetricStreamsCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
27
27
  * // const { CloudWatchClient, ListMetricStreamsCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
28
28
  * const client = new CloudWatchClient(config);
29
+ * const input = {
30
+ * NextToken: "STRING_VALUE",
31
+ * MaxResults: Number("int"),
32
+ * };
29
33
  * const command = new ListMetricStreamsCommand(input);
30
34
  * const response = await client.send(command);
31
35
  * ```
@@ -38,6 +38,20 @@ export interface ListMetricsCommandOutput extends ListMetricsOutput, __MetadataB
38
38
  * import { CloudWatchClient, ListMetricsCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
39
39
  * // const { CloudWatchClient, ListMetricsCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
40
40
  * const client = new CloudWatchClient(config);
41
+ * const input = {
42
+ * Namespace: "STRING_VALUE",
43
+ * MetricName: "STRING_VALUE",
44
+ * Dimensions: [
45
+ * {
46
+ * Name: "STRING_VALUE", // required
47
+ * Value: "STRING_VALUE",
48
+ * },
49
+ * ],
50
+ * NextToken: "STRING_VALUE",
51
+ * RecentlyActive: "PT3H",
52
+ * IncludeLinkedAccounts: true || false,
53
+ * OwningAccount: "STRING_VALUE",
54
+ * };
41
55
  * const command = new ListMetricsCommand(input);
42
56
  * const response = await client.send(command);
43
57
  * ```
@@ -27,6 +27,9 @@ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceOut
27
27
  * import { CloudWatchClient, ListTagsForResourceCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
28
28
  * // const { CloudWatchClient, ListTagsForResourceCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
29
29
  * const client = new CloudWatchClient(config);
30
+ * const input = {
31
+ * ResourceARN: "STRING_VALUE", // required
32
+ * };
30
33
  * const command = new ListTagsForResourceCommand(input);
31
34
  * const response = await client.send(command);
32
35
  * ```
@@ -28,6 +28,61 @@ export interface PutAnomalyDetectorCommandOutput extends PutAnomalyDetectorOutpu
28
28
  * import { CloudWatchClient, PutAnomalyDetectorCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
29
29
  * // const { CloudWatchClient, PutAnomalyDetectorCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
30
30
  * const client = new CloudWatchClient(config);
31
+ * const input = {
32
+ * Namespace: "STRING_VALUE",
33
+ * MetricName: "STRING_VALUE",
34
+ * Dimensions: [
35
+ * {
36
+ * Name: "STRING_VALUE", // required
37
+ * Value: "STRING_VALUE", // required
38
+ * },
39
+ * ],
40
+ * Stat: "STRING_VALUE",
41
+ * Configuration: {
42
+ * ExcludedTimeRanges: [
43
+ * {
44
+ * StartTime: new Date("TIMESTAMP"), // required
45
+ * EndTime: new Date("TIMESTAMP"), // required
46
+ * },
47
+ * ],
48
+ * MetricTimezone: "STRING_VALUE",
49
+ * },
50
+ * SingleMetricAnomalyDetector: {
51
+ * Namespace: "STRING_VALUE",
52
+ * MetricName: "STRING_VALUE",
53
+ * Dimensions: [
54
+ * {
55
+ * Name: "STRING_VALUE", // required
56
+ * Value: "STRING_VALUE", // required
57
+ * },
58
+ * ],
59
+ * Stat: "STRING_VALUE",
60
+ * },
61
+ * MetricMathAnomalyDetector: {
62
+ * MetricDataQueries: [
63
+ * {
64
+ * Id: "STRING_VALUE", // required
65
+ * MetricStat: {
66
+ * Metric: {
67
+ * Namespace: "STRING_VALUE",
68
+ * MetricName: "STRING_VALUE",
69
+ * Dimensions: [
70
+ * "<Dimensions>",
71
+ * ],
72
+ * },
73
+ * Period: Number("int"), // required
74
+ * Stat: "STRING_VALUE", // required
75
+ * Unit: "Seconds" || "Microseconds" || "Milliseconds" || "Bytes" || "Kilobytes" || "Megabytes" || "Gigabytes" || "Terabytes" || "Bits" || "Kilobits" || "Megabits" || "Gigabits" || "Terabits" || "Percent" || "Count" || "Bytes/Second" || "Kilobytes/Second" || "Megabytes/Second" || "Gigabytes/Second" || "Terabytes/Second" || "Bits/Second" || "Kilobits/Second" || "Megabits/Second" || "Gigabits/Second" || "Terabits/Second" || "Count/Second" || "None",
76
+ * },
77
+ * Expression: "STRING_VALUE",
78
+ * Label: "STRING_VALUE",
79
+ * ReturnData: true || false,
80
+ * Period: Number("int"),
81
+ * AccountId: "STRING_VALUE",
82
+ * },
83
+ * ],
84
+ * },
85
+ * };
31
86
  * const command = new PutAnomalyDetectorCommand(input);
32
87
  * const response = await client.send(command);
33
88
  * ```