@aws-sdk/client-cloudwatch 3.1167.0 → 3.1168.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 (37) hide show
  1. package/README.md +28 -0
  2. package/dist-cjs/index.js +123 -1
  3. package/dist-es/CloudWatch.js +10 -0
  4. package/dist-es/commands/DeleteMetricDataQueryDefinitionCommand.js +4 -0
  5. package/dist-es/commands/GetMetricDataQueryDefinitionCommand.js +4 -0
  6. package/dist-es/commands/ListMetricDataQueryDefinitionsCommand.js +4 -0
  7. package/dist-es/commands/PutMetricDataQueryDefinitionCommand.js +4 -0
  8. package/dist-es/commands/index.js +4 -0
  9. package/dist-es/models/enums.js +5 -0
  10. package/dist-es/pagination/ListMetricDataQueryDefinitionsPaginator.js +4 -0
  11. package/dist-es/pagination/index.js +1 -0
  12. package/dist-es/schemas/schemas_0.js +79 -0
  13. package/dist-types/CloudWatch.d.ts +36 -0
  14. package/dist-types/CloudWatchClient.d.ts +6 -2
  15. package/dist-types/commands/DeleteMetricDataQueryDefinitionCommand.d.ts +78 -0
  16. package/dist-types/commands/GetMetricDataQueryDefinitionCommand.d.ts +87 -0
  17. package/dist-types/commands/ListMetricDataQueryDefinitionsCommand.d.ts +91 -0
  18. package/dist-types/commands/PutMetricDataQueryDefinitionCommand.d.ts +118 -0
  19. package/dist-types/commands/index.d.ts +4 -0
  20. package/dist-types/models/enums.d.ts +13 -0
  21. package/dist-types/models/models_0.d.ts +264 -1
  22. package/dist-types/pagination/ListMetricDataQueryDefinitionsPaginator.d.ts +7 -0
  23. package/dist-types/pagination/index.d.ts +1 -0
  24. package/dist-types/schemas/schemas_0.d.ts +13 -0
  25. package/dist-types/ts3.4/CloudWatch.d.ts +76 -0
  26. package/dist-types/ts3.4/CloudWatchClient.d.ts +24 -0
  27. package/dist-types/ts3.4/commands/DeleteMetricDataQueryDefinitionCommand.d.ts +42 -0
  28. package/dist-types/ts3.4/commands/GetMetricDataQueryDefinitionCommand.d.ts +42 -0
  29. package/dist-types/ts3.4/commands/ListMetricDataQueryDefinitionsCommand.d.ts +42 -0
  30. package/dist-types/ts3.4/commands/PutMetricDataQueryDefinitionCommand.d.ts +42 -0
  31. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  32. package/dist-types/ts3.4/models/enums.d.ts +6 -0
  33. package/dist-types/ts3.4/models/models_0.d.ts +47 -0
  34. package/dist-types/ts3.4/pagination/ListMetricDataQueryDefinitionsPaginator.d.ts +11 -0
  35. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  36. package/dist-types/ts3.4/schemas/schemas_0.d.ts +13 -0
  37. package/package.json +1 -1
@@ -120,6 +120,9 @@ const _DIROi = "DisableInsightRulesOutput";
120
120
  const _DIRe = "DescribeInsightRules";
121
121
  const _DIRi = "DisableInsightRules";
122
122
  const _DIa = "DatasetId";
123
+ const _DMDQD = "DeleteMetricDataQueryDefinition";
124
+ const _DMDQDI = "DeleteMetricDataQueryDefinitionInput";
125
+ const _DMDQDO = "DeleteMetricDataQueryDefinitionOutput";
123
126
  const _DMS = "DeleteMetricStream";
124
127
  const _DMSI = "DeleteMetricStreamInput";
125
128
  const _DMSO = "DeleteMetricStreamOutput";
@@ -187,6 +190,9 @@ const _GIRRO = "GetInsightRuleReportOutput";
187
190
  const _GMD = "GetMetricData";
188
191
  const _GMDI = "GetMetricDataInput";
189
192
  const _GMDO = "GetMetricDataOutput";
193
+ const _GMDQD = "GetMetricDataQueryDefinition";
194
+ const _GMDQDI = "GetMetricDataQueryDefinitionInput";
195
+ const _GMDQDO = "GetMetricDataQueryDefinitionOutput";
190
196
  const _GMS = "GetMetricStatistics";
191
197
  const _GMSI = "GetMetricStatisticsInput";
192
198
  const _GMSIe = "GetMetricStreamInput";
@@ -225,6 +231,7 @@ const _IRMDn = "InsightRuleMetricDatapoints";
225
231
  const _IRn = "InsightRule";
226
232
  const _ISF = "InternalServiceFault";
227
233
  const _ITK = "IncludedTagKeys";
234
+ const _It = "Items";
228
235
  const _K = "Keys";
229
236
  const _KA = "KeyAttributes";
230
237
  const _KADE = "KmsAccessDeniedException";
@@ -246,6 +253,9 @@ const _LEE = "LimitExceededException";
246
253
  const _LEF = "LimitExceededFault";
247
254
  const _LGI = "LogGroupIdentifiers";
248
255
  const _LM = "LastModified";
256
+ const _LMDQD = "ListMetricDataQueryDefinitions";
257
+ const _LMDQDI = "ListMetricDataQueryDefinitionsInput";
258
+ const _LMDQDO = "ListMetricDataQueryDefinitionsOutput";
249
259
  const _LMI = "ListMetricsInput";
250
260
  const _LMIR = "ListManagedInsightRules";
251
261
  const _LMIRI = "ListManagedInsightRulesInput";
@@ -269,6 +279,8 @@ const _MCC = "MaxContributorCount";
269
279
  const _MCV = "MaxContributorValue";
270
280
  const _MD = "MetricData";
271
281
  const _MDQ = "MetricDataQueries";
282
+ const _MDQDS = "MetricDataQueryDefinitionSummary";
283
+ const _MDQDSe = "MetricDataQueryDefinitionSummaries";
272
284
  const _MDQe = "MetricDataQuery";
273
285
  const _MDR = "MetricDataResults";
274
286
  const _MDRM = "MetricDataResultMessages";
@@ -277,6 +289,7 @@ const _MDa = "MaxDatapoints";
277
289
  const _MDe = "MetricDatapoints";
278
290
  const _MDes = "MessageData";
279
291
  const _MDet = "MetricDatum";
292
+ const _MES = "MetricExpressionString";
280
293
  const _MMAD = "MetricMathAnomalyDetector";
281
294
  const _MN = "MetricName";
282
295
  const _MNe = "MetricNames";
@@ -342,6 +355,9 @@ const _PMA = "PutMetricAlarm";
342
355
  const _PMAI = "PutMetricAlarmInput";
343
356
  const _PMD = "PutMetricData";
344
357
  const _PMDI = "PutMetricDataInput";
358
+ const _PMDQD = "PutMetricDataQueryDefinition";
359
+ const _PMDQDI = "PutMetricDataQueryDefinitionInput";
360
+ const _PMDQDO = "PutMetricDataQueryDefinitionOutput";
345
361
  const _PMIR = "PutManagedInsightRules";
346
362
  const _PMIRI = "PutManagedInsightRulesInput";
347
363
  const _PMIRO = "PutManagedInsightRulesOutput";
@@ -352,6 +368,7 @@ const _POAN = "ParentsOfAlarmName";
352
368
  const _PP = "PendingPeriod";
353
369
  const _PQLC = "PromQLCriteria";
354
370
  const _PS = "PeriodicSpikes";
371
+ const _Pa = "Path";
355
372
  const _Q = "Query";
356
373
  const _QARN = "QueryARN";
357
374
  const _QRTA = "QueryResultsToAlarm";
@@ -437,6 +454,7 @@ const _Tag = "Tag";
437
454
  const _Th = "Threshold";
438
455
  const _Ti = "Timezone";
439
456
  const _Tim = "Timestamps";
457
+ const _Ty = "Type";
440
458
  const _U = "Unit";
441
459
  const _UA = "UpdatedAt";
442
460
  const _UC = "UniqueContributors";
@@ -589,6 +607,7 @@ export const errorTypeRegistries = [
589
607
  _s_registry,
590
608
  n0_registry,
591
609
  ];
610
+ var MetricExpressionString = [0, n0, _MES, 8, 0];
592
611
  export var ActionConfiguration$ = [3, n0, _AC,
593
612
  0,
594
613
  [_ATP],
@@ -709,6 +728,16 @@ export var DeleteInsightRulesOutput$ = [3, n0, _DIRO,
709
728
  [_F],
710
729
  [() => BatchFailures]
711
730
  ];
731
+ export var DeleteMetricDataQueryDefinitionInput$ = [3, n0, _DMDQDI,
732
+ 0,
733
+ [_I],
734
+ [0], 1
735
+ ];
736
+ export var DeleteMetricDataQueryDefinitionOutput$ = [3, n0, _DMDQDO,
737
+ 0,
738
+ [],
739
+ []
740
+ ];
712
741
  export var DeleteMetricStreamInput$ = [3, n0, _DMSI,
713
742
  0,
714
743
  [_Na],
@@ -899,6 +928,16 @@ export var GetMetricDataOutput$ = [3, n0, _GMDO,
899
928
  [_MDR, _NT, _Mes],
900
929
  [() => MetricDataResults, 0, () => MetricDataResultMessages]
901
930
  ];
931
+ export var GetMetricDataQueryDefinitionInput$ = [3, n0, _GMDQDI,
932
+ 0,
933
+ [_I],
934
+ [0], 1
935
+ ];
936
+ export var GetMetricDataQueryDefinitionOutput$ = [3, n0, _GMDQDO,
937
+ 0,
938
+ [_I, _Ar, _Pa, _Ex, _Ty, _CAr, _UA],
939
+ [0, 0, 0, [() => MetricExpressionString, 0], 0, 4, 4], 7
940
+ ];
902
941
  export var GetMetricStatisticsInput$ = [3, n0, _GMSI,
903
942
  0,
904
943
  [_N, _MN, _ST, _ET, _P, _D, _Stat, _ES, _U],
@@ -1004,6 +1043,16 @@ export var ListManagedInsightRulesOutput$ = [3, n0, _LMIRO,
1004
1043
  [_MRana, _NT],
1005
1044
  [() => ManagedRuleDescriptions, 0]
1006
1045
  ];
1046
+ export var ListMetricDataQueryDefinitionsInput$ = [3, n0, _LMDQDI,
1047
+ 0,
1048
+ [_MRa, _NT],
1049
+ [1, 0]
1050
+ ];
1051
+ export var ListMetricDataQueryDefinitionsOutput$ = [3, n0, _LMDQDO,
1052
+ 0,
1053
+ [_It, _NT],
1054
+ [() => MetricDataQueryDefinitionSummaries, 0], 1
1055
+ ];
1007
1056
  export var ListMetricsInput$ = [3, n0, _LMI,
1008
1057
  0,
1009
1058
  [_N, _MN, _D, _NT, _RAe, _ILA, _OA],
@@ -1079,6 +1128,11 @@ export var MetricDataQuery$ = [3, n0, _MDQe,
1079
1128
  [_I, _MSe, _Ex, _L, _RD, _P, _AI],
1080
1129
  [0, () => MetricStat$, 0, 0, 2, 1, 0], 1
1081
1130
  ];
1131
+ export var MetricDataQueryDefinitionSummary$ = [3, n0, _MDQDS,
1132
+ 0,
1133
+ [_I, _Pa, _Ty, _UA],
1134
+ [0, 0, 0, 4], 3
1135
+ ];
1082
1136
  export var MetricDataResult$ = [3, n0, _MDRe,
1083
1137
  0,
1084
1138
  [_I, _L, _Tim, _Va, _SCta, _Mes],
@@ -1199,6 +1253,16 @@ export var PutMetricDataInput$ = [3, n0, _PMDI,
1199
1253
  [_N, _MD, _EMD, _SEV],
1200
1254
  [0, () => MetricData, () => EntityMetricDataList, 2], 1
1201
1255
  ];
1256
+ export var PutMetricDataQueryDefinitionInput$ = [3, n0, _PMDQDI,
1257
+ 0,
1258
+ [_Pa, _Ex, _Ty, _I, _Ta],
1259
+ [0, [() => MetricExpressionString, 0], 0, 0, () => TagList], 3
1260
+ ];
1261
+ export var PutMetricDataQueryDefinitionOutput$ = [3, n0, _PMDQDO,
1262
+ 0,
1263
+ [_I, _Ar, _Pa, _Ex, _Ty, _CAr, _UA],
1264
+ [0, 0, 0, [() => MetricExpressionString, 0], 0, 4, 4], 7
1265
+ ];
1202
1266
  export var PutMetricStreamInput$ = [3, n0, _PMSI,
1203
1267
  0,
1204
1268
  [_Na, _FA, _RAo, _OF, _IF, _EF, _Ta, _SCt, _ILAM],
@@ -1444,6 +1508,9 @@ var MetricData = [1, n0, _MD,
1444
1508
  var MetricDataQueries = [1, n0, _MDQ,
1445
1509
  0, () => MetricDataQuery$
1446
1510
  ];
1511
+ var MetricDataQueryDefinitionSummaries = [1, n0, _MDQDSe,
1512
+ 0, () => MetricDataQueryDefinitionSummary$
1513
+ ];
1447
1514
  var MetricDataResultMessages = [1, n0, _MDRM,
1448
1515
  0, () => MessageData$
1449
1516
  ];
@@ -1521,6 +1588,9 @@ export var DeleteDashboards$ = [9, n0, _DD,
1521
1588
  export var DeleteInsightRules$ = [9, n0, _DIR,
1522
1589
  0, () => DeleteInsightRulesInput$, () => DeleteInsightRulesOutput$
1523
1590
  ];
1591
+ export var DeleteMetricDataQueryDefinition$ = [9, n0, _DMDQD,
1592
+ 2, () => DeleteMetricDataQueryDefinitionInput$, () => DeleteMetricDataQueryDefinitionOutput$
1593
+ ];
1524
1594
  export var DeleteMetricStream$ = [9, n0, _DMS,
1525
1595
  0, () => DeleteMetricStreamInput$, () => DeleteMetricStreamOutput$
1526
1596
  ];
@@ -1575,6 +1645,9 @@ export var GetInsightRuleReport$ = [9, n0, _GIRR,
1575
1645
  export var GetMetricData$ = [9, n0, _GMD,
1576
1646
  0, () => GetMetricDataInput$, () => GetMetricDataOutput$
1577
1647
  ];
1648
+ export var GetMetricDataQueryDefinition$ = [9, n0, _GMDQD,
1649
+ 0, () => GetMetricDataQueryDefinitionInput$, () => GetMetricDataQueryDefinitionOutput$
1650
+ ];
1578
1651
  export var GetMetricStatistics$ = [9, n0, _GMS,
1579
1652
  0, () => GetMetricStatisticsInput$, () => GetMetricStatisticsOutput$
1580
1653
  ];
@@ -1599,6 +1672,9 @@ export var ListDashboards$ = [9, n0, _LD,
1599
1672
  export var ListManagedInsightRules$ = [9, n0, _LMIR,
1600
1673
  0, () => ListManagedInsightRulesInput$, () => ListManagedInsightRulesOutput$
1601
1674
  ];
1675
+ export var ListMetricDataQueryDefinitions$ = [9, n0, _LMDQD,
1676
+ 0, () => ListMetricDataQueryDefinitionsInput$, () => ListMetricDataQueryDefinitionsOutput$
1677
+ ];
1602
1678
  export var ListMetrics$ = [9, n0, _LMi,
1603
1679
  0, () => ListMetricsInput$, () => ListMetricsOutput$
1604
1680
  ];
@@ -1635,6 +1711,9 @@ export var PutMetricAlarm$ = [9, n0, _PMA,
1635
1711
  export var PutMetricData$ = [9, n0, _PMD,
1636
1712
  0, () => PutMetricDataInput$, () => __Unit
1637
1713
  ];
1714
+ export var PutMetricDataQueryDefinition$ = [9, n0, _PMDQD,
1715
+ 2, () => PutMetricDataQueryDefinitionInput$, () => PutMetricDataQueryDefinitionOutput$
1716
+ ];
1638
1717
  export var PutMetricStream$ = [9, n0, _PMS,
1639
1718
  0, () => PutMetricStreamInput$, () => PutMetricStreamOutput$
1640
1719
  ];
@@ -8,6 +8,7 @@ import { type DeleteAlarmsCommandInput, type DeleteAlarmsCommandOutput } from ".
8
8
  import { type DeleteAnomalyDetectorCommandInput, type DeleteAnomalyDetectorCommandOutput } from "./commands/DeleteAnomalyDetectorCommand";
9
9
  import { type DeleteDashboardsCommandInput, type DeleteDashboardsCommandOutput } from "./commands/DeleteDashboardsCommand";
10
10
  import { type DeleteInsightRulesCommandInput, type DeleteInsightRulesCommandOutput } from "./commands/DeleteInsightRulesCommand";
11
+ import { type DeleteMetricDataQueryDefinitionCommandInput, type DeleteMetricDataQueryDefinitionCommandOutput } from "./commands/DeleteMetricDataQueryDefinitionCommand";
11
12
  import { type DeleteMetricStreamCommandInput, type DeleteMetricStreamCommandOutput } from "./commands/DeleteMetricStreamCommand";
12
13
  import { type DeleteResourceMetricsConfigurationCommandInput, type DeleteResourceMetricsConfigurationCommandOutput } from "./commands/DeleteResourceMetricsConfigurationCommand";
13
14
  import { type DescribeAlarmContributorsCommandInput, type DescribeAlarmContributorsCommandOutput } from "./commands/DescribeAlarmContributorsCommand";
@@ -26,6 +27,7 @@ import { type GetDashboardCommandInput, type GetDashboardCommandOutput } from ".
26
27
  import { type GetDatasetCommandInput, type GetDatasetCommandOutput } from "./commands/GetDatasetCommand";
27
28
  import { type GetInsightRuleReportCommandInput, type GetInsightRuleReportCommandOutput } from "./commands/GetInsightRuleReportCommand";
28
29
  import { type GetMetricDataCommandInput, type GetMetricDataCommandOutput } from "./commands/GetMetricDataCommand";
30
+ import { type GetMetricDataQueryDefinitionCommandInput, type GetMetricDataQueryDefinitionCommandOutput } from "./commands/GetMetricDataQueryDefinitionCommand";
29
31
  import { type GetMetricStatisticsCommandInput, type GetMetricStatisticsCommandOutput } from "./commands/GetMetricStatisticsCommand";
30
32
  import { type GetMetricStreamCommandInput, type GetMetricStreamCommandOutput } from "./commands/GetMetricStreamCommand";
31
33
  import { type GetMetricWidgetImageCommandInput, type GetMetricWidgetImageCommandOutput } from "./commands/GetMetricWidgetImageCommand";
@@ -34,6 +36,7 @@ import { type GetResourceMetricsConfigurationCommandInput, type GetResourceMetri
34
36
  import { type ListAlarmMuteRulesCommandInput, type ListAlarmMuteRulesCommandOutput } from "./commands/ListAlarmMuteRulesCommand";
35
37
  import { type ListDashboardsCommandInput, type ListDashboardsCommandOutput } from "./commands/ListDashboardsCommand";
36
38
  import { type ListManagedInsightRulesCommandInput, type ListManagedInsightRulesCommandOutput } from "./commands/ListManagedInsightRulesCommand";
39
+ import { type ListMetricDataQueryDefinitionsCommandInput, type ListMetricDataQueryDefinitionsCommandOutput } from "./commands/ListMetricDataQueryDefinitionsCommand";
37
40
  import { type ListMetricsCommandInput, type ListMetricsCommandOutput } from "./commands/ListMetricsCommand";
38
41
  import { type ListMetricStreamsCommandInput, type ListMetricStreamsCommandOutput } from "./commands/ListMetricStreamsCommand";
39
42
  import { type ListTagsForResourceCommandInput, type ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
@@ -46,6 +49,7 @@ import { type PutLogAlarmCommandInput, type PutLogAlarmCommandOutput } from "./c
46
49
  import { type PutManagedInsightRulesCommandInput, type PutManagedInsightRulesCommandOutput } from "./commands/PutManagedInsightRulesCommand";
47
50
  import { type PutMetricAlarmCommandInput, type PutMetricAlarmCommandOutput } from "./commands/PutMetricAlarmCommand";
48
51
  import { type PutMetricDataCommandInput, type PutMetricDataCommandOutput } from "./commands/PutMetricDataCommand";
52
+ import { type PutMetricDataQueryDefinitionCommandInput, type PutMetricDataQueryDefinitionCommandOutput } from "./commands/PutMetricDataQueryDefinitionCommand";
49
53
  import { type PutMetricStreamCommandInput, type PutMetricStreamCommandOutput } from "./commands/PutMetricStreamCommand";
50
54
  import { type SetAlarmStateCommandInput, type SetAlarmStateCommandOutput } from "./commands/SetAlarmStateCommand";
51
55
  import { type StartMetricStreamsCommandInput, type StartMetricStreamsCommandOutput } from "./commands/StartMetricStreamsCommand";
@@ -106,6 +110,12 @@ export interface CloudWatch {
106
110
  deleteInsightRules(args: DeleteInsightRulesCommandInput, options?: CloudWatchRequestOptions): Promise<DeleteInsightRulesCommandOutput>;
107
111
  deleteInsightRules(args: DeleteInsightRulesCommandInput, cb: (err: any, data?: DeleteInsightRulesCommandOutput) => void): void;
108
112
  deleteInsightRules(args: DeleteInsightRulesCommandInput, options: CloudWatchRequestOptions, cb: (err: any, data?: DeleteInsightRulesCommandOutput) => void): void;
113
+ /**
114
+ * @see {@link DeleteMetricDataQueryDefinitionCommand}
115
+ */
116
+ deleteMetricDataQueryDefinition(args: DeleteMetricDataQueryDefinitionCommandInput, options?: CloudWatchRequestOptions): Promise<DeleteMetricDataQueryDefinitionCommandOutput>;
117
+ deleteMetricDataQueryDefinition(args: DeleteMetricDataQueryDefinitionCommandInput, cb: (err: any, data?: DeleteMetricDataQueryDefinitionCommandOutput) => void): void;
118
+ deleteMetricDataQueryDefinition(args: DeleteMetricDataQueryDefinitionCommandInput, options: CloudWatchRequestOptions, cb: (err: any, data?: DeleteMetricDataQueryDefinitionCommandOutput) => void): void;
109
119
  /**
110
120
  * @see {@link DeleteMetricStreamCommand}
111
121
  */
@@ -218,6 +228,12 @@ export interface CloudWatch {
218
228
  getMetricData(args: GetMetricDataCommandInput, options?: CloudWatchRequestOptions): Promise<GetMetricDataCommandOutput>;
219
229
  getMetricData(args: GetMetricDataCommandInput, cb: (err: any, data?: GetMetricDataCommandOutput) => void): void;
220
230
  getMetricData(args: GetMetricDataCommandInput, options: CloudWatchRequestOptions, cb: (err: any, data?: GetMetricDataCommandOutput) => void): void;
231
+ /**
232
+ * @see {@link GetMetricDataQueryDefinitionCommand}
233
+ */
234
+ getMetricDataQueryDefinition(args: GetMetricDataQueryDefinitionCommandInput, options?: CloudWatchRequestOptions): Promise<GetMetricDataQueryDefinitionCommandOutput>;
235
+ getMetricDataQueryDefinition(args: GetMetricDataQueryDefinitionCommandInput, cb: (err: any, data?: GetMetricDataQueryDefinitionCommandOutput) => void): void;
236
+ getMetricDataQueryDefinition(args: GetMetricDataQueryDefinitionCommandInput, options: CloudWatchRequestOptions, cb: (err: any, data?: GetMetricDataQueryDefinitionCommandOutput) => void): void;
221
237
  /**
222
238
  * @see {@link GetMetricStatisticsCommand}
223
239
  */
@@ -269,6 +285,13 @@ export interface CloudWatch {
269
285
  listManagedInsightRules(args: ListManagedInsightRulesCommandInput, options?: CloudWatchRequestOptions): Promise<ListManagedInsightRulesCommandOutput>;
270
286
  listManagedInsightRules(args: ListManagedInsightRulesCommandInput, cb: (err: any, data?: ListManagedInsightRulesCommandOutput) => void): void;
271
287
  listManagedInsightRules(args: ListManagedInsightRulesCommandInput, options: CloudWatchRequestOptions, cb: (err: any, data?: ListManagedInsightRulesCommandOutput) => void): void;
288
+ /**
289
+ * @see {@link ListMetricDataQueryDefinitionsCommand}
290
+ */
291
+ listMetricDataQueryDefinitions(): Promise<ListMetricDataQueryDefinitionsCommandOutput>;
292
+ listMetricDataQueryDefinitions(args: ListMetricDataQueryDefinitionsCommandInput, options?: CloudWatchRequestOptions): Promise<ListMetricDataQueryDefinitionsCommandOutput>;
293
+ listMetricDataQueryDefinitions(args: ListMetricDataQueryDefinitionsCommandInput, cb: (err: any, data?: ListMetricDataQueryDefinitionsCommandOutput) => void): void;
294
+ listMetricDataQueryDefinitions(args: ListMetricDataQueryDefinitionsCommandInput, options: CloudWatchRequestOptions, cb: (err: any, data?: ListMetricDataQueryDefinitionsCommandOutput) => void): void;
272
295
  /**
273
296
  * @see {@link ListMetricsCommand}
274
297
  */
@@ -344,6 +367,12 @@ export interface CloudWatch {
344
367
  putMetricData(args: PutMetricDataCommandInput, options?: CloudWatchRequestOptions): Promise<PutMetricDataCommandOutput>;
345
368
  putMetricData(args: PutMetricDataCommandInput, cb: (err: any, data?: PutMetricDataCommandOutput) => void): void;
346
369
  putMetricData(args: PutMetricDataCommandInput, options: CloudWatchRequestOptions, cb: (err: any, data?: PutMetricDataCommandOutput) => void): void;
370
+ /**
371
+ * @see {@link PutMetricDataQueryDefinitionCommand}
372
+ */
373
+ putMetricDataQueryDefinition(args: PutMetricDataQueryDefinitionCommandInput, options?: CloudWatchRequestOptions): Promise<PutMetricDataQueryDefinitionCommandOutput>;
374
+ putMetricDataQueryDefinition(args: PutMetricDataQueryDefinitionCommandInput, cb: (err: any, data?: PutMetricDataQueryDefinitionCommandOutput) => void): void;
375
+ putMetricDataQueryDefinition(args: PutMetricDataQueryDefinitionCommandInput, options: CloudWatchRequestOptions, cb: (err: any, data?: PutMetricDataQueryDefinitionCommandOutput) => void): void;
347
376
  /**
348
377
  * @see {@link PutMetricStreamCommand}
349
378
  */
@@ -463,6 +492,13 @@ export interface CloudWatch {
463
492
  * @returns AsyncIterable of {@link ListManagedInsightRulesCommandOutput}.
464
493
  */
465
494
  paginateListManagedInsightRules(args: ListManagedInsightRulesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListManagedInsightRulesCommandOutput>;
495
+ /**
496
+ * @see {@link ListMetricDataQueryDefinitionsCommand}
497
+ * @param args - command input.
498
+ * @param paginationConfig - optional pagination config.
499
+ * @returns AsyncIterable of {@link ListMetricDataQueryDefinitionsCommandOutput}.
500
+ */
501
+ paginateListMetricDataQueryDefinitions(args?: ListMetricDataQueryDefinitionsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListMetricDataQueryDefinitionsCommandOutput>;
466
502
  /**
467
503
  * @see {@link ListMetricsCommand}
468
504
  * @param args - command input.
@@ -14,6 +14,7 @@ import type { DeleteAlarmsCommandInput, DeleteAlarmsCommandOutput } from "./comm
14
14
  import type { DeleteAnomalyDetectorCommandInput, DeleteAnomalyDetectorCommandOutput } from "./commands/DeleteAnomalyDetectorCommand";
15
15
  import type { DeleteDashboardsCommandInput, DeleteDashboardsCommandOutput } from "./commands/DeleteDashboardsCommand";
16
16
  import type { DeleteInsightRulesCommandInput, DeleteInsightRulesCommandOutput } from "./commands/DeleteInsightRulesCommand";
17
+ import type { DeleteMetricDataQueryDefinitionCommandInput, DeleteMetricDataQueryDefinitionCommandOutput } from "./commands/DeleteMetricDataQueryDefinitionCommand";
17
18
  import type { DeleteMetricStreamCommandInput, DeleteMetricStreamCommandOutput } from "./commands/DeleteMetricStreamCommand";
18
19
  import type { DeleteResourceMetricsConfigurationCommandInput, DeleteResourceMetricsConfigurationCommandOutput } from "./commands/DeleteResourceMetricsConfigurationCommand";
19
20
  import type { DescribeAlarmContributorsCommandInput, DescribeAlarmContributorsCommandOutput } from "./commands/DescribeAlarmContributorsCommand";
@@ -32,6 +33,7 @@ import type { GetDashboardCommandInput, GetDashboardCommandOutput } from "./comm
32
33
  import type { GetDatasetCommandInput, GetDatasetCommandOutput } from "./commands/GetDatasetCommand";
33
34
  import type { GetInsightRuleReportCommandInput, GetInsightRuleReportCommandOutput } from "./commands/GetInsightRuleReportCommand";
34
35
  import type { GetMetricDataCommandInput, GetMetricDataCommandOutput } from "./commands/GetMetricDataCommand";
36
+ import type { GetMetricDataQueryDefinitionCommandInput, GetMetricDataQueryDefinitionCommandOutput } from "./commands/GetMetricDataQueryDefinitionCommand";
35
37
  import type { GetMetricStatisticsCommandInput, GetMetricStatisticsCommandOutput } from "./commands/GetMetricStatisticsCommand";
36
38
  import type { GetMetricStreamCommandInput, GetMetricStreamCommandOutput } from "./commands/GetMetricStreamCommand";
37
39
  import type { GetMetricWidgetImageCommandInput, GetMetricWidgetImageCommandOutput } from "./commands/GetMetricWidgetImageCommand";
@@ -40,6 +42,7 @@ import type { GetResourceMetricsConfigurationCommandInput, GetResourceMetricsCon
40
42
  import type { ListAlarmMuteRulesCommandInput, ListAlarmMuteRulesCommandOutput } from "./commands/ListAlarmMuteRulesCommand";
41
43
  import type { ListDashboardsCommandInput, ListDashboardsCommandOutput } from "./commands/ListDashboardsCommand";
42
44
  import type { ListManagedInsightRulesCommandInput, ListManagedInsightRulesCommandOutput } from "./commands/ListManagedInsightRulesCommand";
45
+ import type { ListMetricDataQueryDefinitionsCommandInput, ListMetricDataQueryDefinitionsCommandOutput } from "./commands/ListMetricDataQueryDefinitionsCommand";
43
46
  import type { ListMetricsCommandInput, ListMetricsCommandOutput } from "./commands/ListMetricsCommand";
44
47
  import type { ListMetricStreamsCommandInput, ListMetricStreamsCommandOutput } from "./commands/ListMetricStreamsCommand";
45
48
  import type { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
@@ -52,6 +55,7 @@ import type { PutLogAlarmCommandInput, PutLogAlarmCommandOutput } from "./comman
52
55
  import type { PutManagedInsightRulesCommandInput, PutManagedInsightRulesCommandOutput } from "./commands/PutManagedInsightRulesCommand";
53
56
  import type { PutMetricAlarmCommandInput, PutMetricAlarmCommandOutput } from "./commands/PutMetricAlarmCommand";
54
57
  import type { PutMetricDataCommandInput, PutMetricDataCommandOutput } from "./commands/PutMetricDataCommand";
58
+ import type { PutMetricDataQueryDefinitionCommandInput, PutMetricDataQueryDefinitionCommandOutput } from "./commands/PutMetricDataQueryDefinitionCommand";
55
59
  import type { PutMetricStreamCommandInput, PutMetricStreamCommandOutput } from "./commands/PutMetricStreamCommand";
56
60
  import type { SetAlarmStateCommandInput, SetAlarmStateCommandOutput } from "./commands/SetAlarmStateCommand";
57
61
  import type { StartMetricStreamsCommandInput, StartMetricStreamsCommandOutput } from "./commands/StartMetricStreamsCommand";
@@ -68,11 +72,11 @@ export { __Client };
68
72
  /**
69
73
  * @public
70
74
  */
71
- export type ServiceInputTypes = AssociateDatasetKmsKeyCommandInput | CreateResourceMetricsConfigurationCommandInput | DeleteAlarmMuteRuleCommandInput | DeleteAlarmsCommandInput | DeleteAnomalyDetectorCommandInput | DeleteDashboardsCommandInput | DeleteInsightRulesCommandInput | DeleteMetricStreamCommandInput | DeleteResourceMetricsConfigurationCommandInput | DescribeAlarmContributorsCommandInput | DescribeAlarmHistoryCommandInput | DescribeAlarmsCommandInput | DescribeAlarmsForMetricCommandInput | DescribeAnomalyDetectorsCommandInput | DescribeInsightRulesCommandInput | DisableAlarmActionsCommandInput | DisableInsightRulesCommandInput | DisassociateDatasetKmsKeyCommandInput | EnableAlarmActionsCommandInput | EnableInsightRulesCommandInput | GetAlarmMuteRuleCommandInput | GetDashboardCommandInput | GetDatasetCommandInput | GetInsightRuleReportCommandInput | GetMetricDataCommandInput | GetMetricStatisticsCommandInput | GetMetricStreamCommandInput | GetMetricWidgetImageCommandInput | GetOTelEnrichmentCommandInput | GetResourceMetricsConfigurationCommandInput | ListAlarmMuteRulesCommandInput | ListDashboardsCommandInput | ListManagedInsightRulesCommandInput | ListMetricStreamsCommandInput | ListMetricsCommandInput | ListTagsForResourceCommandInput | PutAlarmMuteRuleCommandInput | PutAnomalyDetectorCommandInput | PutCompositeAlarmCommandInput | PutDashboardCommandInput | PutInsightRuleCommandInput | PutLogAlarmCommandInput | PutManagedInsightRulesCommandInput | PutMetricAlarmCommandInput | PutMetricDataCommandInput | PutMetricStreamCommandInput | SetAlarmStateCommandInput | StartMetricStreamsCommandInput | StartOTelEnrichmentCommandInput | StopMetricStreamsCommandInput | StopOTelEnrichmentCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateOTelEnrichmentCommandInput | UpdateResourceMetricsConfigurationCommandInput;
75
+ export type ServiceInputTypes = AssociateDatasetKmsKeyCommandInput | CreateResourceMetricsConfigurationCommandInput | DeleteAlarmMuteRuleCommandInput | DeleteAlarmsCommandInput | DeleteAnomalyDetectorCommandInput | DeleteDashboardsCommandInput | DeleteInsightRulesCommandInput | DeleteMetricDataQueryDefinitionCommandInput | DeleteMetricStreamCommandInput | DeleteResourceMetricsConfigurationCommandInput | DescribeAlarmContributorsCommandInput | DescribeAlarmHistoryCommandInput | DescribeAlarmsCommandInput | DescribeAlarmsForMetricCommandInput | DescribeAnomalyDetectorsCommandInput | DescribeInsightRulesCommandInput | DisableAlarmActionsCommandInput | DisableInsightRulesCommandInput | DisassociateDatasetKmsKeyCommandInput | EnableAlarmActionsCommandInput | EnableInsightRulesCommandInput | GetAlarmMuteRuleCommandInput | GetDashboardCommandInput | GetDatasetCommandInput | GetInsightRuleReportCommandInput | GetMetricDataCommandInput | GetMetricDataQueryDefinitionCommandInput | GetMetricStatisticsCommandInput | GetMetricStreamCommandInput | GetMetricWidgetImageCommandInput | GetOTelEnrichmentCommandInput | GetResourceMetricsConfigurationCommandInput | ListAlarmMuteRulesCommandInput | ListDashboardsCommandInput | ListManagedInsightRulesCommandInput | ListMetricDataQueryDefinitionsCommandInput | ListMetricStreamsCommandInput | ListMetricsCommandInput | ListTagsForResourceCommandInput | PutAlarmMuteRuleCommandInput | PutAnomalyDetectorCommandInput | PutCompositeAlarmCommandInput | PutDashboardCommandInput | PutInsightRuleCommandInput | PutLogAlarmCommandInput | PutManagedInsightRulesCommandInput | PutMetricAlarmCommandInput | PutMetricDataCommandInput | PutMetricDataQueryDefinitionCommandInput | PutMetricStreamCommandInput | SetAlarmStateCommandInput | StartMetricStreamsCommandInput | StartOTelEnrichmentCommandInput | StopMetricStreamsCommandInput | StopOTelEnrichmentCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateOTelEnrichmentCommandInput | UpdateResourceMetricsConfigurationCommandInput;
72
76
  /**
73
77
  * @public
74
78
  */
75
- export type ServiceOutputTypes = AssociateDatasetKmsKeyCommandOutput | CreateResourceMetricsConfigurationCommandOutput | DeleteAlarmMuteRuleCommandOutput | DeleteAlarmsCommandOutput | DeleteAnomalyDetectorCommandOutput | DeleteDashboardsCommandOutput | DeleteInsightRulesCommandOutput | DeleteMetricStreamCommandOutput | DeleteResourceMetricsConfigurationCommandOutput | DescribeAlarmContributorsCommandOutput | DescribeAlarmHistoryCommandOutput | DescribeAlarmsCommandOutput | DescribeAlarmsForMetricCommandOutput | DescribeAnomalyDetectorsCommandOutput | DescribeInsightRulesCommandOutput | DisableAlarmActionsCommandOutput | DisableInsightRulesCommandOutput | DisassociateDatasetKmsKeyCommandOutput | EnableAlarmActionsCommandOutput | EnableInsightRulesCommandOutput | GetAlarmMuteRuleCommandOutput | GetDashboardCommandOutput | GetDatasetCommandOutput | GetInsightRuleReportCommandOutput | GetMetricDataCommandOutput | GetMetricStatisticsCommandOutput | GetMetricStreamCommandOutput | GetMetricWidgetImageCommandOutput | GetOTelEnrichmentCommandOutput | GetResourceMetricsConfigurationCommandOutput | ListAlarmMuteRulesCommandOutput | ListDashboardsCommandOutput | ListManagedInsightRulesCommandOutput | ListMetricStreamsCommandOutput | ListMetricsCommandOutput | ListTagsForResourceCommandOutput | PutAlarmMuteRuleCommandOutput | PutAnomalyDetectorCommandOutput | PutCompositeAlarmCommandOutput | PutDashboardCommandOutput | PutInsightRuleCommandOutput | PutLogAlarmCommandOutput | PutManagedInsightRulesCommandOutput | PutMetricAlarmCommandOutput | PutMetricDataCommandOutput | PutMetricStreamCommandOutput | SetAlarmStateCommandOutput | StartMetricStreamsCommandOutput | StartOTelEnrichmentCommandOutput | StopMetricStreamsCommandOutput | StopOTelEnrichmentCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateOTelEnrichmentCommandOutput | UpdateResourceMetricsConfigurationCommandOutput;
79
+ export type ServiceOutputTypes = AssociateDatasetKmsKeyCommandOutput | CreateResourceMetricsConfigurationCommandOutput | DeleteAlarmMuteRuleCommandOutput | DeleteAlarmsCommandOutput | DeleteAnomalyDetectorCommandOutput | DeleteDashboardsCommandOutput | DeleteInsightRulesCommandOutput | DeleteMetricDataQueryDefinitionCommandOutput | DeleteMetricStreamCommandOutput | DeleteResourceMetricsConfigurationCommandOutput | DescribeAlarmContributorsCommandOutput | DescribeAlarmHistoryCommandOutput | DescribeAlarmsCommandOutput | DescribeAlarmsForMetricCommandOutput | DescribeAnomalyDetectorsCommandOutput | DescribeInsightRulesCommandOutput | DisableAlarmActionsCommandOutput | DisableInsightRulesCommandOutput | DisassociateDatasetKmsKeyCommandOutput | EnableAlarmActionsCommandOutput | EnableInsightRulesCommandOutput | GetAlarmMuteRuleCommandOutput | GetDashboardCommandOutput | GetDatasetCommandOutput | GetInsightRuleReportCommandOutput | GetMetricDataCommandOutput | GetMetricDataQueryDefinitionCommandOutput | GetMetricStatisticsCommandOutput | GetMetricStreamCommandOutput | GetMetricWidgetImageCommandOutput | GetOTelEnrichmentCommandOutput | GetResourceMetricsConfigurationCommandOutput | ListAlarmMuteRulesCommandOutput | ListDashboardsCommandOutput | ListManagedInsightRulesCommandOutput | ListMetricDataQueryDefinitionsCommandOutput | ListMetricStreamsCommandOutput | ListMetricsCommandOutput | ListTagsForResourceCommandOutput | PutAlarmMuteRuleCommandOutput | PutAnomalyDetectorCommandOutput | PutCompositeAlarmCommandOutput | PutDashboardCommandOutput | PutInsightRuleCommandOutput | PutLogAlarmCommandOutput | PutManagedInsightRulesCommandOutput | PutMetricAlarmCommandOutput | PutMetricDataCommandOutput | PutMetricDataQueryDefinitionCommandOutput | PutMetricStreamCommandOutput | SetAlarmStateCommandOutput | StartMetricStreamsCommandOutput | StartOTelEnrichmentCommandOutput | StopMetricStreamsCommandOutput | StopOTelEnrichmentCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateOTelEnrichmentCommandOutput | UpdateResourceMetricsConfigurationCommandOutput;
76
80
  /**
77
81
  * @public
78
82
  */
@@ -0,0 +1,78 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { DeleteMetricDataQueryDefinitionInput, DeleteMetricDataQueryDefinitionOutput } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link DeleteMetricDataQueryDefinitionCommand}.
11
+ */
12
+ export interface DeleteMetricDataQueryDefinitionCommandInput extends DeleteMetricDataQueryDefinitionInput {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link DeleteMetricDataQueryDefinitionCommand}.
18
+ */
19
+ export interface DeleteMetricDataQueryDefinitionCommandOutput extends DeleteMetricDataQueryDefinitionOutput, __MetadataBearer {
20
+ }
21
+ declare const DeleteMetricDataQueryDefinitionCommand_base: {
22
+ new (input: DeleteMetricDataQueryDefinitionCommandInput): import("@smithy/core/client").CommandImpl<DeleteMetricDataQueryDefinitionCommandInput, DeleteMetricDataQueryDefinitionCommandOutput, import("..").CloudWatchClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: DeleteMetricDataQueryDefinitionCommandInput): import("@smithy/core/client").CommandImpl<DeleteMetricDataQueryDefinitionCommandInput, DeleteMetricDataQueryDefinitionCommandOutput, import("..").CloudWatchClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Deletes a metric data query definition.</p>
28
+ * <p>This operation is idempotent. If the definition doesn't exist, the operation succeeds
29
+ * without returning an error.</p>
30
+ * <p>
31
+ * <b>Permissions</b>
32
+ * </p>
33
+ * <p>To delete a definition, you need the
34
+ * <code>cloudwatch:DeleteMetricDataQueryDefinition</code> permission on the metric
35
+ * data query definition resource. You can use the <code>aws:ResourceTag/$\{TagKey\}</code>
36
+ * condition key to control access based on the tags of the definition.</p>
37
+ * @example
38
+ * Use a bare-bones client and the command you need to make an API call.
39
+ * ```javascript
40
+ * import { CloudWatchClient, DeleteMetricDataQueryDefinitionCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
41
+ * // const { CloudWatchClient, DeleteMetricDataQueryDefinitionCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
42
+ * // import type { CloudWatchClientConfig } from "@aws-sdk/client-cloudwatch";
43
+ * const config = {}; // type is CloudWatchClientConfig
44
+ * const client = new CloudWatchClient(config);
45
+ * const input = { // DeleteMetricDataQueryDefinitionInput
46
+ * Id: "STRING_VALUE", // required
47
+ * };
48
+ * const command = new DeleteMetricDataQueryDefinitionCommand(input);
49
+ * const response = await client.send(command);
50
+ * // {};
51
+ *
52
+ * ```
53
+ *
54
+ * @param DeleteMetricDataQueryDefinitionCommandInput - {@link DeleteMetricDataQueryDefinitionCommandInput}
55
+ * @returns {@link DeleteMetricDataQueryDefinitionCommandOutput}
56
+ * @see {@link DeleteMetricDataQueryDefinitionCommandInput} for command's `input` shape.
57
+ * @see {@link DeleteMetricDataQueryDefinitionCommandOutput} for command's `response` shape.
58
+ * @see {@link CloudWatchClientResolvedConfig | config} for CloudWatchClient's `config` shape.
59
+ *
60
+ * @throws {@link CloudWatchServiceException}
61
+ * <p>Base exception class for all service exceptions from CloudWatch service.</p>
62
+ *
63
+ *
64
+ * @public
65
+ */
66
+ export declare class DeleteMetricDataQueryDefinitionCommand extends DeleteMetricDataQueryDefinitionCommand_base {
67
+ /** @internal type navigation helper, not in runtime. */
68
+ protected static __types: {
69
+ api: {
70
+ input: DeleteMetricDataQueryDefinitionInput;
71
+ output: {};
72
+ };
73
+ sdk: {
74
+ input: DeleteMetricDataQueryDefinitionCommandInput;
75
+ output: DeleteMetricDataQueryDefinitionCommandOutput;
76
+ };
77
+ };
78
+ }
@@ -0,0 +1,87 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { GetMetricDataQueryDefinitionInput, GetMetricDataQueryDefinitionOutput } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link GetMetricDataQueryDefinitionCommand}.
11
+ */
12
+ export interface GetMetricDataQueryDefinitionCommandInput extends GetMetricDataQueryDefinitionInput {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link GetMetricDataQueryDefinitionCommand}.
18
+ */
19
+ export interface GetMetricDataQueryDefinitionCommandOutput extends GetMetricDataQueryDefinitionOutput, __MetadataBearer {
20
+ }
21
+ declare const GetMetricDataQueryDefinitionCommand_base: {
22
+ new (input: GetMetricDataQueryDefinitionCommandInput): import("@smithy/core/client").CommandImpl<GetMetricDataQueryDefinitionCommandInput, GetMetricDataQueryDefinitionCommandOutput, import("..").CloudWatchClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: GetMetricDataQueryDefinitionCommandInput): import("@smithy/core/client").CommandImpl<GetMetricDataQueryDefinitionCommandInput, GetMetricDataQueryDefinitionCommandOutput, import("..").CloudWatchClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Returns a metric data query definition, including its expression.</p>
28
+ * <p>
29
+ * <b>Permissions</b>
30
+ * </p>
31
+ * <p>To get a definition, you need the
32
+ * <code>cloudwatch:GetMetricDataQueryDefinition</code> permission on the metric data
33
+ * query definition resource. You can use the <code>aws:ResourceTag/$\{TagKey\}</code>
34
+ * condition key to control access based on the tags of the definition.</p>
35
+ * @example
36
+ * Use a bare-bones client and the command you need to make an API call.
37
+ * ```javascript
38
+ * import { CloudWatchClient, GetMetricDataQueryDefinitionCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
39
+ * // const { CloudWatchClient, GetMetricDataQueryDefinitionCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
40
+ * // import type { CloudWatchClientConfig } from "@aws-sdk/client-cloudwatch";
41
+ * const config = {}; // type is CloudWatchClientConfig
42
+ * const client = new CloudWatchClient(config);
43
+ * const input = { // GetMetricDataQueryDefinitionInput
44
+ * Id: "STRING_VALUE", // required
45
+ * };
46
+ * const command = new GetMetricDataQueryDefinitionCommand(input);
47
+ * const response = await client.send(command);
48
+ * // { // GetMetricDataQueryDefinitionOutput
49
+ * // Id: "STRING_VALUE", // required
50
+ * // Arn: "STRING_VALUE", // required
51
+ * // Path: "STRING_VALUE", // required
52
+ * // Expression: "STRING_VALUE", // required
53
+ * // Type: "PROMQL" || "SQL" || "METRIC_MATH", // required
54
+ * // CreatedAt: new Date("TIMESTAMP"), // required
55
+ * // UpdatedAt: new Date("TIMESTAMP"), // required
56
+ * // };
57
+ *
58
+ * ```
59
+ *
60
+ * @param GetMetricDataQueryDefinitionCommandInput - {@link GetMetricDataQueryDefinitionCommandInput}
61
+ * @returns {@link GetMetricDataQueryDefinitionCommandOutput}
62
+ * @see {@link GetMetricDataQueryDefinitionCommandInput} for command's `input` shape.
63
+ * @see {@link GetMetricDataQueryDefinitionCommandOutput} for command's `response` shape.
64
+ * @see {@link CloudWatchClientResolvedConfig | config} for CloudWatchClient's `config` shape.
65
+ *
66
+ * @throws {@link ResourceNotFoundException} (client fault)
67
+ * <p>The named resource does not exist.</p>
68
+ *
69
+ * @throws {@link CloudWatchServiceException}
70
+ * <p>Base exception class for all service exceptions from CloudWatch service.</p>
71
+ *
72
+ *
73
+ * @public
74
+ */
75
+ export declare class GetMetricDataQueryDefinitionCommand extends GetMetricDataQueryDefinitionCommand_base {
76
+ /** @internal type navigation helper, not in runtime. */
77
+ protected static __types: {
78
+ api: {
79
+ input: GetMetricDataQueryDefinitionInput;
80
+ output: GetMetricDataQueryDefinitionOutput;
81
+ };
82
+ sdk: {
83
+ input: GetMetricDataQueryDefinitionCommandInput;
84
+ output: GetMetricDataQueryDefinitionCommandOutput;
85
+ };
86
+ };
87
+ }
@@ -0,0 +1,91 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { ListMetricDataQueryDefinitionsInput, ListMetricDataQueryDefinitionsOutput } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link ListMetricDataQueryDefinitionsCommand}.
11
+ */
12
+ export interface ListMetricDataQueryDefinitionsCommandInput extends ListMetricDataQueryDefinitionsInput {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link ListMetricDataQueryDefinitionsCommand}.
18
+ */
19
+ export interface ListMetricDataQueryDefinitionsCommandOutput extends ListMetricDataQueryDefinitionsOutput, __MetadataBearer {
20
+ }
21
+ declare const ListMetricDataQueryDefinitionsCommand_base: {
22
+ new (input: ListMetricDataQueryDefinitionsCommandInput): import("@smithy/core/client").CommandImpl<ListMetricDataQueryDefinitionsCommandInput, ListMetricDataQueryDefinitionsCommandOutput, import("..").CloudWatchClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (...[input]: [] | [ListMetricDataQueryDefinitionsCommandInput]): import("@smithy/core/client").CommandImpl<ListMetricDataQueryDefinitionsCommandInput, ListMetricDataQueryDefinitionsCommandOutput, import("..").CloudWatchClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Lists the metric data query definitions in your account and Region.</p>
28
+ * <p>The results are summaries that don't include the expression. To get the full
29
+ * definition, call <code>GetMetricDataQueryDefinition</code> with its ID.</p>
30
+ * <p>This operation supports pagination. Use the <code>MaxResults</code> and
31
+ * <code>NextToken</code> parameters to retrieve results in multiple calls.</p>
32
+ * <p>
33
+ * <b>Permissions</b>
34
+ * </p>
35
+ * <p>To list definitions, you need the
36
+ * <code>cloudwatch:ListMetricDataQueryDefinitions</code> permission. This permission
37
+ * applies to all definitions in the account and Region. The results aren't filtered by
38
+ * tags.</p>
39
+ * @example
40
+ * Use a bare-bones client and the command you need to make an API call.
41
+ * ```javascript
42
+ * import { CloudWatchClient, ListMetricDataQueryDefinitionsCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
43
+ * // const { CloudWatchClient, ListMetricDataQueryDefinitionsCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
44
+ * // import type { CloudWatchClientConfig } from "@aws-sdk/client-cloudwatch";
45
+ * const config = {}; // type is CloudWatchClientConfig
46
+ * const client = new CloudWatchClient(config);
47
+ * const input = { // ListMetricDataQueryDefinitionsInput
48
+ * MaxResults: Number("int"),
49
+ * NextToken: "STRING_VALUE",
50
+ * };
51
+ * const command = new ListMetricDataQueryDefinitionsCommand(input);
52
+ * const response = await client.send(command);
53
+ * // { // ListMetricDataQueryDefinitionsOutput
54
+ * // Items: [ // MetricDataQueryDefinitionSummaries // required
55
+ * // { // MetricDataQueryDefinitionSummary
56
+ * // Id: "STRING_VALUE", // required
57
+ * // Path: "STRING_VALUE", // required
58
+ * // Type: "PROMQL" || "SQL" || "METRIC_MATH", // required
59
+ * // UpdatedAt: new Date("TIMESTAMP"),
60
+ * // },
61
+ * // ],
62
+ * // NextToken: "STRING_VALUE",
63
+ * // };
64
+ *
65
+ * ```
66
+ *
67
+ * @param ListMetricDataQueryDefinitionsCommandInput - {@link ListMetricDataQueryDefinitionsCommandInput}
68
+ * @returns {@link ListMetricDataQueryDefinitionsCommandOutput}
69
+ * @see {@link ListMetricDataQueryDefinitionsCommandInput} for command's `input` shape.
70
+ * @see {@link ListMetricDataQueryDefinitionsCommandOutput} for command's `response` shape.
71
+ * @see {@link CloudWatchClientResolvedConfig | config} for CloudWatchClient's `config` shape.
72
+ *
73
+ * @throws {@link CloudWatchServiceException}
74
+ * <p>Base exception class for all service exceptions from CloudWatch service.</p>
75
+ *
76
+ *
77
+ * @public
78
+ */
79
+ export declare class ListMetricDataQueryDefinitionsCommand extends ListMetricDataQueryDefinitionsCommand_base {
80
+ /** @internal type navigation helper, not in runtime. */
81
+ protected static __types: {
82
+ api: {
83
+ input: ListMetricDataQueryDefinitionsInput;
84
+ output: ListMetricDataQueryDefinitionsOutput;
85
+ };
86
+ sdk: {
87
+ input: ListMetricDataQueryDefinitionsCommandInput;
88
+ output: ListMetricDataQueryDefinitionsCommandOutput;
89
+ };
90
+ };
91
+ }