@aws-sdk/client-cloudwatch-logs 3.935.0 → 3.939.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -860,6 +860,14 @@ PutLogEvents
860
860
 
861
861
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cloudwatch-logs/command/PutLogEventsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudwatch-logs/Interface/PutLogEventsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudwatch-logs/Interface/PutLogEventsCommandOutput/)
862
862
 
863
+ </details>
864
+ <details>
865
+ <summary>
866
+ PutLogGroupDeletionProtection
867
+ </summary>
868
+
869
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cloudwatch-logs/command/PutLogGroupDeletionProtectionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudwatch-logs/Interface/PutLogGroupDeletionProtectionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudwatch-logs/Interface/PutLogGroupDeletionProtectionCommandOutput/)
870
+
863
871
  </details>
864
872
  <details>
865
873
  <summary>
package/dist-cjs/index.js CHANGED
@@ -696,6 +696,8 @@ const _PKV = "ParseKeyValue";
696
696
  const _PLE = "PutLogEvents";
697
697
  const _PLER = "PutLogEventsRequest";
698
698
  const _PLERu = "PutLogEventsResponse";
699
+ const _PLGDP = "PutLogGroupDeletionProtection";
700
+ const _PLGDPR = "PutLogGroupDeletionProtectionRequest";
699
701
  const _PMF = "PutMetricFilter";
700
702
  const _PMFR = "PutMetricFilterRequest";
701
703
  const _PP = "ParsePostgres";
@@ -866,6 +868,7 @@ const _dK = "deleteKeys";
866
868
  const _dN = "detectorName";
867
869
  const _dNe = "destinationName";
868
870
  const _dP = "destinationPrefix";
871
+ const _dPE = "deletionProtectionEnabled";
869
872
  const _dPS = "dataProtectionStatus";
870
873
  const _dRA = "destinationResourceArn";
871
874
  const _dS = "deliverySources";
@@ -1267,8 +1270,8 @@ var CreateLogGroupRequest = [
1267
1270
  n0,
1268
1271
  _CLGR,
1269
1272
  0,
1270
- [_lGN, _kKI, _ta, _lGC],
1271
- [0, 0, 128 | 0, 0],
1273
+ [_lGN, _kKI, _ta, _lGC, _dPE],
1274
+ [0, 0, 128 | 0, 0, 2],
1272
1275
  ];
1273
1276
  var CreateLogStreamRequest = [3, n0, _CLSR, 0, [_lGN, _lSN], [0, 0]];
1274
1277
  var CreateScheduledQueryRequest = [
@@ -1801,8 +1804,8 @@ var LogGroup = [
1801
1804
  n0,
1802
1805
  _LG,
1803
1806
  0,
1804
- [_lGN, _cTr, _rID, _mFC, _ar, _sB, _kKI, _dPS, _iPn, _lGC, _lGA],
1805
- [0, 1, 1, 1, 0, 1, 0, 0, 64 | 0, 0, 0],
1807
+ [_lGN, _cTr, _rID, _mFC, _ar, _sB, _kKI, _dPS, _iPn, _lGC, _lGA, _dPE],
1808
+ [0, 1, 1, 1, 0, 1, 0, 0, 64 | 0, 0, 0, 2],
1806
1809
  ];
1807
1810
  var LogGroupField = [3, n0, _LGF, 0, [_n, _pe], [0, 1]];
1808
1811
  var LogGroupSummary = [3, n0, _LGS, 0, [_lGN, _lGA, _lGC], [0, 0, 0]];
@@ -2081,6 +2084,7 @@ var PutLogEventsResponse = [
2081
2084
  [_nST, _rLEI, _rEI],
2082
2085
  [0, () => RejectedLogEventsInfo, () => RejectedEntityInfo],
2083
2086
  ];
2087
+ var PutLogGroupDeletionProtectionRequest = [3, n0, _PLGDPR, 0, [_lGIo, _dPE], [0, 2]];
2084
2088
  var PutMetricFilterRequest = [
2085
2089
  3,
2086
2090
  n0,
@@ -2999,6 +3003,14 @@ var PutLogEvents = [
2999
3003
  () => PutLogEventsRequest,
3000
3004
  () => PutLogEventsResponse,
3001
3005
  ];
3006
+ var PutLogGroupDeletionProtection = [
3007
+ 9,
3008
+ n0,
3009
+ _PLGDP,
3010
+ 0,
3011
+ () => PutLogGroupDeletionProtectionRequest,
3012
+ () => __Unit,
3013
+ ];
3002
3014
  var PutMetricFilter = [9, n0, _PMF, 0, () => PutMetricFilterRequest, () => __Unit];
3003
3015
  var PutQueryDefinition = [
3004
3016
  9,
@@ -4024,6 +4036,18 @@ class PutLogEventsCommand extends smithyClient.Command
4024
4036
  .build() {
4025
4037
  }
4026
4038
 
4039
+ class PutLogGroupDeletionProtectionCommand extends smithyClient.Command
4040
+ .classBuilder()
4041
+ .ep(commonParams)
4042
+ .m(function (Command, cs, config, o) {
4043
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
4044
+ })
4045
+ .s("Logs_20140328", "PutLogGroupDeletionProtection", {})
4046
+ .n("CloudWatchLogsClient", "PutLogGroupDeletionProtectionCommand")
4047
+ .sc(PutLogGroupDeletionProtection)
4048
+ .build() {
4049
+ }
4050
+
4027
4051
  class PutMetricFilterCommand extends smithyClient.Command
4028
4052
  .classBuilder()
4029
4053
  .ep(commonParams)
@@ -4335,6 +4359,7 @@ const commands = {
4335
4359
  PutIndexPolicyCommand,
4336
4360
  PutIntegrationCommand,
4337
4361
  PutLogEventsCommand,
4362
+ PutLogGroupDeletionProtectionCommand,
4338
4363
  PutMetricFilterCommand,
4339
4364
  PutQueryDefinitionCommand,
4340
4365
  PutResourcePolicyCommand,
@@ -4715,6 +4740,7 @@ exports.PutDestinationPolicyCommand = PutDestinationPolicyCommand;
4715
4740
  exports.PutIndexPolicyCommand = PutIndexPolicyCommand;
4716
4741
  exports.PutIntegrationCommand = PutIntegrationCommand;
4717
4742
  exports.PutLogEventsCommand = PutLogEventsCommand;
4743
+ exports.PutLogGroupDeletionProtectionCommand = PutLogGroupDeletionProtectionCommand;
4718
4744
  exports.PutMetricFilterCommand = PutMetricFilterCommand;
4719
4745
  exports.PutQueryDefinitionCommand = PutQueryDefinitionCommand;
4720
4746
  exports.PutResourcePolicyCommand = PutResourcePolicyCommand;
@@ -78,6 +78,7 @@ import { PutDestinationPolicyCommand, } from "./commands/PutDestinationPolicyCom
78
78
  import { PutIndexPolicyCommand, } from "./commands/PutIndexPolicyCommand";
79
79
  import { PutIntegrationCommand, } from "./commands/PutIntegrationCommand";
80
80
  import { PutLogEventsCommand, } from "./commands/PutLogEventsCommand";
81
+ import { PutLogGroupDeletionProtectionCommand, } from "./commands/PutLogGroupDeletionProtectionCommand";
81
82
  import { PutMetricFilterCommand, } from "./commands/PutMetricFilterCommand";
82
83
  import { PutQueryDefinitionCommand, } from "./commands/PutQueryDefinitionCommand";
83
84
  import { PutResourcePolicyCommand, } from "./commands/PutResourcePolicyCommand";
@@ -176,6 +177,7 @@ const commands = {
176
177
  PutIndexPolicyCommand,
177
178
  PutIntegrationCommand,
178
179
  PutLogEventsCommand,
180
+ PutLogGroupDeletionProtectionCommand,
179
181
  PutMetricFilterCommand,
180
182
  PutQueryDefinitionCommand,
181
183
  PutResourcePolicyCommand,
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { PutLogGroupDeletionProtection } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class PutLogGroupDeletionProtectionCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("Logs_20140328", "PutLogGroupDeletionProtection", {})
13
+ .n("CloudWatchLogsClient", "PutLogGroupDeletionProtectionCommand")
14
+ .sc(PutLogGroupDeletionProtection)
15
+ .build() {
16
+ }
@@ -76,6 +76,7 @@ export * from "./PutDestinationPolicyCommand";
76
76
  export * from "./PutIndexPolicyCommand";
77
77
  export * from "./PutIntegrationCommand";
78
78
  export * from "./PutLogEventsCommand";
79
+ export * from "./PutLogGroupDeletionProtectionCommand";
79
80
  export * from "./PutMetricFilterCommand";
80
81
  export * from "./PutQueryDefinitionCommand";
81
82
  export * from "./PutResourcePolicyCommand";
@@ -314,6 +314,8 @@ const _PKV = "ParseKeyValue";
314
314
  const _PLE = "PutLogEvents";
315
315
  const _PLER = "PutLogEventsRequest";
316
316
  const _PLERu = "PutLogEventsResponse";
317
+ const _PLGDP = "PutLogGroupDeletionProtection";
318
+ const _PLGDPR = "PutLogGroupDeletionProtectionRequest";
317
319
  const _PMF = "PutMetricFilter";
318
320
  const _PMFR = "PutMetricFilterRequest";
319
321
  const _PP = "ParsePostgres";
@@ -484,6 +486,7 @@ const _dK = "deleteKeys";
484
486
  const _dN = "detectorName";
485
487
  const _dNe = "destinationName";
486
488
  const _dP = "destinationPrefix";
489
+ const _dPE = "deletionProtectionEnabled";
487
490
  const _dPS = "dataProtectionStatus";
488
491
  const _dRA = "destinationResourceArn";
489
492
  const _dS = "deliverySources";
@@ -888,8 +891,8 @@ export var CreateLogGroupRequest = [
888
891
  n0,
889
892
  _CLGR,
890
893
  0,
891
- [_lGN, _kKI, _ta, _lGC],
892
- [0, 0, 128 | 0, 0],
894
+ [_lGN, _kKI, _ta, _lGC, _dPE],
895
+ [0, 0, 128 | 0, 0, 2],
893
896
  ];
894
897
  export var CreateLogStreamRequest = [3, n0, _CLSR, 0, [_lGN, _lSN], [0, 0]];
895
898
  export var CreateScheduledQueryRequest = [
@@ -1422,8 +1425,8 @@ export var LogGroup = [
1422
1425
  n0,
1423
1426
  _LG,
1424
1427
  0,
1425
- [_lGN, _cTr, _rID, _mFC, _ar, _sB, _kKI, _dPS, _iPn, _lGC, _lGA],
1426
- [0, 1, 1, 1, 0, 1, 0, 0, 64 | 0, 0, 0],
1428
+ [_lGN, _cTr, _rID, _mFC, _ar, _sB, _kKI, _dPS, _iPn, _lGC, _lGA, _dPE],
1429
+ [0, 1, 1, 1, 0, 1, 0, 0, 64 | 0, 0, 0, 2],
1427
1430
  ];
1428
1431
  export var LogGroupField = [3, n0, _LGF, 0, [_n, _pe], [0, 1]];
1429
1432
  export var LogGroupSummary = [3, n0, _LGS, 0, [_lGN, _lGA, _lGC], [0, 0, 0]];
@@ -1702,6 +1705,7 @@ export var PutLogEventsResponse = [
1702
1705
  [_nST, _rLEI, _rEI],
1703
1706
  [0, () => RejectedLogEventsInfo, () => RejectedEntityInfo],
1704
1707
  ];
1708
+ export var PutLogGroupDeletionProtectionRequest = [3, n0, _PLGDPR, 0, [_lGIo, _dPE], [0, 2]];
1705
1709
  export var PutMetricFilterRequest = [
1706
1710
  3,
1707
1711
  n0,
@@ -2658,6 +2662,14 @@ export var PutLogEvents = [
2658
2662
  () => PutLogEventsRequest,
2659
2663
  () => PutLogEventsResponse,
2660
2664
  ];
2665
+ export var PutLogGroupDeletionProtection = [
2666
+ 9,
2667
+ n0,
2668
+ _PLGDP,
2669
+ 0,
2670
+ () => PutLogGroupDeletionProtectionRequest,
2671
+ () => __Unit,
2672
+ ];
2661
2673
  export var PutMetricFilter = [9, n0, _PMF, 0, () => PutMetricFilterRequest, () => __Unit];
2662
2674
  export var PutQueryDefinition = [
2663
2675
  9,
@@ -78,6 +78,7 @@ import { PutDestinationPolicyCommandInput, PutDestinationPolicyCommandOutput } f
78
78
  import { PutIndexPolicyCommandInput, PutIndexPolicyCommandOutput } from "./commands/PutIndexPolicyCommand";
79
79
  import { PutIntegrationCommandInput, PutIntegrationCommandOutput } from "./commands/PutIntegrationCommand";
80
80
  import { PutLogEventsCommandInput, PutLogEventsCommandOutput } from "./commands/PutLogEventsCommand";
81
+ import { PutLogGroupDeletionProtectionCommandInput, PutLogGroupDeletionProtectionCommandOutput } from "./commands/PutLogGroupDeletionProtectionCommand";
81
82
  import { PutMetricFilterCommandInput, PutMetricFilterCommandOutput } from "./commands/PutMetricFilterCommand";
82
83
  import { PutQueryDefinitionCommandInput, PutQueryDefinitionCommandOutput } from "./commands/PutQueryDefinitionCommand";
83
84
  import { PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput } from "./commands/PutResourcePolicyCommand";
@@ -587,6 +588,12 @@ export interface CloudWatchLogs {
587
588
  putLogEvents(args: PutLogEventsCommandInput, options?: __HttpHandlerOptions): Promise<PutLogEventsCommandOutput>;
588
589
  putLogEvents(args: PutLogEventsCommandInput, cb: (err: any, data?: PutLogEventsCommandOutput) => void): void;
589
590
  putLogEvents(args: PutLogEventsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutLogEventsCommandOutput) => void): void;
591
+ /**
592
+ * @see {@link PutLogGroupDeletionProtectionCommand}
593
+ */
594
+ putLogGroupDeletionProtection(args: PutLogGroupDeletionProtectionCommandInput, options?: __HttpHandlerOptions): Promise<PutLogGroupDeletionProtectionCommandOutput>;
595
+ putLogGroupDeletionProtection(args: PutLogGroupDeletionProtectionCommandInput, cb: (err: any, data?: PutLogGroupDeletionProtectionCommandOutput) => void): void;
596
+ putLogGroupDeletionProtection(args: PutLogGroupDeletionProtectionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutLogGroupDeletionProtectionCommandOutput) => void): void;
590
597
  /**
591
598
  * @see {@link PutMetricFilterCommand}
592
599
  */
@@ -86,6 +86,7 @@ import { PutDestinationPolicyCommandInput, PutDestinationPolicyCommandOutput } f
86
86
  import { PutIndexPolicyCommandInput, PutIndexPolicyCommandOutput } from "./commands/PutIndexPolicyCommand";
87
87
  import { PutIntegrationCommandInput, PutIntegrationCommandOutput } from "./commands/PutIntegrationCommand";
88
88
  import { PutLogEventsCommandInput, PutLogEventsCommandOutput } from "./commands/PutLogEventsCommand";
89
+ import { PutLogGroupDeletionProtectionCommandInput, PutLogGroupDeletionProtectionCommandOutput } from "./commands/PutLogGroupDeletionProtectionCommand";
89
90
  import { PutMetricFilterCommandInput, PutMetricFilterCommandOutput } from "./commands/PutMetricFilterCommand";
90
91
  import { PutQueryDefinitionCommandInput, PutQueryDefinitionCommandOutput } from "./commands/PutQueryDefinitionCommand";
91
92
  import { PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput } from "./commands/PutResourcePolicyCommand";
@@ -111,11 +112,11 @@ export { __Client };
111
112
  /**
112
113
  * @public
113
114
  */
114
- export type ServiceInputTypes = AssociateKmsKeyCommandInput | CancelExportTaskCommandInput | CreateDeliveryCommandInput | CreateExportTaskCommandInput | CreateLogAnomalyDetectorCommandInput | CreateLogGroupCommandInput | CreateLogStreamCommandInput | CreateScheduledQueryCommandInput | DeleteAccountPolicyCommandInput | DeleteDataProtectionPolicyCommandInput | DeleteDeliveryCommandInput | DeleteDeliveryDestinationCommandInput | DeleteDeliveryDestinationPolicyCommandInput | DeleteDeliverySourceCommandInput | DeleteDestinationCommandInput | DeleteIndexPolicyCommandInput | DeleteIntegrationCommandInput | DeleteLogAnomalyDetectorCommandInput | DeleteLogGroupCommandInput | DeleteLogStreamCommandInput | DeleteMetricFilterCommandInput | DeleteQueryDefinitionCommandInput | DeleteResourcePolicyCommandInput | DeleteRetentionPolicyCommandInput | DeleteScheduledQueryCommandInput | DeleteSubscriptionFilterCommandInput | DeleteTransformerCommandInput | DescribeAccountPoliciesCommandInput | DescribeConfigurationTemplatesCommandInput | DescribeDeliveriesCommandInput | DescribeDeliveryDestinationsCommandInput | DescribeDeliverySourcesCommandInput | DescribeDestinationsCommandInput | DescribeExportTasksCommandInput | DescribeFieldIndexesCommandInput | DescribeIndexPoliciesCommandInput | DescribeLogGroupsCommandInput | DescribeLogStreamsCommandInput | DescribeMetricFiltersCommandInput | DescribeQueriesCommandInput | DescribeQueryDefinitionsCommandInput | DescribeResourcePoliciesCommandInput | DescribeSubscriptionFiltersCommandInput | DisassociateKmsKeyCommandInput | FilterLogEventsCommandInput | GetDataProtectionPolicyCommandInput | GetDeliveryCommandInput | GetDeliveryDestinationCommandInput | GetDeliveryDestinationPolicyCommandInput | GetDeliverySourceCommandInput | GetIntegrationCommandInput | GetLogAnomalyDetectorCommandInput | GetLogEventsCommandInput | GetLogGroupFieldsCommandInput | GetLogObjectCommandInput | GetLogRecordCommandInput | GetQueryResultsCommandInput | GetScheduledQueryCommandInput | GetScheduledQueryHistoryCommandInput | GetTransformerCommandInput | ListAnomaliesCommandInput | ListIntegrationsCommandInput | ListLogAnomalyDetectorsCommandInput | ListLogGroupsCommandInput | ListLogGroupsForQueryCommandInput | ListScheduledQueriesCommandInput | ListTagsForResourceCommandInput | ListTagsLogGroupCommandInput | PutAccountPolicyCommandInput | PutDataProtectionPolicyCommandInput | PutDeliveryDestinationCommandInput | PutDeliveryDestinationPolicyCommandInput | PutDeliverySourceCommandInput | PutDestinationCommandInput | PutDestinationPolicyCommandInput | PutIndexPolicyCommandInput | PutIntegrationCommandInput | PutLogEventsCommandInput | PutMetricFilterCommandInput | PutQueryDefinitionCommandInput | PutResourcePolicyCommandInput | PutRetentionPolicyCommandInput | PutSubscriptionFilterCommandInput | PutTransformerCommandInput | StartLiveTailCommandInput | StartQueryCommandInput | StopQueryCommandInput | TagLogGroupCommandInput | TagResourceCommandInput | TestMetricFilterCommandInput | TestTransformerCommandInput | UntagLogGroupCommandInput | UntagResourceCommandInput | UpdateAnomalyCommandInput | UpdateDeliveryConfigurationCommandInput | UpdateLogAnomalyDetectorCommandInput | UpdateScheduledQueryCommandInput;
115
+ export type ServiceInputTypes = AssociateKmsKeyCommandInput | CancelExportTaskCommandInput | CreateDeliveryCommandInput | CreateExportTaskCommandInput | CreateLogAnomalyDetectorCommandInput | CreateLogGroupCommandInput | CreateLogStreamCommandInput | CreateScheduledQueryCommandInput | DeleteAccountPolicyCommandInput | DeleteDataProtectionPolicyCommandInput | DeleteDeliveryCommandInput | DeleteDeliveryDestinationCommandInput | DeleteDeliveryDestinationPolicyCommandInput | DeleteDeliverySourceCommandInput | DeleteDestinationCommandInput | DeleteIndexPolicyCommandInput | DeleteIntegrationCommandInput | DeleteLogAnomalyDetectorCommandInput | DeleteLogGroupCommandInput | DeleteLogStreamCommandInput | DeleteMetricFilterCommandInput | DeleteQueryDefinitionCommandInput | DeleteResourcePolicyCommandInput | DeleteRetentionPolicyCommandInput | DeleteScheduledQueryCommandInput | DeleteSubscriptionFilterCommandInput | DeleteTransformerCommandInput | DescribeAccountPoliciesCommandInput | DescribeConfigurationTemplatesCommandInput | DescribeDeliveriesCommandInput | DescribeDeliveryDestinationsCommandInput | DescribeDeliverySourcesCommandInput | DescribeDestinationsCommandInput | DescribeExportTasksCommandInput | DescribeFieldIndexesCommandInput | DescribeIndexPoliciesCommandInput | DescribeLogGroupsCommandInput | DescribeLogStreamsCommandInput | DescribeMetricFiltersCommandInput | DescribeQueriesCommandInput | DescribeQueryDefinitionsCommandInput | DescribeResourcePoliciesCommandInput | DescribeSubscriptionFiltersCommandInput | DisassociateKmsKeyCommandInput | FilterLogEventsCommandInput | GetDataProtectionPolicyCommandInput | GetDeliveryCommandInput | GetDeliveryDestinationCommandInput | GetDeliveryDestinationPolicyCommandInput | GetDeliverySourceCommandInput | GetIntegrationCommandInput | GetLogAnomalyDetectorCommandInput | GetLogEventsCommandInput | GetLogGroupFieldsCommandInput | GetLogObjectCommandInput | GetLogRecordCommandInput | GetQueryResultsCommandInput | GetScheduledQueryCommandInput | GetScheduledQueryHistoryCommandInput | GetTransformerCommandInput | ListAnomaliesCommandInput | ListIntegrationsCommandInput | ListLogAnomalyDetectorsCommandInput | ListLogGroupsCommandInput | ListLogGroupsForQueryCommandInput | ListScheduledQueriesCommandInput | ListTagsForResourceCommandInput | ListTagsLogGroupCommandInput | PutAccountPolicyCommandInput | PutDataProtectionPolicyCommandInput | PutDeliveryDestinationCommandInput | PutDeliveryDestinationPolicyCommandInput | PutDeliverySourceCommandInput | PutDestinationCommandInput | PutDestinationPolicyCommandInput | PutIndexPolicyCommandInput | PutIntegrationCommandInput | PutLogEventsCommandInput | PutLogGroupDeletionProtectionCommandInput | PutMetricFilterCommandInput | PutQueryDefinitionCommandInput | PutResourcePolicyCommandInput | PutRetentionPolicyCommandInput | PutSubscriptionFilterCommandInput | PutTransformerCommandInput | StartLiveTailCommandInput | StartQueryCommandInput | StopQueryCommandInput | TagLogGroupCommandInput | TagResourceCommandInput | TestMetricFilterCommandInput | TestTransformerCommandInput | UntagLogGroupCommandInput | UntagResourceCommandInput | UpdateAnomalyCommandInput | UpdateDeliveryConfigurationCommandInput | UpdateLogAnomalyDetectorCommandInput | UpdateScheduledQueryCommandInput;
115
116
  /**
116
117
  * @public
117
118
  */
118
- export type ServiceOutputTypes = AssociateKmsKeyCommandOutput | CancelExportTaskCommandOutput | CreateDeliveryCommandOutput | CreateExportTaskCommandOutput | CreateLogAnomalyDetectorCommandOutput | CreateLogGroupCommandOutput | CreateLogStreamCommandOutput | CreateScheduledQueryCommandOutput | DeleteAccountPolicyCommandOutput | DeleteDataProtectionPolicyCommandOutput | DeleteDeliveryCommandOutput | DeleteDeliveryDestinationCommandOutput | DeleteDeliveryDestinationPolicyCommandOutput | DeleteDeliverySourceCommandOutput | DeleteDestinationCommandOutput | DeleteIndexPolicyCommandOutput | DeleteIntegrationCommandOutput | DeleteLogAnomalyDetectorCommandOutput | DeleteLogGroupCommandOutput | DeleteLogStreamCommandOutput | DeleteMetricFilterCommandOutput | DeleteQueryDefinitionCommandOutput | DeleteResourcePolicyCommandOutput | DeleteRetentionPolicyCommandOutput | DeleteScheduledQueryCommandOutput | DeleteSubscriptionFilterCommandOutput | DeleteTransformerCommandOutput | DescribeAccountPoliciesCommandOutput | DescribeConfigurationTemplatesCommandOutput | DescribeDeliveriesCommandOutput | DescribeDeliveryDestinationsCommandOutput | DescribeDeliverySourcesCommandOutput | DescribeDestinationsCommandOutput | DescribeExportTasksCommandOutput | DescribeFieldIndexesCommandOutput | DescribeIndexPoliciesCommandOutput | DescribeLogGroupsCommandOutput | DescribeLogStreamsCommandOutput | DescribeMetricFiltersCommandOutput | DescribeQueriesCommandOutput | DescribeQueryDefinitionsCommandOutput | DescribeResourcePoliciesCommandOutput | DescribeSubscriptionFiltersCommandOutput | DisassociateKmsKeyCommandOutput | FilterLogEventsCommandOutput | GetDataProtectionPolicyCommandOutput | GetDeliveryCommandOutput | GetDeliveryDestinationCommandOutput | GetDeliveryDestinationPolicyCommandOutput | GetDeliverySourceCommandOutput | GetIntegrationCommandOutput | GetLogAnomalyDetectorCommandOutput | GetLogEventsCommandOutput | GetLogGroupFieldsCommandOutput | GetLogObjectCommandOutput | GetLogRecordCommandOutput | GetQueryResultsCommandOutput | GetScheduledQueryCommandOutput | GetScheduledQueryHistoryCommandOutput | GetTransformerCommandOutput | ListAnomaliesCommandOutput | ListIntegrationsCommandOutput | ListLogAnomalyDetectorsCommandOutput | ListLogGroupsCommandOutput | ListLogGroupsForQueryCommandOutput | ListScheduledQueriesCommandOutput | ListTagsForResourceCommandOutput | ListTagsLogGroupCommandOutput | PutAccountPolicyCommandOutput | PutDataProtectionPolicyCommandOutput | PutDeliveryDestinationCommandOutput | PutDeliveryDestinationPolicyCommandOutput | PutDeliverySourceCommandOutput | PutDestinationCommandOutput | PutDestinationPolicyCommandOutput | PutIndexPolicyCommandOutput | PutIntegrationCommandOutput | PutLogEventsCommandOutput | PutMetricFilterCommandOutput | PutQueryDefinitionCommandOutput | PutResourcePolicyCommandOutput | PutRetentionPolicyCommandOutput | PutSubscriptionFilterCommandOutput | PutTransformerCommandOutput | StartLiveTailCommandOutput | StartQueryCommandOutput | StopQueryCommandOutput | TagLogGroupCommandOutput | TagResourceCommandOutput | TestMetricFilterCommandOutput | TestTransformerCommandOutput | UntagLogGroupCommandOutput | UntagResourceCommandOutput | UpdateAnomalyCommandOutput | UpdateDeliveryConfigurationCommandOutput | UpdateLogAnomalyDetectorCommandOutput | UpdateScheduledQueryCommandOutput;
119
+ export type ServiceOutputTypes = AssociateKmsKeyCommandOutput | CancelExportTaskCommandOutput | CreateDeliveryCommandOutput | CreateExportTaskCommandOutput | CreateLogAnomalyDetectorCommandOutput | CreateLogGroupCommandOutput | CreateLogStreamCommandOutput | CreateScheduledQueryCommandOutput | DeleteAccountPolicyCommandOutput | DeleteDataProtectionPolicyCommandOutput | DeleteDeliveryCommandOutput | DeleteDeliveryDestinationCommandOutput | DeleteDeliveryDestinationPolicyCommandOutput | DeleteDeliverySourceCommandOutput | DeleteDestinationCommandOutput | DeleteIndexPolicyCommandOutput | DeleteIntegrationCommandOutput | DeleteLogAnomalyDetectorCommandOutput | DeleteLogGroupCommandOutput | DeleteLogStreamCommandOutput | DeleteMetricFilterCommandOutput | DeleteQueryDefinitionCommandOutput | DeleteResourcePolicyCommandOutput | DeleteRetentionPolicyCommandOutput | DeleteScheduledQueryCommandOutput | DeleteSubscriptionFilterCommandOutput | DeleteTransformerCommandOutput | DescribeAccountPoliciesCommandOutput | DescribeConfigurationTemplatesCommandOutput | DescribeDeliveriesCommandOutput | DescribeDeliveryDestinationsCommandOutput | DescribeDeliverySourcesCommandOutput | DescribeDestinationsCommandOutput | DescribeExportTasksCommandOutput | DescribeFieldIndexesCommandOutput | DescribeIndexPoliciesCommandOutput | DescribeLogGroupsCommandOutput | DescribeLogStreamsCommandOutput | DescribeMetricFiltersCommandOutput | DescribeQueriesCommandOutput | DescribeQueryDefinitionsCommandOutput | DescribeResourcePoliciesCommandOutput | DescribeSubscriptionFiltersCommandOutput | DisassociateKmsKeyCommandOutput | FilterLogEventsCommandOutput | GetDataProtectionPolicyCommandOutput | GetDeliveryCommandOutput | GetDeliveryDestinationCommandOutput | GetDeliveryDestinationPolicyCommandOutput | GetDeliverySourceCommandOutput | GetIntegrationCommandOutput | GetLogAnomalyDetectorCommandOutput | GetLogEventsCommandOutput | GetLogGroupFieldsCommandOutput | GetLogObjectCommandOutput | GetLogRecordCommandOutput | GetQueryResultsCommandOutput | GetScheduledQueryCommandOutput | GetScheduledQueryHistoryCommandOutput | GetTransformerCommandOutput | ListAnomaliesCommandOutput | ListIntegrationsCommandOutput | ListLogAnomalyDetectorsCommandOutput | ListLogGroupsCommandOutput | ListLogGroupsForQueryCommandOutput | ListScheduledQueriesCommandOutput | ListTagsForResourceCommandOutput | ListTagsLogGroupCommandOutput | PutAccountPolicyCommandOutput | PutDataProtectionPolicyCommandOutput | PutDeliveryDestinationCommandOutput | PutDeliveryDestinationPolicyCommandOutput | PutDeliverySourceCommandOutput | PutDestinationCommandOutput | PutDestinationPolicyCommandOutput | PutIndexPolicyCommandOutput | PutIntegrationCommandOutput | PutLogEventsCommandOutput | PutLogGroupDeletionProtectionCommandOutput | PutMetricFilterCommandOutput | PutQueryDefinitionCommandOutput | PutResourcePolicyCommandOutput | PutRetentionPolicyCommandOutput | PutSubscriptionFilterCommandOutput | PutTransformerCommandOutput | StartLiveTailCommandOutput | StartQueryCommandOutput | StopQueryCommandOutput | TagLogGroupCommandOutput | TagResourceCommandOutput | TestMetricFilterCommandOutput | TestTransformerCommandOutput | UntagLogGroupCommandOutput | UntagResourceCommandOutput | UpdateAnomalyCommandOutput | UpdateDeliveryConfigurationCommandOutput | UpdateLogAnomalyDetectorCommandOutput | UpdateScheduledQueryCommandOutput;
119
120
  /**
120
121
  * @public
121
122
  */
@@ -77,6 +77,7 @@ declare const CreateLogGroupCommand_base: {
77
77
  * "<keys>": "STRING_VALUE",
78
78
  * },
79
79
  * logGroupClass: "STANDARD" || "INFREQUENT_ACCESS" || "DELIVERY",
80
+ * deletionProtectionEnabled: true || false,
80
81
  * };
81
82
  * const command = new CreateLogGroupCommand(input);
82
83
  * const response = await client.send(command);
@@ -64,6 +64,9 @@ declare const DeleteLogGroupCommand_base: {
64
64
  * @throws {@link ServiceUnavailableException} (server fault)
65
65
  * <p>The service cannot complete the request.</p>
66
66
  *
67
+ * @throws {@link ValidationException} (client fault)
68
+ * <p>One of the parameters for the request is not valid.</p>
69
+ *
67
70
  * @throws {@link CloudWatchLogsServiceException}
68
71
  * <p>Base exception class for all service exceptions from CloudWatchLogs service.</p>
69
72
  *
@@ -65,6 +65,9 @@ declare const DeleteLogStreamCommand_base: {
65
65
  * @throws {@link ServiceUnavailableException} (server fault)
66
66
  * <p>The service cannot complete the request.</p>
67
67
  *
68
+ * @throws {@link ValidationException} (client fault)
69
+ * <p>One of the parameters for the request is not valid.</p>
70
+ *
68
71
  * @throws {@link CloudWatchLogsServiceException}
69
72
  * <p>Base exception class for all service exceptions from CloudWatchLogs service.</p>
70
73
  *
@@ -81,6 +81,7 @@ declare const DescribeLogGroupsCommand_base: {
81
81
  * // ],
82
82
  * // logGroupClass: "STANDARD" || "INFREQUENT_ACCESS" || "DELIVERY",
83
83
  * // logGroupArn: "STRING_VALUE",
84
+ * // deletionProtectionEnabled: true || false,
84
85
  * // },
85
86
  * // ],
86
87
  * // nextToken: "STRING_VALUE",
@@ -0,0 +1,93 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient";
4
+ import { PutLogGroupDeletionProtectionRequest } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link PutLogGroupDeletionProtectionCommand}.
14
+ */
15
+ export interface PutLogGroupDeletionProtectionCommandInput extends PutLogGroupDeletionProtectionRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link PutLogGroupDeletionProtectionCommand}.
21
+ */
22
+ export interface PutLogGroupDeletionProtectionCommandOutput extends __MetadataBearer {
23
+ }
24
+ declare const PutLogGroupDeletionProtectionCommand_base: {
25
+ new (input: PutLogGroupDeletionProtectionCommandInput): import("@smithy/smithy-client").CommandImpl<PutLogGroupDeletionProtectionCommandInput, PutLogGroupDeletionProtectionCommandOutput, CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: PutLogGroupDeletionProtectionCommandInput): import("@smithy/smithy-client").CommandImpl<PutLogGroupDeletionProtectionCommandInput, PutLogGroupDeletionProtectionCommandOutput, CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Enables or disables deletion protection for the specified log group. When enabled on a log group, deletion protection blocks all
31
+ * deletion operations until it is explicitly disabled.</p>
32
+ * <p>For information about the parameters that are common to all actions, see <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/CommonParameters.html">Common Parameters</a>.</p>
33
+ * @example
34
+ * Use a bare-bones client and the command you need to make an API call.
35
+ * ```javascript
36
+ * import { CloudWatchLogsClient, PutLogGroupDeletionProtectionCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
37
+ * // const { CloudWatchLogsClient, PutLogGroupDeletionProtectionCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
38
+ * // import type { CloudWatchLogsClientConfig } from "@aws-sdk/client-cloudwatch-logs";
39
+ * const config = {}; // type is CloudWatchLogsClientConfig
40
+ * const client = new CloudWatchLogsClient(config);
41
+ * const input = { // PutLogGroupDeletionProtectionRequest
42
+ * logGroupIdentifier: "STRING_VALUE", // required
43
+ * deletionProtectionEnabled: true || false, // required
44
+ * };
45
+ * const command = new PutLogGroupDeletionProtectionCommand(input);
46
+ * const response = await client.send(command);
47
+ * // {};
48
+ *
49
+ * ```
50
+ *
51
+ * @param PutLogGroupDeletionProtectionCommandInput - {@link PutLogGroupDeletionProtectionCommandInput}
52
+ * @returns {@link PutLogGroupDeletionProtectionCommandOutput}
53
+ * @see {@link PutLogGroupDeletionProtectionCommandInput} for command's `input` shape.
54
+ * @see {@link PutLogGroupDeletionProtectionCommandOutput} for command's `response` shape.
55
+ * @see {@link CloudWatchLogsClientResolvedConfig | config} for CloudWatchLogsClient's `config` shape.
56
+ *
57
+ * @throws {@link AccessDeniedException} (client fault)
58
+ * <p>You don't have sufficient permissions to perform this action.</p>
59
+ *
60
+ * @throws {@link InvalidOperationException} (client fault)
61
+ * <p>The operation is not valid on the specified resource.</p>
62
+ *
63
+ * @throws {@link InvalidParameterException} (client fault)
64
+ * <p>A parameter is specified incorrectly.</p>
65
+ *
66
+ * @throws {@link OperationAbortedException} (client fault)
67
+ * <p>Multiple concurrent requests to update the same resource were in conflict.</p>
68
+ *
69
+ * @throws {@link ResourceNotFoundException} (client fault)
70
+ * <p>The specified resource does not exist.</p>
71
+ *
72
+ * @throws {@link ServiceUnavailableException} (server fault)
73
+ * <p>The service cannot complete the request.</p>
74
+ *
75
+ * @throws {@link CloudWatchLogsServiceException}
76
+ * <p>Base exception class for all service exceptions from CloudWatchLogs service.</p>
77
+ *
78
+ *
79
+ * @public
80
+ */
81
+ export declare class PutLogGroupDeletionProtectionCommand extends PutLogGroupDeletionProtectionCommand_base {
82
+ /** @internal type navigation helper, not in runtime. */
83
+ protected static __types: {
84
+ api: {
85
+ input: PutLogGroupDeletionProtectionRequest;
86
+ output: {};
87
+ };
88
+ sdk: {
89
+ input: PutLogGroupDeletionProtectionCommandInput;
90
+ output: PutLogGroupDeletionProtectionCommandOutput;
91
+ };
92
+ };
93
+ }
@@ -76,6 +76,7 @@ export * from "./PutDestinationPolicyCommand";
76
76
  export * from "./PutIndexPolicyCommand";
77
77
  export * from "./PutIntegrationCommand";
78
78
  export * from "./PutLogEventsCommand";
79
+ export * from "./PutLogGroupDeletionProtectionCommand";
79
80
  export * from "./PutMetricFilterCommand";
80
81
  export * from "./PutQueryDefinitionCommand";
81
82
  export * from "./PutResourcePolicyCommand";
@@ -844,6 +844,12 @@ export interface CreateLogGroupRequest {
844
844
  * @public
845
845
  */
846
846
  logGroupClass?: LogGroupClass | undefined;
847
+ /**
848
+ * <p>Use this parameter to enable deletion protection for the new log group. When enabled on a log group, deletion protection blocks all
849
+ * deletion operations until it is explicitly disabled. By default log groups are created without deletion protection enabled.</p>
850
+ * @public
851
+ */
852
+ deletionProtectionEnabled?: boolean | undefined;
847
853
  }
848
854
  /**
849
855
  * @public
@@ -2235,6 +2241,12 @@ export interface LogGroup {
2235
2241
  * @public
2236
2242
  */
2237
2243
  logGroupArn?: string | undefined;
2244
+ /**
2245
+ * <p>Indicates whether deletion protection is enabled for this log group. When enabled, deletion protection blocks all
2246
+ * deletion operations until it is explicitly disabled.</p>
2247
+ * @public
2248
+ */
2249
+ deletionProtectionEnabled?: boolean | undefined;
2238
2250
  }
2239
2251
  /**
2240
2252
  * @public
@@ -6354,6 +6366,28 @@ export interface PutLogEventsResponse {
6354
6366
  */
6355
6367
  rejectedEntityInfo?: RejectedEntityInfo | undefined;
6356
6368
  }
6369
+ /**
6370
+ * @public
6371
+ */
6372
+ export interface PutLogGroupDeletionProtectionRequest {
6373
+ /**
6374
+ * <p>The name or ARN of the log group.</p>
6375
+ * <p>Type: String</p>
6376
+ * <p>Length Constraints: Minimum length of 1. Maximum length of 512.</p>
6377
+ * <p>Pattern: <code>[\.\-_/#A-Za-z0-9]+</code>
6378
+ * </p>
6379
+ * <p>Required: Yes</p>
6380
+ * @public
6381
+ */
6382
+ logGroupIdentifier: string | undefined;
6383
+ /**
6384
+ * <p>Whether to enable deletion protection.</p>
6385
+ * <p>Type: Boolean</p>
6386
+ * <p>Required: Yes</p>
6387
+ * @public
6388
+ */
6389
+ deletionProtectionEnabled: boolean | undefined;
6390
+ }
6357
6391
  /**
6358
6392
  * @public
6359
6393
  */
@@ -213,6 +213,7 @@ export declare var PutIntegrationRequest: StaticStructureSchema;
213
213
  export declare var PutIntegrationResponse: StaticStructureSchema;
214
214
  export declare var PutLogEventsRequest: StaticStructureSchema;
215
215
  export declare var PutLogEventsResponse: StaticStructureSchema;
216
+ export declare var PutLogGroupDeletionProtectionRequest: StaticStructureSchema;
216
217
  export declare var PutMetricFilterRequest: StaticStructureSchema;
217
218
  export declare var PutQueryDefinitionRequest: StaticStructureSchema;
218
219
  export declare var PutQueryDefinitionResponse: StaticStructureSchema;
@@ -447,6 +448,7 @@ export declare var PutDestinationPolicy: StaticOperationSchema;
447
448
  export declare var PutIndexPolicy: StaticOperationSchema;
448
449
  export declare var PutIntegration: StaticOperationSchema;
449
450
  export declare var PutLogEvents: StaticOperationSchema;
451
+ export declare var PutLogGroupDeletionProtection: StaticOperationSchema;
450
452
  export declare var PutMetricFilter: StaticOperationSchema;
451
453
  export declare var PutQueryDefinition: StaticOperationSchema;
452
454
  export declare var PutResourcePolicy: StaticOperationSchema;
@@ -312,6 +312,10 @@ import {
312
312
  PutLogEventsCommandInput,
313
313
  PutLogEventsCommandOutput,
314
314
  } from "./commands/PutLogEventsCommand";
315
+ import {
316
+ PutLogGroupDeletionProtectionCommandInput,
317
+ PutLogGroupDeletionProtectionCommandOutput,
318
+ } from "./commands/PutLogGroupDeletionProtectionCommand";
315
319
  import {
316
320
  PutMetricFilterCommandInput,
317
321
  PutMetricFilterCommandOutput,
@@ -1424,6 +1428,19 @@ export interface CloudWatchLogs {
1424
1428
  options: __HttpHandlerOptions,
1425
1429
  cb: (err: any, data?: PutLogEventsCommandOutput) => void
1426
1430
  ): void;
1431
+ putLogGroupDeletionProtection(
1432
+ args: PutLogGroupDeletionProtectionCommandInput,
1433
+ options?: __HttpHandlerOptions
1434
+ ): Promise<PutLogGroupDeletionProtectionCommandOutput>;
1435
+ putLogGroupDeletionProtection(
1436
+ args: PutLogGroupDeletionProtectionCommandInput,
1437
+ cb: (err: any, data?: PutLogGroupDeletionProtectionCommandOutput) => void
1438
+ ): void;
1439
+ putLogGroupDeletionProtection(
1440
+ args: PutLogGroupDeletionProtectionCommandInput,
1441
+ options: __HttpHandlerOptions,
1442
+ cb: (err: any, data?: PutLogGroupDeletionProtectionCommandOutput) => void
1443
+ ): void;
1427
1444
  putMetricFilter(
1428
1445
  args: PutMetricFilterCommandInput,
1429
1446
  options?: __HttpHandlerOptions
@@ -365,6 +365,10 @@ import {
365
365
  PutLogEventsCommandInput,
366
366
  PutLogEventsCommandOutput,
367
367
  } from "./commands/PutLogEventsCommand";
368
+ import {
369
+ PutLogGroupDeletionProtectionCommandInput,
370
+ PutLogGroupDeletionProtectionCommandOutput,
371
+ } from "./commands/PutLogGroupDeletionProtectionCommand";
368
372
  import {
369
373
  PutMetricFilterCommandInput,
370
374
  PutMetricFilterCommandOutput,
@@ -527,6 +531,7 @@ export type ServiceInputTypes =
527
531
  | PutIndexPolicyCommandInput
528
532
  | PutIntegrationCommandInput
529
533
  | PutLogEventsCommandInput
534
+ | PutLogGroupDeletionProtectionCommandInput
530
535
  | PutMetricFilterCommandInput
531
536
  | PutQueryDefinitionCommandInput
532
537
  | PutResourcePolicyCommandInput
@@ -625,6 +630,7 @@ export type ServiceOutputTypes =
625
630
  | PutIndexPolicyCommandOutput
626
631
  | PutIntegrationCommandOutput
627
632
  | PutLogEventsCommandOutput
633
+ | PutLogGroupDeletionProtectionCommandOutput
628
634
  | PutMetricFilterCommandOutput
629
635
  | PutQueryDefinitionCommandOutput
630
636
  | PutResourcePolicyCommandOutput
@@ -0,0 +1,47 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ CloudWatchLogsClientResolvedConfig,
5
+ ServiceInputTypes,
6
+ ServiceOutputTypes,
7
+ } from "../CloudWatchLogsClient";
8
+ import { PutLogGroupDeletionProtectionRequest } from "../models/models_0";
9
+ export { __MetadataBearer };
10
+ export { $Command };
11
+ export interface PutLogGroupDeletionProtectionCommandInput
12
+ extends PutLogGroupDeletionProtectionRequest {}
13
+ export interface PutLogGroupDeletionProtectionCommandOutput
14
+ extends __MetadataBearer {}
15
+ declare const PutLogGroupDeletionProtectionCommand_base: {
16
+ new (
17
+ input: PutLogGroupDeletionProtectionCommandInput
18
+ ): import("@smithy/smithy-client").CommandImpl<
19
+ PutLogGroupDeletionProtectionCommandInput,
20
+ PutLogGroupDeletionProtectionCommandOutput,
21
+ CloudWatchLogsClientResolvedConfig,
22
+ ServiceInputTypes,
23
+ ServiceOutputTypes
24
+ >;
25
+ new (
26
+ input: PutLogGroupDeletionProtectionCommandInput
27
+ ): import("@smithy/smithy-client").CommandImpl<
28
+ PutLogGroupDeletionProtectionCommandInput,
29
+ PutLogGroupDeletionProtectionCommandOutput,
30
+ CloudWatchLogsClientResolvedConfig,
31
+ ServiceInputTypes,
32
+ ServiceOutputTypes
33
+ >;
34
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
35
+ };
36
+ export declare class PutLogGroupDeletionProtectionCommand extends PutLogGroupDeletionProtectionCommand_base {
37
+ protected static __types: {
38
+ api: {
39
+ input: PutLogGroupDeletionProtectionRequest;
40
+ output: {};
41
+ };
42
+ sdk: {
43
+ input: PutLogGroupDeletionProtectionCommandInput;
44
+ output: PutLogGroupDeletionProtectionCommandOutput;
45
+ };
46
+ };
47
+ }
@@ -76,6 +76,7 @@ export * from "./PutDestinationPolicyCommand";
76
76
  export * from "./PutIndexPolicyCommand";
77
77
  export * from "./PutIntegrationCommand";
78
78
  export * from "./PutLogEventsCommand";
79
+ export * from "./PutLogGroupDeletionProtectionCommand";
79
80
  export * from "./PutMetricFilterCommand";
80
81
  export * from "./PutQueryDefinitionCommand";
81
82
  export * from "./PutResourcePolicyCommand";
@@ -193,6 +193,7 @@ export interface CreateLogGroupRequest {
193
193
  kmsKeyId?: string | undefined;
194
194
  tags?: Record<string, string> | undefined;
195
195
  logGroupClass?: LogGroupClass | undefined;
196
+ deletionProtectionEnabled?: boolean | undefined;
196
197
  }
197
198
  export interface CreateLogStreamRequest {
198
199
  logGroupName: string | undefined;
@@ -478,6 +479,7 @@ export interface LogGroup {
478
479
  inheritedProperties?: InheritedProperty[] | undefined;
479
480
  logGroupClass?: LogGroupClass | undefined;
480
481
  logGroupArn?: string | undefined;
482
+ deletionProtectionEnabled?: boolean | undefined;
481
483
  }
482
484
  export interface DescribeLogGroupsResponse {
483
485
  logGroups?: LogGroup[] | undefined;
@@ -1288,6 +1290,10 @@ export interface PutLogEventsResponse {
1288
1290
  rejectedLogEventsInfo?: RejectedLogEventsInfo | undefined;
1289
1291
  rejectedEntityInfo?: RejectedEntityInfo | undefined;
1290
1292
  }
1293
+ export interface PutLogGroupDeletionProtectionRequest {
1294
+ logGroupIdentifier: string | undefined;
1295
+ deletionProtectionEnabled: boolean | undefined;
1296
+ }
1291
1297
  export interface PutMetricFilterRequest {
1292
1298
  logGroupName: string | undefined;
1293
1299
  filterName: string | undefined;
@@ -218,6 +218,7 @@ export declare var PutIntegrationRequest: StaticStructureSchema;
218
218
  export declare var PutIntegrationResponse: StaticStructureSchema;
219
219
  export declare var PutLogEventsRequest: StaticStructureSchema;
220
220
  export declare var PutLogEventsResponse: StaticStructureSchema;
221
+ export declare var PutLogGroupDeletionProtectionRequest: StaticStructureSchema;
221
222
  export declare var PutMetricFilterRequest: StaticStructureSchema;
222
223
  export declare var PutQueryDefinitionRequest: StaticStructureSchema;
223
224
  export declare var PutQueryDefinitionResponse: StaticStructureSchema;
@@ -452,6 +453,7 @@ export declare var PutDestinationPolicy: StaticOperationSchema;
452
453
  export declare var PutIndexPolicy: StaticOperationSchema;
453
454
  export declare var PutIntegration: StaticOperationSchema;
454
455
  export declare var PutLogEvents: StaticOperationSchema;
456
+ export declare var PutLogGroupDeletionProtection: StaticOperationSchema;
455
457
  export declare var PutMetricFilter: StaticOperationSchema;
456
458
  export declare var PutQueryDefinition: StaticOperationSchema;
457
459
  export declare var PutResourcePolicy: StaticOperationSchema;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cloudwatch-logs",
3
3
  "description": "AWS SDK for JavaScript Cloudwatch Logs Client for Node.js, Browser and React Native",
4
- "version": "3.935.0",
4
+ "version": "3.939.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-cloudwatch-logs",
@@ -22,17 +22,17 @@
22
22
  "dependencies": {
23
23
  "@aws-crypto/sha256-browser": "5.2.0",
24
24
  "@aws-crypto/sha256-js": "5.2.0",
25
- "@aws-sdk/core": "3.935.0",
26
- "@aws-sdk/credential-provider-node": "3.935.0",
27
- "@aws-sdk/middleware-host-header": "3.930.0",
28
- "@aws-sdk/middleware-logger": "3.930.0",
29
- "@aws-sdk/middleware-recursion-detection": "3.933.0",
30
- "@aws-sdk/middleware-user-agent": "3.935.0",
31
- "@aws-sdk/region-config-resolver": "3.930.0",
32
- "@aws-sdk/types": "3.930.0",
33
- "@aws-sdk/util-endpoints": "3.930.0",
34
- "@aws-sdk/util-user-agent-browser": "3.930.0",
35
- "@aws-sdk/util-user-agent-node": "3.935.0",
25
+ "@aws-sdk/core": "3.936.0",
26
+ "@aws-sdk/credential-provider-node": "3.939.0",
27
+ "@aws-sdk/middleware-host-header": "3.936.0",
28
+ "@aws-sdk/middleware-logger": "3.936.0",
29
+ "@aws-sdk/middleware-recursion-detection": "3.936.0",
30
+ "@aws-sdk/middleware-user-agent": "3.936.0",
31
+ "@aws-sdk/region-config-resolver": "3.936.0",
32
+ "@aws-sdk/types": "3.936.0",
33
+ "@aws-sdk/util-endpoints": "3.936.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.936.0",
35
+ "@aws-sdk/util-user-agent-node": "3.936.0",
36
36
  "@smithy/config-resolver": "^4.4.3",
37
37
  "@smithy/core": "^3.18.5",
38
38
  "@smithy/eventstream-serde-browser": "^4.2.5",