@aws-sdk/client-cloudwatch 3.883.0 → 3.885.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/README.md CHANGED
@@ -254,6 +254,14 @@ DeleteMetricStream
254
254
 
255
255
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cloudwatch/command/DeleteMetricStreamCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudwatch/Interface/DeleteMetricStreamCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudwatch/Interface/DeleteMetricStreamCommandOutput/)
256
256
 
257
+ </details>
258
+ <details>
259
+ <summary>
260
+ DescribeAlarmContributors
261
+ </summary>
262
+
263
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cloudwatch/command/DescribeAlarmContributorsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudwatch/Interface/DescribeAlarmContributorsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudwatch/Interface/DescribeAlarmContributorsCommandOutput/)
264
+
257
265
  </details>
258
266
  <details>
259
267
  <summary>
package/dist-cjs/index.js CHANGED
@@ -38,6 +38,7 @@ __export(index_exports, {
38
38
  DeleteDashboardsCommand: () => DeleteDashboardsCommand,
39
39
  DeleteInsightRulesCommand: () => DeleteInsightRulesCommand,
40
40
  DeleteMetricStreamCommand: () => DeleteMetricStreamCommand,
41
+ DescribeAlarmContributorsCommand: () => DescribeAlarmContributorsCommand,
41
42
  DescribeAlarmHistoryCommand: () => DescribeAlarmHistoryCommand,
42
43
  DescribeAlarmsCommand: () => DescribeAlarmsCommand,
43
44
  DescribeAlarmsForMetricCommand: () => DescribeAlarmsForMetricCommand,
@@ -290,6 +291,8 @@ var AlarmType = {
290
291
  };
291
292
  var HistoryItemType = {
292
293
  Action: "Action",
294
+ AlarmContributorAction: "AlarmContributorAction",
295
+ AlarmContributorStateUpdate: "AlarmContributorStateUpdate",
293
296
  ConfigurationUpdate: "ConfigurationUpdate",
294
297
  StateUpdate: "StateUpdate"
295
298
  };
@@ -543,10 +546,6 @@ var ResourceNotFoundException = class _ResourceNotFoundException extends CloudWa
543
546
  this.Message = opts.Message;
544
547
  }
545
548
  };
546
- var ScanBy = {
547
- TIMESTAMP_ASCENDING: "TimestampAscending",
548
- TIMESTAMP_DESCENDING: "TimestampDescending"
549
- };
550
549
  var InvalidNextToken = class _InvalidNextToken extends CloudWatchServiceException {
551
550
  static {
552
551
  __name(this, "InvalidNextToken");
@@ -565,6 +564,10 @@ var InvalidNextToken = class _InvalidNextToken extends CloudWatchServiceExceptio
565
564
  Object.setPrototypeOf(this, _InvalidNextToken.prototype);
566
565
  }
567
566
  };
567
+ var ScanBy = {
568
+ TIMESTAMP_ASCENDING: "TimestampAscending",
569
+ TIMESTAMP_DESCENDING: "TimestampDescending"
570
+ };
568
571
  var EvaluationState = {
569
572
  PARTIAL_DATA: "PARTIAL_DATA"
570
573
  };
@@ -697,6 +700,16 @@ var se_DeleteMetricStreamCommand = /* @__PURE__ */ __name(async (input, context)
697
700
  });
698
701
  return buildHttpRpcRequest(context, headers, "/", void 0, body);
699
702
  }, "se_DeleteMetricStreamCommand");
703
+ var se_DescribeAlarmContributorsCommand = /* @__PURE__ */ __name(async (input, context) => {
704
+ const headers = SHARED_HEADERS;
705
+ let body;
706
+ body = buildFormUrlencodedString({
707
+ ...se_DescribeAlarmContributorsInput(input, context),
708
+ [_A]: _DAC,
709
+ [_V]: _
710
+ });
711
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
712
+ }, "se_DescribeAlarmContributorsCommand");
700
713
  var se_DescribeAlarmHistoryCommand = /* @__PURE__ */ __name(async (input, context) => {
701
714
  const headers = SHARED_HEADERS;
702
715
  let body;
@@ -1089,6 +1102,19 @@ var de_DeleteMetricStreamCommand = /* @__PURE__ */ __name(async (output, context
1089
1102
  };
1090
1103
  return response;
1091
1104
  }, "de_DeleteMetricStreamCommand");
1105
+ var de_DescribeAlarmContributorsCommand = /* @__PURE__ */ __name(async (output, context) => {
1106
+ if (output.statusCode >= 300) {
1107
+ return de_CommandError(output, context);
1108
+ }
1109
+ const data = await (0, import_core2.parseXmlBody)(output.body, context);
1110
+ let contents = {};
1111
+ contents = de_DescribeAlarmContributorsOutput(data.DescribeAlarmContributorsResult, context);
1112
+ const response = {
1113
+ $metadata: deserializeMetadata(output),
1114
+ ...contents
1115
+ };
1116
+ return response;
1117
+ }, "de_DescribeAlarmContributorsCommand");
1092
1118
  var de_DescribeAlarmHistoryCommand = /* @__PURE__ */ __name(async (output, context) => {
1093
1119
  if (output.statusCode >= 300) {
1094
1120
  return de_CommandError(output, context);
@@ -1850,11 +1876,24 @@ var se_DeleteMetricStreamInput = /* @__PURE__ */ __name((input, context) => {
1850
1876
  }
1851
1877
  return entries;
1852
1878
  }, "se_DeleteMetricStreamInput");
1879
+ var se_DescribeAlarmContributorsInput = /* @__PURE__ */ __name((input, context) => {
1880
+ const entries = {};
1881
+ if (input[_ANl] != null) {
1882
+ entries[_ANl] = input[_ANl];
1883
+ }
1884
+ if (input[_NT] != null) {
1885
+ entries[_NT] = input[_NT];
1886
+ }
1887
+ return entries;
1888
+ }, "se_DescribeAlarmContributorsInput");
1853
1889
  var se_DescribeAlarmHistoryInput = /* @__PURE__ */ __name((input, context) => {
1854
1890
  const entries = {};
1855
1891
  if (input[_ANl] != null) {
1856
1892
  entries[_ANl] = input[_ANl];
1857
1893
  }
1894
+ if (input[_ACI] != null) {
1895
+ entries[_ACI] = input[_ACI];
1896
+ }
1858
1897
  if (input[_AT] != null) {
1859
1898
  const memberEntries = se_AlarmTypes(input[_AT], context);
1860
1899
  if (input[_AT]?.length === 0) {
@@ -3360,11 +3399,37 @@ var se_Values = /* @__PURE__ */ __name((input, context) => {
3360
3399
  }
3361
3400
  return entries;
3362
3401
  }, "se_Values");
3402
+ var de_AlarmContributor = /* @__PURE__ */ __name((output, context) => {
3403
+ const contents = {};
3404
+ if (output[_CI] != null) {
3405
+ contents[_CI] = (0, import_smithy_client.expectString)(output[_CI]);
3406
+ }
3407
+ if (output.ContributorAttributes === "") {
3408
+ contents[_CA] = {};
3409
+ } else if (output[_CA] != null && output[_CA][_e] != null) {
3410
+ contents[_CA] = de_ContributorAttributes((0, import_smithy_client.getArrayIfSingleItem)(output[_CA][_e]), context);
3411
+ }
3412
+ if (output[_SRt] != null) {
3413
+ contents[_SRt] = (0, import_smithy_client.expectString)(output[_SRt]);
3414
+ }
3415
+ if (output[_STT] != null) {
3416
+ contents[_STT] = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(output[_STT]));
3417
+ }
3418
+ return contents;
3419
+ }, "de_AlarmContributor");
3420
+ var de_AlarmContributors = /* @__PURE__ */ __name((output, context) => {
3421
+ return (output || []).filter((e) => e != null).map((entry) => {
3422
+ return de_AlarmContributor(entry, context);
3423
+ });
3424
+ }, "de_AlarmContributors");
3363
3425
  var de_AlarmHistoryItem = /* @__PURE__ */ __name((output, context) => {
3364
3426
  const contents = {};
3365
3427
  if (output[_ANl] != null) {
3366
3428
  contents[_ANl] = (0, import_smithy_client.expectString)(output[_ANl]);
3367
3429
  }
3430
+ if (output[_ACI] != null) {
3431
+ contents[_ACI] = (0, import_smithy_client.expectString)(output[_ACI]);
3432
+ }
3368
3433
  if (output[_ATl] != null) {
3369
3434
  contents[_ATl] = (0, import_smithy_client.expectString)(output[_ATl]);
3370
3435
  }
@@ -3380,6 +3445,11 @@ var de_AlarmHistoryItem = /* @__PURE__ */ __name((output, context) => {
3380
3445
  if (output[_HD] != null) {
3381
3446
  contents[_HD] = (0, import_smithy_client.expectString)(output[_HD]);
3382
3447
  }
3448
+ if (output.AlarmContributorAttributes === "") {
3449
+ contents[_ACA] = {};
3450
+ } else if (output[_ACA] != null && output[_ACA][_e] != null) {
3451
+ contents[_ACA] = de_ContributorAttributes((0, import_smithy_client.getArrayIfSingleItem)(output[_ACA][_e]), context);
3452
+ }
3383
3453
  return contents;
3384
3454
  }, "de_AlarmHistoryItem");
3385
3455
  var de_AlarmHistoryItems = /* @__PURE__ */ __name((output, context) => {
@@ -3533,6 +3603,15 @@ var de_ConflictException = /* @__PURE__ */ __name((output, context) => {
3533
3603
  }
3534
3604
  return contents;
3535
3605
  }, "de_ConflictException");
3606
+ var de_ContributorAttributes = /* @__PURE__ */ __name((output, context) => {
3607
+ return output.reduce((acc, pair) => {
3608
+ if (pair["value"] === null) {
3609
+ return acc;
3610
+ }
3611
+ acc[pair["key"]] = (0, import_smithy_client.expectString)(pair["value"]);
3612
+ return acc;
3613
+ }, {});
3614
+ }, "de_ContributorAttributes");
3536
3615
  var de_DashboardEntries = /* @__PURE__ */ __name((output, context) => {
3537
3616
  return (output || []).filter((e) => e != null).map((entry) => {
3538
3617
  return de_DashboardEntry(entry, context);
@@ -3651,6 +3730,18 @@ var de_DeleteMetricStreamOutput = /* @__PURE__ */ __name((output, context) => {
3651
3730
  const contents = {};
3652
3731
  return contents;
3653
3732
  }, "de_DeleteMetricStreamOutput");
3733
+ var de_DescribeAlarmContributorsOutput = /* @__PURE__ */ __name((output, context) => {
3734
+ const contents = {};
3735
+ if (output.AlarmContributors === "") {
3736
+ contents[_AC] = [];
3737
+ } else if (output[_AC] != null && output[_AC][_m] != null) {
3738
+ contents[_AC] = de_AlarmContributors((0, import_smithy_client.getArrayIfSingleItem)(output[_AC][_m]), context);
3739
+ }
3740
+ if (output[_NT] != null) {
3741
+ contents[_NT] = (0, import_smithy_client.expectString)(output[_NT]);
3742
+ }
3743
+ return contents;
3744
+ }, "de_DescribeAlarmContributorsOutput");
3654
3745
  var de_DescribeAlarmHistoryOutput = /* @__PURE__ */ __name((output, context) => {
3655
3746
  const contents = {};
3656
3747
  if (output.AlarmHistoryItems === "") {
@@ -3675,9 +3766,9 @@ var de_DescribeAlarmsForMetricOutput = /* @__PURE__ */ __name((output, context)
3675
3766
  var de_DescribeAlarmsOutput = /* @__PURE__ */ __name((output, context) => {
3676
3767
  const contents = {};
3677
3768
  if (output.CompositeAlarms === "") {
3678
- contents[_CA] = [];
3679
- } else if (output[_CA] != null && output[_CA][_m] != null) {
3680
- contents[_CA] = de_CompositeAlarms((0, import_smithy_client.getArrayIfSingleItem)(output[_CA][_m]), context);
3769
+ contents[_CAo] = [];
3770
+ } else if (output[_CAo] != null && output[_CAo][_m] != null) {
3771
+ contents[_CAo] = de_CompositeAlarms((0, import_smithy_client.getArrayIfSingleItem)(output[_CAo][_m]), context);
3681
3772
  }
3682
3773
  if (output.MetricAlarms === "") {
3683
3774
  contents[_MA] = [];
@@ -4628,6 +4719,9 @@ var _A = "Action";
4628
4719
  var _AA = "AlarmActions";
4629
4720
  var _AAV = "ApproximateAggregateValue";
4630
4721
  var _AAl = "AlarmArn";
4722
+ var _AC = "AlarmContributors";
4723
+ var _ACA = "AlarmContributorAttributes";
4724
+ var _ACI = "AlarmContributorId";
4631
4725
  var _ACUT = "AlarmConfigurationUpdatedTimestamp";
4632
4726
  var _AD = "AlarmDescription";
4633
4727
  var _ADT = "AnomalyDetectorTypes";
@@ -4657,8 +4751,10 @@ var _Ar = "Arn";
4657
4751
  var _At = "Attributes";
4658
4752
  var _Av = "Average";
4659
4753
  var _C = "Counts";
4660
- var _CA = "CompositeAlarms";
4754
+ var _CA = "ContributorAttributes";
4755
+ var _CAo = "CompositeAlarms";
4661
4756
  var _CD = "CreationDate";
4757
+ var _CI = "ContributorId";
4662
4758
  var _CO = "ComparisonOperator";
4663
4759
  var _COAN = "ChildrenOfAlarmName";
4664
4760
  var _Co = "Configuration";
@@ -4667,6 +4763,7 @@ var _Con = "Contributors";
4667
4763
  var _D = "Dimensions";
4668
4764
  var _DA = "DeleteAlarms";
4669
4765
  var _DAA = "DisableAlarmActions";
4766
+ var _DAC = "DescribeAlarmContributors";
4670
4767
  var _DAD = "DeleteAnomalyDetector";
4671
4768
  var _DADe = "DescribeAnomalyDetectors";
4672
4769
  var _DAFM = "DescribeAlarmsForMetric";
@@ -4921,6 +5018,21 @@ var DeleteMetricStreamCommand = class extends import_smithy_client.Command.class
4921
5018
  }
4922
5019
  };
4923
5020
 
5021
+ // src/commands/DescribeAlarmContributorsCommand.ts
5022
+
5023
+
5024
+
5025
+ var DescribeAlarmContributorsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
5026
+ return [
5027
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
5028
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
5029
+ ];
5030
+ }).s("GraniteServiceVersion20100801", "DescribeAlarmContributors", {}).n("CloudWatchClient", "DescribeAlarmContributorsCommand").f(void 0, void 0).ser(se_DescribeAlarmContributorsCommand).de(de_DescribeAlarmContributorsCommand).build() {
5031
+ static {
5032
+ __name(this, "DescribeAlarmContributorsCommand");
5033
+ }
5034
+ };
5035
+
4924
5036
  // src/commands/DescribeAlarmHistoryCommand.ts
4925
5037
 
4926
5038
 
@@ -5427,6 +5539,7 @@ var commands = {
5427
5539
  DeleteDashboardsCommand,
5428
5540
  DeleteInsightRulesCommand,
5429
5541
  DeleteMetricStreamCommand,
5542
+ DescribeAlarmContributorsCommand,
5430
5543
  DescribeAlarmHistoryCommand,
5431
5544
  DescribeAlarmsCommand,
5432
5545
  DescribeAlarmsForMetricCommand,
@@ -5580,6 +5693,7 @@ var waitUntilCompositeAlarmExists = /* @__PURE__ */ __name(async (params, input)
5580
5693
  DeleteDashboardsCommand,
5581
5694
  DeleteInsightRulesCommand,
5582
5695
  DeleteMetricStreamCommand,
5696
+ DescribeAlarmContributorsCommand,
5583
5697
  DescribeAlarmHistoryCommand,
5584
5698
  DescribeAlarmsCommand,
5585
5699
  DescribeAlarmsForMetricCommand,
@@ -5644,8 +5758,8 @@ var waitUntilCompositeAlarmExists = /* @__PURE__ */ __name(async (params, input)
5644
5758
  InvalidParameterValueException,
5645
5759
  MissingRequiredParameterException,
5646
5760
  ResourceNotFoundException,
5647
- ScanBy,
5648
5761
  InvalidNextToken,
5762
+ ScanBy,
5649
5763
  EvaluationState,
5650
5764
  Statistic,
5651
5765
  LimitExceededException,
@@ -5,6 +5,7 @@ import { DeleteAnomalyDetectorCommand, } from "./commands/DeleteAnomalyDetectorC
5
5
  import { DeleteDashboardsCommand, } from "./commands/DeleteDashboardsCommand";
6
6
  import { DeleteInsightRulesCommand, } from "./commands/DeleteInsightRulesCommand";
7
7
  import { DeleteMetricStreamCommand, } from "./commands/DeleteMetricStreamCommand";
8
+ import { DescribeAlarmContributorsCommand, } from "./commands/DescribeAlarmContributorsCommand";
8
9
  import { DescribeAlarmHistoryCommand, } from "./commands/DescribeAlarmHistoryCommand";
9
10
  import { DescribeAlarmsCommand, } from "./commands/DescribeAlarmsCommand";
10
11
  import { DescribeAlarmsForMetricCommand, } from "./commands/DescribeAlarmsForMetricCommand";
@@ -44,6 +45,7 @@ const commands = {
44
45
  DeleteDashboardsCommand,
45
46
  DeleteInsightRulesCommand,
46
47
  DeleteMetricStreamCommand,
48
+ DescribeAlarmContributorsCommand,
47
49
  DescribeAlarmHistoryCommand,
48
50
  DescribeAlarmsCommand,
49
51
  DescribeAlarmsForMetricCommand,
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_DescribeAlarmContributorsCommand, se_DescribeAlarmContributorsCommand } from "../protocols/Aws_query";
6
+ export { $Command };
7
+ export class DescribeAlarmContributorsCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("GraniteServiceVersion20100801", "DescribeAlarmContributors", {})
17
+ .n("CloudWatchClient", "DescribeAlarmContributorsCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_DescribeAlarmContributorsCommand)
20
+ .de(de_DescribeAlarmContributorsCommand)
21
+ .build() {
22
+ }
@@ -3,6 +3,7 @@ export * from "./DeleteAnomalyDetectorCommand";
3
3
  export * from "./DeleteDashboardsCommand";
4
4
  export * from "./DeleteInsightRulesCommand";
5
5
  export * from "./DeleteMetricStreamCommand";
6
+ export * from "./DescribeAlarmContributorsCommand";
6
7
  export * from "./DescribeAlarmHistoryCommand";
7
8
  export * from "./DescribeAlarmsCommand";
8
9
  export * from "./DescribeAlarmsForMetricCommand";
@@ -10,6 +10,8 @@ export const AlarmType = {
10
10
  };
11
11
  export const HistoryItemType = {
12
12
  Action: "Action",
13
+ AlarmContributorAction: "AlarmContributorAction",
14
+ AlarmContributorStateUpdate: "AlarmContributorStateUpdate",
13
15
  ConfigurationUpdate: "ConfigurationUpdate",
14
16
  StateUpdate: "StateUpdate",
15
17
  };
@@ -199,10 +201,6 @@ export class ResourceNotFoundException extends __BaseException {
199
201
  this.Message = opts.Message;
200
202
  }
201
203
  }
202
- export const ScanBy = {
203
- TIMESTAMP_ASCENDING: "TimestampAscending",
204
- TIMESTAMP_DESCENDING: "TimestampDescending",
205
- };
206
204
  export class InvalidNextToken extends __BaseException {
207
205
  name = "InvalidNextToken";
208
206
  $fault = "client";
@@ -215,6 +213,10 @@ export class InvalidNextToken extends __BaseException {
215
213
  Object.setPrototypeOf(this, InvalidNextToken.prototype);
216
214
  }
217
215
  }
216
+ export const ScanBy = {
217
+ TIMESTAMP_ASCENDING: "TimestampAscending",
218
+ TIMESTAMP_DESCENDING: "TimestampDescending",
219
+ };
218
220
  export const EvaluationState = {
219
221
  PARTIAL_DATA: "PARTIAL_DATA",
220
222
  };
@@ -53,6 +53,16 @@ export const se_DeleteMetricStreamCommand = async (input, context) => {
53
53
  });
54
54
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
55
55
  };
56
+ export const se_DescribeAlarmContributorsCommand = async (input, context) => {
57
+ const headers = SHARED_HEADERS;
58
+ let body;
59
+ body = buildFormUrlencodedString({
60
+ ...se_DescribeAlarmContributorsInput(input, context),
61
+ [_A]: _DAC,
62
+ [_V]: _,
63
+ });
64
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
65
+ };
56
66
  export const se_DescribeAlarmHistoryCommand = async (input, context) => {
57
67
  const headers = SHARED_HEADERS;
58
68
  let body;
@@ -445,6 +455,19 @@ export const de_DeleteMetricStreamCommand = async (output, context) => {
445
455
  };
446
456
  return response;
447
457
  };
458
+ export const de_DescribeAlarmContributorsCommand = async (output, context) => {
459
+ if (output.statusCode >= 300) {
460
+ return de_CommandError(output, context);
461
+ }
462
+ const data = await parseBody(output.body, context);
463
+ let contents = {};
464
+ contents = de_DescribeAlarmContributorsOutput(data.DescribeAlarmContributorsResult, context);
465
+ const response = {
466
+ $metadata: deserializeMetadata(output),
467
+ ...contents,
468
+ };
469
+ return response;
470
+ };
448
471
  export const de_DescribeAlarmHistoryCommand = async (output, context) => {
449
472
  if (output.statusCode >= 300) {
450
473
  return de_CommandError(output, context);
@@ -1206,11 +1229,24 @@ const se_DeleteMetricStreamInput = (input, context) => {
1206
1229
  }
1207
1230
  return entries;
1208
1231
  };
1232
+ const se_DescribeAlarmContributorsInput = (input, context) => {
1233
+ const entries = {};
1234
+ if (input[_ANl] != null) {
1235
+ entries[_ANl] = input[_ANl];
1236
+ }
1237
+ if (input[_NT] != null) {
1238
+ entries[_NT] = input[_NT];
1239
+ }
1240
+ return entries;
1241
+ };
1209
1242
  const se_DescribeAlarmHistoryInput = (input, context) => {
1210
1243
  const entries = {};
1211
1244
  if (input[_ANl] != null) {
1212
1245
  entries[_ANl] = input[_ANl];
1213
1246
  }
1247
+ if (input[_ACI] != null) {
1248
+ entries[_ACI] = input[_ACI];
1249
+ }
1214
1250
  if (input[_AT] != null) {
1215
1251
  const memberEntries = se_AlarmTypes(input[_AT], context);
1216
1252
  if (input[_AT]?.length === 0) {
@@ -2720,11 +2756,40 @@ const se_Values = (input, context) => {
2720
2756
  }
2721
2757
  return entries;
2722
2758
  };
2759
+ const de_AlarmContributor = (output, context) => {
2760
+ const contents = {};
2761
+ if (output[_CI] != null) {
2762
+ contents[_CI] = __expectString(output[_CI]);
2763
+ }
2764
+ if (output.ContributorAttributes === "") {
2765
+ contents[_CA] = {};
2766
+ }
2767
+ else if (output[_CA] != null && output[_CA][_e] != null) {
2768
+ contents[_CA] = de_ContributorAttributes(__getArrayIfSingleItem(output[_CA][_e]), context);
2769
+ }
2770
+ if (output[_SRt] != null) {
2771
+ contents[_SRt] = __expectString(output[_SRt]);
2772
+ }
2773
+ if (output[_STT] != null) {
2774
+ contents[_STT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_STT]));
2775
+ }
2776
+ return contents;
2777
+ };
2778
+ const de_AlarmContributors = (output, context) => {
2779
+ return (output || [])
2780
+ .filter((e) => e != null)
2781
+ .map((entry) => {
2782
+ return de_AlarmContributor(entry, context);
2783
+ });
2784
+ };
2723
2785
  const de_AlarmHistoryItem = (output, context) => {
2724
2786
  const contents = {};
2725
2787
  if (output[_ANl] != null) {
2726
2788
  contents[_ANl] = __expectString(output[_ANl]);
2727
2789
  }
2790
+ if (output[_ACI] != null) {
2791
+ contents[_ACI] = __expectString(output[_ACI]);
2792
+ }
2728
2793
  if (output[_ATl] != null) {
2729
2794
  contents[_ATl] = __expectString(output[_ATl]);
2730
2795
  }
@@ -2740,6 +2805,12 @@ const de_AlarmHistoryItem = (output, context) => {
2740
2805
  if (output[_HD] != null) {
2741
2806
  contents[_HD] = __expectString(output[_HD]);
2742
2807
  }
2808
+ if (output.AlarmContributorAttributes === "") {
2809
+ contents[_ACA] = {};
2810
+ }
2811
+ else if (output[_ACA] != null && output[_ACA][_e] != null) {
2812
+ contents[_ACA] = de_ContributorAttributes(__getArrayIfSingleItem(output[_ACA][_e]), context);
2813
+ }
2743
2814
  return contents;
2744
2815
  };
2745
2816
  const de_AlarmHistoryItems = (output, context) => {
@@ -2908,6 +2979,15 @@ const de_ConflictException = (output, context) => {
2908
2979
  }
2909
2980
  return contents;
2910
2981
  };
2982
+ const de_ContributorAttributes = (output, context) => {
2983
+ return output.reduce((acc, pair) => {
2984
+ if (pair["value"] === null) {
2985
+ return acc;
2986
+ }
2987
+ acc[pair["key"]] = __expectString(pair["value"]);
2988
+ return acc;
2989
+ }, {});
2990
+ };
2911
2991
  const de_DashboardEntries = (output, context) => {
2912
2992
  return (output || [])
2913
2993
  .filter((e) => e != null)
@@ -3037,6 +3117,19 @@ const de_DeleteMetricStreamOutput = (output, context) => {
3037
3117
  const contents = {};
3038
3118
  return contents;
3039
3119
  };
3120
+ const de_DescribeAlarmContributorsOutput = (output, context) => {
3121
+ const contents = {};
3122
+ if (output.AlarmContributors === "") {
3123
+ contents[_AC] = [];
3124
+ }
3125
+ else if (output[_AC] != null && output[_AC][_m] != null) {
3126
+ contents[_AC] = de_AlarmContributors(__getArrayIfSingleItem(output[_AC][_m]), context);
3127
+ }
3128
+ if (output[_NT] != null) {
3129
+ contents[_NT] = __expectString(output[_NT]);
3130
+ }
3131
+ return contents;
3132
+ };
3040
3133
  const de_DescribeAlarmHistoryOutput = (output, context) => {
3041
3134
  const contents = {};
3042
3135
  if (output.AlarmHistoryItems === "") {
@@ -3063,10 +3156,10 @@ const de_DescribeAlarmsForMetricOutput = (output, context) => {
3063
3156
  const de_DescribeAlarmsOutput = (output, context) => {
3064
3157
  const contents = {};
3065
3158
  if (output.CompositeAlarms === "") {
3066
- contents[_CA] = [];
3159
+ contents[_CAo] = [];
3067
3160
  }
3068
- else if (output[_CA] != null && output[_CA][_m] != null) {
3069
- contents[_CA] = de_CompositeAlarms(__getArrayIfSingleItem(output[_CA][_m]), context);
3161
+ else if (output[_CAo] != null && output[_CAo][_m] != null) {
3162
+ contents[_CAo] = de_CompositeAlarms(__getArrayIfSingleItem(output[_CAo][_m]), context);
3070
3163
  }
3071
3164
  if (output.MetricAlarms === "") {
3072
3165
  contents[_MA] = [];
@@ -4102,6 +4195,9 @@ const _A = "Action";
4102
4195
  const _AA = "AlarmActions";
4103
4196
  const _AAV = "ApproximateAggregateValue";
4104
4197
  const _AAl = "AlarmArn";
4198
+ const _AC = "AlarmContributors";
4199
+ const _ACA = "AlarmContributorAttributes";
4200
+ const _ACI = "AlarmContributorId";
4105
4201
  const _ACUT = "AlarmConfigurationUpdatedTimestamp";
4106
4202
  const _AD = "AlarmDescription";
4107
4203
  const _ADT = "AnomalyDetectorTypes";
@@ -4131,8 +4227,10 @@ const _Ar = "Arn";
4131
4227
  const _At = "Attributes";
4132
4228
  const _Av = "Average";
4133
4229
  const _C = "Counts";
4134
- const _CA = "CompositeAlarms";
4230
+ const _CA = "ContributorAttributes";
4231
+ const _CAo = "CompositeAlarms";
4135
4232
  const _CD = "CreationDate";
4233
+ const _CI = "ContributorId";
4136
4234
  const _CO = "ComparisonOperator";
4137
4235
  const _COAN = "ChildrenOfAlarmName";
4138
4236
  const _Co = "Configuration";
@@ -4141,6 +4239,7 @@ const _Con = "Contributors";
4141
4239
  const _D = "Dimensions";
4142
4240
  const _DA = "DeleteAlarms";
4143
4241
  const _DAA = "DisableAlarmActions";
4242
+ const _DAC = "DescribeAlarmContributors";
4144
4243
  const _DAD = "DeleteAnomalyDetector";
4145
4244
  const _DADe = "DescribeAnomalyDetectors";
4146
4245
  const _DAFM = "DescribeAlarmsForMetric";
@@ -5,6 +5,7 @@ import { DeleteAnomalyDetectorCommandInput, DeleteAnomalyDetectorCommandOutput }
5
5
  import { DeleteDashboardsCommandInput, DeleteDashboardsCommandOutput } from "./commands/DeleteDashboardsCommand";
6
6
  import { DeleteInsightRulesCommandInput, DeleteInsightRulesCommandOutput } from "./commands/DeleteInsightRulesCommand";
7
7
  import { DeleteMetricStreamCommandInput, DeleteMetricStreamCommandOutput } from "./commands/DeleteMetricStreamCommand";
8
+ import { DescribeAlarmContributorsCommandInput, DescribeAlarmContributorsCommandOutput } from "./commands/DescribeAlarmContributorsCommand";
8
9
  import { DescribeAlarmHistoryCommandInput, DescribeAlarmHistoryCommandOutput } from "./commands/DescribeAlarmHistoryCommand";
9
10
  import { DescribeAlarmsCommandInput, DescribeAlarmsCommandOutput } from "./commands/DescribeAlarmsCommand";
10
11
  import { DescribeAlarmsForMetricCommandInput, DescribeAlarmsForMetricCommandOutput } from "./commands/DescribeAlarmsForMetricCommand";
@@ -70,6 +71,12 @@ export interface CloudWatch {
70
71
  deleteMetricStream(args: DeleteMetricStreamCommandInput, options?: __HttpHandlerOptions): Promise<DeleteMetricStreamCommandOutput>;
71
72
  deleteMetricStream(args: DeleteMetricStreamCommandInput, cb: (err: any, data?: DeleteMetricStreamCommandOutput) => void): void;
72
73
  deleteMetricStream(args: DeleteMetricStreamCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteMetricStreamCommandOutput) => void): void;
74
+ /**
75
+ * @see {@link DescribeAlarmContributorsCommand}
76
+ */
77
+ describeAlarmContributors(args: DescribeAlarmContributorsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeAlarmContributorsCommandOutput>;
78
+ describeAlarmContributors(args: DescribeAlarmContributorsCommandInput, cb: (err: any, data?: DescribeAlarmContributorsCommandOutput) => void): void;
79
+ describeAlarmContributors(args: DescribeAlarmContributorsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeAlarmContributorsCommandOutput) => void): void;
73
80
  /**
74
81
  * @see {@link DescribeAlarmHistoryCommand}
75
82
  */
@@ -13,6 +13,7 @@ import { DeleteAnomalyDetectorCommandInput, DeleteAnomalyDetectorCommandOutput }
13
13
  import { DeleteDashboardsCommandInput, DeleteDashboardsCommandOutput } from "./commands/DeleteDashboardsCommand";
14
14
  import { DeleteInsightRulesCommandInput, DeleteInsightRulesCommandOutput } from "./commands/DeleteInsightRulesCommand";
15
15
  import { DeleteMetricStreamCommandInput, DeleteMetricStreamCommandOutput } from "./commands/DeleteMetricStreamCommand";
16
+ import { DescribeAlarmContributorsCommandInput, DescribeAlarmContributorsCommandOutput } from "./commands/DescribeAlarmContributorsCommand";
16
17
  import { DescribeAlarmHistoryCommandInput, DescribeAlarmHistoryCommandOutput } from "./commands/DescribeAlarmHistoryCommand";
17
18
  import { DescribeAlarmsCommandInput, DescribeAlarmsCommandOutput } from "./commands/DescribeAlarmsCommand";
18
19
  import { DescribeAlarmsForMetricCommandInput, DescribeAlarmsForMetricCommandOutput } from "./commands/DescribeAlarmsForMetricCommand";
@@ -52,11 +53,11 @@ export { __Client };
52
53
  /**
53
54
  * @public
54
55
  */
55
- export type ServiceInputTypes = DeleteAlarmsCommandInput | DeleteAnomalyDetectorCommandInput | DeleteDashboardsCommandInput | DeleteInsightRulesCommandInput | DeleteMetricStreamCommandInput | DescribeAlarmHistoryCommandInput | DescribeAlarmsCommandInput | DescribeAlarmsForMetricCommandInput | DescribeAnomalyDetectorsCommandInput | DescribeInsightRulesCommandInput | DisableAlarmActionsCommandInput | DisableInsightRulesCommandInput | EnableAlarmActionsCommandInput | EnableInsightRulesCommandInput | GetDashboardCommandInput | GetInsightRuleReportCommandInput | GetMetricDataCommandInput | GetMetricStatisticsCommandInput | GetMetricStreamCommandInput | GetMetricWidgetImageCommandInput | ListDashboardsCommandInput | ListManagedInsightRulesCommandInput | ListMetricStreamsCommandInput | ListMetricsCommandInput | ListTagsForResourceCommandInput | PutAnomalyDetectorCommandInput | PutCompositeAlarmCommandInput | PutDashboardCommandInput | PutInsightRuleCommandInput | PutManagedInsightRulesCommandInput | PutMetricAlarmCommandInput | PutMetricDataCommandInput | PutMetricStreamCommandInput | SetAlarmStateCommandInput | StartMetricStreamsCommandInput | StopMetricStreamsCommandInput | TagResourceCommandInput | UntagResourceCommandInput;
56
+ export type ServiceInputTypes = DeleteAlarmsCommandInput | DeleteAnomalyDetectorCommandInput | DeleteDashboardsCommandInput | DeleteInsightRulesCommandInput | DeleteMetricStreamCommandInput | DescribeAlarmContributorsCommandInput | DescribeAlarmHistoryCommandInput | DescribeAlarmsCommandInput | DescribeAlarmsForMetricCommandInput | DescribeAnomalyDetectorsCommandInput | DescribeInsightRulesCommandInput | DisableAlarmActionsCommandInput | DisableInsightRulesCommandInput | EnableAlarmActionsCommandInput | EnableInsightRulesCommandInput | GetDashboardCommandInput | GetInsightRuleReportCommandInput | GetMetricDataCommandInput | GetMetricStatisticsCommandInput | GetMetricStreamCommandInput | GetMetricWidgetImageCommandInput | ListDashboardsCommandInput | ListManagedInsightRulesCommandInput | ListMetricStreamsCommandInput | ListMetricsCommandInput | ListTagsForResourceCommandInput | PutAnomalyDetectorCommandInput | PutCompositeAlarmCommandInput | PutDashboardCommandInput | PutInsightRuleCommandInput | PutManagedInsightRulesCommandInput | PutMetricAlarmCommandInput | PutMetricDataCommandInput | PutMetricStreamCommandInput | SetAlarmStateCommandInput | StartMetricStreamsCommandInput | StopMetricStreamsCommandInput | TagResourceCommandInput | UntagResourceCommandInput;
56
57
  /**
57
58
  * @public
58
59
  */
59
- export type ServiceOutputTypes = DeleteAlarmsCommandOutput | DeleteAnomalyDetectorCommandOutput | DeleteDashboardsCommandOutput | DeleteInsightRulesCommandOutput | DeleteMetricStreamCommandOutput | DescribeAlarmHistoryCommandOutput | DescribeAlarmsCommandOutput | DescribeAlarmsForMetricCommandOutput | DescribeAnomalyDetectorsCommandOutput | DescribeInsightRulesCommandOutput | DisableAlarmActionsCommandOutput | DisableInsightRulesCommandOutput | EnableAlarmActionsCommandOutput | EnableInsightRulesCommandOutput | GetDashboardCommandOutput | GetInsightRuleReportCommandOutput | GetMetricDataCommandOutput | GetMetricStatisticsCommandOutput | GetMetricStreamCommandOutput | GetMetricWidgetImageCommandOutput | ListDashboardsCommandOutput | ListManagedInsightRulesCommandOutput | ListMetricStreamsCommandOutput | ListMetricsCommandOutput | ListTagsForResourceCommandOutput | PutAnomalyDetectorCommandOutput | PutCompositeAlarmCommandOutput | PutDashboardCommandOutput | PutInsightRuleCommandOutput | PutManagedInsightRulesCommandOutput | PutMetricAlarmCommandOutput | PutMetricDataCommandOutput | PutMetricStreamCommandOutput | SetAlarmStateCommandOutput | StartMetricStreamsCommandOutput | StopMetricStreamsCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput;
60
+ export type ServiceOutputTypes = DeleteAlarmsCommandOutput | DeleteAnomalyDetectorCommandOutput | DeleteDashboardsCommandOutput | DeleteInsightRulesCommandOutput | DeleteMetricStreamCommandOutput | DescribeAlarmContributorsCommandOutput | DescribeAlarmHistoryCommandOutput | DescribeAlarmsCommandOutput | DescribeAlarmsForMetricCommandOutput | DescribeAnomalyDetectorsCommandOutput | DescribeInsightRulesCommandOutput | DisableAlarmActionsCommandOutput | DisableInsightRulesCommandOutput | EnableAlarmActionsCommandOutput | EnableInsightRulesCommandOutput | GetDashboardCommandOutput | GetInsightRuleReportCommandOutput | GetMetricDataCommandOutput | GetMetricStatisticsCommandOutput | GetMetricStreamCommandOutput | GetMetricWidgetImageCommandOutput | ListDashboardsCommandOutput | ListManagedInsightRulesCommandOutput | ListMetricStreamsCommandOutput | ListMetricsCommandOutput | ListTagsForResourceCommandOutput | PutAnomalyDetectorCommandOutput | PutCompositeAlarmCommandOutput | PutDashboardCommandOutput | PutInsightRuleCommandOutput | PutManagedInsightRulesCommandOutput | PutMetricAlarmCommandOutput | PutMetricDataCommandOutput | PutMetricStreamCommandOutput | SetAlarmStateCommandOutput | StartMetricStreamsCommandOutput | StopMetricStreamsCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput;
60
61
  /**
61
62
  * @public
62
63
  */
@@ -0,0 +1,89 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { CloudWatchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchClient";
4
+ import { DescribeAlarmContributorsInput, DescribeAlarmContributorsOutput } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link DescribeAlarmContributorsCommand}.
14
+ */
15
+ export interface DescribeAlarmContributorsCommandInput extends DescribeAlarmContributorsInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DescribeAlarmContributorsCommand}.
21
+ */
22
+ export interface DescribeAlarmContributorsCommandOutput extends DescribeAlarmContributorsOutput, __MetadataBearer {
23
+ }
24
+ declare const DescribeAlarmContributorsCommand_base: {
25
+ new (input: DescribeAlarmContributorsCommandInput): import("@smithy/smithy-client").CommandImpl<DescribeAlarmContributorsCommandInput, DescribeAlarmContributorsCommandOutput, CloudWatchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: DescribeAlarmContributorsCommandInput): import("@smithy/smithy-client").CommandImpl<DescribeAlarmContributorsCommandInput, DescribeAlarmContributorsCommandOutput, CloudWatchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Returns the information of the current alarm contributors that are in <code>ALARM</code> state. This operation returns details about the individual time series that contribute to the alarm's state.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { CloudWatchClient, DescribeAlarmContributorsCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
35
+ * // const { CloudWatchClient, DescribeAlarmContributorsCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
36
+ * const client = new CloudWatchClient(config);
37
+ * const input = { // DescribeAlarmContributorsInput
38
+ * AlarmName: "STRING_VALUE", // required
39
+ * NextToken: "STRING_VALUE",
40
+ * };
41
+ * const command = new DescribeAlarmContributorsCommand(input);
42
+ * const response = await client.send(command);
43
+ * // { // DescribeAlarmContributorsOutput
44
+ * // AlarmContributors: [ // AlarmContributors // required
45
+ * // { // AlarmContributor
46
+ * // ContributorId: "STRING_VALUE", // required
47
+ * // ContributorAttributes: { // ContributorAttributes // required
48
+ * // "<keys>": "STRING_VALUE",
49
+ * // },
50
+ * // StateReason: "STRING_VALUE", // required
51
+ * // StateTransitionedTimestamp: new Date("TIMESTAMP"),
52
+ * // },
53
+ * // ],
54
+ * // NextToken: "STRING_VALUE",
55
+ * // };
56
+ *
57
+ * ```
58
+ *
59
+ * @param DescribeAlarmContributorsCommandInput - {@link DescribeAlarmContributorsCommandInput}
60
+ * @returns {@link DescribeAlarmContributorsCommandOutput}
61
+ * @see {@link DescribeAlarmContributorsCommandInput} for command's `input` shape.
62
+ * @see {@link DescribeAlarmContributorsCommandOutput} for command's `response` shape.
63
+ * @see {@link CloudWatchClientResolvedConfig | config} for CloudWatchClient's `config` shape.
64
+ *
65
+ * @throws {@link InvalidNextToken} (client fault)
66
+ * <p>The next token specified is invalid.</p>
67
+ *
68
+ * @throws {@link ResourceNotFoundException} (client fault)
69
+ * <p>The named resource does not exist.</p>
70
+ *
71
+ * @throws {@link CloudWatchServiceException}
72
+ * <p>Base exception class for all service exceptions from CloudWatch service.</p>
73
+ *
74
+ *
75
+ * @public
76
+ */
77
+ export declare class DescribeAlarmContributorsCommand extends DescribeAlarmContributorsCommand_base {
78
+ /** @internal type navigation helper, not in runtime. */
79
+ protected static __types: {
80
+ api: {
81
+ input: DescribeAlarmContributorsInput;
82
+ output: DescribeAlarmContributorsOutput;
83
+ };
84
+ sdk: {
85
+ input: DescribeAlarmContributorsCommandInput;
86
+ output: DescribeAlarmContributorsCommandOutput;
87
+ };
88
+ };
89
+ }
@@ -43,10 +43,11 @@ declare const DescribeAlarmHistoryCommand_base: {
43
43
  * const client = new CloudWatchClient(config);
44
44
  * const input = { // DescribeAlarmHistoryInput
45
45
  * AlarmName: "STRING_VALUE",
46
+ * AlarmContributorId: "STRING_VALUE",
46
47
  * AlarmTypes: [ // AlarmTypes
47
48
  * "CompositeAlarm" || "MetricAlarm",
48
49
  * ],
49
- * HistoryItemType: "ConfigurationUpdate" || "StateUpdate" || "Action",
50
+ * HistoryItemType: "ConfigurationUpdate" || "StateUpdate" || "Action" || "AlarmContributorStateUpdate" || "AlarmContributorAction",
50
51
  * StartDate: new Date("TIMESTAMP"),
51
52
  * EndDate: new Date("TIMESTAMP"),
52
53
  * MaxRecords: Number("int"),
@@ -59,11 +60,15 @@ declare const DescribeAlarmHistoryCommand_base: {
59
60
  * // AlarmHistoryItems: [ // AlarmHistoryItems
60
61
  * // { // AlarmHistoryItem
61
62
  * // AlarmName: "STRING_VALUE",
63
+ * // AlarmContributorId: "STRING_VALUE",
62
64
  * // AlarmType: "CompositeAlarm" || "MetricAlarm",
63
65
  * // Timestamp: new Date("TIMESTAMP"),
64
- * // HistoryItemType: "ConfigurationUpdate" || "StateUpdate" || "Action",
66
+ * // HistoryItemType: "ConfigurationUpdate" || "StateUpdate" || "Action" || "AlarmContributorStateUpdate" || "AlarmContributorAction",
65
67
  * // HistorySummary: "STRING_VALUE",
66
68
  * // HistoryData: "STRING_VALUE",
69
+ * // AlarmContributorAttributes: { // ContributorAttributes
70
+ * // "<keys>": "STRING_VALUE",
71
+ * // },
67
72
  * // },
68
73
  * // ],
69
74
  * // NextToken: "STRING_VALUE",
@@ -3,6 +3,7 @@ export * from "./DeleteAnomalyDetectorCommand";
3
3
  export * from "./DeleteDashboardsCommand";
4
4
  export * from "./DeleteInsightRulesCommand";
5
5
  export * from "./DeleteMetricStreamCommand";
6
+ export * from "./DescribeAlarmContributorsCommand";
6
7
  export * from "./DescribeAlarmHistoryCommand";
7
8
  export * from "./DescribeAlarmsCommand";
8
9
  export * from "./DescribeAlarmsForMetricCommand";
@@ -13,6 +13,32 @@ export declare const ActionsSuppressedBy: {
13
13
  * @public
14
14
  */
15
15
  export type ActionsSuppressedBy = (typeof ActionsSuppressedBy)[keyof typeof ActionsSuppressedBy];
16
+ /**
17
+ * <p>Represents an individual contributor to a multi-timeseries alarm, containing information about a specific time series and its contribution to the alarm's state.</p>
18
+ * @public
19
+ */
20
+ export interface AlarmContributor {
21
+ /**
22
+ * <p>The unique identifier for this alarm contributor.</p>
23
+ * @public
24
+ */
25
+ ContributorId: string | undefined;
26
+ /**
27
+ * <p>A map of attributes that describe the contributor, such as metric dimensions and other identifying characteristics.</p>
28
+ * @public
29
+ */
30
+ ContributorAttributes: Record<string, string> | undefined;
31
+ /**
32
+ * <p>An explanation for the contributor's current state, providing context about why it is in its current condition.</p>
33
+ * @public
34
+ */
35
+ StateReason: string | undefined;
36
+ /**
37
+ * <p>The timestamp when the contributor last transitioned to its current state.</p>
38
+ * @public
39
+ */
40
+ StateTransitionedTimestamp?: Date | undefined;
41
+ }
16
42
  /**
17
43
  * @public
18
44
  * @enum
@@ -31,6 +57,8 @@ export type AlarmType = (typeof AlarmType)[keyof typeof AlarmType];
31
57
  */
32
58
  export declare const HistoryItemType: {
33
59
  readonly Action: "Action";
60
+ readonly AlarmContributorAction: "AlarmContributorAction";
61
+ readonly AlarmContributorStateUpdate: "AlarmContributorStateUpdate";
34
62
  readonly ConfigurationUpdate: "ConfigurationUpdate";
35
63
  readonly StateUpdate: "StateUpdate";
36
64
  };
@@ -48,6 +76,11 @@ export interface AlarmHistoryItem {
48
76
  * @public
49
77
  */
50
78
  AlarmName?: string | undefined;
79
+ /**
80
+ * <p>The unique identifier of the alarm contributor associated with this history item, if applicable.</p>
81
+ * @public
82
+ */
83
+ AlarmContributorId?: string | undefined;
51
84
  /**
52
85
  * <p>The type of alarm, either metric alarm or composite alarm.</p>
53
86
  * @public
@@ -73,6 +106,11 @@ export interface AlarmHistoryItem {
73
106
  * @public
74
107
  */
75
108
  HistoryData?: string | undefined;
109
+ /**
110
+ * <p>A map of attributes that describe the alarm contributor associated with this history item, providing context about the contributor's characteristics at the time of the event.</p>
111
+ * @public
112
+ */
113
+ AlarmContributorAttributes?: Record<string, string> | undefined;
76
114
  }
77
115
  /**
78
116
  * <p>Specifies one range of days or times to exclude from use for training an anomaly
@@ -1113,6 +1151,48 @@ export interface DeleteMetricStreamInput {
1113
1151
  */
1114
1152
  export interface DeleteMetricStreamOutput {
1115
1153
  }
1154
+ /**
1155
+ * @public
1156
+ */
1157
+ export interface DescribeAlarmContributorsInput {
1158
+ /**
1159
+ * <p>The name of the alarm for which to retrieve contributor information.</p>
1160
+ * @public
1161
+ */
1162
+ AlarmName: string | undefined;
1163
+ /**
1164
+ * <p>The token returned by a previous call to indicate that there is more data available.</p>
1165
+ * @public
1166
+ */
1167
+ NextToken?: string | undefined;
1168
+ }
1169
+ /**
1170
+ * @public
1171
+ */
1172
+ export interface DescribeAlarmContributorsOutput {
1173
+ /**
1174
+ * <p>A list of alarm contributors that provide details about the individual time series contributing to the alarm's state.</p>
1175
+ * @public
1176
+ */
1177
+ AlarmContributors: AlarmContributor[] | undefined;
1178
+ /**
1179
+ * <p>The token that marks the start of the next batch of returned results.</p>
1180
+ * @public
1181
+ */
1182
+ NextToken?: string | undefined;
1183
+ }
1184
+ /**
1185
+ * <p>The next token specified is invalid.</p>
1186
+ * @public
1187
+ */
1188
+ export declare class InvalidNextToken extends __BaseException {
1189
+ readonly name: "InvalidNextToken";
1190
+ readonly $fault: "client";
1191
+ /**
1192
+ * @internal
1193
+ */
1194
+ constructor(opts: __ExceptionOptionType<InvalidNextToken, __BaseException>);
1195
+ }
1116
1196
  /**
1117
1197
  * @public
1118
1198
  * @enum
@@ -1134,6 +1214,11 @@ export interface DescribeAlarmHistoryInput {
1134
1214
  * @public
1135
1215
  */
1136
1216
  AlarmName?: string | undefined;
1217
+ /**
1218
+ * <p>The unique identifier of a specific alarm contributor to filter the alarm history results.</p>
1219
+ * @public
1220
+ */
1221
+ AlarmContributorId?: string | undefined;
1137
1222
  /**
1138
1223
  * <p>Use this parameter to specify whether you want the operation to return metric alarms
1139
1224
  * or composite alarms. If you omit this parameter, only metric alarms are returned.</p>
@@ -1190,18 +1275,6 @@ export interface DescribeAlarmHistoryOutput {
1190
1275
  */
1191
1276
  NextToken?: string | undefined;
1192
1277
  }
1193
- /**
1194
- * <p>The next token specified is invalid.</p>
1195
- * @public
1196
- */
1197
- export declare class InvalidNextToken extends __BaseException {
1198
- readonly name: "InvalidNextToken";
1199
- readonly $fault: "client";
1200
- /**
1201
- * @internal
1202
- */
1203
- constructor(opts: __ExceptionOptionType<InvalidNextToken, __BaseException>);
1204
- }
1205
1278
  /**
1206
1279
  * @public
1207
1280
  */
@@ -3648,7 +3721,7 @@ export interface PutInsightRuleInput {
3648
3721
  */
3649
3722
  Tags?: Tag[] | undefined;
3650
3723
  /**
3651
- * <p>Specify <code>true</code> to have this rule evalute log events after they have been transformed by
3724
+ * <p>Specify <code>true</code> to have this rule evaluate log events after they have been transformed by
3652
3725
  * <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html">Log transformation</a>. If you specify <code>true</code>, then the log events in log groups that have transformers will
3653
3726
  * be evaluated by Contributor Insights after being transformed. Log groups that don't have
3654
3727
  * transformers will still have their original log events evaluated by Contributor Insights.</p>
@@ -5,6 +5,7 @@ import { DeleteAnomalyDetectorCommandInput, DeleteAnomalyDetectorCommandOutput }
5
5
  import { DeleteDashboardsCommandInput, DeleteDashboardsCommandOutput } from "../commands/DeleteDashboardsCommand";
6
6
  import { DeleteInsightRulesCommandInput, DeleteInsightRulesCommandOutput } from "../commands/DeleteInsightRulesCommand";
7
7
  import { DeleteMetricStreamCommandInput, DeleteMetricStreamCommandOutput } from "../commands/DeleteMetricStreamCommand";
8
+ import { DescribeAlarmContributorsCommandInput, DescribeAlarmContributorsCommandOutput } from "../commands/DescribeAlarmContributorsCommand";
8
9
  import { DescribeAlarmHistoryCommandInput, DescribeAlarmHistoryCommandOutput } from "../commands/DescribeAlarmHistoryCommand";
9
10
  import { DescribeAlarmsCommandInput, DescribeAlarmsCommandOutput } from "../commands/DescribeAlarmsCommand";
10
11
  import { DescribeAlarmsForMetricCommandInput, DescribeAlarmsForMetricCommandOutput } from "../commands/DescribeAlarmsForMetricCommand";
@@ -58,6 +59,10 @@ export declare const se_DeleteInsightRulesCommand: (input: DeleteInsightRulesCom
58
59
  * serializeAws_queryDeleteMetricStreamCommand
59
60
  */
60
61
  export declare const se_DeleteMetricStreamCommand: (input: DeleteMetricStreamCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
62
+ /**
63
+ * serializeAws_queryDescribeAlarmContributorsCommand
64
+ */
65
+ export declare const se_DescribeAlarmContributorsCommand: (input: DescribeAlarmContributorsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
61
66
  /**
62
67
  * serializeAws_queryDescribeAlarmHistoryCommand
63
68
  */
@@ -210,6 +215,10 @@ export declare const de_DeleteInsightRulesCommand: (output: __HttpResponse, cont
210
215
  * deserializeAws_queryDeleteMetricStreamCommand
211
216
  */
212
217
  export declare const de_DeleteMetricStreamCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteMetricStreamCommandOutput>;
218
+ /**
219
+ * deserializeAws_queryDescribeAlarmContributorsCommand
220
+ */
221
+ export declare const de_DescribeAlarmContributorsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeAlarmContributorsCommandOutput>;
213
222
  /**
214
223
  * deserializeAws_queryDescribeAlarmHistoryCommand
215
224
  */
@@ -20,6 +20,10 @@ import {
20
20
  DeleteMetricStreamCommandInput,
21
21
  DeleteMetricStreamCommandOutput,
22
22
  } from "./commands/DeleteMetricStreamCommand";
23
+ import {
24
+ DescribeAlarmContributorsCommandInput,
25
+ DescribeAlarmContributorsCommandOutput,
26
+ } from "./commands/DescribeAlarmContributorsCommand";
23
27
  import {
24
28
  DescribeAlarmHistoryCommandInput,
25
29
  DescribeAlarmHistoryCommandOutput,
@@ -219,6 +223,19 @@ export interface CloudWatch {
219
223
  options: __HttpHandlerOptions,
220
224
  cb: (err: any, data?: DeleteMetricStreamCommandOutput) => void
221
225
  ): void;
226
+ describeAlarmContributors(
227
+ args: DescribeAlarmContributorsCommandInput,
228
+ options?: __HttpHandlerOptions
229
+ ): Promise<DescribeAlarmContributorsCommandOutput>;
230
+ describeAlarmContributors(
231
+ args: DescribeAlarmContributorsCommandInput,
232
+ cb: (err: any, data?: DescribeAlarmContributorsCommandOutput) => void
233
+ ): void;
234
+ describeAlarmContributors(
235
+ args: DescribeAlarmContributorsCommandInput,
236
+ options: __HttpHandlerOptions,
237
+ cb: (err: any, data?: DescribeAlarmContributorsCommandOutput) => void
238
+ ): void;
222
239
  describeAlarmHistory(): Promise<DescribeAlarmHistoryCommandOutput>;
223
240
  describeAlarmHistory(
224
241
  args: DescribeAlarmHistoryCommandInput,
@@ -69,6 +69,10 @@ import {
69
69
  DeleteMetricStreamCommandInput,
70
70
  DeleteMetricStreamCommandOutput,
71
71
  } from "./commands/DeleteMetricStreamCommand";
72
+ import {
73
+ DescribeAlarmContributorsCommandInput,
74
+ DescribeAlarmContributorsCommandOutput,
75
+ } from "./commands/DescribeAlarmContributorsCommand";
72
76
  import {
73
77
  DescribeAlarmHistoryCommandInput,
74
78
  DescribeAlarmHistoryCommandOutput,
@@ -214,6 +218,7 @@ export type ServiceInputTypes =
214
218
  | DeleteDashboardsCommandInput
215
219
  | DeleteInsightRulesCommandInput
216
220
  | DeleteMetricStreamCommandInput
221
+ | DescribeAlarmContributorsCommandInput
217
222
  | DescribeAlarmHistoryCommandInput
218
223
  | DescribeAlarmsCommandInput
219
224
  | DescribeAlarmsForMetricCommandInput
@@ -253,6 +258,7 @@ export type ServiceOutputTypes =
253
258
  | DeleteDashboardsCommandOutput
254
259
  | DeleteInsightRulesCommandOutput
255
260
  | DeleteMetricStreamCommandOutput
261
+ | DescribeAlarmContributorsCommandOutput
256
262
  | DescribeAlarmHistoryCommandOutput
257
263
  | DescribeAlarmsCommandOutput
258
264
  | DescribeAlarmsForMetricCommandOutput
@@ -0,0 +1,51 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ CloudWatchClientResolvedConfig,
5
+ ServiceInputTypes,
6
+ ServiceOutputTypes,
7
+ } from "../CloudWatchClient";
8
+ import {
9
+ DescribeAlarmContributorsInput,
10
+ DescribeAlarmContributorsOutput,
11
+ } from "../models/models_0";
12
+ export { __MetadataBearer };
13
+ export { $Command };
14
+ export interface DescribeAlarmContributorsCommandInput
15
+ extends DescribeAlarmContributorsInput {}
16
+ export interface DescribeAlarmContributorsCommandOutput
17
+ extends DescribeAlarmContributorsOutput,
18
+ __MetadataBearer {}
19
+ declare const DescribeAlarmContributorsCommand_base: {
20
+ new (
21
+ input: DescribeAlarmContributorsCommandInput
22
+ ): import("@smithy/smithy-client").CommandImpl<
23
+ DescribeAlarmContributorsCommandInput,
24
+ DescribeAlarmContributorsCommandOutput,
25
+ CloudWatchClientResolvedConfig,
26
+ ServiceInputTypes,
27
+ ServiceOutputTypes
28
+ >;
29
+ new (
30
+ input: DescribeAlarmContributorsCommandInput
31
+ ): import("@smithy/smithy-client").CommandImpl<
32
+ DescribeAlarmContributorsCommandInput,
33
+ DescribeAlarmContributorsCommandOutput,
34
+ CloudWatchClientResolvedConfig,
35
+ ServiceInputTypes,
36
+ ServiceOutputTypes
37
+ >;
38
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
39
+ };
40
+ export declare class DescribeAlarmContributorsCommand extends DescribeAlarmContributorsCommand_base {
41
+ protected static __types: {
42
+ api: {
43
+ input: DescribeAlarmContributorsInput;
44
+ output: DescribeAlarmContributorsOutput;
45
+ };
46
+ sdk: {
47
+ input: DescribeAlarmContributorsCommandInput;
48
+ output: DescribeAlarmContributorsCommandOutput;
49
+ };
50
+ };
51
+ }
@@ -3,6 +3,7 @@ export * from "./DeleteAnomalyDetectorCommand";
3
3
  export * from "./DeleteDashboardsCommand";
4
4
  export * from "./DeleteInsightRulesCommand";
5
5
  export * from "./DeleteMetricStreamCommand";
6
+ export * from "./DescribeAlarmContributorsCommand";
6
7
  export * from "./DescribeAlarmHistoryCommand";
7
8
  export * from "./DescribeAlarmsCommand";
8
9
  export * from "./DescribeAlarmsForMetricCommand";
@@ -7,6 +7,12 @@ export declare const ActionsSuppressedBy: {
7
7
  };
8
8
  export type ActionsSuppressedBy =
9
9
  (typeof ActionsSuppressedBy)[keyof typeof ActionsSuppressedBy];
10
+ export interface AlarmContributor {
11
+ ContributorId: string | undefined;
12
+ ContributorAttributes: Record<string, string> | undefined;
13
+ StateReason: string | undefined;
14
+ StateTransitionedTimestamp?: Date | undefined;
15
+ }
10
16
  export declare const AlarmType: {
11
17
  readonly CompositeAlarm: "CompositeAlarm";
12
18
  readonly MetricAlarm: "MetricAlarm";
@@ -14,6 +20,8 @@ export declare const AlarmType: {
14
20
  export type AlarmType = (typeof AlarmType)[keyof typeof AlarmType];
15
21
  export declare const HistoryItemType: {
16
22
  readonly Action: "Action";
23
+ readonly AlarmContributorAction: "AlarmContributorAction";
24
+ readonly AlarmContributorStateUpdate: "AlarmContributorStateUpdate";
17
25
  readonly ConfigurationUpdate: "ConfigurationUpdate";
18
26
  readonly StateUpdate: "StateUpdate";
19
27
  };
@@ -21,11 +29,13 @@ export type HistoryItemType =
21
29
  (typeof HistoryItemType)[keyof typeof HistoryItemType];
22
30
  export interface AlarmHistoryItem {
23
31
  AlarmName?: string | undefined;
32
+ AlarmContributorId?: string | undefined;
24
33
  AlarmType?: AlarmType | undefined;
25
34
  Timestamp?: Date | undefined;
26
35
  HistoryItemType?: HistoryItemType | undefined;
27
36
  HistorySummary?: string | undefined;
28
37
  HistoryData?: string | undefined;
38
+ AlarmContributorAttributes?: Record<string, string> | undefined;
29
39
  }
30
40
  export interface Range {
31
41
  StartTime: Date | undefined;
@@ -298,6 +308,19 @@ export interface DeleteMetricStreamInput {
298
308
  Name: string | undefined;
299
309
  }
300
310
  export interface DeleteMetricStreamOutput {}
311
+ export interface DescribeAlarmContributorsInput {
312
+ AlarmName: string | undefined;
313
+ NextToken?: string | undefined;
314
+ }
315
+ export interface DescribeAlarmContributorsOutput {
316
+ AlarmContributors: AlarmContributor[] | undefined;
317
+ NextToken?: string | undefined;
318
+ }
319
+ export declare class InvalidNextToken extends __BaseException {
320
+ readonly name: "InvalidNextToken";
321
+ readonly $fault: "client";
322
+ constructor(opts: __ExceptionOptionType<InvalidNextToken, __BaseException>);
323
+ }
301
324
  export declare const ScanBy: {
302
325
  readonly TIMESTAMP_ASCENDING: "TimestampAscending";
303
326
  readonly TIMESTAMP_DESCENDING: "TimestampDescending";
@@ -305,6 +328,7 @@ export declare const ScanBy: {
305
328
  export type ScanBy = (typeof ScanBy)[keyof typeof ScanBy];
306
329
  export interface DescribeAlarmHistoryInput {
307
330
  AlarmName?: string | undefined;
331
+ AlarmContributorId?: string | undefined;
308
332
  AlarmTypes?: AlarmType[] | undefined;
309
333
  HistoryItemType?: HistoryItemType | undefined;
310
334
  StartDate?: Date | undefined;
@@ -317,11 +341,6 @@ export interface DescribeAlarmHistoryOutput {
317
341
  AlarmHistoryItems?: AlarmHistoryItem[] | undefined;
318
342
  NextToken?: string | undefined;
319
343
  }
320
- export declare class InvalidNextToken extends __BaseException {
321
- readonly name: "InvalidNextToken";
322
- readonly $fault: "client";
323
- constructor(opts: __ExceptionOptionType<InvalidNextToken, __BaseException>);
324
- }
325
344
  export interface DescribeAlarmsInput {
326
345
  AlarmNames?: string[] | undefined;
327
346
  AlarmNamePrefix?: string | undefined;
@@ -23,6 +23,10 @@ import {
23
23
  DeleteMetricStreamCommandInput,
24
24
  DeleteMetricStreamCommandOutput,
25
25
  } from "../commands/DeleteMetricStreamCommand";
26
+ import {
27
+ DescribeAlarmContributorsCommandInput,
28
+ DescribeAlarmContributorsCommandOutput,
29
+ } from "../commands/DescribeAlarmContributorsCommand";
26
30
  import {
27
31
  DescribeAlarmHistoryCommandInput,
28
32
  DescribeAlarmHistoryCommandOutput,
@@ -175,6 +179,10 @@ export declare const se_DeleteMetricStreamCommand: (
175
179
  input: DeleteMetricStreamCommandInput,
176
180
  context: __SerdeContext
177
181
  ) => Promise<__HttpRequest>;
182
+ export declare const se_DescribeAlarmContributorsCommand: (
183
+ input: DescribeAlarmContributorsCommandInput,
184
+ context: __SerdeContext
185
+ ) => Promise<__HttpRequest>;
178
186
  export declare const se_DescribeAlarmHistoryCommand: (
179
187
  input: DescribeAlarmHistoryCommandInput,
180
188
  context: __SerdeContext
@@ -327,6 +335,10 @@ export declare const de_DeleteMetricStreamCommand: (
327
335
  output: __HttpResponse,
328
336
  context: __SerdeContext
329
337
  ) => Promise<DeleteMetricStreamCommandOutput>;
338
+ export declare const de_DescribeAlarmContributorsCommand: (
339
+ output: __HttpResponse,
340
+ context: __SerdeContext
341
+ ) => Promise<DescribeAlarmContributorsCommandOutput>;
330
342
  export declare const de_DescribeAlarmHistoryCommand: (
331
343
  output: __HttpResponse,
332
344
  context: __SerdeContext
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.883.0",
4
+ "version": "3.885.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-cloudwatch",