@aws-sdk/client-cloudwatch-logs 3.199.0 → 3.201.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/CHANGELOG.md +22 -0
- package/dist-cjs/CloudWatchLogs.js +45 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +46 -0
- package/dist-cjs/commands/TagResourceCommand.js +46 -0
- package/dist-cjs/commands/UntagResourceCommand.js +46 -0
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/endpoint/EndpointParameters.js +2 -3
- package/dist-cjs/models/models_0.js +33 -3
- package/dist-cjs/protocols/Aws_json1_1.js +201 -13
- package/dist-cjs/runtimeConfig.browser.js +16 -16
- package/dist-cjs/runtimeConfig.js +20 -19
- package/dist-cjs/runtimeConfig.native.js +1 -2
- package/dist-cjs/runtimeConfig.shared.js +8 -11
- package/dist-es/CloudWatchLogs.js +45 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +42 -0
- package/dist-es/commands/TagResourceCommand.js +42 -0
- package/dist-es/commands/UntagResourceCommand.js +42 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/models/models_0.js +25 -0
- package/dist-es/protocols/Aws_json1_1.js +187 -1
- package/dist-types/CloudWatchLogs.d.ts +60 -18
- package/dist-types/CloudWatchLogsClient.d.ts +5 -2
- package/dist-types/commands/CreateExportTaskCommand.d.ts +2 -11
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +38 -0
- package/dist-types/commands/ListTagsLogGroupCommand.d.ts +7 -1
- package/dist-types/commands/TagLogGroupCommand.d.ts +9 -3
- package/dist-types/commands/TagResourceCommand.d.ts +48 -0
- package/dist-types/commands/UntagLogGroupCommand.d.ts +9 -3
- package/dist-types/commands/UntagResourceCommand.d.ts +37 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +102 -2
- package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
- package/dist-types/ts3.4/CloudWatchLogs.d.ts +51 -0
- package/dist-types/ts3.4/CloudWatchLogsClient.d.ts +20 -2
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/models/models_0.d.ts +35 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +36 -0
- package/package.json +33 -33
|
@@ -0,0 +1,32 @@
|
|
|
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 { UntagResourceRequest } from "../models/models_0";
|
|
15
|
+
export interface UntagResourceCommandInput extends UntagResourceRequest {}
|
|
16
|
+
export interface UntagResourceCommandOutput extends __MetadataBearer {}
|
|
17
|
+
export declare class UntagResourceCommand extends $Command<
|
|
18
|
+
UntagResourceCommandInput,
|
|
19
|
+
UntagResourceCommandOutput,
|
|
20
|
+
CloudWatchLogsClientResolvedConfig
|
|
21
|
+
> {
|
|
22
|
+
readonly input: UntagResourceCommandInput;
|
|
23
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
24
|
+
constructor(input: UntagResourceCommandInput);
|
|
25
|
+
resolveMiddleware(
|
|
26
|
+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
27
|
+
configuration: CloudWatchLogsClientResolvedConfig,
|
|
28
|
+
options?: __HttpHandlerOptions
|
|
29
|
+
): Handler<UntagResourceCommandInput, UntagResourceCommandOutput>;
|
|
30
|
+
private serialize;
|
|
31
|
+
private deserialize;
|
|
32
|
+
}
|
|
@@ -26,6 +26,7 @@ export * from "./GetLogEventsCommand";
|
|
|
26
26
|
export * from "./GetLogGroupFieldsCommand";
|
|
27
27
|
export * from "./GetLogRecordCommand";
|
|
28
28
|
export * from "./GetQueryResultsCommand";
|
|
29
|
+
export * from "./ListTagsForResourceCommand";
|
|
29
30
|
export * from "./ListTagsLogGroupCommand";
|
|
30
31
|
export * from "./PutDestinationCommand";
|
|
31
32
|
export * from "./PutDestinationPolicyCommand";
|
|
@@ -38,5 +39,7 @@ export * from "./PutSubscriptionFilterCommand";
|
|
|
38
39
|
export * from "./StartQueryCommand";
|
|
39
40
|
export * from "./StopQueryCommand";
|
|
40
41
|
export * from "./TagLogGroupCommand";
|
|
42
|
+
export * from "./TagResourceCommand";
|
|
41
43
|
export * from "./TestMetricFilterCommand";
|
|
42
44
|
export * from "./UntagLogGroupCommand";
|
|
45
|
+
export * from "./UntagResourceCommand";
|
|
@@ -442,6 +442,12 @@ export declare class InvalidSequenceTokenException extends __BaseException {
|
|
|
442
442
|
opts: __ExceptionOptionType<InvalidSequenceTokenException, __BaseException>
|
|
443
443
|
);
|
|
444
444
|
}
|
|
445
|
+
export interface ListTagsForResourceRequest {
|
|
446
|
+
resourceArn: string | undefined;
|
|
447
|
+
}
|
|
448
|
+
export interface ListTagsForResourceResponse {
|
|
449
|
+
tags?: Record<string, string>;
|
|
450
|
+
}
|
|
445
451
|
export interface ListTagsLogGroupRequest {
|
|
446
452
|
logGroupName: string | undefined;
|
|
447
453
|
}
|
|
@@ -452,6 +458,7 @@ export interface PutDestinationRequest {
|
|
|
452
458
|
destinationName: string | undefined;
|
|
453
459
|
targetArn: string | undefined;
|
|
454
460
|
roleArn: string | undefined;
|
|
461
|
+
tags?: Record<string, string>;
|
|
455
462
|
}
|
|
456
463
|
export interface PutDestinationResponse {
|
|
457
464
|
destination?: Destination;
|
|
@@ -554,6 +561,18 @@ export interface TagLogGroupRequest {
|
|
|
554
561
|
logGroupName: string | undefined;
|
|
555
562
|
tags: Record<string, string> | undefined;
|
|
556
563
|
}
|
|
564
|
+
export interface TagResourceRequest {
|
|
565
|
+
resourceArn: string | undefined;
|
|
566
|
+
tags: Record<string, string> | undefined;
|
|
567
|
+
}
|
|
568
|
+
export declare class TooManyTagsException extends __BaseException {
|
|
569
|
+
readonly name: "TooManyTagsException";
|
|
570
|
+
readonly $fault: "client";
|
|
571
|
+
resourceName?: string;
|
|
572
|
+
constructor(
|
|
573
|
+
opts: __ExceptionOptionType<TooManyTagsException, __BaseException>
|
|
574
|
+
);
|
|
575
|
+
}
|
|
557
576
|
export interface TestMetricFilterRequest {
|
|
558
577
|
filterPattern: string | undefined;
|
|
559
578
|
logEventMessages: string[] | undefined;
|
|
@@ -570,6 +589,10 @@ export interface UntagLogGroupRequest {
|
|
|
570
589
|
logGroupName: string | undefined;
|
|
571
590
|
tags: string[] | undefined;
|
|
572
591
|
}
|
|
592
|
+
export interface UntagResourceRequest {
|
|
593
|
+
resourceArn: string | undefined;
|
|
594
|
+
tagKeys: string[] | undefined;
|
|
595
|
+
}
|
|
573
596
|
export declare const AssociateKmsKeyRequestFilterSensitiveLog: (
|
|
574
597
|
obj: AssociateKmsKeyRequest
|
|
575
598
|
) => any;
|
|
@@ -745,6 +768,12 @@ export declare const GetQueryResultsResponseFilterSensitiveLog: (
|
|
|
745
768
|
export declare const InputLogEventFilterSensitiveLog: (
|
|
746
769
|
obj: InputLogEvent
|
|
747
770
|
) => any;
|
|
771
|
+
export declare const ListTagsForResourceRequestFilterSensitiveLog: (
|
|
772
|
+
obj: ListTagsForResourceRequest
|
|
773
|
+
) => any;
|
|
774
|
+
export declare const ListTagsForResourceResponseFilterSensitiveLog: (
|
|
775
|
+
obj: ListTagsForResourceResponse
|
|
776
|
+
) => any;
|
|
748
777
|
export declare const ListTagsLogGroupRequestFilterSensitiveLog: (
|
|
749
778
|
obj: ListTagsLogGroupRequest
|
|
750
779
|
) => any;
|
|
@@ -811,6 +840,9 @@ export declare const StopQueryResponseFilterSensitiveLog: (
|
|
|
811
840
|
export declare const TagLogGroupRequestFilterSensitiveLog: (
|
|
812
841
|
obj: TagLogGroupRequest
|
|
813
842
|
) => any;
|
|
843
|
+
export declare const TagResourceRequestFilterSensitiveLog: (
|
|
844
|
+
obj: TagResourceRequest
|
|
845
|
+
) => any;
|
|
814
846
|
export declare const TestMetricFilterRequestFilterSensitiveLog: (
|
|
815
847
|
obj: TestMetricFilterRequest
|
|
816
848
|
) => any;
|
|
@@ -823,3 +855,6 @@ export declare const TestMetricFilterResponseFilterSensitiveLog: (
|
|
|
823
855
|
export declare const UntagLogGroupRequestFilterSensitiveLog: (
|
|
824
856
|
obj: UntagLogGroupRequest
|
|
825
857
|
) => any;
|
|
858
|
+
export declare const UntagResourceRequestFilterSensitiveLog: (
|
|
859
|
+
obj: UntagResourceRequest
|
|
860
|
+
) => any;
|
|
@@ -115,6 +115,10 @@ import {
|
|
|
115
115
|
GetQueryResultsCommandInput,
|
|
116
116
|
GetQueryResultsCommandOutput,
|
|
117
117
|
} from "../commands/GetQueryResultsCommand";
|
|
118
|
+
import {
|
|
119
|
+
ListTagsForResourceCommandInput,
|
|
120
|
+
ListTagsForResourceCommandOutput,
|
|
121
|
+
} from "../commands/ListTagsForResourceCommand";
|
|
118
122
|
import {
|
|
119
123
|
ListTagsLogGroupCommandInput,
|
|
120
124
|
ListTagsLogGroupCommandOutput,
|
|
@@ -163,6 +167,10 @@ import {
|
|
|
163
167
|
TagLogGroupCommandInput,
|
|
164
168
|
TagLogGroupCommandOutput,
|
|
165
169
|
} from "../commands/TagLogGroupCommand";
|
|
170
|
+
import {
|
|
171
|
+
TagResourceCommandInput,
|
|
172
|
+
TagResourceCommandOutput,
|
|
173
|
+
} from "../commands/TagResourceCommand";
|
|
166
174
|
import {
|
|
167
175
|
TestMetricFilterCommandInput,
|
|
168
176
|
TestMetricFilterCommandOutput,
|
|
@@ -171,6 +179,10 @@ import {
|
|
|
171
179
|
UntagLogGroupCommandInput,
|
|
172
180
|
UntagLogGroupCommandOutput,
|
|
173
181
|
} from "../commands/UntagLogGroupCommand";
|
|
182
|
+
import {
|
|
183
|
+
UntagResourceCommandInput,
|
|
184
|
+
UntagResourceCommandOutput,
|
|
185
|
+
} from "../commands/UntagResourceCommand";
|
|
174
186
|
export declare const serializeAws_json1_1AssociateKmsKeyCommand: (
|
|
175
187
|
input: AssociateKmsKeyCommandInput,
|
|
176
188
|
context: __SerdeContext
|
|
@@ -283,6 +295,10 @@ export declare const serializeAws_json1_1GetQueryResultsCommand: (
|
|
|
283
295
|
input: GetQueryResultsCommandInput,
|
|
284
296
|
context: __SerdeContext
|
|
285
297
|
) => Promise<__HttpRequest>;
|
|
298
|
+
export declare const serializeAws_json1_1ListTagsForResourceCommand: (
|
|
299
|
+
input: ListTagsForResourceCommandInput,
|
|
300
|
+
context: __SerdeContext
|
|
301
|
+
) => Promise<__HttpRequest>;
|
|
286
302
|
export declare const serializeAws_json1_1ListTagsLogGroupCommand: (
|
|
287
303
|
input: ListTagsLogGroupCommandInput,
|
|
288
304
|
context: __SerdeContext
|
|
@@ -331,6 +347,10 @@ export declare const serializeAws_json1_1TagLogGroupCommand: (
|
|
|
331
347
|
input: TagLogGroupCommandInput,
|
|
332
348
|
context: __SerdeContext
|
|
333
349
|
) => Promise<__HttpRequest>;
|
|
350
|
+
export declare const serializeAws_json1_1TagResourceCommand: (
|
|
351
|
+
input: TagResourceCommandInput,
|
|
352
|
+
context: __SerdeContext
|
|
353
|
+
) => Promise<__HttpRequest>;
|
|
334
354
|
export declare const serializeAws_json1_1TestMetricFilterCommand: (
|
|
335
355
|
input: TestMetricFilterCommandInput,
|
|
336
356
|
context: __SerdeContext
|
|
@@ -339,6 +359,10 @@ export declare const serializeAws_json1_1UntagLogGroupCommand: (
|
|
|
339
359
|
input: UntagLogGroupCommandInput,
|
|
340
360
|
context: __SerdeContext
|
|
341
361
|
) => Promise<__HttpRequest>;
|
|
362
|
+
export declare const serializeAws_json1_1UntagResourceCommand: (
|
|
363
|
+
input: UntagResourceCommandInput,
|
|
364
|
+
context: __SerdeContext
|
|
365
|
+
) => Promise<__HttpRequest>;
|
|
342
366
|
export declare const deserializeAws_json1_1AssociateKmsKeyCommand: (
|
|
343
367
|
output: __HttpResponse,
|
|
344
368
|
context: __SerdeContext
|
|
@@ -451,6 +475,10 @@ export declare const deserializeAws_json1_1GetQueryResultsCommand: (
|
|
|
451
475
|
output: __HttpResponse,
|
|
452
476
|
context: __SerdeContext
|
|
453
477
|
) => Promise<GetQueryResultsCommandOutput>;
|
|
478
|
+
export declare const deserializeAws_json1_1ListTagsForResourceCommand: (
|
|
479
|
+
output: __HttpResponse,
|
|
480
|
+
context: __SerdeContext
|
|
481
|
+
) => Promise<ListTagsForResourceCommandOutput>;
|
|
454
482
|
export declare const deserializeAws_json1_1ListTagsLogGroupCommand: (
|
|
455
483
|
output: __HttpResponse,
|
|
456
484
|
context: __SerdeContext
|
|
@@ -499,6 +527,10 @@ export declare const deserializeAws_json1_1TagLogGroupCommand: (
|
|
|
499
527
|
output: __HttpResponse,
|
|
500
528
|
context: __SerdeContext
|
|
501
529
|
) => Promise<TagLogGroupCommandOutput>;
|
|
530
|
+
export declare const deserializeAws_json1_1TagResourceCommand: (
|
|
531
|
+
output: __HttpResponse,
|
|
532
|
+
context: __SerdeContext
|
|
533
|
+
) => Promise<TagResourceCommandOutput>;
|
|
502
534
|
export declare const deserializeAws_json1_1TestMetricFilterCommand: (
|
|
503
535
|
output: __HttpResponse,
|
|
504
536
|
context: __SerdeContext
|
|
@@ -507,3 +539,7 @@ export declare const deserializeAws_json1_1UntagLogGroupCommand: (
|
|
|
507
539
|
output: __HttpResponse,
|
|
508
540
|
context: __SerdeContext
|
|
509
541
|
) => Promise<UntagLogGroupCommandOutput>;
|
|
542
|
+
export declare const deserializeAws_json1_1UntagResourceCommand: (
|
|
543
|
+
output: __HttpResponse,
|
|
544
|
+
context: __SerdeContext
|
|
545
|
+
) => Promise<UntagResourceCommandOutput>;
|
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.201.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",
|
|
@@ -19,44 +19,44 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
21
21
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
22
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
-
"@aws-sdk/config-resolver": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
26
|
-
"@aws-sdk/hash-node": "3.
|
|
27
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
28
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
29
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
30
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
31
|
-
"@aws-sdk/middleware-logger": "3.
|
|
32
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
33
|
-
"@aws-sdk/middleware-retry": "3.
|
|
34
|
-
"@aws-sdk/middleware-serde": "3.
|
|
35
|
-
"@aws-sdk/middleware-signing": "3.
|
|
36
|
-
"@aws-sdk/middleware-stack": "3.
|
|
37
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
38
|
-
"@aws-sdk/node-config-provider": "3.
|
|
39
|
-
"@aws-sdk/node-http-handler": "3.
|
|
40
|
-
"@aws-sdk/protocol-http": "3.
|
|
41
|
-
"@aws-sdk/smithy-client": "3.
|
|
42
|
-
"@aws-sdk/types": "3.
|
|
43
|
-
"@aws-sdk/url-parser": "3.
|
|
22
|
+
"@aws-sdk/client-sts": "3.201.0",
|
|
23
|
+
"@aws-sdk/config-resolver": "3.201.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.201.0",
|
|
25
|
+
"@aws-sdk/fetch-http-handler": "3.201.0",
|
|
26
|
+
"@aws-sdk/hash-node": "3.201.0",
|
|
27
|
+
"@aws-sdk/invalid-dependency": "3.201.0",
|
|
28
|
+
"@aws-sdk/middleware-content-length": "3.201.0",
|
|
29
|
+
"@aws-sdk/middleware-endpoint": "3.201.0",
|
|
30
|
+
"@aws-sdk/middleware-host-header": "3.201.0",
|
|
31
|
+
"@aws-sdk/middleware-logger": "3.201.0",
|
|
32
|
+
"@aws-sdk/middleware-recursion-detection": "3.201.0",
|
|
33
|
+
"@aws-sdk/middleware-retry": "3.201.0",
|
|
34
|
+
"@aws-sdk/middleware-serde": "3.201.0",
|
|
35
|
+
"@aws-sdk/middleware-signing": "3.201.0",
|
|
36
|
+
"@aws-sdk/middleware-stack": "3.201.0",
|
|
37
|
+
"@aws-sdk/middleware-user-agent": "3.201.0",
|
|
38
|
+
"@aws-sdk/node-config-provider": "3.201.0",
|
|
39
|
+
"@aws-sdk/node-http-handler": "3.201.0",
|
|
40
|
+
"@aws-sdk/protocol-http": "3.201.0",
|
|
41
|
+
"@aws-sdk/smithy-client": "3.201.0",
|
|
42
|
+
"@aws-sdk/types": "3.201.0",
|
|
43
|
+
"@aws-sdk/url-parser": "3.201.0",
|
|
44
44
|
"@aws-sdk/util-base64-browser": "3.188.0",
|
|
45
|
-
"@aws-sdk/util-base64-node": "3.
|
|
45
|
+
"@aws-sdk/util-base64-node": "3.201.0",
|
|
46
46
|
"@aws-sdk/util-body-length-browser": "3.188.0",
|
|
47
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
48
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
49
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
50
|
-
"@aws-sdk/util-endpoints": "3.
|
|
51
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
52
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
47
|
+
"@aws-sdk/util-body-length-node": "3.201.0",
|
|
48
|
+
"@aws-sdk/util-defaults-mode-browser": "3.201.0",
|
|
49
|
+
"@aws-sdk/util-defaults-mode-node": "3.201.0",
|
|
50
|
+
"@aws-sdk/util-endpoints": "3.201.0",
|
|
51
|
+
"@aws-sdk/util-user-agent-browser": "3.201.0",
|
|
52
|
+
"@aws-sdk/util-user-agent-node": "3.201.0",
|
|
53
53
|
"@aws-sdk/util-utf8-browser": "3.188.0",
|
|
54
|
-
"@aws-sdk/util-utf8-node": "3.
|
|
54
|
+
"@aws-sdk/util-utf8-node": "3.201.0",
|
|
55
55
|
"tslib": "^2.3.1"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@aws-sdk/service-client-documentation-generator": "3.188.0",
|
|
59
|
-
"@tsconfig/
|
|
59
|
+
"@tsconfig/node14": "1.0.3",
|
|
60
60
|
"@types/node": "^12.7.5",
|
|
61
61
|
"concurrently": "7.0.0",
|
|
62
62
|
"downlevel-dts": "0.10.1",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
}
|
|
71
71
|
},
|
|
72
72
|
"engines": {
|
|
73
|
-
"node": ">=
|
|
73
|
+
"node": ">=14.0.0"
|
|
74
74
|
},
|
|
75
75
|
"typesVersions": {
|
|
76
76
|
"<4.0": {
|