@aws-sdk/client-cloudwatch 3.391.0 → 3.393.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.
@@ -3,5 +3,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
4
  const s = "required", t = "fn", u = "argv", v = "ref";
5
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 }] }] };
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 }, { conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: i, properties: l, headers: l }, type: d }] }, { 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: [{ 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: [{ 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: [{ 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 }] }, { 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
1
  const s = "required", t = "fn", u = "argv", v = "ref";
2
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 }] }] };
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 }, { conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: i, properties: l, headers: l }, type: d }] }, { 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: [{ 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: [{ 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: [{ 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 }] }, { 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;
@@ -1188,8 +1188,13 @@ export interface DescribeAlarmsInput {
1188
1188
  AlarmNamePrefix?: string;
1189
1189
  /**
1190
1190
  * @public
1191
- * <p>Use this parameter to specify whether you want the operation to return metric alarms or composite alarms. If you omit this parameter,
1192
- * only metric alarms are returned.</p>
1191
+ * <p>Use this parameter to specify whether you want the operation to return metric alarms or composite alarms. If you
1192
+ * omit this parameter,
1193
+ * only metric alarms are returned, even if composite alarms exist in the account.</p>
1194
+ * <p>For example, if you omit this parameter or specify <code>MetricAlarms</code>, the operation returns only a list of metric
1195
+ * alarms. It does not return any composite alarms, even if composite alarms exist in the account.</p>
1196
+ * <p>If you specify <code>CompositeAlarms</code>, the operation returns only a list of composite
1197
+ * alarms, and does not return any metric alarms.</p>
1193
1198
  */
1194
1199
  AlarmTypes?: (AlarmType | string)[];
1195
1200
  /**
@@ -1863,7 +1868,7 @@ export interface GetInsightRuleReportInput {
1863
1868
  Metrics?: string[];
1864
1869
  /**
1865
1870
  * @public
1866
- * <p>Determines what statistic to use to rank the contributors. Valid values are SUM and MAXIMUM.</p>
1871
+ * <p>Determines what statistic to use to rank the contributors. Valid values are <code>Sum</code> and <code>Maximum</code>.</p>
1867
1872
  */
1868
1873
  OrderBy?: string;
1869
1874
  }
@@ -3751,10 +3756,70 @@ export interface PutMetricAlarmInput {
3751
3756
  Statistic?: Statistic | string;
3752
3757
  /**
3753
3758
  * @public
3754
- * <p>The percentile statistic for the metric specified in <code>MetricName</code>. Specify a value
3755
- * between p0.0 and p100. When you call <code>PutMetricAlarm</code> and specify
3759
+ * <p>The extended statistic for the metric specified in <code>MetricName</code>. When you
3760
+ * call <code>PutMetricAlarm</code> and specify
3756
3761
  * a <code>MetricName</code>, you must
3757
- * specify either <code>Statistic</code> or <code>ExtendedStatistic,</code> but not both.</p>
3762
+ * specify either <code>Statistic</code> or <code>ExtendedStatistic</code> but not both.</p>
3763
+ * <p>If you specify <code>ExtendedStatistic</code>, the following are valid values:</p>
3764
+ * <ul>
3765
+ * <li>
3766
+ * <p>
3767
+ * <code>p90</code>
3768
+ * </p>
3769
+ * </li>
3770
+ * <li>
3771
+ * <p>
3772
+ * <code>tm90</code>
3773
+ * </p>
3774
+ * </li>
3775
+ * <li>
3776
+ * <p>
3777
+ * <code>tc90</code>
3778
+ * </p>
3779
+ * </li>
3780
+ * <li>
3781
+ * <p>
3782
+ * <code>ts90</code>
3783
+ * </p>
3784
+ * </li>
3785
+ * <li>
3786
+ * <p>
3787
+ * <code>wm90</code>
3788
+ * </p>
3789
+ * </li>
3790
+ * <li>
3791
+ * <p>
3792
+ * <code>IQM</code>
3793
+ * </p>
3794
+ * </li>
3795
+ * <li>
3796
+ * <p>
3797
+ * <code>PR(<i>n</i>:<i>m</i>)</code> where n and m are values
3798
+ * of the metric</p>
3799
+ * </li>
3800
+ * <li>
3801
+ * <p>
3802
+ * <code>TC(<i>X</i>%:<i>X</i>%)</code> where X is between
3803
+ * 10 and 90 inclusive.</p>
3804
+ * </li>
3805
+ * <li>
3806
+ * <p>
3807
+ * <code>TM(<i>X</i>%:<i>X</i>%)</code> where X is between
3808
+ * 10 and 90 inclusive.</p>
3809
+ * </li>
3810
+ * <li>
3811
+ * <p>
3812
+ * <code>TS(<i>X</i>%:<i>X</i>%)</code> where X is between
3813
+ * 10 and 90 inclusive.</p>
3814
+ * </li>
3815
+ * <li>
3816
+ * <p>
3817
+ * <code>WM(<i>X</i>%:<i>X</i>%)</code> where X is between
3818
+ * 10 and 90 inclusive.</p>
3819
+ * </li>
3820
+ * </ul>
3821
+ * <p>For more information about these extended statistics, see
3822
+ * <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html">CloudWatch statistics definitions</a>.</p>
3758
3823
  */
3759
3824
  ExtendedStatistic?: string;
3760
3825
  /**
@@ -3873,7 +3938,9 @@ export interface PutMetricAlarmInput {
3873
3938
  Metrics?: MetricDataQuery[];
3874
3939
  /**
3875
3940
  * @public
3876
- * <p>A list of key-value pairs to associate with the alarm. You can associate as many as 50 tags with an alarm.</p>
3941
+ * <p>A list of key-value pairs to associate with the alarm. You can associate as many as 50 tags with an alarm.
3942
+ * To be able to associate tags with the alarm when you create the alarm, you must
3943
+ * have the <code>cloudwatch:TagResource</code> permission.</p>
3877
3944
  * <p>Tags can help you organize and categorize your resources. You can also use them to scope user
3878
3945
  * permissions by granting a user
3879
3946
  * permission to access or change only resources with certain tag values.</p>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cloudwatch",
3
3
  "description": "AWS SDK for JavaScript Cloudwatch Client for Node.js, Browser and React Native",
4
- "version": "3.391.0",
4
+ "version": "3.393.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",