@aws-sdk/client-cloudwatch-logs 3.216.0 → 3.222.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/README.md +15 -14
  2. package/dist-cjs/CloudWatchLogs.js +45 -0
  3. package/dist-cjs/commands/DeleteDataProtectionPolicyCommand.js +46 -0
  4. package/dist-cjs/commands/GetDataProtectionPolicyCommand.js +46 -0
  5. package/dist-cjs/commands/PutDataProtectionPolicyCommand.js +46 -0
  6. package/dist-cjs/commands/index.js +3 -0
  7. package/dist-cjs/endpoint/ruleset.js +5 -5
  8. package/dist-cjs/models/models_0.js +30 -3
  9. package/dist-cjs/protocols/Aws_json1_1.js +221 -2
  10. package/dist-es/CloudWatchLogs.js +45 -0
  11. package/dist-es/commands/DeleteDataProtectionPolicyCommand.js +42 -0
  12. package/dist-es/commands/GetDataProtectionPolicyCommand.js +42 -0
  13. package/dist-es/commands/PutDataProtectionPolicyCommand.js +42 -0
  14. package/dist-es/commands/index.js +3 -0
  15. package/dist-es/endpoint/ruleset.js +5 -5
  16. package/dist-es/models/models_0.js +22 -0
  17. package/dist-es/protocols/Aws_json1_1.js +213 -0
  18. package/dist-types/CloudWatchLogs.d.ts +184 -114
  19. package/dist-types/CloudWatchLogsClient.d.ts +20 -16
  20. package/dist-types/commands/AssociateKmsKeyCommand.d.ts +11 -10
  21. package/dist-types/commands/CreateExportTaskCommand.d.ts +11 -11
  22. package/dist-types/commands/CreateLogGroupCommand.d.ts +14 -12
  23. package/dist-types/commands/CreateLogStreamCommand.d.ts +1 -1
  24. package/dist-types/commands/DeleteDataProtectionPolicyCommand.d.ts +38 -0
  25. package/dist-types/commands/DescribeLogGroupsCommand.d.ts +3 -0
  26. package/dist-types/commands/DescribeLogStreamsCommand.d.ts +3 -0
  27. package/dist-types/commands/DescribeQueriesCommand.d.ts +3 -3
  28. package/dist-types/commands/DisassociateKmsKeyCommand.d.ts +5 -3
  29. package/dist-types/commands/FilterLogEventsCommand.d.ts +8 -4
  30. package/dist-types/commands/GetDataProtectionPolicyCommand.d.ts +37 -0
  31. package/dist-types/commands/GetLogEventsCommand.d.ts +4 -0
  32. package/dist-types/commands/GetLogGroupFieldsCommand.d.ts +10 -6
  33. package/dist-types/commands/GetQueryResultsCommand.d.ts +4 -2
  34. package/dist-types/commands/PutDataProtectionPolicyCommand.d.ts +51 -0
  35. package/dist-types/commands/PutDestinationCommand.d.ts +3 -3
  36. package/dist-types/commands/PutLogEventsCommand.d.ts +11 -8
  37. package/dist-types/commands/PutMetricFilterCommand.d.ts +5 -5
  38. package/dist-types/commands/PutQueryDefinitionCommand.d.ts +7 -7
  39. package/dist-types/commands/PutRetentionPolicyCommand.d.ts +11 -10
  40. package/dist-types/commands/PutSubscriptionFilterCommand.d.ts +10 -11
  41. package/dist-types/commands/StartQueryCommand.d.ts +9 -4
  42. package/dist-types/commands/index.d.ts +3 -0
  43. package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  44. package/dist-types/models/models_0.d.ts +369 -115
  45. package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
  46. package/dist-types/ts3.4/CloudWatchLogs.d.ts +51 -0
  47. package/dist-types/ts3.4/CloudWatchLogsClient.d.ts +18 -0
  48. package/dist-types/ts3.4/commands/DeleteDataProtectionPolicyCommand.d.ts +37 -0
  49. package/dist-types/ts3.4/commands/GetDataProtectionPolicyCommand.d.ts +41 -0
  50. package/dist-types/ts3.4/commands/PutDataProtectionPolicyCommand.d.ts +41 -0
  51. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  52. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
  53. package/dist-types/ts3.4/models/models_0.d.ts +53 -0
  54. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +36 -0
  55. package/package.json +29 -28
@@ -5,6 +5,7 @@ import { CancelExportTaskCommandInput, CancelExportTaskCommandOutput } from "../
5
5
  import { CreateExportTaskCommandInput, CreateExportTaskCommandOutput } from "../commands/CreateExportTaskCommand";
6
6
  import { CreateLogGroupCommandInput, CreateLogGroupCommandOutput } from "../commands/CreateLogGroupCommand";
7
7
  import { CreateLogStreamCommandInput, CreateLogStreamCommandOutput } from "../commands/CreateLogStreamCommand";
8
+ import { DeleteDataProtectionPolicyCommandInput, DeleteDataProtectionPolicyCommandOutput } from "../commands/DeleteDataProtectionPolicyCommand";
8
9
  import { DeleteDestinationCommandInput, DeleteDestinationCommandOutput } from "../commands/DeleteDestinationCommand";
9
10
  import { DeleteLogGroupCommandInput, DeleteLogGroupCommandOutput } from "../commands/DeleteLogGroupCommand";
10
11
  import { DeleteLogStreamCommandInput, DeleteLogStreamCommandOutput } from "../commands/DeleteLogStreamCommand";
@@ -24,12 +25,14 @@ import { DescribeResourcePoliciesCommandInput, DescribeResourcePoliciesCommandOu
24
25
  import { DescribeSubscriptionFiltersCommandInput, DescribeSubscriptionFiltersCommandOutput } from "../commands/DescribeSubscriptionFiltersCommand";
25
26
  import { DisassociateKmsKeyCommandInput, DisassociateKmsKeyCommandOutput } from "../commands/DisassociateKmsKeyCommand";
26
27
  import { FilterLogEventsCommandInput, FilterLogEventsCommandOutput } from "../commands/FilterLogEventsCommand";
28
+ import { GetDataProtectionPolicyCommandInput, GetDataProtectionPolicyCommandOutput } from "../commands/GetDataProtectionPolicyCommand";
27
29
  import { GetLogEventsCommandInput, GetLogEventsCommandOutput } from "../commands/GetLogEventsCommand";
28
30
  import { GetLogGroupFieldsCommandInput, GetLogGroupFieldsCommandOutput } from "../commands/GetLogGroupFieldsCommand";
29
31
  import { GetLogRecordCommandInput, GetLogRecordCommandOutput } from "../commands/GetLogRecordCommand";
30
32
  import { GetQueryResultsCommandInput, GetQueryResultsCommandOutput } from "../commands/GetQueryResultsCommand";
31
33
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "../commands/ListTagsForResourceCommand";
32
34
  import { ListTagsLogGroupCommandInput, ListTagsLogGroupCommandOutput } from "../commands/ListTagsLogGroupCommand";
35
+ import { PutDataProtectionPolicyCommandInput, PutDataProtectionPolicyCommandOutput } from "../commands/PutDataProtectionPolicyCommand";
33
36
  import { PutDestinationCommandInput, PutDestinationCommandOutput } from "../commands/PutDestinationCommand";
34
37
  import { PutDestinationPolicyCommandInput, PutDestinationPolicyCommandOutput } from "../commands/PutDestinationPolicyCommand";
35
38
  import { PutLogEventsCommandInput, PutLogEventsCommandOutput } from "../commands/PutLogEventsCommand";
@@ -50,6 +53,7 @@ export declare const serializeAws_json1_1CancelExportTaskCommand: (input: Cancel
50
53
  export declare const serializeAws_json1_1CreateExportTaskCommand: (input: CreateExportTaskCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
51
54
  export declare const serializeAws_json1_1CreateLogGroupCommand: (input: CreateLogGroupCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
52
55
  export declare const serializeAws_json1_1CreateLogStreamCommand: (input: CreateLogStreamCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
56
+ export declare const serializeAws_json1_1DeleteDataProtectionPolicyCommand: (input: DeleteDataProtectionPolicyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
53
57
  export declare const serializeAws_json1_1DeleteDestinationCommand: (input: DeleteDestinationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
54
58
  export declare const serializeAws_json1_1DeleteLogGroupCommand: (input: DeleteLogGroupCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
55
59
  export declare const serializeAws_json1_1DeleteLogStreamCommand: (input: DeleteLogStreamCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
@@ -69,12 +73,14 @@ export declare const serializeAws_json1_1DescribeResourcePoliciesCommand: (input
69
73
  export declare const serializeAws_json1_1DescribeSubscriptionFiltersCommand: (input: DescribeSubscriptionFiltersCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
70
74
  export declare const serializeAws_json1_1DisassociateKmsKeyCommand: (input: DisassociateKmsKeyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
71
75
  export declare const serializeAws_json1_1FilterLogEventsCommand: (input: FilterLogEventsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
76
+ export declare const serializeAws_json1_1GetDataProtectionPolicyCommand: (input: GetDataProtectionPolicyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
72
77
  export declare const serializeAws_json1_1GetLogEventsCommand: (input: GetLogEventsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
73
78
  export declare const serializeAws_json1_1GetLogGroupFieldsCommand: (input: GetLogGroupFieldsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
74
79
  export declare const serializeAws_json1_1GetLogRecordCommand: (input: GetLogRecordCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
75
80
  export declare const serializeAws_json1_1GetQueryResultsCommand: (input: GetQueryResultsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
76
81
  export declare const serializeAws_json1_1ListTagsForResourceCommand: (input: ListTagsForResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
77
82
  export declare const serializeAws_json1_1ListTagsLogGroupCommand: (input: ListTagsLogGroupCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
83
+ export declare const serializeAws_json1_1PutDataProtectionPolicyCommand: (input: PutDataProtectionPolicyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
78
84
  export declare const serializeAws_json1_1PutDestinationCommand: (input: PutDestinationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
79
85
  export declare const serializeAws_json1_1PutDestinationPolicyCommand: (input: PutDestinationPolicyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
80
86
  export declare const serializeAws_json1_1PutLogEventsCommand: (input: PutLogEventsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
@@ -95,6 +101,7 @@ export declare const deserializeAws_json1_1CancelExportTaskCommand: (output: __H
95
101
  export declare const deserializeAws_json1_1CreateExportTaskCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateExportTaskCommandOutput>;
96
102
  export declare const deserializeAws_json1_1CreateLogGroupCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateLogGroupCommandOutput>;
97
103
  export declare const deserializeAws_json1_1CreateLogStreamCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateLogStreamCommandOutput>;
104
+ export declare const deserializeAws_json1_1DeleteDataProtectionPolicyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteDataProtectionPolicyCommandOutput>;
98
105
  export declare const deserializeAws_json1_1DeleteDestinationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteDestinationCommandOutput>;
99
106
  export declare const deserializeAws_json1_1DeleteLogGroupCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteLogGroupCommandOutput>;
100
107
  export declare const deserializeAws_json1_1DeleteLogStreamCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteLogStreamCommandOutput>;
@@ -114,12 +121,14 @@ export declare const deserializeAws_json1_1DescribeResourcePoliciesCommand: (out
114
121
  export declare const deserializeAws_json1_1DescribeSubscriptionFiltersCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeSubscriptionFiltersCommandOutput>;
115
122
  export declare const deserializeAws_json1_1DisassociateKmsKeyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DisassociateKmsKeyCommandOutput>;
116
123
  export declare const deserializeAws_json1_1FilterLogEventsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<FilterLogEventsCommandOutput>;
124
+ export declare const deserializeAws_json1_1GetDataProtectionPolicyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetDataProtectionPolicyCommandOutput>;
117
125
  export declare const deserializeAws_json1_1GetLogEventsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetLogEventsCommandOutput>;
118
126
  export declare const deserializeAws_json1_1GetLogGroupFieldsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetLogGroupFieldsCommandOutput>;
119
127
  export declare const deserializeAws_json1_1GetLogRecordCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetLogRecordCommandOutput>;
120
128
  export declare const deserializeAws_json1_1GetQueryResultsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetQueryResultsCommandOutput>;
121
129
  export declare const deserializeAws_json1_1ListTagsForResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListTagsForResourceCommandOutput>;
122
130
  export declare const deserializeAws_json1_1ListTagsLogGroupCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListTagsLogGroupCommandOutput>;
131
+ export declare const deserializeAws_json1_1PutDataProtectionPolicyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PutDataProtectionPolicyCommandOutput>;
123
132
  export declare const deserializeAws_json1_1PutDestinationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PutDestinationCommandOutput>;
124
133
  export declare const deserializeAws_json1_1PutDestinationPolicyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PutDestinationPolicyCommandOutput>;
125
134
  export declare const deserializeAws_json1_1PutLogEventsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PutLogEventsCommandOutput>;
@@ -20,6 +20,10 @@ import {
20
20
  CreateLogStreamCommandInput,
21
21
  CreateLogStreamCommandOutput,
22
22
  } from "./commands/CreateLogStreamCommand";
23
+ import {
24
+ DeleteDataProtectionPolicyCommandInput,
25
+ DeleteDataProtectionPolicyCommandOutput,
26
+ } from "./commands/DeleteDataProtectionPolicyCommand";
23
27
  import {
24
28
  DeleteDestinationCommandInput,
25
29
  DeleteDestinationCommandOutput,
@@ -96,6 +100,10 @@ import {
96
100
  FilterLogEventsCommandInput,
97
101
  FilterLogEventsCommandOutput,
98
102
  } from "./commands/FilterLogEventsCommand";
103
+ import {
104
+ GetDataProtectionPolicyCommandInput,
105
+ GetDataProtectionPolicyCommandOutput,
106
+ } from "./commands/GetDataProtectionPolicyCommand";
99
107
  import {
100
108
  GetLogEventsCommandInput,
101
109
  GetLogEventsCommandOutput,
@@ -120,6 +128,10 @@ import {
120
128
  ListTagsLogGroupCommandInput,
121
129
  ListTagsLogGroupCommandOutput,
122
130
  } from "./commands/ListTagsLogGroupCommand";
131
+ import {
132
+ PutDataProtectionPolicyCommandInput,
133
+ PutDataProtectionPolicyCommandOutput,
134
+ } from "./commands/PutDataProtectionPolicyCommand";
123
135
  import {
124
136
  PutDestinationCommandInput,
125
137
  PutDestinationCommandOutput,
@@ -246,6 +258,19 @@ export declare class CloudWatchLogs extends CloudWatchLogsClient {
246
258
  options: __HttpHandlerOptions,
247
259
  cb: (err: any, data?: CreateLogStreamCommandOutput) => void
248
260
  ): void;
261
+ deleteDataProtectionPolicy(
262
+ args: DeleteDataProtectionPolicyCommandInput,
263
+ options?: __HttpHandlerOptions
264
+ ): Promise<DeleteDataProtectionPolicyCommandOutput>;
265
+ deleteDataProtectionPolicy(
266
+ args: DeleteDataProtectionPolicyCommandInput,
267
+ cb: (err: any, data?: DeleteDataProtectionPolicyCommandOutput) => void
268
+ ): void;
269
+ deleteDataProtectionPolicy(
270
+ args: DeleteDataProtectionPolicyCommandInput,
271
+ options: __HttpHandlerOptions,
272
+ cb: (err: any, data?: DeleteDataProtectionPolicyCommandOutput) => void
273
+ ): void;
249
274
  deleteDestination(
250
275
  args: DeleteDestinationCommandInput,
251
276
  options?: __HttpHandlerOptions
@@ -493,6 +518,19 @@ export declare class CloudWatchLogs extends CloudWatchLogsClient {
493
518
  options: __HttpHandlerOptions,
494
519
  cb: (err: any, data?: FilterLogEventsCommandOutput) => void
495
520
  ): void;
521
+ getDataProtectionPolicy(
522
+ args: GetDataProtectionPolicyCommandInput,
523
+ options?: __HttpHandlerOptions
524
+ ): Promise<GetDataProtectionPolicyCommandOutput>;
525
+ getDataProtectionPolicy(
526
+ args: GetDataProtectionPolicyCommandInput,
527
+ cb: (err: any, data?: GetDataProtectionPolicyCommandOutput) => void
528
+ ): void;
529
+ getDataProtectionPolicy(
530
+ args: GetDataProtectionPolicyCommandInput,
531
+ options: __HttpHandlerOptions,
532
+ cb: (err: any, data?: GetDataProtectionPolicyCommandOutput) => void
533
+ ): void;
496
534
  getLogEvents(
497
535
  args: GetLogEventsCommandInput,
498
536
  options?: __HttpHandlerOptions
@@ -571,6 +609,19 @@ export declare class CloudWatchLogs extends CloudWatchLogsClient {
571
609
  options: __HttpHandlerOptions,
572
610
  cb: (err: any, data?: ListTagsLogGroupCommandOutput) => void
573
611
  ): void;
612
+ putDataProtectionPolicy(
613
+ args: PutDataProtectionPolicyCommandInput,
614
+ options?: __HttpHandlerOptions
615
+ ): Promise<PutDataProtectionPolicyCommandOutput>;
616
+ putDataProtectionPolicy(
617
+ args: PutDataProtectionPolicyCommandInput,
618
+ cb: (err: any, data?: PutDataProtectionPolicyCommandOutput) => void
619
+ ): void;
620
+ putDataProtectionPolicy(
621
+ args: PutDataProtectionPolicyCommandInput,
622
+ options: __HttpHandlerOptions,
623
+ cb: (err: any, data?: PutDataProtectionPolicyCommandOutput) => void
624
+ ): void;
574
625
  putDestination(
575
626
  args: PutDestinationCommandInput,
576
627
  options?: __HttpHandlerOptions
@@ -63,6 +63,10 @@ import {
63
63
  CreateLogStreamCommandInput,
64
64
  CreateLogStreamCommandOutput,
65
65
  } from "./commands/CreateLogStreamCommand";
66
+ import {
67
+ DeleteDataProtectionPolicyCommandInput,
68
+ DeleteDataProtectionPolicyCommandOutput,
69
+ } from "./commands/DeleteDataProtectionPolicyCommand";
66
70
  import {
67
71
  DeleteDestinationCommandInput,
68
72
  DeleteDestinationCommandOutput,
@@ -139,6 +143,10 @@ import {
139
143
  FilterLogEventsCommandInput,
140
144
  FilterLogEventsCommandOutput,
141
145
  } from "./commands/FilterLogEventsCommand";
146
+ import {
147
+ GetDataProtectionPolicyCommandInput,
148
+ GetDataProtectionPolicyCommandOutput,
149
+ } from "./commands/GetDataProtectionPolicyCommand";
142
150
  import {
143
151
  GetLogEventsCommandInput,
144
152
  GetLogEventsCommandOutput,
@@ -163,6 +171,10 @@ import {
163
171
  ListTagsLogGroupCommandInput,
164
172
  ListTagsLogGroupCommandOutput,
165
173
  } from "./commands/ListTagsLogGroupCommand";
174
+ import {
175
+ PutDataProtectionPolicyCommandInput,
176
+ PutDataProtectionPolicyCommandOutput,
177
+ } from "./commands/PutDataProtectionPolicyCommand";
166
178
  import {
167
179
  PutDestinationCommandInput,
168
180
  PutDestinationCommandOutput,
@@ -234,6 +246,7 @@ export declare type ServiceInputTypes =
234
246
  | CreateExportTaskCommandInput
235
247
  | CreateLogGroupCommandInput
236
248
  | CreateLogStreamCommandInput
249
+ | DeleteDataProtectionPolicyCommandInput
237
250
  | DeleteDestinationCommandInput
238
251
  | DeleteLogGroupCommandInput
239
252
  | DeleteLogStreamCommandInput
@@ -253,12 +266,14 @@ export declare type ServiceInputTypes =
253
266
  | DescribeSubscriptionFiltersCommandInput
254
267
  | DisassociateKmsKeyCommandInput
255
268
  | FilterLogEventsCommandInput
269
+ | GetDataProtectionPolicyCommandInput
256
270
  | GetLogEventsCommandInput
257
271
  | GetLogGroupFieldsCommandInput
258
272
  | GetLogRecordCommandInput
259
273
  | GetQueryResultsCommandInput
260
274
  | ListTagsForResourceCommandInput
261
275
  | ListTagsLogGroupCommandInput
276
+ | PutDataProtectionPolicyCommandInput
262
277
  | PutDestinationCommandInput
263
278
  | PutDestinationPolicyCommandInput
264
279
  | PutLogEventsCommandInput
@@ -280,6 +295,7 @@ export declare type ServiceOutputTypes =
280
295
  | CreateExportTaskCommandOutput
281
296
  | CreateLogGroupCommandOutput
282
297
  | CreateLogStreamCommandOutput
298
+ | DeleteDataProtectionPolicyCommandOutput
283
299
  | DeleteDestinationCommandOutput
284
300
  | DeleteLogGroupCommandOutput
285
301
  | DeleteLogStreamCommandOutput
@@ -299,12 +315,14 @@ export declare type ServiceOutputTypes =
299
315
  | DescribeSubscriptionFiltersCommandOutput
300
316
  | DisassociateKmsKeyCommandOutput
301
317
  | FilterLogEventsCommandOutput
318
+ | GetDataProtectionPolicyCommandOutput
302
319
  | GetLogEventsCommandOutput
303
320
  | GetLogGroupFieldsCommandOutput
304
321
  | GetLogRecordCommandOutput
305
322
  | GetQueryResultsCommandOutput
306
323
  | ListTagsForResourceCommandOutput
307
324
  | ListTagsLogGroupCommandOutput
325
+ | PutDataProtectionPolicyCommandOutput
308
326
  | PutDestinationCommandOutput
309
327
  | PutDestinationPolicyCommandOutput
310
328
  | PutLogEventsCommandOutput
@@ -0,0 +1,37 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@aws-sdk/types";
9
+ import {
10
+ CloudWatchLogsClientResolvedConfig,
11
+ ServiceInputTypes,
12
+ ServiceOutputTypes,
13
+ } from "../CloudWatchLogsClient";
14
+ import { DeleteDataProtectionPolicyRequest } from "../models/models_0";
15
+ export interface DeleteDataProtectionPolicyCommandInput
16
+ extends DeleteDataProtectionPolicyRequest {}
17
+ export interface DeleteDataProtectionPolicyCommandOutput
18
+ extends __MetadataBearer {}
19
+ export declare class DeleteDataProtectionPolicyCommand extends $Command<
20
+ DeleteDataProtectionPolicyCommandInput,
21
+ DeleteDataProtectionPolicyCommandOutput,
22
+ CloudWatchLogsClientResolvedConfig
23
+ > {
24
+ readonly input: DeleteDataProtectionPolicyCommandInput;
25
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
26
+ constructor(input: DeleteDataProtectionPolicyCommandInput);
27
+ resolveMiddleware(
28
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
29
+ configuration: CloudWatchLogsClientResolvedConfig,
30
+ options?: __HttpHandlerOptions
31
+ ): Handler<
32
+ DeleteDataProtectionPolicyCommandInput,
33
+ DeleteDataProtectionPolicyCommandOutput
34
+ >;
35
+ private serialize;
36
+ private deserialize;
37
+ }
@@ -0,0 +1,41 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@aws-sdk/types";
9
+ import {
10
+ CloudWatchLogsClientResolvedConfig,
11
+ ServiceInputTypes,
12
+ ServiceOutputTypes,
13
+ } from "../CloudWatchLogsClient";
14
+ import {
15
+ GetDataProtectionPolicyRequest,
16
+ GetDataProtectionPolicyResponse,
17
+ } from "../models/models_0";
18
+ export interface GetDataProtectionPolicyCommandInput
19
+ extends GetDataProtectionPolicyRequest {}
20
+ export interface GetDataProtectionPolicyCommandOutput
21
+ extends GetDataProtectionPolicyResponse,
22
+ __MetadataBearer {}
23
+ export declare class GetDataProtectionPolicyCommand extends $Command<
24
+ GetDataProtectionPolicyCommandInput,
25
+ GetDataProtectionPolicyCommandOutput,
26
+ CloudWatchLogsClientResolvedConfig
27
+ > {
28
+ readonly input: GetDataProtectionPolicyCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
30
+ constructor(input: GetDataProtectionPolicyCommandInput);
31
+ resolveMiddleware(
32
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
33
+ configuration: CloudWatchLogsClientResolvedConfig,
34
+ options?: __HttpHandlerOptions
35
+ ): Handler<
36
+ GetDataProtectionPolicyCommandInput,
37
+ GetDataProtectionPolicyCommandOutput
38
+ >;
39
+ private serialize;
40
+ private deserialize;
41
+ }
@@ -0,0 +1,41 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@aws-sdk/types";
9
+ import {
10
+ CloudWatchLogsClientResolvedConfig,
11
+ ServiceInputTypes,
12
+ ServiceOutputTypes,
13
+ } from "../CloudWatchLogsClient";
14
+ import {
15
+ PutDataProtectionPolicyRequest,
16
+ PutDataProtectionPolicyResponse,
17
+ } from "../models/models_0";
18
+ export interface PutDataProtectionPolicyCommandInput
19
+ extends PutDataProtectionPolicyRequest {}
20
+ export interface PutDataProtectionPolicyCommandOutput
21
+ extends PutDataProtectionPolicyResponse,
22
+ __MetadataBearer {}
23
+ export declare class PutDataProtectionPolicyCommand extends $Command<
24
+ PutDataProtectionPolicyCommandInput,
25
+ PutDataProtectionPolicyCommandOutput,
26
+ CloudWatchLogsClientResolvedConfig
27
+ > {
28
+ readonly input: PutDataProtectionPolicyCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
30
+ constructor(input: PutDataProtectionPolicyCommandInput);
31
+ resolveMiddleware(
32
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
33
+ configuration: CloudWatchLogsClientResolvedConfig,
34
+ options?: __HttpHandlerOptions
35
+ ): Handler<
36
+ PutDataProtectionPolicyCommandInput,
37
+ PutDataProtectionPolicyCommandOutput
38
+ >;
39
+ private serialize;
40
+ private deserialize;
41
+ }
@@ -3,6 +3,7 @@ export * from "./CancelExportTaskCommand";
3
3
  export * from "./CreateExportTaskCommand";
4
4
  export * from "./CreateLogGroupCommand";
5
5
  export * from "./CreateLogStreamCommand";
6
+ export * from "./DeleteDataProtectionPolicyCommand";
6
7
  export * from "./DeleteDestinationCommand";
7
8
  export * from "./DeleteLogGroupCommand";
8
9
  export * from "./DeleteLogStreamCommand";
@@ -22,12 +23,14 @@ export * from "./DescribeResourcePoliciesCommand";
22
23
  export * from "./DescribeSubscriptionFiltersCommand";
23
24
  export * from "./DisassociateKmsKeyCommand";
24
25
  export * from "./FilterLogEventsCommand";
26
+ export * from "./GetDataProtectionPolicyCommand";
25
27
  export * from "./GetLogEventsCommand";
26
28
  export * from "./GetLogGroupFieldsCommand";
27
29
  export * from "./GetLogRecordCommand";
28
30
  export * from "./GetQueryResultsCommand";
29
31
  export * from "./ListTagsForResourceCommand";
30
32
  export * from "./ListTagsLogGroupCommand";
33
+ export * from "./PutDataProtectionPolicyCommand";
31
34
  export * from "./PutDestinationCommand";
32
35
  export * from "./PutDestinationPolicyCommand";
33
36
  export * from "./PutLogEventsCommand";
@@ -27,7 +27,7 @@ export declare const resolveClientEndpointParameters: <T>(
27
27
  defaultSigningName: string;
28
28
  };
29
29
  export interface EndpointParameters extends __EndpointParameters {
30
- Region?: string;
30
+ Region: string;
31
31
  UseDualStack?: boolean;
32
32
  UseFIPS?: boolean;
33
33
  Endpoint?: string;
@@ -85,6 +85,15 @@ export declare class DataAlreadyAcceptedException extends __BaseException {
85
85
  opts: __ExceptionOptionType<DataAlreadyAcceptedException, __BaseException>
86
86
  );
87
87
  }
88
+ export declare enum DataProtectionStatus {
89
+ ACTIVATED = "ACTIVATED",
90
+ ARCHIVED = "ARCHIVED",
91
+ DELETED = "DELETED",
92
+ DISABLED = "DISABLED",
93
+ }
94
+ export interface DeleteDataProtectionPolicyRequest {
95
+ logGroupIdentifier: string | undefined;
96
+ }
88
97
  export interface DeleteDestinationRequest {
89
98
  destinationName: string | undefined;
90
99
  }
@@ -170,9 +179,12 @@ export interface DescribeExportTasksResponse {
170
179
  nextToken?: string;
171
180
  }
172
181
  export interface DescribeLogGroupsRequest {
182
+ accountIdentifiers?: string[];
173
183
  logGroupNamePrefix?: string;
184
+ logGroupNamePattern?: string;
174
185
  nextToken?: string;
175
186
  limit?: number;
187
+ includeLinkedAccounts?: boolean;
176
188
  }
177
189
  export interface LogGroup {
178
190
  logGroupName?: string;
@@ -182,6 +194,7 @@ export interface LogGroup {
182
194
  arn?: string;
183
195
  storedBytes?: number;
184
196
  kmsKeyId?: string;
197
+ dataProtectionStatus?: DataProtectionStatus | string;
185
198
  }
186
199
  export interface DescribeLogGroupsResponse {
187
200
  logGroups?: LogGroup[];
@@ -193,6 +206,7 @@ export declare enum OrderBy {
193
206
  }
194
207
  export interface DescribeLogStreamsRequest {
195
208
  logGroupName: string | undefined;
209
+ logGroupIdentifier?: string;
196
210
  logStreamNamePrefix?: string;
197
211
  orderBy?: OrderBy | string;
198
212
  descending?: boolean;
@@ -359,6 +373,7 @@ export interface FilteredLogEvent {
359
373
  }
360
374
  export interface FilterLogEventsRequest {
361
375
  logGroupName: string | undefined;
376
+ logGroupIdentifier?: string;
362
377
  logStreamNames?: string[];
363
378
  logStreamNamePrefix?: string;
364
379
  startTime?: number;
@@ -367,6 +382,7 @@ export interface FilterLogEventsRequest {
367
382
  nextToken?: string;
368
383
  limit?: number;
369
384
  interleaved?: boolean;
385
+ unmask?: boolean;
370
386
  }
371
387
  export interface SearchedLogStream {
372
388
  logStreamName?: string;
@@ -377,14 +393,24 @@ export interface FilterLogEventsResponse {
377
393
  searchedLogStreams?: SearchedLogStream[];
378
394
  nextToken?: string;
379
395
  }
396
+ export interface GetDataProtectionPolicyRequest {
397
+ logGroupIdentifier: string | undefined;
398
+ }
399
+ export interface GetDataProtectionPolicyResponse {
400
+ logGroupIdentifier?: string;
401
+ policyDocument?: string;
402
+ lastUpdatedTime?: number;
403
+ }
380
404
  export interface GetLogEventsRequest {
381
405
  logGroupName: string | undefined;
406
+ logGroupIdentifier?: string;
382
407
  logStreamName: string | undefined;
383
408
  startTime?: number;
384
409
  endTime?: number;
385
410
  nextToken?: string;
386
411
  limit?: number;
387
412
  startFromHead?: boolean;
413
+ unmask?: boolean;
388
414
  }
389
415
  export interface OutputLogEvent {
390
416
  timestamp?: number;
@@ -399,6 +425,7 @@ export interface GetLogEventsResponse {
399
425
  export interface GetLogGroupFieldsRequest {
400
426
  logGroupName: string | undefined;
401
427
  time?: number;
428
+ logGroupIdentifier?: string;
402
429
  }
403
430
  export interface LogGroupField {
404
431
  name?: string;
@@ -409,6 +436,7 @@ export interface GetLogGroupFieldsResponse {
409
436
  }
410
437
  export interface GetLogRecordRequest {
411
438
  logRecordPointer: string | undefined;
439
+ unmask?: boolean;
412
440
  }
413
441
  export interface GetLogRecordResponse {
414
442
  logRecord?: Record<string, string>;
@@ -454,6 +482,15 @@ export interface ListTagsLogGroupRequest {
454
482
  export interface ListTagsLogGroupResponse {
455
483
  tags?: Record<string, string>;
456
484
  }
485
+ export interface PutDataProtectionPolicyRequest {
486
+ logGroupIdentifier: string | undefined;
487
+ policyDocument: string | undefined;
488
+ }
489
+ export interface PutDataProtectionPolicyResponse {
490
+ logGroupIdentifier?: string;
491
+ policyDocument?: string;
492
+ lastUpdatedTime?: number;
493
+ }
457
494
  export interface PutDestinationRequest {
458
495
  destinationName: string | undefined;
459
496
  targetArn: string | undefined;
@@ -543,6 +580,7 @@ export declare class MalformedQueryException extends __BaseException {
543
580
  export interface StartQueryRequest {
544
581
  logGroupName?: string;
545
582
  logGroupNames?: string[];
583
+ logGroupIdentifiers?: string[];
546
584
  startTime: number | undefined;
547
585
  endTime: number | undefined;
548
586
  queryString: string | undefined;
@@ -611,6 +649,9 @@ export declare const CreateLogGroupRequestFilterSensitiveLog: (
611
649
  export declare const CreateLogStreamRequestFilterSensitiveLog: (
612
650
  obj: CreateLogStreamRequest
613
651
  ) => any;
652
+ export declare const DeleteDataProtectionPolicyRequestFilterSensitiveLog: (
653
+ obj: DeleteDataProtectionPolicyRequest
654
+ ) => any;
614
655
  export declare const DeleteDestinationRequestFilterSensitiveLog: (
615
656
  obj: DeleteDestinationRequest
616
657
  ) => any;
@@ -731,6 +772,12 @@ export declare const SearchedLogStreamFilterSensitiveLog: (
731
772
  export declare const FilterLogEventsResponseFilterSensitiveLog: (
732
773
  obj: FilterLogEventsResponse
733
774
  ) => any;
775
+ export declare const GetDataProtectionPolicyRequestFilterSensitiveLog: (
776
+ obj: GetDataProtectionPolicyRequest
777
+ ) => any;
778
+ export declare const GetDataProtectionPolicyResponseFilterSensitiveLog: (
779
+ obj: GetDataProtectionPolicyResponse
780
+ ) => any;
734
781
  export declare const GetLogEventsRequestFilterSensitiveLog: (
735
782
  obj: GetLogEventsRequest
736
783
  ) => any;
@@ -780,6 +827,12 @@ export declare const ListTagsLogGroupRequestFilterSensitiveLog: (
780
827
  export declare const ListTagsLogGroupResponseFilterSensitiveLog: (
781
828
  obj: ListTagsLogGroupResponse
782
829
  ) => any;
830
+ export declare const PutDataProtectionPolicyRequestFilterSensitiveLog: (
831
+ obj: PutDataProtectionPolicyRequest
832
+ ) => any;
833
+ export declare const PutDataProtectionPolicyResponseFilterSensitiveLog: (
834
+ obj: PutDataProtectionPolicyResponse
835
+ ) => any;
783
836
  export declare const PutDestinationRequestFilterSensitiveLog: (
784
837
  obj: PutDestinationRequest
785
838
  ) => any;
@@ -23,6 +23,10 @@ import {
23
23
  CreateLogStreamCommandInput,
24
24
  CreateLogStreamCommandOutput,
25
25
  } from "../commands/CreateLogStreamCommand";
26
+ import {
27
+ DeleteDataProtectionPolicyCommandInput,
28
+ DeleteDataProtectionPolicyCommandOutput,
29
+ } from "../commands/DeleteDataProtectionPolicyCommand";
26
30
  import {
27
31
  DeleteDestinationCommandInput,
28
32
  DeleteDestinationCommandOutput,
@@ -99,6 +103,10 @@ import {
99
103
  FilterLogEventsCommandInput,
100
104
  FilterLogEventsCommandOutput,
101
105
  } from "../commands/FilterLogEventsCommand";
106
+ import {
107
+ GetDataProtectionPolicyCommandInput,
108
+ GetDataProtectionPolicyCommandOutput,
109
+ } from "../commands/GetDataProtectionPolicyCommand";
102
110
  import {
103
111
  GetLogEventsCommandInput,
104
112
  GetLogEventsCommandOutput,
@@ -123,6 +131,10 @@ import {
123
131
  ListTagsLogGroupCommandInput,
124
132
  ListTagsLogGroupCommandOutput,
125
133
  } from "../commands/ListTagsLogGroupCommand";
134
+ import {
135
+ PutDataProtectionPolicyCommandInput,
136
+ PutDataProtectionPolicyCommandOutput,
137
+ } from "../commands/PutDataProtectionPolicyCommand";
126
138
  import {
127
139
  PutDestinationCommandInput,
128
140
  PutDestinationCommandOutput,
@@ -203,6 +215,10 @@ export declare const serializeAws_json1_1CreateLogStreamCommand: (
203
215
  input: CreateLogStreamCommandInput,
204
216
  context: __SerdeContext
205
217
  ) => Promise<__HttpRequest>;
218
+ export declare const serializeAws_json1_1DeleteDataProtectionPolicyCommand: (
219
+ input: DeleteDataProtectionPolicyCommandInput,
220
+ context: __SerdeContext
221
+ ) => Promise<__HttpRequest>;
206
222
  export declare const serializeAws_json1_1DeleteDestinationCommand: (
207
223
  input: DeleteDestinationCommandInput,
208
224
  context: __SerdeContext
@@ -279,6 +295,10 @@ export declare const serializeAws_json1_1FilterLogEventsCommand: (
279
295
  input: FilterLogEventsCommandInput,
280
296
  context: __SerdeContext
281
297
  ) => Promise<__HttpRequest>;
298
+ export declare const serializeAws_json1_1GetDataProtectionPolicyCommand: (
299
+ input: GetDataProtectionPolicyCommandInput,
300
+ context: __SerdeContext
301
+ ) => Promise<__HttpRequest>;
282
302
  export declare const serializeAws_json1_1GetLogEventsCommand: (
283
303
  input: GetLogEventsCommandInput,
284
304
  context: __SerdeContext
@@ -303,6 +323,10 @@ export declare const serializeAws_json1_1ListTagsLogGroupCommand: (
303
323
  input: ListTagsLogGroupCommandInput,
304
324
  context: __SerdeContext
305
325
  ) => Promise<__HttpRequest>;
326
+ export declare const serializeAws_json1_1PutDataProtectionPolicyCommand: (
327
+ input: PutDataProtectionPolicyCommandInput,
328
+ context: __SerdeContext
329
+ ) => Promise<__HttpRequest>;
306
330
  export declare const serializeAws_json1_1PutDestinationCommand: (
307
331
  input: PutDestinationCommandInput,
308
332
  context: __SerdeContext
@@ -383,6 +407,10 @@ export declare const deserializeAws_json1_1CreateLogStreamCommand: (
383
407
  output: __HttpResponse,
384
408
  context: __SerdeContext
385
409
  ) => Promise<CreateLogStreamCommandOutput>;
410
+ export declare const deserializeAws_json1_1DeleteDataProtectionPolicyCommand: (
411
+ output: __HttpResponse,
412
+ context: __SerdeContext
413
+ ) => Promise<DeleteDataProtectionPolicyCommandOutput>;
386
414
  export declare const deserializeAws_json1_1DeleteDestinationCommand: (
387
415
  output: __HttpResponse,
388
416
  context: __SerdeContext
@@ -459,6 +487,10 @@ export declare const deserializeAws_json1_1FilterLogEventsCommand: (
459
487
  output: __HttpResponse,
460
488
  context: __SerdeContext
461
489
  ) => Promise<FilterLogEventsCommandOutput>;
490
+ export declare const deserializeAws_json1_1GetDataProtectionPolicyCommand: (
491
+ output: __HttpResponse,
492
+ context: __SerdeContext
493
+ ) => Promise<GetDataProtectionPolicyCommandOutput>;
462
494
  export declare const deserializeAws_json1_1GetLogEventsCommand: (
463
495
  output: __HttpResponse,
464
496
  context: __SerdeContext
@@ -483,6 +515,10 @@ export declare const deserializeAws_json1_1ListTagsLogGroupCommand: (
483
515
  output: __HttpResponse,
484
516
  context: __SerdeContext
485
517
  ) => Promise<ListTagsLogGroupCommandOutput>;
518
+ export declare const deserializeAws_json1_1PutDataProtectionPolicyCommand: (
519
+ output: __HttpResponse,
520
+ context: __SerdeContext
521
+ ) => Promise<PutDataProtectionPolicyCommandOutput>;
486
522
  export declare const deserializeAws_json1_1PutDestinationCommand: (
487
523
  output: __HttpResponse,
488
524
  context: __SerdeContext