@aws-sdk/client-cloudwatch-logs 3.1160.0 → 3.1161.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/dist-cjs/index.js CHANGED
@@ -70,7 +70,7 @@ const commonParams = {
70
70
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
71
71
  };
72
72
 
73
- var version = "3.1159.0";
73
+ var version = "3.1160.0";
74
74
  var packageInfo = {
75
75
  version: version};
76
76
 
@@ -485,8 +485,9 @@ const _D = "Delivery";
485
485
  const _DAAE = "DataAlreadyAcceptedException";
486
486
  const _DAP = "DeleteAccountPolicy";
487
487
  const _DAPR = "DeleteAccountPolicyRequest";
488
- const _DAPRe = "DescribeAccountPoliciesRequest";
489
- const _DAPRes = "DescribeAccountPoliciesResponse";
488
+ const _DAPRe = "DeleteAccountPolicyResponse";
489
+ const _DAPRes = "DescribeAccountPoliciesRequest";
490
+ const _DAPResc = "DescribeAccountPoliciesResponse";
490
491
  const _DAPe = "DescribeAccountPolicies";
491
492
  const _DC = "DestinationConfiguration";
492
493
  const _DCT = "DescribeConfigurationTemplates";
@@ -582,6 +583,7 @@ const _DRPRes = "DescribeResourcePoliciesRequest";
582
583
  const _DRPResc = "DescribeResourcePoliciesResponse";
583
584
  const _DRPe = "DeleteRetentionPolicy";
584
585
  const _DRPes = "DescribeResourcePolicies";
586
+ const _DRR = "DryRunResult";
585
587
  const _DS = "DataSource";
586
588
  const _DSC = "DeleteSyslogConfiguration";
587
589
  const _DSCR = "DeleteSyslogConfigurationRequest";
@@ -712,6 +714,8 @@ const _LFT = "LogFieldType";
712
714
  const _LG = "LogGroup";
713
715
  const _LGF = "LogGroupField";
714
716
  const _LGFL = "LogGroupFieldList";
717
+ const _LGI = "LogGroupImpact";
718
+ const _LGIo = "LogGroupImpacts";
715
719
  const _LGS = "LogGroupSummary";
716
720
  const _LGSo = "LogGroupSummaries";
717
721
  const _LGo = "LogGroups";
@@ -980,6 +984,7 @@ const _c = "client";
980
984
  const _cA = "createdAt";
981
985
  const _cAo = "collectionArn";
982
986
  const _cE = "collectionEndpoint";
987
+ const _cR = "currentRetention";
983
988
  const _cT = "creationTime";
984
989
  const _cTS = "creationTimeStamp";
985
990
  const _cTSr = "createdTimeStamp";
@@ -1012,7 +1017,10 @@ const _dNe = "destinationName";
1012
1017
  const _dP = "destinationPrefix";
1013
1018
  const _dPE = "deletionProtectionEnabled";
1014
1019
  const _dPS = "dataProtectionStatus";
1020
+ const _dR = "dryRun";
1015
1021
  const _dRA = "destinationResourceArn";
1022
+ const _dRLGC = "decreasedRetentionLogGroupCount";
1023
+ const _dRR = "dryRunResult";
1016
1024
  const _dS = "dataSource";
1017
1025
  const _dSC = "deliverySourceConfiguration";
1018
1026
  const _dSN = "deliverySourceName";
@@ -1074,6 +1082,7 @@ const _ent = "entity";
1074
1082
  const _enu = "enumerations";
1075
1083
  const _ev = "events";
1076
1084
  const _f = "from";
1085
+ const _fAC = "failedAnalysisCount";
1077
1086
  const _fD = "fieldDelimiter";
1078
1087
  const _fE = "flattenedElement";
1079
1088
  const _fET = "firstEventTime";
@@ -1116,6 +1125,7 @@ const _iPLS = "isPatternLevelSuppression";
1116
1125
  const _iPn = "inheritedProperties";
1117
1126
  const _iPnd = "indexPolicy";
1118
1127
  const _iRA = "importRoleArn";
1128
+ const _iRLGC = "increasedRetentionLogGroupCount";
1119
1129
  const _iS = "importStatistics";
1120
1130
  const _iSA = "importSourceArn";
1121
1131
  const _iSm = "importStatus";
@@ -1231,6 +1241,7 @@ const _pN = "policyName";
1231
1241
  const _pP = "parsePostgres";
1232
1242
  const _pR = "patternRegex";
1233
1243
  const _pRa = "parseRoute53";
1244
+ const _pRr = "proposedRetention";
1234
1245
  const _pS = "patternString";
1235
1246
  const _pSI = "parentSourceIdentifier";
1236
1247
  const _pSo = "policyScope";
@@ -1271,6 +1282,7 @@ const _rLEI = "rejectedLogEventsInfo";
1271
1282
  const _rM = "recordsMatched";
1272
1283
  const _rN = "resourceName";
1273
1284
  const _rP = "resourcePolicies";
1285
+ const _rPN = "retentionPolicyName";
1274
1286
  const _rPe = "resourcePolicy";
1275
1287
  const _rS = "recordsScanned";
1276
1288
  const _rSe = "responseStream";
@@ -1345,6 +1357,8 @@ const _tH = "triggerHistory";
1345
1357
  const _tI = "taskId";
1346
1358
  const _tK = "tagKeys";
1347
1359
  const _tL = "transformedLogs";
1360
+ const _tLGI = "topLogGroupsImpacted";
1361
+ const _tMLG = "totalMatchedLogGroups";
1348
1362
  const _tN = "taskName";
1349
1363
  const _tNLESI = "tooNewLogEventStartIndex";
1350
1364
  const _tNa = "tableName";
@@ -1362,6 +1376,7 @@ const _ty = "type";
1362
1376
  const _u = "unmask";
1363
1377
  const _uCS = "upperCaseString";
1364
1378
  const _uI = "userIdentity";
1379
+ const _uRLGC = "unchangedRetentionLogGroupCount";
1365
1380
  const _uST = "uploadSequenceToken";
1366
1381
  const _un = "unit";
1367
1382
  const _v = "value";
@@ -1679,8 +1694,13 @@ var DateTimeConverter$ = [3, n0, _DTC,
1679
1694
  ];
1680
1695
  var DeleteAccountPolicyRequest$ = [3, n0, _DAPR,
1681
1696
  0,
1682
- [_pN, _pT],
1683
- [0, 0], 2
1697
+ [_pN, _pT, _dR],
1698
+ [0, 0, 2], 2
1699
+ ];
1700
+ var DeleteAccountPolicyResponse$ = [3, n0, _DAPRe,
1701
+ 0,
1702
+ [_dRR],
1703
+ [() => DryRunResult$]
1684
1704
  ];
1685
1705
  var DeleteDataProtectionPolicyRequest$ = [3, n0, _DDPPR,
1686
1706
  0,
@@ -1832,12 +1852,12 @@ var DeliverySourceConfigurationSchema$ = [3, n0, _DSCS,
1832
1852
  [_kN, _vT, _dV, _sV, _mV, _mVa],
1833
1853
  [0, 0, 0, 64 | 0, 1, 1], 3
1834
1854
  ];
1835
- var DescribeAccountPoliciesRequest$ = [3, n0, _DAPRe,
1855
+ var DescribeAccountPoliciesRequest$ = [3, n0, _DAPRes,
1836
1856
  0,
1837
1857
  [_pT, _pN, _aIc, _nT],
1838
1858
  [0, 0, 64 | 0, 0], 1
1839
1859
  ];
1840
- var DescribeAccountPoliciesResponse$ = [3, n0, _DAPRes,
1860
+ var DescribeAccountPoliciesResponse$ = [3, n0, _DAPResc,
1841
1861
  0,
1842
1862
  [_aP, _nT],
1843
1863
  [() => AccountPolicies, 0]
@@ -2047,6 +2067,11 @@ var DisassociateSourceFromS3TableIntegrationResponse$ = [3, n0, _DSFSTIRi,
2047
2067
  [_i],
2048
2068
  [0]
2049
2069
  ];
2070
+ var DryRunResult$ = [3, n0, _DRR,
2071
+ 0,
2072
+ [_tMLG, _iRLGC, _dRLGC, _uRLGC, _fAC, _tLGI],
2073
+ [1, 1, 1, 1, 1, () => LogGroupImpacts]
2074
+ ];
2050
2075
  var Entity$ = [3, n0, _E,
2051
2076
  0,
2052
2077
  [_kA, _at],
@@ -2469,14 +2494,19 @@ var LogFieldType$ = [3, n0, _LFT,
2469
2494
  ];
2470
2495
  var LogGroup$ = [3, n0, _LG,
2471
2496
  0,
2472
- [_lGN, _cT, _rID, _mFC, _ar, _sBt, _kKI, _dPS, _iPn, _lGCo, _lGA, _dPE, _bTAE],
2473
- [0, 1, 1, 1, 0, 1, 0, 0, 64 | 0, 0, 0, 2, 2]
2497
+ [_lGN, _cT, _rID, _mFC, _ar, _sBt, _kKI, _dPS, _iPn, _lGCo, _lGA, _dPE, _bTAE, _rPN],
2498
+ [0, 1, 1, 1, 0, 1, 0, 0, 64 | 0, 0, 0, 2, 2, 0]
2474
2499
  ];
2475
2500
  var LogGroupField$ = [3, n0, _LGF,
2476
2501
  0,
2477
2502
  [_n, _pe],
2478
2503
  [0, 1]
2479
2504
  ];
2505
+ var LogGroupImpact$ = [3, n0, _LGI,
2506
+ 0,
2507
+ [_lGN, _cR, _pRr, _sBt],
2508
+ [0, 0, 0, 1]
2509
+ ];
2480
2510
  var LogGroupSummary$ = [3, n0, _LGS,
2481
2511
  0,
2482
2512
  [_lGN, _lGA, _lGCo],
@@ -2644,13 +2674,13 @@ var Processor$ = [3, n0, _Pr,
2644
2674
  ];
2645
2675
  var PutAccountPolicyRequest$ = [3, n0, _PAPR,
2646
2676
  0,
2647
- [_pN, _pD, _pT, _sc, _sC],
2648
- [0, 0, 0, 0, 0], 3
2677
+ [_pN, _pD, _pT, _sc, _sC, _dR],
2678
+ [0, 0, 0, 0, 0, 2], 3
2649
2679
  ];
2650
2680
  var PutAccountPolicyResponse$ = [3, n0, _PAPRu,
2651
2681
  0,
2652
- [_aPcc],
2653
- [() => AccountPolicy$]
2682
+ [_aPcc, _dRR],
2683
+ [() => AccountPolicy$, () => DryRunResult$]
2654
2684
  ];
2655
2685
  var PutBearerTokenAuthenticationRequest$ = [3, n0, _PBTAR,
2656
2686
  0,
@@ -3161,6 +3191,9 @@ var LogFieldsList = [1, n0, _LFL,
3161
3191
  var LogGroupFieldList = [1, n0, _LGFL,
3162
3192
  0, () => LogGroupField$
3163
3193
  ];
3194
+ var LogGroupImpacts = [1, n0, _LGIo,
3195
+ 0, () => LogGroupImpact$
3196
+ ];
3164
3197
  var LogGroups = [1, n0, _LGo,
3165
3198
  0, () => LogGroup$
3166
3199
  ];
@@ -3311,7 +3344,7 @@ var CreateScheduledQuery$ = [9, n0, _CSQ,
3311
3344
  0, () => CreateScheduledQueryRequest$, () => CreateScheduledQueryResponse$
3312
3345
  ];
3313
3346
  var DeleteAccountPolicy$ = [9, n0, _DAP,
3314
- 0, () => DeleteAccountPolicyRequest$, () => __Unit
3347
+ 0, () => DeleteAccountPolicyRequest$, () => DeleteAccountPolicyResponse$
3315
3348
  ];
3316
3349
  var DeleteDataProtectionPolicy$ = [9, n0, _DDPP,
3317
3350
  0, () => DeleteDataProtectionPolicyRequest$, () => __Unit
@@ -4320,6 +4353,7 @@ const PolicyType = {
4320
4353
  DATA_PROTECTION_POLICY: "DATA_PROTECTION_POLICY",
4321
4354
  FIELD_INDEX_POLICY: "FIELD_INDEX_POLICY",
4322
4355
  METRIC_EXTRACTION_POLICY: "METRIC_EXTRACTION_POLICY",
4356
+ RETENTION_POLICY: "RETENTION_POLICY",
4323
4357
  SUBSCRIPTION_FILTER_POLICY: "SUBSCRIPTION_FILTER_POLICY",
4324
4358
  TRANSFORMER_POLICY: "TRANSFORMER_POLICY",
4325
4359
  };
@@ -4644,6 +4678,7 @@ exports.DateTimeConverter$ = DateTimeConverter$;
4644
4678
  exports.DeleteAccountPolicy$ = DeleteAccountPolicy$;
4645
4679
  exports.DeleteAccountPolicyCommand = DeleteAccountPolicyCommand;
4646
4680
  exports.DeleteAccountPolicyRequest$ = DeleteAccountPolicyRequest$;
4681
+ exports.DeleteAccountPolicyResponse$ = DeleteAccountPolicyResponse$;
4647
4682
  exports.DeleteDataProtectionPolicy$ = DeleteDataProtectionPolicy$;
4648
4683
  exports.DeleteDataProtectionPolicyCommand = DeleteDataProtectionPolicyCommand;
4649
4684
  exports.DeleteDataProtectionPolicyRequest$ = DeleteDataProtectionPolicyRequest$;
@@ -4804,6 +4839,7 @@ exports.DisassociateSourceFromS3TableIntegrationCommand = DisassociateSourceFrom
4804
4839
  exports.DisassociateSourceFromS3TableIntegrationRequest$ = DisassociateSourceFromS3TableIntegrationRequest$;
4805
4840
  exports.DisassociateSourceFromS3TableIntegrationResponse$ = DisassociateSourceFromS3TableIntegrationResponse$;
4806
4841
  exports.Distribution = Distribution;
4842
+ exports.DryRunResult$ = DryRunResult$;
4807
4843
  exports.Entity$ = Entity$;
4808
4844
  exports.EntityRejectionErrorType = EntityRejectionErrorType;
4809
4845
  exports.EvaluationFrequency = EvaluationFrequency;
@@ -4979,6 +5015,7 @@ exports.LogFieldsListItem$ = LogFieldsListItem$;
4979
5015
  exports.LogGroup$ = LogGroup$;
4980
5016
  exports.LogGroupClass = LogGroupClass;
4981
5017
  exports.LogGroupField$ = LogGroupField$;
5018
+ exports.LogGroupImpact$ = LogGroupImpact$;
4982
5019
  exports.LogGroupSummary$ = LogGroupSummary$;
4983
5020
  exports.LogStream$ = LogStream$;
4984
5021
  exports.LookupTable$ = LookupTable$;
@@ -2,6 +2,7 @@ export const PolicyType = {
2
2
  DATA_PROTECTION_POLICY: "DATA_PROTECTION_POLICY",
3
3
  FIELD_INDEX_POLICY: "FIELD_INDEX_POLICY",
4
4
  METRIC_EXTRACTION_POLICY: "METRIC_EXTRACTION_POLICY",
5
+ RETENTION_POLICY: "RETENTION_POLICY",
5
6
  SUBSCRIPTION_FILTER_POLICY: "SUBSCRIPTION_FILTER_POLICY",
6
7
  TRANSFORMER_POLICY: "TRANSFORMER_POLICY",
7
8
  };
@@ -55,8 +55,9 @@ const _D = "Delivery";
55
55
  const _DAAE = "DataAlreadyAcceptedException";
56
56
  const _DAP = "DeleteAccountPolicy";
57
57
  const _DAPR = "DeleteAccountPolicyRequest";
58
- const _DAPRe = "DescribeAccountPoliciesRequest";
59
- const _DAPRes = "DescribeAccountPoliciesResponse";
58
+ const _DAPRe = "DeleteAccountPolicyResponse";
59
+ const _DAPRes = "DescribeAccountPoliciesRequest";
60
+ const _DAPResc = "DescribeAccountPoliciesResponse";
60
61
  const _DAPe = "DescribeAccountPolicies";
61
62
  const _DC = "DestinationConfiguration";
62
63
  const _DCT = "DescribeConfigurationTemplates";
@@ -152,6 +153,7 @@ const _DRPRes = "DescribeResourcePoliciesRequest";
152
153
  const _DRPResc = "DescribeResourcePoliciesResponse";
153
154
  const _DRPe = "DeleteRetentionPolicy";
154
155
  const _DRPes = "DescribeResourcePolicies";
156
+ const _DRR = "DryRunResult";
155
157
  const _DS = "DataSource";
156
158
  const _DSC = "DeleteSyslogConfiguration";
157
159
  const _DSCR = "DeleteSyslogConfigurationRequest";
@@ -282,6 +284,8 @@ const _LFT = "LogFieldType";
282
284
  const _LG = "LogGroup";
283
285
  const _LGF = "LogGroupField";
284
286
  const _LGFL = "LogGroupFieldList";
287
+ const _LGI = "LogGroupImpact";
288
+ const _LGIo = "LogGroupImpacts";
285
289
  const _LGS = "LogGroupSummary";
286
290
  const _LGSo = "LogGroupSummaries";
287
291
  const _LGo = "LogGroups";
@@ -550,6 +554,7 @@ const _c = "client";
550
554
  const _cA = "createdAt";
551
555
  const _cAo = "collectionArn";
552
556
  const _cE = "collectionEndpoint";
557
+ const _cR = "currentRetention";
553
558
  const _cT = "creationTime";
554
559
  const _cTS = "creationTimeStamp";
555
560
  const _cTSr = "createdTimeStamp";
@@ -582,7 +587,10 @@ const _dNe = "destinationName";
582
587
  const _dP = "destinationPrefix";
583
588
  const _dPE = "deletionProtectionEnabled";
584
589
  const _dPS = "dataProtectionStatus";
590
+ const _dR = "dryRun";
585
591
  const _dRA = "destinationResourceArn";
592
+ const _dRLGC = "decreasedRetentionLogGroupCount";
593
+ const _dRR = "dryRunResult";
586
594
  const _dS = "dataSource";
587
595
  const _dSC = "deliverySourceConfiguration";
588
596
  const _dSN = "deliverySourceName";
@@ -644,6 +652,7 @@ const _ent = "entity";
644
652
  const _enu = "enumerations";
645
653
  const _ev = "events";
646
654
  const _f = "from";
655
+ const _fAC = "failedAnalysisCount";
647
656
  const _fD = "fieldDelimiter";
648
657
  const _fE = "flattenedElement";
649
658
  const _fET = "firstEventTime";
@@ -686,6 +695,7 @@ const _iPLS = "isPatternLevelSuppression";
686
695
  const _iPn = "inheritedProperties";
687
696
  const _iPnd = "indexPolicy";
688
697
  const _iRA = "importRoleArn";
698
+ const _iRLGC = "increasedRetentionLogGroupCount";
689
699
  const _iS = "importStatistics";
690
700
  const _iSA = "importSourceArn";
691
701
  const _iSm = "importStatus";
@@ -801,6 +811,7 @@ const _pN = "policyName";
801
811
  const _pP = "parsePostgres";
802
812
  const _pR = "patternRegex";
803
813
  const _pRa = "parseRoute53";
814
+ const _pRr = "proposedRetention";
804
815
  const _pS = "patternString";
805
816
  const _pSI = "parentSourceIdentifier";
806
817
  const _pSo = "policyScope";
@@ -841,6 +852,7 @@ const _rLEI = "rejectedLogEventsInfo";
841
852
  const _rM = "recordsMatched";
842
853
  const _rN = "resourceName";
843
854
  const _rP = "resourcePolicies";
855
+ const _rPN = "retentionPolicyName";
844
856
  const _rPe = "resourcePolicy";
845
857
  const _rS = "recordsScanned";
846
858
  const _rSe = "responseStream";
@@ -915,6 +927,8 @@ const _tH = "triggerHistory";
915
927
  const _tI = "taskId";
916
928
  const _tK = "tagKeys";
917
929
  const _tL = "transformedLogs";
930
+ const _tLGI = "topLogGroupsImpacted";
931
+ const _tMLG = "totalMatchedLogGroups";
918
932
  const _tN = "taskName";
919
933
  const _tNLESI = "tooNewLogEventStartIndex";
920
934
  const _tNa = "tableName";
@@ -932,6 +946,7 @@ const _ty = "type";
932
946
  const _u = "unmask";
933
947
  const _uCS = "upperCaseString";
934
948
  const _uI = "userIdentity";
949
+ const _uRLGC = "unchangedRetentionLogGroupCount";
935
950
  const _uST = "uploadSequenceToken";
936
951
  const _un = "unit";
937
952
  const _v = "value";
@@ -1252,8 +1267,13 @@ export var DateTimeConverter$ = [3, n0, _DTC,
1252
1267
  ];
1253
1268
  export var DeleteAccountPolicyRequest$ = [3, n0, _DAPR,
1254
1269
  0,
1255
- [_pN, _pT],
1256
- [0, 0], 2
1270
+ [_pN, _pT, _dR],
1271
+ [0, 0, 2], 2
1272
+ ];
1273
+ export var DeleteAccountPolicyResponse$ = [3, n0, _DAPRe,
1274
+ 0,
1275
+ [_dRR],
1276
+ [() => DryRunResult$]
1257
1277
  ];
1258
1278
  export var DeleteDataProtectionPolicyRequest$ = [3, n0, _DDPPR,
1259
1279
  0,
@@ -1405,12 +1425,12 @@ export var DeliverySourceConfigurationSchema$ = [3, n0, _DSCS,
1405
1425
  [_kN, _vT, _dV, _sV, _mV, _mVa],
1406
1426
  [0, 0, 0, 64 | 0, 1, 1], 3
1407
1427
  ];
1408
- export var DescribeAccountPoliciesRequest$ = [3, n0, _DAPRe,
1428
+ export var DescribeAccountPoliciesRequest$ = [3, n0, _DAPRes,
1409
1429
  0,
1410
1430
  [_pT, _pN, _aIc, _nT],
1411
1431
  [0, 0, 64 | 0, 0], 1
1412
1432
  ];
1413
- export var DescribeAccountPoliciesResponse$ = [3, n0, _DAPRes,
1433
+ export var DescribeAccountPoliciesResponse$ = [3, n0, _DAPResc,
1414
1434
  0,
1415
1435
  [_aP, _nT],
1416
1436
  [() => AccountPolicies, 0]
@@ -1620,6 +1640,11 @@ export var DisassociateSourceFromS3TableIntegrationResponse$ = [3, n0, _DSFSTIRi
1620
1640
  [_i],
1621
1641
  [0]
1622
1642
  ];
1643
+ export var DryRunResult$ = [3, n0, _DRR,
1644
+ 0,
1645
+ [_tMLG, _iRLGC, _dRLGC, _uRLGC, _fAC, _tLGI],
1646
+ [1, 1, 1, 1, 1, () => LogGroupImpacts]
1647
+ ];
1623
1648
  export var Entity$ = [3, n0, _E,
1624
1649
  0,
1625
1650
  [_kA, _at],
@@ -2042,14 +2067,19 @@ export var LogFieldType$ = [3, n0, _LFT,
2042
2067
  ];
2043
2068
  export var LogGroup$ = [3, n0, _LG,
2044
2069
  0,
2045
- [_lGN, _cT, _rID, _mFC, _ar, _sBt, _kKI, _dPS, _iPn, _lGCo, _lGA, _dPE, _bTAE],
2046
- [0, 1, 1, 1, 0, 1, 0, 0, 64 | 0, 0, 0, 2, 2]
2070
+ [_lGN, _cT, _rID, _mFC, _ar, _sBt, _kKI, _dPS, _iPn, _lGCo, _lGA, _dPE, _bTAE, _rPN],
2071
+ [0, 1, 1, 1, 0, 1, 0, 0, 64 | 0, 0, 0, 2, 2, 0]
2047
2072
  ];
2048
2073
  export var LogGroupField$ = [3, n0, _LGF,
2049
2074
  0,
2050
2075
  [_n, _pe],
2051
2076
  [0, 1]
2052
2077
  ];
2078
+ export var LogGroupImpact$ = [3, n0, _LGI,
2079
+ 0,
2080
+ [_lGN, _cR, _pRr, _sBt],
2081
+ [0, 0, 0, 1]
2082
+ ];
2053
2083
  export var LogGroupSummary$ = [3, n0, _LGS,
2054
2084
  0,
2055
2085
  [_lGN, _lGA, _lGCo],
@@ -2217,13 +2247,13 @@ export var Processor$ = [3, n0, _Pr,
2217
2247
  ];
2218
2248
  export var PutAccountPolicyRequest$ = [3, n0, _PAPR,
2219
2249
  0,
2220
- [_pN, _pD, _pT, _sc, _sC],
2221
- [0, 0, 0, 0, 0], 3
2250
+ [_pN, _pD, _pT, _sc, _sC, _dR],
2251
+ [0, 0, 0, 0, 0, 2], 3
2222
2252
  ];
2223
2253
  export var PutAccountPolicyResponse$ = [3, n0, _PAPRu,
2224
2254
  0,
2225
- [_aPcc],
2226
- [() => AccountPolicy$]
2255
+ [_aPcc, _dRR],
2256
+ [() => AccountPolicy$, () => DryRunResult$]
2227
2257
  ];
2228
2258
  export var PutBearerTokenAuthenticationRequest$ = [3, n0, _PBTAR,
2229
2259
  0,
@@ -2756,6 +2786,9 @@ var LogGroupFieldList = [1, n0, _LGFL,
2756
2786
  0, () => LogGroupField$
2757
2787
  ];
2758
2788
  var LogGroupIdentifiers = 64 | 0;
2789
+ var LogGroupImpacts = [1, n0, _LGIo,
2790
+ 0, () => LogGroupImpact$
2791
+ ];
2759
2792
  var LogGroupNames = 64 | 0;
2760
2793
  var LogGroups = [1, n0, _LGo,
2761
2794
  0, () => LogGroup$
@@ -2932,7 +2965,7 @@ export var CreateScheduledQuery$ = [9, n0, _CSQ,
2932
2965
  0, () => CreateScheduledQueryRequest$, () => CreateScheduledQueryResponse$
2933
2966
  ];
2934
2967
  export var DeleteAccountPolicy$ = [9, n0, _DAP,
2935
- 0, () => DeleteAccountPolicyRequest$, () => __Unit
2968
+ 0, () => DeleteAccountPolicyRequest$, () => DeleteAccountPolicyResponse$
2936
2969
  ];
2937
2970
  export var DeleteDataProtectionPolicy$ = [9, n0, _DDPP,
2938
2971
  0, () => DeleteDataProtectionPolicyRequest$, () => __Unit
@@ -1,5 +1,5 @@
1
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
- import type { DeleteAccountPolicyRequest } from "../models/models_0";
2
+ import type { DeleteAccountPolicyRequest, DeleteAccountPolicyResponse } from "../models/models_0";
3
3
  /**
4
4
  * @public
5
5
  */
@@ -16,7 +16,7 @@ export interface DeleteAccountPolicyCommandInput extends DeleteAccountPolicyRequ
16
16
  *
17
17
  * The output of {@link DeleteAccountPolicyCommand}.
18
18
  */
19
- export interface DeleteAccountPolicyCommandOutput extends __MetadataBearer {
19
+ export interface DeleteAccountPolicyCommandOutput extends DeleteAccountPolicyResponse, __MetadataBearer {
20
20
  }
21
21
  declare const DeleteAccountPolicyCommand_base: {
22
22
  new (input: DeleteAccountPolicyCommandInput): import("@smithy/core/client").CommandImpl<DeleteAccountPolicyCommandInput, DeleteAccountPolicyCommandOutput, import("..").CloudWatchLogsClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
@@ -67,11 +67,28 @@ declare const DeleteAccountPolicyCommand_base: {
67
67
  * const client = new CloudWatchLogsClient(config);
68
68
  * const input = { // DeleteAccountPolicyRequest
69
69
  * policyName: "STRING_VALUE", // required
70
- * policyType: "DATA_PROTECTION_POLICY" || "SUBSCRIPTION_FILTER_POLICY" || "FIELD_INDEX_POLICY" || "TRANSFORMER_POLICY" || "METRIC_EXTRACTION_POLICY", // required
70
+ * policyType: "DATA_PROTECTION_POLICY" || "SUBSCRIPTION_FILTER_POLICY" || "FIELD_INDEX_POLICY" || "TRANSFORMER_POLICY" || "METRIC_EXTRACTION_POLICY" || "RETENTION_POLICY", // required
71
+ * dryRun: true || false,
71
72
  * };
72
73
  * const command = new DeleteAccountPolicyCommand(input);
73
74
  * const response = await client.send(command);
74
- * // {};
75
+ * // { // DeleteAccountPolicyResponse
76
+ * // dryRunResult: { // DryRunResult
77
+ * // totalMatchedLogGroups: Number("int"),
78
+ * // increasedRetentionLogGroupCount: Number("int"),
79
+ * // decreasedRetentionLogGroupCount: Number("int"),
80
+ * // unchangedRetentionLogGroupCount: Number("int"),
81
+ * // failedAnalysisCount: Number("int"),
82
+ * // topLogGroupsImpacted: [ // LogGroupImpacts
83
+ * // { // LogGroupImpact
84
+ * // logGroupName: "STRING_VALUE",
85
+ * // currentRetention: "STRING_VALUE",
86
+ * // proposedRetention: "STRING_VALUE",
87
+ * // storedBytes: Number("long"),
88
+ * // },
89
+ * // ],
90
+ * // },
91
+ * // };
75
92
  *
76
93
  * ```
77
94
  *
@@ -104,7 +121,7 @@ export declare class DeleteAccountPolicyCommand extends DeleteAccountPolicyComma
104
121
  protected static __types: {
105
122
  api: {
106
123
  input: DeleteAccountPolicyRequest;
107
- output: {};
124
+ output: DeleteAccountPolicyResponse;
108
125
  };
109
126
  sdk: {
110
127
  input: DeleteAccountPolicyCommandInput;
@@ -56,7 +56,7 @@ declare const DescribeAccountPoliciesCommand_base: {
56
56
  * const config = {}; // type is CloudWatchLogsClientConfig
57
57
  * const client = new CloudWatchLogsClient(config);
58
58
  * const input = { // DescribeAccountPoliciesRequest
59
- * policyType: "DATA_PROTECTION_POLICY" || "SUBSCRIPTION_FILTER_POLICY" || "FIELD_INDEX_POLICY" || "TRANSFORMER_POLICY" || "METRIC_EXTRACTION_POLICY", // required
59
+ * policyType: "DATA_PROTECTION_POLICY" || "SUBSCRIPTION_FILTER_POLICY" || "FIELD_INDEX_POLICY" || "TRANSFORMER_POLICY" || "METRIC_EXTRACTION_POLICY" || "RETENTION_POLICY", // required
60
60
  * policyName: "STRING_VALUE",
61
61
  * accountIdentifiers: [ // AccountIds
62
62
  * "STRING_VALUE",
@@ -71,7 +71,7 @@ declare const DescribeAccountPoliciesCommand_base: {
71
71
  * // policyName: "STRING_VALUE",
72
72
  * // policyDocument: "STRING_VALUE",
73
73
  * // lastUpdatedTime: Number("long"),
74
- * // policyType: "DATA_PROTECTION_POLICY" || "SUBSCRIPTION_FILTER_POLICY" || "FIELD_INDEX_POLICY" || "TRANSFORMER_POLICY" || "METRIC_EXTRACTION_POLICY",
74
+ * // policyType: "DATA_PROTECTION_POLICY" || "SUBSCRIPTION_FILTER_POLICY" || "FIELD_INDEX_POLICY" || "TRANSFORMER_POLICY" || "METRIC_EXTRACTION_POLICY" || "RETENTION_POLICY",
75
75
  * // scope: "ALL",
76
76
  * // selectionCriteria: "STRING_VALUE",
77
77
  * // accountId: "STRING_VALUE",
@@ -81,6 +81,7 @@ declare const DescribeLogGroupsCommand_base: {
81
81
  * // logGroupArn: "STRING_VALUE",
82
82
  * // deletionProtectionEnabled: true || false,
83
83
  * // bearerTokenAuthenticationEnabled: true || false,
84
+ * // retentionPolicyName: "STRING_VALUE",
84
85
  * // },
85
86
  * // ],
86
87
  * // nextToken: "STRING_VALUE",
@@ -498,9 +498,10 @@ declare const PutAccountPolicyCommand_base: {
498
498
  * const input = { // PutAccountPolicyRequest
499
499
  * policyName: "STRING_VALUE", // required
500
500
  * policyDocument: "STRING_VALUE", // required
501
- * policyType: "DATA_PROTECTION_POLICY" || "SUBSCRIPTION_FILTER_POLICY" || "FIELD_INDEX_POLICY" || "TRANSFORMER_POLICY" || "METRIC_EXTRACTION_POLICY", // required
501
+ * policyType: "DATA_PROTECTION_POLICY" || "SUBSCRIPTION_FILTER_POLICY" || "FIELD_INDEX_POLICY" || "TRANSFORMER_POLICY" || "METRIC_EXTRACTION_POLICY" || "RETENTION_POLICY", // required
502
502
  * scope: "ALL",
503
503
  * selectionCriteria: "STRING_VALUE",
504
+ * dryRun: true || false,
504
505
  * };
505
506
  * const command = new PutAccountPolicyCommand(input);
506
507
  * const response = await client.send(command);
@@ -509,11 +510,26 @@ declare const PutAccountPolicyCommand_base: {
509
510
  * // policyName: "STRING_VALUE",
510
511
  * // policyDocument: "STRING_VALUE",
511
512
  * // lastUpdatedTime: Number("long"),
512
- * // policyType: "DATA_PROTECTION_POLICY" || "SUBSCRIPTION_FILTER_POLICY" || "FIELD_INDEX_POLICY" || "TRANSFORMER_POLICY" || "METRIC_EXTRACTION_POLICY",
513
+ * // policyType: "DATA_PROTECTION_POLICY" || "SUBSCRIPTION_FILTER_POLICY" || "FIELD_INDEX_POLICY" || "TRANSFORMER_POLICY" || "METRIC_EXTRACTION_POLICY" || "RETENTION_POLICY",
513
514
  * // scope: "ALL",
514
515
  * // selectionCriteria: "STRING_VALUE",
515
516
  * // accountId: "STRING_VALUE",
516
517
  * // },
518
+ * // dryRunResult: { // DryRunResult
519
+ * // totalMatchedLogGroups: Number("int"),
520
+ * // increasedRetentionLogGroupCount: Number("int"),
521
+ * // decreasedRetentionLogGroupCount: Number("int"),
522
+ * // unchangedRetentionLogGroupCount: Number("int"),
523
+ * // failedAnalysisCount: Number("int"),
524
+ * // topLogGroupsImpacted: [ // LogGroupImpacts
525
+ * // { // LogGroupImpact
526
+ * // logGroupName: "STRING_VALUE",
527
+ * // currentRetention: "STRING_VALUE",
528
+ * // proposedRetention: "STRING_VALUE",
529
+ * // storedBytes: Number("long"),
530
+ * // },
531
+ * // ],
532
+ * // },
517
533
  * // };
518
534
  *
519
535
  * ```
@@ -1,5 +1,5 @@
1
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
- import type { TagLogGroupRequest } from "../models/models_0";
2
+ import type { TagLogGroupRequest } from "../models/models_1";
3
3
  /**
4
4
  * @public
5
5
  */
@@ -1,5 +1,5 @@
1
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
- import type { TagResourceRequest } from "../models/models_0";
2
+ import type { TagResourceRequest } from "../models/models_1";
3
3
  /**
4
4
  * @public
5
5
  */
@@ -1,6 +1,5 @@
1
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
- import type { TestMetricFilterRequest } from "../models/models_0";
3
- import type { TestMetricFilterResponse } from "../models/models_1";
2
+ import type { TestMetricFilterRequest, TestMetricFilterResponse } from "../models/models_1";
4
3
  /**
5
4
  * @public
6
5
  */
@@ -6,6 +6,7 @@ export declare const PolicyType: {
6
6
  readonly DATA_PROTECTION_POLICY: "DATA_PROTECTION_POLICY";
7
7
  readonly FIELD_INDEX_POLICY: "FIELD_INDEX_POLICY";
8
8
  readonly METRIC_EXTRACTION_POLICY: "METRIC_EXTRACTION_POLICY";
9
+ readonly RETENTION_POLICY: "RETENTION_POLICY";
9
10
  readonly SUBSCRIPTION_FILTER_POLICY: "SUBSCRIPTION_FILTER_POLICY";
10
11
  readonly TRANSFORMER_POLICY: "TRANSFORMER_POLICY";
11
12
  };
@@ -1510,6 +1510,104 @@ export interface DeleteAccountPolicyRequest {
1510
1510
  * @public
1511
1511
  */
1512
1512
  policyType: PolicyType | undefined;
1513
+ /**
1514
+ * <p>Specifies whether to preview the impact of deleting the policy without deleting it. If
1515
+ * you specify <code>true</code>, CloudWatch Logs does not delete the policy and
1516
+ * returns the estimated impact in <code>dryRunResult</code>. The default is
1517
+ * <code>false</code>.</p>
1518
+ * <p>Specifying <code>dryRun</code> is valid only when you specify
1519
+ * <code>RETENTION_POLICY</code> for <code>policyType</code>. Only one dry run can be in
1520
+ * progress for an account at a time.</p>
1521
+ * @public
1522
+ */
1523
+ dryRun?: boolean | undefined;
1524
+ }
1525
+ /**
1526
+ * <p>Describes the estimated effect of an account-level retention policy change on one log
1527
+ * group.</p>
1528
+ * @public
1529
+ */
1530
+ export interface LogGroupImpact {
1531
+ /**
1532
+ * <p>The name of the log group.</p>
1533
+ * @public
1534
+ */
1535
+ logGroupName?: string | undefined;
1536
+ /**
1537
+ * <p>The current effective retention period of the log group, in days. A value of
1538
+ * <code>NEVER_EXPIRE</code> indicates that log events in the log group never expire.</p>
1539
+ * @public
1540
+ */
1541
+ currentRetention?: string | undefined;
1542
+ /**
1543
+ * <p>The effective retention period of the log group, in days, after the change. A value of
1544
+ * <code>NEVER_EXPIRE</code> indicates that log events in the log group would never
1545
+ * expire.</p>
1546
+ * @public
1547
+ */
1548
+ proposedRetention?: string | undefined;
1549
+ /**
1550
+ * <p>The number of bytes stored in the log group.</p>
1551
+ * @public
1552
+ */
1553
+ storedBytes?: number | undefined;
1554
+ }
1555
+ /**
1556
+ * <p>Contains the estimated impact of creating, updating, or deleting an account-level
1557
+ * retention policy. The analysis compares the effective retention period of each log group,
1558
+ * which accounts for all account-level retention policies that apply to it, before and after
1559
+ * the change. Log groups in the Delivery class are not included.</p>
1560
+ * @public
1561
+ */
1562
+ export interface DryRunResult {
1563
+ /**
1564
+ * <p>The number of log groups in the scope of the policy that were analyzed. This value is
1565
+ * the sum of <code>increasedRetentionLogGroupCount</code>,
1566
+ * <code>decreasedRetentionLogGroupCount</code>, and
1567
+ * <code>unchangedRetentionLogGroupCount</code>, and does not include log groups that could not
1568
+ * be analyzed.</p>
1569
+ * @public
1570
+ */
1571
+ totalMatchedLogGroups?: number | undefined;
1572
+ /**
1573
+ * <p>The number of log groups whose effective retention period would become longer.</p>
1574
+ * @public
1575
+ */
1576
+ increasedRetentionLogGroupCount?: number | undefined;
1577
+ /**
1578
+ * <p>The number of log groups whose effective retention period would become shorter.</p>
1579
+ * @public
1580
+ */
1581
+ decreasedRetentionLogGroupCount?: number | undefined;
1582
+ /**
1583
+ * <p>The number of log groups whose effective retention period would not change.</p>
1584
+ * @public
1585
+ */
1586
+ unchangedRetentionLogGroupCount?: number | undefined;
1587
+ /**
1588
+ * <p>The number of log groups in the scope of the policy that could not be analyzed. These
1589
+ * log groups are not included in <code>totalMatchedLogGroups</code>.</p>
1590
+ * @public
1591
+ */
1592
+ failedAnalysisCount?: number | undefined;
1593
+ /**
1594
+ * <p>Up to 20 log groups in the scope of the policy, sorted by stored bytes in descending
1595
+ * order. This list can include log groups whose effective retention period would not
1596
+ * change.</p>
1597
+ * @public
1598
+ */
1599
+ topLogGroupsImpacted?: LogGroupImpact[] | undefined;
1600
+ }
1601
+ /**
1602
+ * @public
1603
+ */
1604
+ export interface DeleteAccountPolicyResponse {
1605
+ /**
1606
+ * <p>The estimated impact of deleting the policy. This field is returned only when the request
1607
+ * specifies <code>dryRun</code> as <code>true</code>.</p>
1608
+ * @public
1609
+ */
1610
+ dryRunResult?: DryRunResult | undefined;
1513
1611
  }
1514
1612
  /**
1515
1613
  * @public
@@ -2994,6 +3092,15 @@ export interface LogGroup {
2994
3092
  * @public
2995
3093
  */
2996
3094
  bearerTokenAuthenticationEnabled?: boolean | undefined;
3095
+ /**
3096
+ * <p>The name of the account-level retention policy that determines the retention period of
3097
+ * this log group. This field is returned only when an account-level retention policy applies to
3098
+ * the log group. When it is returned, <code>retentionInDays</code> shows the retention period
3099
+ * from that policy instead of the retention period set on the log group. If the policy specifies
3100
+ * that log events never expire, <code>retentionInDays</code> is not returned.</p>
3101
+ * @public
3102
+ */
3103
+ retentionPolicyName?: string | undefined;
2997
3104
  }
2998
3105
  /**
2999
3106
  * @public
@@ -7159,6 +7266,17 @@ export interface PutAccountPolicyRequest {
7159
7266
  * @public
7160
7267
  */
7161
7268
  selectionCriteria?: string | undefined;
7269
+ /**
7270
+ * <p>Specifies whether to preview the impact of the policy without creating or updating it.
7271
+ * If you specify <code>true</code>, CloudWatch Logs validates the request,
7272
+ * does not save the policy, and returns the estimated impact in <code>dryRunResult</code>
7273
+ * instead of <code>accountPolicy</code>. The default is <code>false</code>.</p>
7274
+ * <p>Specifying <code>dryRun</code> is valid only when you specify
7275
+ * <code>RETENTION_POLICY</code> for <code>policyType</code>. Only one dry run can be in
7276
+ * progress for an account at a time.</p>
7277
+ * @public
7278
+ */
7279
+ dryRun?: boolean | undefined;
7162
7280
  }
7163
7281
  /**
7164
7282
  * @public
@@ -7169,6 +7287,12 @@ export interface PutAccountPolicyResponse {
7169
7287
  * @public
7170
7288
  */
7171
7289
  accountPolicy?: AccountPolicy | undefined;
7290
+ /**
7291
+ * <p>The estimated impact of the policy on log groups in the account. This field is returned
7292
+ * only when the request specifies <code>dryRun</code> as <code>true</code>.</p>
7293
+ * @public
7294
+ */
7295
+ dryRunResult?: DryRunResult | undefined;
7172
7296
  }
7173
7297
  /**
7174
7298
  * @public
@@ -8571,61 +8695,3 @@ export interface StopQueryResponse {
8571
8695
  */
8572
8696
  success?: boolean | undefined;
8573
8697
  }
8574
- /**
8575
- * @deprecated Please use the generic tagging API model TagResourceRequest.
8576
- * @public
8577
- */
8578
- export interface TagLogGroupRequest {
8579
- /**
8580
- * <p>The name of the log group.</p>
8581
- * @public
8582
- */
8583
- logGroupName: string | undefined;
8584
- /**
8585
- * <p>The key-value pairs to use for the tags.</p>
8586
- * @public
8587
- */
8588
- tags: Record<string, string> | undefined;
8589
- }
8590
- /**
8591
- * @public
8592
- */
8593
- export interface TagResourceRequest {
8594
- /**
8595
- * <p>The ARN of the resource that you're adding tags to.</p>
8596
- * <p>The ARN format of a log group is
8597
- * <code>arn:aws:logs:<i>Region</i>:<i>account-id</i>:log-group:<i>log-group-name</i>
8598
- * </code>
8599
- * </p>
8600
- * <p>The ARN format of a destination is
8601
- * <code>arn:aws:logs:<i>Region</i>:<i>account-id</i>:destination:<i>destination-name</i>
8602
- * </code>
8603
- * </p>
8604
- * <p>For more information about ARN format, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html">CloudWatch Logs
8605
- * resources and operations</a>.</p>
8606
- * @public
8607
- */
8608
- resourceArn: string | undefined;
8609
- /**
8610
- * <p>The list of key-value pairs to associate with the resource.</p>
8611
- * @public
8612
- */
8613
- tags: Record<string, string> | undefined;
8614
- }
8615
- /**
8616
- * @public
8617
- */
8618
- export interface TestMetricFilterRequest {
8619
- /**
8620
- * <p>A symbolic description of how CloudWatch Logs should interpret the data in each log
8621
- * event. For example, a log event can contain timestamps, IP addresses, strings, and so on. You
8622
- * use the filter pattern to specify what to look for in the log event message.</p>
8623
- * @public
8624
- */
8625
- filterPattern: string | undefined;
8626
- /**
8627
- * <p>The log event messages to test.</p>
8628
- * @public
8629
- */
8630
- logEventMessages: string[] | undefined;
8631
- }
@@ -1,5 +1,63 @@
1
1
  import type { EvaluationFrequency, ExecutionStatus, QueryLanguage, ScheduledQueryState, ScheduleType, SuppressionType, SuppressionUnit } from "./enums";
2
2
  import type { DestinationConfiguration, Processor, S3DeliveryConfiguration } from "./models_0";
3
+ /**
4
+ * @deprecated Please use the generic tagging API model TagResourceRequest.
5
+ * @public
6
+ */
7
+ export interface TagLogGroupRequest {
8
+ /**
9
+ * <p>The name of the log group.</p>
10
+ * @public
11
+ */
12
+ logGroupName: string | undefined;
13
+ /**
14
+ * <p>The key-value pairs to use for the tags.</p>
15
+ * @public
16
+ */
17
+ tags: Record<string, string> | undefined;
18
+ }
19
+ /**
20
+ * @public
21
+ */
22
+ export interface TagResourceRequest {
23
+ /**
24
+ * <p>The ARN of the resource that you're adding tags to.</p>
25
+ * <p>The ARN format of a log group is
26
+ * <code>arn:aws:logs:<i>Region</i>:<i>account-id</i>:log-group:<i>log-group-name</i>
27
+ * </code>
28
+ * </p>
29
+ * <p>The ARN format of a destination is
30
+ * <code>arn:aws:logs:<i>Region</i>:<i>account-id</i>:destination:<i>destination-name</i>
31
+ * </code>
32
+ * </p>
33
+ * <p>For more information about ARN format, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html">CloudWatch Logs
34
+ * resources and operations</a>.</p>
35
+ * @public
36
+ */
37
+ resourceArn: string | undefined;
38
+ /**
39
+ * <p>The list of key-value pairs to associate with the resource.</p>
40
+ * @public
41
+ */
42
+ tags: Record<string, string> | undefined;
43
+ }
44
+ /**
45
+ * @public
46
+ */
47
+ export interface TestMetricFilterRequest {
48
+ /**
49
+ * <p>A symbolic description of how CloudWatch Logs should interpret the data in each log
50
+ * event. For example, a log event can contain timestamps, IP addresses, strings, and so on. You
51
+ * use the filter pattern to specify what to look for in the log event message.</p>
52
+ * @public
53
+ */
54
+ filterPattern: string | undefined;
55
+ /**
56
+ * <p>The log event messages to test.</p>
57
+ * @public
58
+ */
59
+ logEventMessages: string[] | undefined;
60
+ }
3
61
  /**
4
62
  * <p>Represents a matched event.</p>
5
63
  * @public
@@ -63,6 +63,7 @@ export declare var DataSource$: StaticStructureSchema;
63
63
  export declare var DataSourceFilter$: StaticStructureSchema;
64
64
  export declare var DateTimeConverter$: StaticStructureSchema;
65
65
  export declare var DeleteAccountPolicyRequest$: StaticStructureSchema;
66
+ export declare var DeleteAccountPolicyResponse$: StaticStructureSchema;
66
67
  export declare var DeleteDataProtectionPolicyRequest$: StaticStructureSchema;
67
68
  export declare var DeleteDeliveryDestinationPolicyRequest$: StaticStructureSchema;
68
69
  export declare var DeleteDeliveryDestinationRequest$: StaticStructureSchema;
@@ -136,6 +137,7 @@ export declare var DestinationConfiguration$: StaticStructureSchema;
136
137
  export declare var DisassociateKmsKeyRequest$: StaticStructureSchema;
137
138
  export declare var DisassociateSourceFromS3TableIntegrationRequest$: StaticStructureSchema;
138
139
  export declare var DisassociateSourceFromS3TableIntegrationResponse$: StaticStructureSchema;
140
+ export declare var DryRunResult$: StaticStructureSchema;
139
141
  export declare var Entity$: StaticStructureSchema;
140
142
  export declare var ExportTask$: StaticStructureSchema;
141
143
  export declare var ExportTaskExecutionInfo$: StaticStructureSchema;
@@ -222,6 +224,7 @@ export declare var LogFieldsListItem$: StaticStructureSchema;
222
224
  export declare var LogFieldType$: StaticStructureSchema;
223
225
  export declare var LogGroup$: StaticStructureSchema;
224
226
  export declare var LogGroupField$: StaticStructureSchema;
227
+ export declare var LogGroupImpact$: StaticStructureSchema;
225
228
  export declare var LogGroupSummary$: StaticStructureSchema;
226
229
  export declare var LogStream$: StaticStructureSchema;
227
230
  export declare var LookupTable$: StaticStructureSchema;
@@ -1,8 +1,9 @@
1
1
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
- import { DeleteAccountPolicyRequest } from "../models/models_0";
2
+ import { DeleteAccountPolicyRequest, DeleteAccountPolicyResponse } from "../models/models_0";
3
3
  export { __MetadataBearer };
4
4
  export interface DeleteAccountPolicyCommandInput extends DeleteAccountPolicyRequest {}
5
- export interface DeleteAccountPolicyCommandOutput extends __MetadataBearer {}
5
+ export interface DeleteAccountPolicyCommandOutput
6
+ extends DeleteAccountPolicyResponse, __MetadataBearer {}
6
7
  declare const DeleteAccountPolicyCommand_base: {
7
8
  new (
8
9
  input: DeleteAccountPolicyCommandInput,
@@ -28,7 +29,7 @@ export declare class DeleteAccountPolicyCommand extends DeleteAccountPolicyComma
28
29
  protected static __types: {
29
30
  api: {
30
31
  input: DeleteAccountPolicyRequest;
31
- output: {};
32
+ output: DeleteAccountPolicyResponse;
32
33
  };
33
34
  sdk: {
34
35
  input: DeleteAccountPolicyCommandInput;
@@ -1,5 +1,5 @@
1
1
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
- import { TagLogGroupRequest } from "../models/models_0";
2
+ import { TagLogGroupRequest } from "../models/models_1";
3
3
  export { __MetadataBearer };
4
4
  export interface TagLogGroupCommandInput extends TagLogGroupRequest {}
5
5
  export interface TagLogGroupCommandOutput extends __MetadataBearer {}
@@ -1,5 +1,5 @@
1
1
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
- import { TagResourceRequest } from "../models/models_0";
2
+ import { TagResourceRequest } from "../models/models_1";
3
3
  export { __MetadataBearer };
4
4
  export interface TagResourceCommandInput extends TagResourceRequest {}
5
5
  export interface TagResourceCommandOutput extends __MetadataBearer {}
@@ -1,6 +1,5 @@
1
1
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
- import { TestMetricFilterRequest } from "../models/models_0";
3
- import { TestMetricFilterResponse } from "../models/models_1";
2
+ import { TestMetricFilterRequest, TestMetricFilterResponse } from "../models/models_1";
4
3
  export { __MetadataBearer };
5
4
  export interface TestMetricFilterCommandInput extends TestMetricFilterRequest {}
6
5
  export interface TestMetricFilterCommandOutput extends TestMetricFilterResponse, __MetadataBearer {}
@@ -2,6 +2,7 @@ export declare const PolicyType: {
2
2
  readonly DATA_PROTECTION_POLICY: "DATA_PROTECTION_POLICY";
3
3
  readonly FIELD_INDEX_POLICY: "FIELD_INDEX_POLICY";
4
4
  readonly METRIC_EXTRACTION_POLICY: "METRIC_EXTRACTION_POLICY";
5
+ readonly RETENTION_POLICY: "RETENTION_POLICY";
5
6
  readonly SUBSCRIPTION_FILTER_POLICY: "SUBSCRIPTION_FILTER_POLICY";
6
7
  readonly TRANSFORMER_POLICY: "TRANSFORMER_POLICY";
7
8
  };
@@ -339,6 +339,24 @@ export interface DateTimeConverter {
339
339
  export interface DeleteAccountPolicyRequest {
340
340
  policyName: string | undefined;
341
341
  policyType: PolicyType | undefined;
342
+ dryRun?: boolean | undefined;
343
+ }
344
+ export interface LogGroupImpact {
345
+ logGroupName?: string | undefined;
346
+ currentRetention?: string | undefined;
347
+ proposedRetention?: string | undefined;
348
+ storedBytes?: number | undefined;
349
+ }
350
+ export interface DryRunResult {
351
+ totalMatchedLogGroups?: number | undefined;
352
+ increasedRetentionLogGroupCount?: number | undefined;
353
+ decreasedRetentionLogGroupCount?: number | undefined;
354
+ unchangedRetentionLogGroupCount?: number | undefined;
355
+ failedAnalysisCount?: number | undefined;
356
+ topLogGroupsImpacted?: LogGroupImpact[] | undefined;
357
+ }
358
+ export interface DeleteAccountPolicyResponse {
359
+ dryRunResult?: DryRunResult | undefined;
342
360
  }
343
361
  export interface DeleteDataProtectionPolicyRequest {
344
362
  logGroupIdentifier: string | undefined;
@@ -630,6 +648,7 @@ export interface LogGroup {
630
648
  logGroupArn?: string | undefined;
631
649
  deletionProtectionEnabled?: boolean | undefined;
632
650
  bearerTokenAuthenticationEnabled?: boolean | undefined;
651
+ retentionPolicyName?: string | undefined;
633
652
  }
634
653
  export interface DescribeLogGroupsResponse {
635
654
  logGroups?: LogGroup[] | undefined;
@@ -1443,9 +1462,11 @@ export interface PutAccountPolicyRequest {
1443
1462
  policyType: PolicyType | undefined;
1444
1463
  scope?: Scope | undefined;
1445
1464
  selectionCriteria?: string | undefined;
1465
+ dryRun?: boolean | undefined;
1446
1466
  }
1447
1467
  export interface PutAccountPolicyResponse {
1448
1468
  accountPolicy?: AccountPolicy | undefined;
1469
+ dryRunResult?: DryRunResult | undefined;
1449
1470
  }
1450
1471
  export interface PutBearerTokenAuthenticationRequest {
1451
1472
  logGroupIdentifier: string | undefined;
@@ -1713,15 +1734,3 @@ export interface StopQueryRequest {
1713
1734
  export interface StopQueryResponse {
1714
1735
  success?: boolean | undefined;
1715
1736
  }
1716
- export interface TagLogGroupRequest {
1717
- logGroupName: string | undefined;
1718
- tags: Record<string, string> | undefined;
1719
- }
1720
- export interface TagResourceRequest {
1721
- resourceArn: string | undefined;
1722
- tags: Record<string, string> | undefined;
1723
- }
1724
- export interface TestMetricFilterRequest {
1725
- filterPattern: string | undefined;
1726
- logEventMessages: string[] | undefined;
1727
- }
@@ -8,6 +8,18 @@ import {
8
8
  SuppressionUnit,
9
9
  } from "./enums";
10
10
  import { DestinationConfiguration, Processor, S3DeliveryConfiguration } from "./models_0";
11
+ export interface TagLogGroupRequest {
12
+ logGroupName: string | undefined;
13
+ tags: Record<string, string> | undefined;
14
+ }
15
+ export interface TagResourceRequest {
16
+ resourceArn: string | undefined;
17
+ tags: Record<string, string> | undefined;
18
+ }
19
+ export interface TestMetricFilterRequest {
20
+ filterPattern: string | undefined;
21
+ logEventMessages: string[] | undefined;
22
+ }
11
23
  export interface MetricFilterMatchRecord {
12
24
  eventNumber?: number | undefined;
13
25
  eventMessage?: string | undefined;
@@ -63,6 +63,7 @@ export declare var DataSource$: StaticStructureSchema;
63
63
  export declare var DataSourceFilter$: StaticStructureSchema;
64
64
  export declare var DateTimeConverter$: StaticStructureSchema;
65
65
  export declare var DeleteAccountPolicyRequest$: StaticStructureSchema;
66
+ export declare var DeleteAccountPolicyResponse$: StaticStructureSchema;
66
67
  export declare var DeleteDataProtectionPolicyRequest$: StaticStructureSchema;
67
68
  export declare var DeleteDeliveryDestinationPolicyRequest$: StaticStructureSchema;
68
69
  export declare var DeleteDeliveryDestinationRequest$: StaticStructureSchema;
@@ -136,6 +137,7 @@ export declare var DestinationConfiguration$: StaticStructureSchema;
136
137
  export declare var DisassociateKmsKeyRequest$: StaticStructureSchema;
137
138
  export declare var DisassociateSourceFromS3TableIntegrationRequest$: StaticStructureSchema;
138
139
  export declare var DisassociateSourceFromS3TableIntegrationResponse$: StaticStructureSchema;
140
+ export declare var DryRunResult$: StaticStructureSchema;
139
141
  export declare var Entity$: StaticStructureSchema;
140
142
  export declare var ExportTask$: StaticStructureSchema;
141
143
  export declare var ExportTaskExecutionInfo$: StaticStructureSchema;
@@ -222,6 +224,7 @@ export declare var LogFieldsListItem$: StaticStructureSchema;
222
224
  export declare var LogFieldType$: StaticStructureSchema;
223
225
  export declare var LogGroup$: StaticStructureSchema;
224
226
  export declare var LogGroupField$: StaticStructureSchema;
227
+ export declare var LogGroupImpact$: StaticStructureSchema;
225
228
  export declare var LogGroupSummary$: StaticStructureSchema;
226
229
  export declare var LogStream$: StaticStructureSchema;
227
230
  export declare var LookupTable$: StaticStructureSchema;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cloudwatch-logs",
3
- "version": "3.1160.0",
3
+ "version": "3.1161.0",
4
4
  "description": "AWS SDK for JavaScript Cloudwatch Logs Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-cloudwatch-logs",
6
6
  "license": "Apache-2.0",
@@ -52,12 +52,12 @@
52
52
  "test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
53
53
  },
54
54
  "dependencies": {
55
- "@aws-sdk/core": "^3.979.0",
56
- "@aws-sdk/credential-provider-node": "^3.972.91",
55
+ "@aws-sdk/core": "^3.979.1",
56
+ "@aws-sdk/credential-provider-node": "^3.972.92",
57
57
  "@aws-sdk/types": "^3.975.0",
58
- "@smithy/core": "^3.37.0",
58
+ "@smithy/core": "^3.38.0",
59
59
  "@smithy/fetch-http-handler": "^5.8.0",
60
- "@smithy/node-http-handler": "^4.13.0",
60
+ "@smithy/node-http-handler": "^4.14.0",
61
61
  "@smithy/types": "^4.19.0",
62
62
  "tslib": "^2.6.2"
63
63
  },