@aws-sdk/client-cloudwatch-logs 3.199.0 → 3.200.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 +11 -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/models/models_0.js +33 -3
- package/dist-cjs/protocols/Aws_json1_1.js +194 -2
- 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 +28 -28
|
@@ -28,6 +28,7 @@ import { GetLogEventsCommandInput, GetLogEventsCommandOutput } from "../commands
|
|
|
28
28
|
import { GetLogGroupFieldsCommandInput, GetLogGroupFieldsCommandOutput } from "../commands/GetLogGroupFieldsCommand";
|
|
29
29
|
import { GetLogRecordCommandInput, GetLogRecordCommandOutput } from "../commands/GetLogRecordCommand";
|
|
30
30
|
import { GetQueryResultsCommandInput, GetQueryResultsCommandOutput } from "../commands/GetQueryResultsCommand";
|
|
31
|
+
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "../commands/ListTagsForResourceCommand";
|
|
31
32
|
import { ListTagsLogGroupCommandInput, ListTagsLogGroupCommandOutput } from "../commands/ListTagsLogGroupCommand";
|
|
32
33
|
import { PutDestinationCommandInput, PutDestinationCommandOutput } from "../commands/PutDestinationCommand";
|
|
33
34
|
import { PutDestinationPolicyCommandInput, PutDestinationPolicyCommandOutput } from "../commands/PutDestinationPolicyCommand";
|
|
@@ -40,8 +41,10 @@ import { PutSubscriptionFilterCommandInput, PutSubscriptionFilterCommandOutput }
|
|
|
40
41
|
import { StartQueryCommandInput, StartQueryCommandOutput } from "../commands/StartQueryCommand";
|
|
41
42
|
import { StopQueryCommandInput, StopQueryCommandOutput } from "../commands/StopQueryCommand";
|
|
42
43
|
import { TagLogGroupCommandInput, TagLogGroupCommandOutput } from "../commands/TagLogGroupCommand";
|
|
44
|
+
import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
|
|
43
45
|
import { TestMetricFilterCommandInput, TestMetricFilterCommandOutput } from "../commands/TestMetricFilterCommand";
|
|
44
46
|
import { UntagLogGroupCommandInput, UntagLogGroupCommandOutput } from "../commands/UntagLogGroupCommand";
|
|
47
|
+
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
|
|
45
48
|
export declare const serializeAws_json1_1AssociateKmsKeyCommand: (input: AssociateKmsKeyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
46
49
|
export declare const serializeAws_json1_1CancelExportTaskCommand: (input: CancelExportTaskCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
47
50
|
export declare const serializeAws_json1_1CreateExportTaskCommand: (input: CreateExportTaskCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
@@ -70,6 +73,7 @@ export declare const serializeAws_json1_1GetLogEventsCommand: (input: GetLogEven
|
|
|
70
73
|
export declare const serializeAws_json1_1GetLogGroupFieldsCommand: (input: GetLogGroupFieldsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
71
74
|
export declare const serializeAws_json1_1GetLogRecordCommand: (input: GetLogRecordCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
72
75
|
export declare const serializeAws_json1_1GetQueryResultsCommand: (input: GetQueryResultsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
76
|
+
export declare const serializeAws_json1_1ListTagsForResourceCommand: (input: ListTagsForResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
73
77
|
export declare const serializeAws_json1_1ListTagsLogGroupCommand: (input: ListTagsLogGroupCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
74
78
|
export declare const serializeAws_json1_1PutDestinationCommand: (input: PutDestinationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
75
79
|
export declare const serializeAws_json1_1PutDestinationPolicyCommand: (input: PutDestinationPolicyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
@@ -82,8 +86,10 @@ export declare const serializeAws_json1_1PutSubscriptionFilterCommand: (input: P
|
|
|
82
86
|
export declare const serializeAws_json1_1StartQueryCommand: (input: StartQueryCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
83
87
|
export declare const serializeAws_json1_1StopQueryCommand: (input: StopQueryCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
84
88
|
export declare const serializeAws_json1_1TagLogGroupCommand: (input: TagLogGroupCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
89
|
+
export declare const serializeAws_json1_1TagResourceCommand: (input: TagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
85
90
|
export declare const serializeAws_json1_1TestMetricFilterCommand: (input: TestMetricFilterCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
86
91
|
export declare const serializeAws_json1_1UntagLogGroupCommand: (input: UntagLogGroupCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
92
|
+
export declare const serializeAws_json1_1UntagResourceCommand: (input: UntagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
87
93
|
export declare const deserializeAws_json1_1AssociateKmsKeyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<AssociateKmsKeyCommandOutput>;
|
|
88
94
|
export declare const deserializeAws_json1_1CancelExportTaskCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CancelExportTaskCommandOutput>;
|
|
89
95
|
export declare const deserializeAws_json1_1CreateExportTaskCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateExportTaskCommandOutput>;
|
|
@@ -112,6 +118,7 @@ export declare const deserializeAws_json1_1GetLogEventsCommand: (output: __HttpR
|
|
|
112
118
|
export declare const deserializeAws_json1_1GetLogGroupFieldsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetLogGroupFieldsCommandOutput>;
|
|
113
119
|
export declare const deserializeAws_json1_1GetLogRecordCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetLogRecordCommandOutput>;
|
|
114
120
|
export declare const deserializeAws_json1_1GetQueryResultsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetQueryResultsCommandOutput>;
|
|
121
|
+
export declare const deserializeAws_json1_1ListTagsForResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListTagsForResourceCommandOutput>;
|
|
115
122
|
export declare const deserializeAws_json1_1ListTagsLogGroupCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListTagsLogGroupCommandOutput>;
|
|
116
123
|
export declare const deserializeAws_json1_1PutDestinationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PutDestinationCommandOutput>;
|
|
117
124
|
export declare const deserializeAws_json1_1PutDestinationPolicyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PutDestinationPolicyCommandOutput>;
|
|
@@ -124,5 +131,7 @@ export declare const deserializeAws_json1_1PutSubscriptionFilterCommand: (output
|
|
|
124
131
|
export declare const deserializeAws_json1_1StartQueryCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StartQueryCommandOutput>;
|
|
125
132
|
export declare const deserializeAws_json1_1StopQueryCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StopQueryCommandOutput>;
|
|
126
133
|
export declare const deserializeAws_json1_1TagLogGroupCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<TagLogGroupCommandOutput>;
|
|
134
|
+
export declare const deserializeAws_json1_1TagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<TagResourceCommandOutput>;
|
|
127
135
|
export declare const deserializeAws_json1_1TestMetricFilterCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<TestMetricFilterCommandOutput>;
|
|
128
136
|
export declare const deserializeAws_json1_1UntagLogGroupCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UntagLogGroupCommandOutput>;
|
|
137
|
+
export declare const deserializeAws_json1_1UntagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UntagResourceCommandOutput>;
|
|
@@ -112,6 +112,10 @@ import {
|
|
|
112
112
|
GetQueryResultsCommandInput,
|
|
113
113
|
GetQueryResultsCommandOutput,
|
|
114
114
|
} from "./commands/GetQueryResultsCommand";
|
|
115
|
+
import {
|
|
116
|
+
ListTagsForResourceCommandInput,
|
|
117
|
+
ListTagsForResourceCommandOutput,
|
|
118
|
+
} from "./commands/ListTagsForResourceCommand";
|
|
115
119
|
import {
|
|
116
120
|
ListTagsLogGroupCommandInput,
|
|
117
121
|
ListTagsLogGroupCommandOutput,
|
|
@@ -160,6 +164,10 @@ import {
|
|
|
160
164
|
TagLogGroupCommandInput,
|
|
161
165
|
TagLogGroupCommandOutput,
|
|
162
166
|
} from "./commands/TagLogGroupCommand";
|
|
167
|
+
import {
|
|
168
|
+
TagResourceCommandInput,
|
|
169
|
+
TagResourceCommandOutput,
|
|
170
|
+
} from "./commands/TagResourceCommand";
|
|
163
171
|
import {
|
|
164
172
|
TestMetricFilterCommandInput,
|
|
165
173
|
TestMetricFilterCommandOutput,
|
|
@@ -168,6 +176,10 @@ import {
|
|
|
168
176
|
UntagLogGroupCommandInput,
|
|
169
177
|
UntagLogGroupCommandOutput,
|
|
170
178
|
} from "./commands/UntagLogGroupCommand";
|
|
179
|
+
import {
|
|
180
|
+
UntagResourceCommandInput,
|
|
181
|
+
UntagResourceCommandOutput,
|
|
182
|
+
} from "./commands/UntagResourceCommand";
|
|
171
183
|
export declare class CloudWatchLogs extends CloudWatchLogsClient {
|
|
172
184
|
associateKmsKey(
|
|
173
185
|
args: AssociateKmsKeyCommandInput,
|
|
@@ -533,6 +545,19 @@ export declare class CloudWatchLogs extends CloudWatchLogsClient {
|
|
|
533
545
|
options: __HttpHandlerOptions,
|
|
534
546
|
cb: (err: any, data?: GetQueryResultsCommandOutput) => void
|
|
535
547
|
): void;
|
|
548
|
+
listTagsForResource(
|
|
549
|
+
args: ListTagsForResourceCommandInput,
|
|
550
|
+
options?: __HttpHandlerOptions
|
|
551
|
+
): Promise<ListTagsForResourceCommandOutput>;
|
|
552
|
+
listTagsForResource(
|
|
553
|
+
args: ListTagsForResourceCommandInput,
|
|
554
|
+
cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
|
|
555
|
+
): void;
|
|
556
|
+
listTagsForResource(
|
|
557
|
+
args: ListTagsForResourceCommandInput,
|
|
558
|
+
options: __HttpHandlerOptions,
|
|
559
|
+
cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
|
|
560
|
+
): void;
|
|
536
561
|
listTagsLogGroup(
|
|
537
562
|
args: ListTagsLogGroupCommandInput,
|
|
538
563
|
options?: __HttpHandlerOptions
|
|
@@ -689,6 +714,19 @@ export declare class CloudWatchLogs extends CloudWatchLogsClient {
|
|
|
689
714
|
options: __HttpHandlerOptions,
|
|
690
715
|
cb: (err: any, data?: TagLogGroupCommandOutput) => void
|
|
691
716
|
): void;
|
|
717
|
+
tagResource(
|
|
718
|
+
args: TagResourceCommandInput,
|
|
719
|
+
options?: __HttpHandlerOptions
|
|
720
|
+
): Promise<TagResourceCommandOutput>;
|
|
721
|
+
tagResource(
|
|
722
|
+
args: TagResourceCommandInput,
|
|
723
|
+
cb: (err: any, data?: TagResourceCommandOutput) => void
|
|
724
|
+
): void;
|
|
725
|
+
tagResource(
|
|
726
|
+
args: TagResourceCommandInput,
|
|
727
|
+
options: __HttpHandlerOptions,
|
|
728
|
+
cb: (err: any, data?: TagResourceCommandOutput) => void
|
|
729
|
+
): void;
|
|
692
730
|
testMetricFilter(
|
|
693
731
|
args: TestMetricFilterCommandInput,
|
|
694
732
|
options?: __HttpHandlerOptions
|
|
@@ -715,4 +753,17 @@ export declare class CloudWatchLogs extends CloudWatchLogsClient {
|
|
|
715
753
|
options: __HttpHandlerOptions,
|
|
716
754
|
cb: (err: any, data?: UntagLogGroupCommandOutput) => void
|
|
717
755
|
): void;
|
|
756
|
+
untagResource(
|
|
757
|
+
args: UntagResourceCommandInput,
|
|
758
|
+
options?: __HttpHandlerOptions
|
|
759
|
+
): Promise<UntagResourceCommandOutput>;
|
|
760
|
+
untagResource(
|
|
761
|
+
args: UntagResourceCommandInput,
|
|
762
|
+
cb: (err: any, data?: UntagResourceCommandOutput) => void
|
|
763
|
+
): void;
|
|
764
|
+
untagResource(
|
|
765
|
+
args: UntagResourceCommandInput,
|
|
766
|
+
options: __HttpHandlerOptions,
|
|
767
|
+
cb: (err: any, data?: UntagResourceCommandOutput) => void
|
|
768
|
+
): void;
|
|
718
769
|
}
|
|
@@ -155,6 +155,10 @@ import {
|
|
|
155
155
|
GetQueryResultsCommandInput,
|
|
156
156
|
GetQueryResultsCommandOutput,
|
|
157
157
|
} from "./commands/GetQueryResultsCommand";
|
|
158
|
+
import {
|
|
159
|
+
ListTagsForResourceCommandInput,
|
|
160
|
+
ListTagsForResourceCommandOutput,
|
|
161
|
+
} from "./commands/ListTagsForResourceCommand";
|
|
158
162
|
import {
|
|
159
163
|
ListTagsLogGroupCommandInput,
|
|
160
164
|
ListTagsLogGroupCommandOutput,
|
|
@@ -203,6 +207,10 @@ import {
|
|
|
203
207
|
TagLogGroupCommandInput,
|
|
204
208
|
TagLogGroupCommandOutput,
|
|
205
209
|
} from "./commands/TagLogGroupCommand";
|
|
210
|
+
import {
|
|
211
|
+
TagResourceCommandInput,
|
|
212
|
+
TagResourceCommandOutput,
|
|
213
|
+
} from "./commands/TagResourceCommand";
|
|
206
214
|
import {
|
|
207
215
|
TestMetricFilterCommandInput,
|
|
208
216
|
TestMetricFilterCommandOutput,
|
|
@@ -211,6 +219,10 @@ import {
|
|
|
211
219
|
UntagLogGroupCommandInput,
|
|
212
220
|
UntagLogGroupCommandOutput,
|
|
213
221
|
} from "./commands/UntagLogGroupCommand";
|
|
222
|
+
import {
|
|
223
|
+
UntagResourceCommandInput,
|
|
224
|
+
UntagResourceCommandOutput,
|
|
225
|
+
} from "./commands/UntagResourceCommand";
|
|
214
226
|
import {
|
|
215
227
|
ClientInputEndpointParameters,
|
|
216
228
|
ClientResolvedEndpointParameters,
|
|
@@ -245,6 +257,7 @@ export declare type ServiceInputTypes =
|
|
|
245
257
|
| GetLogGroupFieldsCommandInput
|
|
246
258
|
| GetLogRecordCommandInput
|
|
247
259
|
| GetQueryResultsCommandInput
|
|
260
|
+
| ListTagsForResourceCommandInput
|
|
248
261
|
| ListTagsLogGroupCommandInput
|
|
249
262
|
| PutDestinationCommandInput
|
|
250
263
|
| PutDestinationPolicyCommandInput
|
|
@@ -257,8 +270,10 @@ export declare type ServiceInputTypes =
|
|
|
257
270
|
| StartQueryCommandInput
|
|
258
271
|
| StopQueryCommandInput
|
|
259
272
|
| TagLogGroupCommandInput
|
|
273
|
+
| TagResourceCommandInput
|
|
260
274
|
| TestMetricFilterCommandInput
|
|
261
|
-
| UntagLogGroupCommandInput
|
|
275
|
+
| UntagLogGroupCommandInput
|
|
276
|
+
| UntagResourceCommandInput;
|
|
262
277
|
export declare type ServiceOutputTypes =
|
|
263
278
|
| AssociateKmsKeyCommandOutput
|
|
264
279
|
| CancelExportTaskCommandOutput
|
|
@@ -288,6 +303,7 @@ export declare type ServiceOutputTypes =
|
|
|
288
303
|
| GetLogGroupFieldsCommandOutput
|
|
289
304
|
| GetLogRecordCommandOutput
|
|
290
305
|
| GetQueryResultsCommandOutput
|
|
306
|
+
| ListTagsForResourceCommandOutput
|
|
291
307
|
| ListTagsLogGroupCommandOutput
|
|
292
308
|
| PutDestinationCommandOutput
|
|
293
309
|
| PutDestinationPolicyCommandOutput
|
|
@@ -300,8 +316,10 @@ export declare type ServiceOutputTypes =
|
|
|
300
316
|
| StartQueryCommandOutput
|
|
301
317
|
| StopQueryCommandOutput
|
|
302
318
|
| TagLogGroupCommandOutput
|
|
319
|
+
| TagResourceCommandOutput
|
|
303
320
|
| TestMetricFilterCommandOutput
|
|
304
|
-
| UntagLogGroupCommandOutput
|
|
321
|
+
| UntagLogGroupCommandOutput
|
|
322
|
+
| UntagResourceCommandOutput;
|
|
305
323
|
export interface ClientDefaults
|
|
306
324
|
extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
307
325
|
requestHandler?: __HttpHandler;
|
|
@@ -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
|
+
ListTagsForResourceRequest,
|
|
16
|
+
ListTagsForResourceResponse,
|
|
17
|
+
} from "../models/models_0";
|
|
18
|
+
export interface ListTagsForResourceCommandInput
|
|
19
|
+
extends ListTagsForResourceRequest {}
|
|
20
|
+
export interface ListTagsForResourceCommandOutput
|
|
21
|
+
extends ListTagsForResourceResponse,
|
|
22
|
+
__MetadataBearer {}
|
|
23
|
+
export declare class ListTagsForResourceCommand extends $Command<
|
|
24
|
+
ListTagsForResourceCommandInput,
|
|
25
|
+
ListTagsForResourceCommandOutput,
|
|
26
|
+
CloudWatchLogsClientResolvedConfig
|
|
27
|
+
> {
|
|
28
|
+
readonly input: ListTagsForResourceCommandInput;
|
|
29
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
30
|
+
constructor(input: ListTagsForResourceCommandInput);
|
|
31
|
+
resolveMiddleware(
|
|
32
|
+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
33
|
+
configuration: CloudWatchLogsClientResolvedConfig,
|
|
34
|
+
options?: __HttpHandlerOptions
|
|
35
|
+
): Handler<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput>;
|
|
36
|
+
private serialize;
|
|
37
|
+
private deserialize;
|
|
38
|
+
}
|
|
@@ -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 { TagResourceRequest } from "../models/models_0";
|
|
15
|
+
export interface TagResourceCommandInput extends TagResourceRequest {}
|
|
16
|
+
export interface TagResourceCommandOutput extends __MetadataBearer {}
|
|
17
|
+
export declare class TagResourceCommand extends $Command<
|
|
18
|
+
TagResourceCommandInput,
|
|
19
|
+
TagResourceCommandOutput,
|
|
20
|
+
CloudWatchLogsClientResolvedConfig
|
|
21
|
+
> {
|
|
22
|
+
readonly input: TagResourceCommandInput;
|
|
23
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
24
|
+
constructor(input: TagResourceCommandInput);
|
|
25
|
+
resolveMiddleware(
|
|
26
|
+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
27
|
+
configuration: CloudWatchLogsClientResolvedConfig,
|
|
28
|
+
options?: __HttpHandlerOptions
|
|
29
|
+
): Handler<TagResourceCommandInput, TagResourceCommandOutput>;
|
|
30
|
+
private serialize;
|
|
31
|
+
private deserialize;
|
|
32
|
+
}
|
|
@@ -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.200.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,37 +19,37 @@
|
|
|
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.200.0",
|
|
23
|
+
"@aws-sdk/config-resolver": "3.200.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.200.0",
|
|
25
|
+
"@aws-sdk/fetch-http-handler": "3.200.0",
|
|
26
|
+
"@aws-sdk/hash-node": "3.200.0",
|
|
27
|
+
"@aws-sdk/invalid-dependency": "3.200.0",
|
|
28
|
+
"@aws-sdk/middleware-content-length": "3.200.0",
|
|
29
|
+
"@aws-sdk/middleware-endpoint": "3.200.0",
|
|
30
|
+
"@aws-sdk/middleware-host-header": "3.200.0",
|
|
31
|
+
"@aws-sdk/middleware-logger": "3.200.0",
|
|
32
|
+
"@aws-sdk/middleware-recursion-detection": "3.200.0",
|
|
33
|
+
"@aws-sdk/middleware-retry": "3.200.0",
|
|
34
|
+
"@aws-sdk/middleware-serde": "3.200.0",
|
|
35
|
+
"@aws-sdk/middleware-signing": "3.200.0",
|
|
36
|
+
"@aws-sdk/middleware-stack": "3.200.0",
|
|
37
|
+
"@aws-sdk/middleware-user-agent": "3.200.0",
|
|
38
|
+
"@aws-sdk/node-config-provider": "3.200.0",
|
|
39
|
+
"@aws-sdk/node-http-handler": "3.200.0",
|
|
40
|
+
"@aws-sdk/protocol-http": "3.200.0",
|
|
41
|
+
"@aws-sdk/smithy-client": "3.200.0",
|
|
42
|
+
"@aws-sdk/types": "3.200.0",
|
|
43
|
+
"@aws-sdk/url-parser": "3.200.0",
|
|
44
44
|
"@aws-sdk/util-base64-browser": "3.188.0",
|
|
45
45
|
"@aws-sdk/util-base64-node": "3.188.0",
|
|
46
46
|
"@aws-sdk/util-body-length-browser": "3.188.0",
|
|
47
47
|
"@aws-sdk/util-body-length-node": "3.188.0",
|
|
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.
|
|
48
|
+
"@aws-sdk/util-defaults-mode-browser": "3.200.0",
|
|
49
|
+
"@aws-sdk/util-defaults-mode-node": "3.200.0",
|
|
50
|
+
"@aws-sdk/util-endpoints": "3.200.0",
|
|
51
|
+
"@aws-sdk/util-user-agent-browser": "3.200.0",
|
|
52
|
+
"@aws-sdk/util-user-agent-node": "3.200.0",
|
|
53
53
|
"@aws-sdk/util-utf8-browser": "3.188.0",
|
|
54
54
|
"@aws-sdk/util-utf8-node": "3.199.0",
|
|
55
55
|
"tslib": "^2.3.1"
|