@aws-sdk/client-cloudwatch-logs 3.347.1 → 3.350.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 +24 -0
- package/dist-cjs/CloudWatchLogs.js +6 -0
- package/dist-cjs/commands/DeleteAccountPolicyCommand.js +46 -0
- package/dist-cjs/commands/DescribeAccountPoliciesCommand.js +46 -0
- package/dist-cjs/commands/PutAccountPolicyCommand.js +46 -0
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +10 -1
- package/dist-cjs/protocols/Aws_json1_1.js +147 -2
- package/dist-es/CloudWatchLogs.js +6 -0
- package/dist-es/commands/DeleteAccountPolicyCommand.js +42 -0
- package/dist-es/commands/DescribeAccountPoliciesCommand.js +42 -0
- package/dist-es/commands/PutAccountPolicyCommand.js +42 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +9 -0
- package/dist-es/protocols/Aws_json1_1.js +138 -0
- package/dist-types/CloudWatchLogs.d.ts +21 -0
- package/dist-types/CloudWatchLogsClient.d.ts +5 -2
- package/dist-types/commands/CreateLogGroupCommand.d.ts +1 -1
- package/dist-types/commands/DeleteAccountPolicyCommand.d.ts +86 -0
- package/dist-types/commands/DescribeAccountPoliciesCommand.d.ts +98 -0
- package/dist-types/commands/DescribeLogGroupsCommand.d.ts +3 -0
- package/dist-types/commands/FilterLogEventsCommand.d.ts +1 -1
- package/dist-types/commands/PutAccountPolicyCommand.d.ts +121 -0
- package/dist-types/commands/PutDataProtectionPolicyCommand.d.ts +6 -0
- package/dist-types/commands/PutLogEventsCommand.d.ts +3 -0
- package/dist-types/commands/PutSubscriptionFilterCommand.d.ts +2 -1
- package/dist-types/commands/StartQueryCommand.d.ts +2 -2
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +194 -11
- package/dist-types/protocols/Aws_json1_1.d.ts +27 -0
- package/dist-types/ts3.4/CloudWatchLogs.d.ts +51 -0
- package/dist-types/ts3.4/CloudWatchLogsClient.d.ts +18 -0
- package/dist-types/ts3.4/commands/DeleteAccountPolicyCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/DescribeAccountPoliciesCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/PutAccountPolicyCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +43 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +36 -0
- package/package.json +4 -4
|
@@ -20,6 +20,10 @@ import {
|
|
|
20
20
|
CreateLogStreamCommandInput,
|
|
21
21
|
CreateLogStreamCommandOutput,
|
|
22
22
|
} from "./commands/CreateLogStreamCommand";
|
|
23
|
+
import {
|
|
24
|
+
DeleteAccountPolicyCommandInput,
|
|
25
|
+
DeleteAccountPolicyCommandOutput,
|
|
26
|
+
} from "./commands/DeleteAccountPolicyCommand";
|
|
23
27
|
import {
|
|
24
28
|
DeleteDataProtectionPolicyCommandInput,
|
|
25
29
|
DeleteDataProtectionPolicyCommandOutput,
|
|
@@ -56,6 +60,10 @@ import {
|
|
|
56
60
|
DeleteSubscriptionFilterCommandInput,
|
|
57
61
|
DeleteSubscriptionFilterCommandOutput,
|
|
58
62
|
} from "./commands/DeleteSubscriptionFilterCommand";
|
|
63
|
+
import {
|
|
64
|
+
DescribeAccountPoliciesCommandInput,
|
|
65
|
+
DescribeAccountPoliciesCommandOutput,
|
|
66
|
+
} from "./commands/DescribeAccountPoliciesCommand";
|
|
59
67
|
import {
|
|
60
68
|
DescribeDestinationsCommandInput,
|
|
61
69
|
DescribeDestinationsCommandOutput,
|
|
@@ -128,6 +136,10 @@ import {
|
|
|
128
136
|
ListTagsLogGroupCommandInput,
|
|
129
137
|
ListTagsLogGroupCommandOutput,
|
|
130
138
|
} from "./commands/ListTagsLogGroupCommand";
|
|
139
|
+
import {
|
|
140
|
+
PutAccountPolicyCommandInput,
|
|
141
|
+
PutAccountPolicyCommandOutput,
|
|
142
|
+
} from "./commands/PutAccountPolicyCommand";
|
|
131
143
|
import {
|
|
132
144
|
PutDataProtectionPolicyCommandInput,
|
|
133
145
|
PutDataProtectionPolicyCommandOutput,
|
|
@@ -258,6 +270,19 @@ export interface CloudWatchLogs {
|
|
|
258
270
|
options: __HttpHandlerOptions,
|
|
259
271
|
cb: (err: any, data?: CreateLogStreamCommandOutput) => void
|
|
260
272
|
): void;
|
|
273
|
+
deleteAccountPolicy(
|
|
274
|
+
args: DeleteAccountPolicyCommandInput,
|
|
275
|
+
options?: __HttpHandlerOptions
|
|
276
|
+
): Promise<DeleteAccountPolicyCommandOutput>;
|
|
277
|
+
deleteAccountPolicy(
|
|
278
|
+
args: DeleteAccountPolicyCommandInput,
|
|
279
|
+
cb: (err: any, data?: DeleteAccountPolicyCommandOutput) => void
|
|
280
|
+
): void;
|
|
281
|
+
deleteAccountPolicy(
|
|
282
|
+
args: DeleteAccountPolicyCommandInput,
|
|
283
|
+
options: __HttpHandlerOptions,
|
|
284
|
+
cb: (err: any, data?: DeleteAccountPolicyCommandOutput) => void
|
|
285
|
+
): void;
|
|
261
286
|
deleteDataProtectionPolicy(
|
|
262
287
|
args: DeleteDataProtectionPolicyCommandInput,
|
|
263
288
|
options?: __HttpHandlerOptions
|
|
@@ -375,6 +400,19 @@ export interface CloudWatchLogs {
|
|
|
375
400
|
options: __HttpHandlerOptions,
|
|
376
401
|
cb: (err: any, data?: DeleteSubscriptionFilterCommandOutput) => void
|
|
377
402
|
): void;
|
|
403
|
+
describeAccountPolicies(
|
|
404
|
+
args: DescribeAccountPoliciesCommandInput,
|
|
405
|
+
options?: __HttpHandlerOptions
|
|
406
|
+
): Promise<DescribeAccountPoliciesCommandOutput>;
|
|
407
|
+
describeAccountPolicies(
|
|
408
|
+
args: DescribeAccountPoliciesCommandInput,
|
|
409
|
+
cb: (err: any, data?: DescribeAccountPoliciesCommandOutput) => void
|
|
410
|
+
): void;
|
|
411
|
+
describeAccountPolicies(
|
|
412
|
+
args: DescribeAccountPoliciesCommandInput,
|
|
413
|
+
options: __HttpHandlerOptions,
|
|
414
|
+
cb: (err: any, data?: DescribeAccountPoliciesCommandOutput) => void
|
|
415
|
+
): void;
|
|
378
416
|
describeDestinations(
|
|
379
417
|
args: DescribeDestinationsCommandInput,
|
|
380
418
|
options?: __HttpHandlerOptions
|
|
@@ -609,6 +647,19 @@ export interface CloudWatchLogs {
|
|
|
609
647
|
options: __HttpHandlerOptions,
|
|
610
648
|
cb: (err: any, data?: ListTagsLogGroupCommandOutput) => void
|
|
611
649
|
): void;
|
|
650
|
+
putAccountPolicy(
|
|
651
|
+
args: PutAccountPolicyCommandInput,
|
|
652
|
+
options?: __HttpHandlerOptions
|
|
653
|
+
): Promise<PutAccountPolicyCommandOutput>;
|
|
654
|
+
putAccountPolicy(
|
|
655
|
+
args: PutAccountPolicyCommandInput,
|
|
656
|
+
cb: (err: any, data?: PutAccountPolicyCommandOutput) => void
|
|
657
|
+
): void;
|
|
658
|
+
putAccountPolicy(
|
|
659
|
+
args: PutAccountPolicyCommandInput,
|
|
660
|
+
options: __HttpHandlerOptions,
|
|
661
|
+
cb: (err: any, data?: PutAccountPolicyCommandOutput) => void
|
|
662
|
+
): void;
|
|
612
663
|
putDataProtectionPolicy(
|
|
613
664
|
args: PutDataProtectionPolicyCommandInput,
|
|
614
665
|
options?: __HttpHandlerOptions
|
|
@@ -66,6 +66,10 @@ import {
|
|
|
66
66
|
CreateLogStreamCommandInput,
|
|
67
67
|
CreateLogStreamCommandOutput,
|
|
68
68
|
} from "./commands/CreateLogStreamCommand";
|
|
69
|
+
import {
|
|
70
|
+
DeleteAccountPolicyCommandInput,
|
|
71
|
+
DeleteAccountPolicyCommandOutput,
|
|
72
|
+
} from "./commands/DeleteAccountPolicyCommand";
|
|
69
73
|
import {
|
|
70
74
|
DeleteDataProtectionPolicyCommandInput,
|
|
71
75
|
DeleteDataProtectionPolicyCommandOutput,
|
|
@@ -102,6 +106,10 @@ import {
|
|
|
102
106
|
DeleteSubscriptionFilterCommandInput,
|
|
103
107
|
DeleteSubscriptionFilterCommandOutput,
|
|
104
108
|
} from "./commands/DeleteSubscriptionFilterCommand";
|
|
109
|
+
import {
|
|
110
|
+
DescribeAccountPoliciesCommandInput,
|
|
111
|
+
DescribeAccountPoliciesCommandOutput,
|
|
112
|
+
} from "./commands/DescribeAccountPoliciesCommand";
|
|
105
113
|
import {
|
|
106
114
|
DescribeDestinationsCommandInput,
|
|
107
115
|
DescribeDestinationsCommandOutput,
|
|
@@ -174,6 +182,10 @@ import {
|
|
|
174
182
|
ListTagsLogGroupCommandInput,
|
|
175
183
|
ListTagsLogGroupCommandOutput,
|
|
176
184
|
} from "./commands/ListTagsLogGroupCommand";
|
|
185
|
+
import {
|
|
186
|
+
PutAccountPolicyCommandInput,
|
|
187
|
+
PutAccountPolicyCommandOutput,
|
|
188
|
+
} from "./commands/PutAccountPolicyCommand";
|
|
177
189
|
import {
|
|
178
190
|
PutDataProtectionPolicyCommandInput,
|
|
179
191
|
PutDataProtectionPolicyCommandOutput,
|
|
@@ -250,6 +262,7 @@ export type ServiceInputTypes =
|
|
|
250
262
|
| CreateExportTaskCommandInput
|
|
251
263
|
| CreateLogGroupCommandInput
|
|
252
264
|
| CreateLogStreamCommandInput
|
|
265
|
+
| DeleteAccountPolicyCommandInput
|
|
253
266
|
| DeleteDataProtectionPolicyCommandInput
|
|
254
267
|
| DeleteDestinationCommandInput
|
|
255
268
|
| DeleteLogGroupCommandInput
|
|
@@ -259,6 +272,7 @@ export type ServiceInputTypes =
|
|
|
259
272
|
| DeleteResourcePolicyCommandInput
|
|
260
273
|
| DeleteRetentionPolicyCommandInput
|
|
261
274
|
| DeleteSubscriptionFilterCommandInput
|
|
275
|
+
| DescribeAccountPoliciesCommandInput
|
|
262
276
|
| DescribeDestinationsCommandInput
|
|
263
277
|
| DescribeExportTasksCommandInput
|
|
264
278
|
| DescribeLogGroupsCommandInput
|
|
@@ -277,6 +291,7 @@ export type ServiceInputTypes =
|
|
|
277
291
|
| GetQueryResultsCommandInput
|
|
278
292
|
| ListTagsForResourceCommandInput
|
|
279
293
|
| ListTagsLogGroupCommandInput
|
|
294
|
+
| PutAccountPolicyCommandInput
|
|
280
295
|
| PutDataProtectionPolicyCommandInput
|
|
281
296
|
| PutDestinationCommandInput
|
|
282
297
|
| PutDestinationPolicyCommandInput
|
|
@@ -299,6 +314,7 @@ export type ServiceOutputTypes =
|
|
|
299
314
|
| CreateExportTaskCommandOutput
|
|
300
315
|
| CreateLogGroupCommandOutput
|
|
301
316
|
| CreateLogStreamCommandOutput
|
|
317
|
+
| DeleteAccountPolicyCommandOutput
|
|
302
318
|
| DeleteDataProtectionPolicyCommandOutput
|
|
303
319
|
| DeleteDestinationCommandOutput
|
|
304
320
|
| DeleteLogGroupCommandOutput
|
|
@@ -308,6 +324,7 @@ export type ServiceOutputTypes =
|
|
|
308
324
|
| DeleteResourcePolicyCommandOutput
|
|
309
325
|
| DeleteRetentionPolicyCommandOutput
|
|
310
326
|
| DeleteSubscriptionFilterCommandOutput
|
|
327
|
+
| DescribeAccountPoliciesCommandOutput
|
|
311
328
|
| DescribeDestinationsCommandOutput
|
|
312
329
|
| DescribeExportTasksCommandOutput
|
|
313
330
|
| DescribeLogGroupsCommandOutput
|
|
@@ -326,6 +343,7 @@ export type ServiceOutputTypes =
|
|
|
326
343
|
| GetQueryResultsCommandOutput
|
|
327
344
|
| ListTagsForResourceCommandOutput
|
|
328
345
|
| ListTagsLogGroupCommandOutput
|
|
346
|
+
| PutAccountPolicyCommandOutput
|
|
329
347
|
| PutDataProtectionPolicyCommandOutput
|
|
330
348
|
| PutDestinationCommandOutput
|
|
331
349
|
| PutDestinationPolicyCommandOutput
|
|
@@ -0,0 +1,34 @@
|
|
|
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 { DeleteAccountPolicyRequest } from "../models/models_0";
|
|
15
|
+
export { __MetadataBearer, $Command };
|
|
16
|
+
export interface DeleteAccountPolicyCommandInput
|
|
17
|
+
extends DeleteAccountPolicyRequest {}
|
|
18
|
+
export interface DeleteAccountPolicyCommandOutput extends __MetadataBearer {}
|
|
19
|
+
export declare class DeleteAccountPolicyCommand extends $Command<
|
|
20
|
+
DeleteAccountPolicyCommandInput,
|
|
21
|
+
DeleteAccountPolicyCommandOutput,
|
|
22
|
+
CloudWatchLogsClientResolvedConfig
|
|
23
|
+
> {
|
|
24
|
+
readonly input: DeleteAccountPolicyCommandInput;
|
|
25
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
26
|
+
constructor(input: DeleteAccountPolicyCommandInput);
|
|
27
|
+
resolveMiddleware(
|
|
28
|
+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
29
|
+
configuration: CloudWatchLogsClientResolvedConfig,
|
|
30
|
+
options?: __HttpHandlerOptions
|
|
31
|
+
): Handler<DeleteAccountPolicyCommandInput, DeleteAccountPolicyCommandOutput>;
|
|
32
|
+
private serialize;
|
|
33
|
+
private deserialize;
|
|
34
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
DescribeAccountPoliciesRequest,
|
|
16
|
+
DescribeAccountPoliciesResponse,
|
|
17
|
+
} from "../models/models_0";
|
|
18
|
+
export { __MetadataBearer, $Command };
|
|
19
|
+
export interface DescribeAccountPoliciesCommandInput
|
|
20
|
+
extends DescribeAccountPoliciesRequest {}
|
|
21
|
+
export interface DescribeAccountPoliciesCommandOutput
|
|
22
|
+
extends DescribeAccountPoliciesResponse,
|
|
23
|
+
__MetadataBearer {}
|
|
24
|
+
export declare class DescribeAccountPoliciesCommand extends $Command<
|
|
25
|
+
DescribeAccountPoliciesCommandInput,
|
|
26
|
+
DescribeAccountPoliciesCommandOutput,
|
|
27
|
+
CloudWatchLogsClientResolvedConfig
|
|
28
|
+
> {
|
|
29
|
+
readonly input: DescribeAccountPoliciesCommandInput;
|
|
30
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
31
|
+
constructor(input: DescribeAccountPoliciesCommandInput);
|
|
32
|
+
resolveMiddleware(
|
|
33
|
+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
34
|
+
configuration: CloudWatchLogsClientResolvedConfig,
|
|
35
|
+
options?: __HttpHandlerOptions
|
|
36
|
+
): Handler<
|
|
37
|
+
DescribeAccountPoliciesCommandInput,
|
|
38
|
+
DescribeAccountPoliciesCommandOutput
|
|
39
|
+
>;
|
|
40
|
+
private serialize;
|
|
41
|
+
private deserialize;
|
|
42
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
PutAccountPolicyRequest,
|
|
16
|
+
PutAccountPolicyResponse,
|
|
17
|
+
} from "../models/models_0";
|
|
18
|
+
export { __MetadataBearer, $Command };
|
|
19
|
+
export interface PutAccountPolicyCommandInput extends PutAccountPolicyRequest {}
|
|
20
|
+
export interface PutAccountPolicyCommandOutput
|
|
21
|
+
extends PutAccountPolicyResponse,
|
|
22
|
+
__MetadataBearer {}
|
|
23
|
+
export declare class PutAccountPolicyCommand extends $Command<
|
|
24
|
+
PutAccountPolicyCommandInput,
|
|
25
|
+
PutAccountPolicyCommandOutput,
|
|
26
|
+
CloudWatchLogsClientResolvedConfig
|
|
27
|
+
> {
|
|
28
|
+
readonly input: PutAccountPolicyCommandInput;
|
|
29
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
30
|
+
constructor(input: PutAccountPolicyCommandInput);
|
|
31
|
+
resolveMiddleware(
|
|
32
|
+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
33
|
+
configuration: CloudWatchLogsClientResolvedConfig,
|
|
34
|
+
options?: __HttpHandlerOptions
|
|
35
|
+
): Handler<PutAccountPolicyCommandInput, PutAccountPolicyCommandOutput>;
|
|
36
|
+
private serialize;
|
|
37
|
+
private deserialize;
|
|
38
|
+
}
|
|
@@ -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 "./DeleteAccountPolicyCommand";
|
|
6
7
|
export * from "./DeleteDataProtectionPolicyCommand";
|
|
7
8
|
export * from "./DeleteDestinationCommand";
|
|
8
9
|
export * from "./DeleteLogGroupCommand";
|
|
@@ -12,6 +13,7 @@ export * from "./DeleteQueryDefinitionCommand";
|
|
|
12
13
|
export * from "./DeleteResourcePolicyCommand";
|
|
13
14
|
export * from "./DeleteRetentionPolicyCommand";
|
|
14
15
|
export * from "./DeleteSubscriptionFilterCommand";
|
|
16
|
+
export * from "./DescribeAccountPoliciesCommand";
|
|
15
17
|
export * from "./DescribeDestinationsCommand";
|
|
16
18
|
export * from "./DescribeExportTasksCommand";
|
|
17
19
|
export * from "./DescribeLogGroupsCommand";
|
|
@@ -30,6 +32,7 @@ export * from "./GetLogRecordCommand";
|
|
|
30
32
|
export * from "./GetQueryResultsCommand";
|
|
31
33
|
export * from "./ListTagsForResourceCommand";
|
|
32
34
|
export * from "./ListTagsLogGroupCommand";
|
|
35
|
+
export * from "./PutAccountPolicyCommand";
|
|
33
36
|
export * from "./PutDataProtectionPolicyCommand";
|
|
34
37
|
export * from "./PutDestinationCommand";
|
|
35
38
|
export * from "./PutDestinationPolicyCommand";
|
|
@@ -25,7 +25,7 @@ export declare const resolveClientEndpointParameters: <T>(
|
|
|
25
25
|
defaultSigningName: string;
|
|
26
26
|
};
|
|
27
27
|
export interface EndpointParameters extends __EndpointParameters {
|
|
28
|
-
Region
|
|
28
|
+
Region?: string;
|
|
29
29
|
UseDualStack?: boolean;
|
|
30
30
|
UseFIPS?: boolean;
|
|
31
31
|
Endpoint?: string;
|
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
|
|
2
2
|
import { CloudWatchLogsServiceException as __BaseException } from "./CloudWatchLogsServiceException";
|
|
3
|
+
export declare const PolicyType: {
|
|
4
|
+
readonly DATA_PROTECTION_POLICY: "DATA_PROTECTION_POLICY";
|
|
5
|
+
};
|
|
6
|
+
export type PolicyType = (typeof PolicyType)[keyof typeof PolicyType];
|
|
7
|
+
export declare const Scope: {
|
|
8
|
+
readonly ALL: "ALL";
|
|
9
|
+
};
|
|
10
|
+
export type Scope = (typeof Scope)[keyof typeof Scope];
|
|
11
|
+
export interface AccountPolicy {
|
|
12
|
+
policyName?: string;
|
|
13
|
+
policyDocument?: string;
|
|
14
|
+
lastUpdatedTime?: number;
|
|
15
|
+
policyType?: PolicyType | string;
|
|
16
|
+
scope?: Scope | string;
|
|
17
|
+
accountId?: string;
|
|
18
|
+
}
|
|
3
19
|
export interface AssociateKmsKeyRequest {
|
|
4
20
|
logGroupName: string | undefined;
|
|
5
21
|
kmsKeyId: string | undefined;
|
|
@@ -93,6 +109,10 @@ export declare const DataProtectionStatus: {
|
|
|
93
109
|
};
|
|
94
110
|
export type DataProtectionStatus =
|
|
95
111
|
(typeof DataProtectionStatus)[keyof typeof DataProtectionStatus];
|
|
112
|
+
export interface DeleteAccountPolicyRequest {
|
|
113
|
+
policyName: string | undefined;
|
|
114
|
+
policyType: PolicyType | string | undefined;
|
|
115
|
+
}
|
|
96
116
|
export interface DeleteDataProtectionPolicyRequest {
|
|
97
117
|
logGroupIdentifier: string | undefined;
|
|
98
118
|
}
|
|
@@ -126,6 +146,14 @@ export interface DeleteSubscriptionFilterRequest {
|
|
|
126
146
|
logGroupName: string | undefined;
|
|
127
147
|
filterName: string | undefined;
|
|
128
148
|
}
|
|
149
|
+
export interface DescribeAccountPoliciesRequest {
|
|
150
|
+
policyType: PolicyType | string | undefined;
|
|
151
|
+
policyName?: string;
|
|
152
|
+
accountIdentifiers?: string[];
|
|
153
|
+
}
|
|
154
|
+
export interface DescribeAccountPoliciesResponse {
|
|
155
|
+
accountPolicies?: AccountPolicy[];
|
|
156
|
+
}
|
|
129
157
|
export interface DescribeDestinationsRequest {
|
|
130
158
|
DestinationNamePrefix?: string;
|
|
131
159
|
nextToken?: string;
|
|
@@ -190,6 +218,11 @@ export interface DescribeLogGroupsRequest {
|
|
|
190
218
|
limit?: number;
|
|
191
219
|
includeLinkedAccounts?: boolean;
|
|
192
220
|
}
|
|
221
|
+
export declare const InheritedProperty: {
|
|
222
|
+
readonly ACCOUNT_DATA_PROTECTION: "ACCOUNT_DATA_PROTECTION";
|
|
223
|
+
};
|
|
224
|
+
export type InheritedProperty =
|
|
225
|
+
(typeof InheritedProperty)[keyof typeof InheritedProperty];
|
|
193
226
|
export interface LogGroup {
|
|
194
227
|
logGroupName?: string;
|
|
195
228
|
creationTime?: number;
|
|
@@ -199,6 +232,7 @@ export interface LogGroup {
|
|
|
199
232
|
storedBytes?: number;
|
|
200
233
|
kmsKeyId?: string;
|
|
201
234
|
dataProtectionStatus?: DataProtectionStatus | string;
|
|
235
|
+
inheritedProperties?: (InheritedProperty | string)[];
|
|
202
236
|
}
|
|
203
237
|
export interface DescribeLogGroupsResponse {
|
|
204
238
|
logGroups?: LogGroup[];
|
|
@@ -490,6 +524,15 @@ export interface ListTagsLogGroupRequest {
|
|
|
490
524
|
export interface ListTagsLogGroupResponse {
|
|
491
525
|
tags?: Record<string, string>;
|
|
492
526
|
}
|
|
527
|
+
export interface PutAccountPolicyRequest {
|
|
528
|
+
policyName: string | undefined;
|
|
529
|
+
policyDocument: string | undefined;
|
|
530
|
+
policyType: PolicyType | string | undefined;
|
|
531
|
+
scope?: Scope | string;
|
|
532
|
+
}
|
|
533
|
+
export interface PutAccountPolicyResponse {
|
|
534
|
+
accountPolicy?: AccountPolicy;
|
|
535
|
+
}
|
|
493
536
|
export interface PutDataProtectionPolicyRequest {
|
|
494
537
|
logGroupIdentifier: string | undefined;
|
|
495
538
|
policyDocument: string | undefined;
|
|
@@ -23,6 +23,10 @@ import {
|
|
|
23
23
|
CreateLogStreamCommandInput,
|
|
24
24
|
CreateLogStreamCommandOutput,
|
|
25
25
|
} from "../commands/CreateLogStreamCommand";
|
|
26
|
+
import {
|
|
27
|
+
DeleteAccountPolicyCommandInput,
|
|
28
|
+
DeleteAccountPolicyCommandOutput,
|
|
29
|
+
} from "../commands/DeleteAccountPolicyCommand";
|
|
26
30
|
import {
|
|
27
31
|
DeleteDataProtectionPolicyCommandInput,
|
|
28
32
|
DeleteDataProtectionPolicyCommandOutput,
|
|
@@ -59,6 +63,10 @@ import {
|
|
|
59
63
|
DeleteSubscriptionFilterCommandInput,
|
|
60
64
|
DeleteSubscriptionFilterCommandOutput,
|
|
61
65
|
} from "../commands/DeleteSubscriptionFilterCommand";
|
|
66
|
+
import {
|
|
67
|
+
DescribeAccountPoliciesCommandInput,
|
|
68
|
+
DescribeAccountPoliciesCommandOutput,
|
|
69
|
+
} from "../commands/DescribeAccountPoliciesCommand";
|
|
62
70
|
import {
|
|
63
71
|
DescribeDestinationsCommandInput,
|
|
64
72
|
DescribeDestinationsCommandOutput,
|
|
@@ -131,6 +139,10 @@ import {
|
|
|
131
139
|
ListTagsLogGroupCommandInput,
|
|
132
140
|
ListTagsLogGroupCommandOutput,
|
|
133
141
|
} from "../commands/ListTagsLogGroupCommand";
|
|
142
|
+
import {
|
|
143
|
+
PutAccountPolicyCommandInput,
|
|
144
|
+
PutAccountPolicyCommandOutput,
|
|
145
|
+
} from "../commands/PutAccountPolicyCommand";
|
|
134
146
|
import {
|
|
135
147
|
PutDataProtectionPolicyCommandInput,
|
|
136
148
|
PutDataProtectionPolicyCommandOutput,
|
|
@@ -215,6 +227,10 @@ export declare const se_CreateLogStreamCommand: (
|
|
|
215
227
|
input: CreateLogStreamCommandInput,
|
|
216
228
|
context: __SerdeContext
|
|
217
229
|
) => Promise<__HttpRequest>;
|
|
230
|
+
export declare const se_DeleteAccountPolicyCommand: (
|
|
231
|
+
input: DeleteAccountPolicyCommandInput,
|
|
232
|
+
context: __SerdeContext
|
|
233
|
+
) => Promise<__HttpRequest>;
|
|
218
234
|
export declare const se_DeleteDataProtectionPolicyCommand: (
|
|
219
235
|
input: DeleteDataProtectionPolicyCommandInput,
|
|
220
236
|
context: __SerdeContext
|
|
@@ -251,6 +267,10 @@ export declare const se_DeleteSubscriptionFilterCommand: (
|
|
|
251
267
|
input: DeleteSubscriptionFilterCommandInput,
|
|
252
268
|
context: __SerdeContext
|
|
253
269
|
) => Promise<__HttpRequest>;
|
|
270
|
+
export declare const se_DescribeAccountPoliciesCommand: (
|
|
271
|
+
input: DescribeAccountPoliciesCommandInput,
|
|
272
|
+
context: __SerdeContext
|
|
273
|
+
) => Promise<__HttpRequest>;
|
|
254
274
|
export declare const se_DescribeDestinationsCommand: (
|
|
255
275
|
input: DescribeDestinationsCommandInput,
|
|
256
276
|
context: __SerdeContext
|
|
@@ -323,6 +343,10 @@ export declare const se_ListTagsLogGroupCommand: (
|
|
|
323
343
|
input: ListTagsLogGroupCommandInput,
|
|
324
344
|
context: __SerdeContext
|
|
325
345
|
) => Promise<__HttpRequest>;
|
|
346
|
+
export declare const se_PutAccountPolicyCommand: (
|
|
347
|
+
input: PutAccountPolicyCommandInput,
|
|
348
|
+
context: __SerdeContext
|
|
349
|
+
) => Promise<__HttpRequest>;
|
|
326
350
|
export declare const se_PutDataProtectionPolicyCommand: (
|
|
327
351
|
input: PutDataProtectionPolicyCommandInput,
|
|
328
352
|
context: __SerdeContext
|
|
@@ -407,6 +431,10 @@ export declare const de_CreateLogStreamCommand: (
|
|
|
407
431
|
output: __HttpResponse,
|
|
408
432
|
context: __SerdeContext
|
|
409
433
|
) => Promise<CreateLogStreamCommandOutput>;
|
|
434
|
+
export declare const de_DeleteAccountPolicyCommand: (
|
|
435
|
+
output: __HttpResponse,
|
|
436
|
+
context: __SerdeContext
|
|
437
|
+
) => Promise<DeleteAccountPolicyCommandOutput>;
|
|
410
438
|
export declare const de_DeleteDataProtectionPolicyCommand: (
|
|
411
439
|
output: __HttpResponse,
|
|
412
440
|
context: __SerdeContext
|
|
@@ -443,6 +471,10 @@ export declare const de_DeleteSubscriptionFilterCommand: (
|
|
|
443
471
|
output: __HttpResponse,
|
|
444
472
|
context: __SerdeContext
|
|
445
473
|
) => Promise<DeleteSubscriptionFilterCommandOutput>;
|
|
474
|
+
export declare const de_DescribeAccountPoliciesCommand: (
|
|
475
|
+
output: __HttpResponse,
|
|
476
|
+
context: __SerdeContext
|
|
477
|
+
) => Promise<DescribeAccountPoliciesCommandOutput>;
|
|
446
478
|
export declare const de_DescribeDestinationsCommand: (
|
|
447
479
|
output: __HttpResponse,
|
|
448
480
|
context: __SerdeContext
|
|
@@ -515,6 +547,10 @@ export declare const de_ListTagsLogGroupCommand: (
|
|
|
515
547
|
output: __HttpResponse,
|
|
516
548
|
context: __SerdeContext
|
|
517
549
|
) => Promise<ListTagsLogGroupCommandOutput>;
|
|
550
|
+
export declare const de_PutAccountPolicyCommand: (
|
|
551
|
+
output: __HttpResponse,
|
|
552
|
+
context: __SerdeContext
|
|
553
|
+
) => Promise<PutAccountPolicyCommandOutput>;
|
|
518
554
|
export declare const de_PutDataProtectionPolicyCommand: (
|
|
519
555
|
output: __HttpResponse,
|
|
520
556
|
context: __SerdeContext
|
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.
|
|
4
|
+
"version": "3.350.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.350.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.347.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.350.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.347.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.347.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.347.0",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@aws-sdk/middleware-stack": "3.347.0",
|
|
39
39
|
"@aws-sdk/middleware-user-agent": "3.347.0",
|
|
40
40
|
"@aws-sdk/node-config-provider": "3.347.0",
|
|
41
|
-
"@aws-sdk/node-http-handler": "3.
|
|
41
|
+
"@aws-sdk/node-http-handler": "3.350.0",
|
|
42
42
|
"@aws-sdk/smithy-client": "3.347.0",
|
|
43
43
|
"@aws-sdk/types": "3.347.0",
|
|
44
44
|
"@aws-sdk/url-parser": "3.347.0",
|