@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.
Files changed (41) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist-cjs/CloudWatchLogs.js +45 -0
  3. package/dist-cjs/commands/ListTagsForResourceCommand.js +46 -0
  4. package/dist-cjs/commands/TagResourceCommand.js +46 -0
  5. package/dist-cjs/commands/UntagResourceCommand.js +46 -0
  6. package/dist-cjs/commands/index.js +3 -0
  7. package/dist-cjs/endpoint/EndpointParameters.js +2 -3
  8. package/dist-cjs/models/models_0.js +33 -3
  9. package/dist-cjs/protocols/Aws_json1_1.js +201 -13
  10. package/dist-cjs/runtimeConfig.browser.js +16 -16
  11. package/dist-cjs/runtimeConfig.js +20 -19
  12. package/dist-cjs/runtimeConfig.native.js +1 -2
  13. package/dist-cjs/runtimeConfig.shared.js +8 -11
  14. package/dist-es/CloudWatchLogs.js +45 -0
  15. package/dist-es/commands/ListTagsForResourceCommand.js +42 -0
  16. package/dist-es/commands/TagResourceCommand.js +42 -0
  17. package/dist-es/commands/UntagResourceCommand.js +42 -0
  18. package/dist-es/commands/index.js +3 -0
  19. package/dist-es/models/models_0.js +25 -0
  20. package/dist-es/protocols/Aws_json1_1.js +187 -1
  21. package/dist-types/CloudWatchLogs.d.ts +60 -18
  22. package/dist-types/CloudWatchLogsClient.d.ts +5 -2
  23. package/dist-types/commands/CreateExportTaskCommand.d.ts +2 -11
  24. package/dist-types/commands/ListTagsForResourceCommand.d.ts +38 -0
  25. package/dist-types/commands/ListTagsLogGroupCommand.d.ts +7 -1
  26. package/dist-types/commands/TagLogGroupCommand.d.ts +9 -3
  27. package/dist-types/commands/TagResourceCommand.d.ts +48 -0
  28. package/dist-types/commands/UntagLogGroupCommand.d.ts +9 -3
  29. package/dist-types/commands/UntagResourceCommand.d.ts +37 -0
  30. package/dist-types/commands/index.d.ts +3 -0
  31. package/dist-types/models/models_0.d.ts +102 -2
  32. package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
  33. package/dist-types/ts3.4/CloudWatchLogs.d.ts +51 -0
  34. package/dist-types/ts3.4/CloudWatchLogsClient.d.ts +20 -2
  35. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +38 -0
  36. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +32 -0
  37. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +32 -0
  38. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  39. package/dist-types/ts3.4/models/models_0.d.ts +35 -0
  40. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +36 -0
  41. package/package.json +33 -33
@@ -0,0 +1,38 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient";
5
+ import { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_0";
6
+ export interface ListTagsForResourceCommandInput extends ListTagsForResourceRequest {
7
+ }
8
+ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceResponse, __MetadataBearer {
9
+ }
10
+ /**
11
+ * <p>Displays the tags associated with a CloudWatch Logs resource. Currently, log groups
12
+ * and destinations support tagging.</p>
13
+ * @example
14
+ * Use a bare-bones client and the command you need to make an API call.
15
+ * ```javascript
16
+ * import { CloudWatchLogsClient, ListTagsForResourceCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
17
+ * // const { CloudWatchLogsClient, ListTagsForResourceCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
18
+ * const client = new CloudWatchLogsClient(config);
19
+ * const command = new ListTagsForResourceCommand(input);
20
+ * const response = await client.send(command);
21
+ * ```
22
+ *
23
+ * @see {@link ListTagsForResourceCommandInput} for command's `input` shape.
24
+ * @see {@link ListTagsForResourceCommandOutput} for command's `response` shape.
25
+ * @see {@link CloudWatchLogsClientResolvedConfig | config} for CloudWatchLogsClient's `config` shape.
26
+ *
27
+ */
28
+ export declare class ListTagsForResourceCommand extends $Command<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, CloudWatchLogsClientResolvedConfig> {
29
+ readonly input: ListTagsForResourceCommandInput;
30
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
31
+ constructor(input: ListTagsForResourceCommandInput);
32
+ /**
33
+ * @internal
34
+ */
35
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput>;
36
+ private serialize;
37
+ private deserialize;
38
+ }
@@ -8,7 +8,13 @@ export interface ListTagsLogGroupCommandInput extends ListTagsLogGroupRequest {
8
8
  export interface ListTagsLogGroupCommandOutput extends ListTagsLogGroupResponse, __MetadataBearer {
9
9
  }
10
10
  /**
11
- * <p>Lists the tags for the specified log group.</p>
11
+ * @deprecated
12
+ *
13
+ * <important>
14
+ * <p>The ListTagsLogGroup operation is on the path to deprecation. We recommend that you use
15
+ * <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListTagsForResource.html">ListTagsForResource</a> instead.</p>
16
+ * </important>
17
+ * <p>Lists the tags for the specified log group.</p>
12
18
  * @example
13
19
  * Use a bare-bones client and the command you need to make an API call.
14
20
  * ```javascript
@@ -8,9 +8,15 @@ export interface TagLogGroupCommandInput extends TagLogGroupRequest {
8
8
  export interface TagLogGroupCommandOutput extends __MetadataBearer {
9
9
  }
10
10
  /**
11
- * <p>Adds or updates the specified tags for the specified log group.</p>
12
- * <p>To list the tags for a log group, use <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListTagsLogGroup.html">ListTagsLogGroup</a>.
13
- * To remove tags, use <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_UntagLogGroup.html">UntagLogGroup</a>.</p>
11
+ * @deprecated
12
+ *
13
+ * <important>
14
+ * <p>The TagLogGroup operation is on the path to deprecation. We recommend that you use
15
+ * <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_TagResource.html">TagResource</a> instead.</p>
16
+ * </important>
17
+ * <p>Adds or updates the specified tags for the specified log group.</p>
18
+ * <p>To list the tags for a log group, use <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListTagsForResource.html">ListTagsForResource</a>.
19
+ * To remove tags, use <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_UntagResource.html">UntagResource</a>.</p>
14
20
  * <p>For more information about tags, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html#log-group-tagging">Tag Log Groups in Amazon CloudWatch Logs</a>
15
21
  * in the <i>Amazon CloudWatch Logs User Guide</i>.</p>
16
22
  * <p>CloudWatch Logs doesn’t support IAM policies that prevent users from assigning specified tags to
@@ -0,0 +1,48 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient";
5
+ import { TagResourceRequest } from "../models/models_0";
6
+ export interface TagResourceCommandInput extends TagResourceRequest {
7
+ }
8
+ export interface TagResourceCommandOutput extends __MetadataBearer {
9
+ }
10
+ /**
11
+ * <p>Assigns one or more tags (key-value pairs) to the specified CloudWatch Logs resource.
12
+ * Currently, the only CloudWatch Logs resources that
13
+ * can be tagged are log groups and destinations. </p>
14
+ * <p>Tags can help you organize and categorize your resources. You can also use them to scope user
15
+ * permissions by granting a user
16
+ * permission to access or change only resources with certain tag values.</p>
17
+ * <p>Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly as strings of characters.</p>
18
+ * <p>You can use the <code>TagResource</code> action with a resource that already has tags. If you specify a new tag key for the alarm,
19
+ * this tag is appended to the list of tags associated
20
+ * with the alarm. If you specify a tag key that is already associated with the alarm, the new tag value that you specify replaces
21
+ * the previous value for that tag.</p>
22
+ * <p>You can associate as many as 50 tags with a CloudWatch Logs resource.</p>
23
+ * @example
24
+ * Use a bare-bones client and the command you need to make an API call.
25
+ * ```javascript
26
+ * import { CloudWatchLogsClient, TagResourceCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
27
+ * // const { CloudWatchLogsClient, TagResourceCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
28
+ * const client = new CloudWatchLogsClient(config);
29
+ * const command = new TagResourceCommand(input);
30
+ * const response = await client.send(command);
31
+ * ```
32
+ *
33
+ * @see {@link TagResourceCommandInput} for command's `input` shape.
34
+ * @see {@link TagResourceCommandOutput} for command's `response` shape.
35
+ * @see {@link CloudWatchLogsClientResolvedConfig | config} for CloudWatchLogsClient's `config` shape.
36
+ *
37
+ */
38
+ export declare class TagResourceCommand extends $Command<TagResourceCommandInput, TagResourceCommandOutput, CloudWatchLogsClientResolvedConfig> {
39
+ readonly input: TagResourceCommandInput;
40
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
41
+ constructor(input: TagResourceCommandInput);
42
+ /**
43
+ * @internal
44
+ */
45
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<TagResourceCommandInput, TagResourceCommandOutput>;
46
+ private serialize;
47
+ private deserialize;
48
+ }
@@ -8,9 +8,15 @@ export interface UntagLogGroupCommandInput extends UntagLogGroupRequest {
8
8
  export interface UntagLogGroupCommandOutput extends __MetadataBearer {
9
9
  }
10
10
  /**
11
- * <p>Removes the specified tags from the specified log group.</p>
12
- * <p>To list the tags for a log group, use <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListTagsLogGroup.html">ListTagsLogGroup</a>.
13
- * To add tags, use <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_TagLogGroup.html">TagLogGroup</a>.</p>
11
+ * @deprecated
12
+ *
13
+ * <important>
14
+ * <p>The UntagLogGroup operation is on the path to deprecation. We recommend that you use
15
+ * <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_UntagResource.html">UntagResource</a> instead.</p>
16
+ * </important>
17
+ * <p>Removes the specified tags from the specified log group.</p>
18
+ * <p>To list the tags for a log group, use <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListTagsForResource.html">ListTagsForResource</a>.
19
+ * To add tags, use <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_TagResource.html">TagResource</a>.</p>
14
20
  * <p>CloudWatch Logs doesn’t support IAM policies that prevent users from assigning specified tags to
15
21
  * log groups using the <code>aws:Resource/<i>key-name</i>
16
22
  * </code> or <code>aws:TagKeys</code> condition keys.
@@ -0,0 +1,37 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient";
5
+ import { UntagResourceRequest } from "../models/models_0";
6
+ export interface UntagResourceCommandInput extends UntagResourceRequest {
7
+ }
8
+ export interface UntagResourceCommandOutput extends __MetadataBearer {
9
+ }
10
+ /**
11
+ * <p>Removes one or more tags from the specified resource.</p>
12
+ * @example
13
+ * Use a bare-bones client and the command you need to make an API call.
14
+ * ```javascript
15
+ * import { CloudWatchLogsClient, UntagResourceCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
16
+ * // const { CloudWatchLogsClient, UntagResourceCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
17
+ * const client = new CloudWatchLogsClient(config);
18
+ * const command = new UntagResourceCommand(input);
19
+ * const response = await client.send(command);
20
+ * ```
21
+ *
22
+ * @see {@link UntagResourceCommandInput} for command's `input` shape.
23
+ * @see {@link UntagResourceCommandOutput} for command's `response` shape.
24
+ * @see {@link CloudWatchLogsClientResolvedConfig | config} for CloudWatchLogsClient's `config` shape.
25
+ *
26
+ */
27
+ export declare class UntagResourceCommand extends $Command<UntagResourceCommandInput, UntagResourceCommandOutput, CloudWatchLogsClientResolvedConfig> {
28
+ readonly input: UntagResourceCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
30
+ constructor(input: UntagResourceCommandInput);
31
+ /**
32
+ * @internal
33
+ */
34
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UntagResourceCommandInput, UntagResourceCommandOutput>;
35
+ private serialize;
36
+ private deserialize;
37
+ }
@@ -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";
@@ -438,7 +438,7 @@ export interface LogGroup {
438
438
  creationTime?: number;
439
439
  /**
440
440
  * <p>The number of days to retain the log events in the specified log group.
441
- * Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, 2192, 2557, 2922, 3288, and 3653.</p>
441
+ * Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, and 3653.</p>
442
442
  * <p>To set a log group to never have log events expire, use
443
443
  * <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DeleteRetentionPolicy.html">DeleteRetentionPolicy</a>.
444
444
  * </p>
@@ -1281,6 +1281,28 @@ export declare class InvalidSequenceTokenException extends __BaseException {
1281
1281
  */
1282
1282
  constructor(opts: __ExceptionOptionType<InvalidSequenceTokenException, __BaseException>);
1283
1283
  }
1284
+ export interface ListTagsForResourceRequest {
1285
+ /**
1286
+ * <p>The ARN of the resource that you want to view tags for.</p>
1287
+ * <p>The ARN format of a log group is
1288
+ * <code>arn:aws:logs:<i>Region</i>:<i>account-id</i>:log-group:<i>log-group-name</i>
1289
+ * </code>
1290
+ * </p>
1291
+ * <p>The ARN format of a destination is
1292
+ * <code>arn:aws:logs:<i>Region</i>:<i>account-id</i>:destination:<i>destination-name</i>
1293
+ * </code>
1294
+ * </p>
1295
+ * <p>For more information about ARN format, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html">CloudWatch Logs
1296
+ * resources and operations</a>.</p>
1297
+ */
1298
+ resourceArn: string | undefined;
1299
+ }
1300
+ export interface ListTagsForResourceResponse {
1301
+ /**
1302
+ * <p>The list of tags associated with the requested resource.></p>
1303
+ */
1304
+ tags?: Record<string, string>;
1305
+ }
1284
1306
  export interface ListTagsLogGroupRequest {
1285
1307
  /**
1286
1308
  * <p>The name of the log group.</p>
@@ -1307,6 +1329,13 @@ export interface PutDestinationRequest {
1307
1329
  * Kinesis <code>PutRecord</code> operation on the destination stream.</p>
1308
1330
  */
1309
1331
  roleArn: string | undefined;
1332
+ /**
1333
+ * <p>An optional list of key-value pairs to associate with the resource.</p>
1334
+ * <p>For more information about tagging, see
1335
+ * <a href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging Amazon Web Services resources</a>
1336
+ * </p>
1337
+ */
1338
+ tags?: Record<string, string>;
1310
1339
  }
1311
1340
  export interface PutDestinationResponse {
1312
1341
  /**
@@ -1512,7 +1541,7 @@ export interface PutRetentionPolicyRequest {
1512
1541
  logGroupName: string | undefined;
1513
1542
  /**
1514
1543
  * <p>The number of days to retain the log events in the specified log group.
1515
- * Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, 2192, 2557, 2922, 3288, and 3653.</p>
1544
+ * Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, and 3653.</p>
1516
1545
  * <p>To set a log group to never have log events expire, use
1517
1546
  * <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DeleteRetentionPolicy.html">DeleteRetentionPolicy</a>.
1518
1547
  * </p>
@@ -1683,6 +1712,41 @@ export interface TagLogGroupRequest {
1683
1712
  */
1684
1713
  tags: Record<string, string> | undefined;
1685
1714
  }
1715
+ export interface TagResourceRequest {
1716
+ /**
1717
+ * <p>The ARN of the resource that you're adding tags to.</p>
1718
+ * <p>The ARN format of a log group is
1719
+ * <code>arn:aws:logs:<i>Region</i>:<i>account-id</i>:log-group:<i>log-group-name</i>
1720
+ * </code>
1721
+ * </p>
1722
+ * <p>The ARN format of a destination is
1723
+ * <code>arn:aws:logs:<i>Region</i>:<i>account-id</i>:destination:<i>destination-name</i>
1724
+ * </code>
1725
+ * </p>
1726
+ * <p>For more information about ARN format, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html">CloudWatch Logs
1727
+ * resources and operations</a>.</p>
1728
+ */
1729
+ resourceArn: string | undefined;
1730
+ /**
1731
+ * <p>The list of key-value pairs to associate with the resource.</p>
1732
+ */
1733
+ tags: Record<string, string> | undefined;
1734
+ }
1735
+ /**
1736
+ * <p>A resource can have no more than 50 tags.</p>
1737
+ */
1738
+ export declare class TooManyTagsException extends __BaseException {
1739
+ readonly name: "TooManyTagsException";
1740
+ readonly $fault: "client";
1741
+ /**
1742
+ * <p>The name of the resource.</p>
1743
+ */
1744
+ resourceName?: string;
1745
+ /**
1746
+ * @internal
1747
+ */
1748
+ constructor(opts: __ExceptionOptionType<TooManyTagsException, __BaseException>);
1749
+ }
1686
1750
  export interface TestMetricFilterRequest {
1687
1751
  /**
1688
1752
  * <p>A symbolic description of how CloudWatch Logs should interpret the data in each log
@@ -1728,6 +1792,26 @@ export interface UntagLogGroupRequest {
1728
1792
  */
1729
1793
  tags: string[] | undefined;
1730
1794
  }
1795
+ export interface UntagResourceRequest {
1796
+ /**
1797
+ * <p>The ARN of the CloudWatch Logs resource that you're removing tags from.</p>
1798
+ * <p>The ARN format of a log group is
1799
+ * <code>arn:aws:logs:<i>Region</i>:<i>account-id</i>:log-group:<i>log-group-name</i>
1800
+ * </code>
1801
+ * </p>
1802
+ * <p>The ARN format of a destination is
1803
+ * <code>arn:aws:logs:<i>Region</i>:<i>account-id</i>:destination:<i>destination-name</i>
1804
+ * </code>
1805
+ * </p>
1806
+ * <p>For more information about ARN format, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html">CloudWatch Logs
1807
+ * resources and operations</a>.</p>
1808
+ */
1809
+ resourceArn: string | undefined;
1810
+ /**
1811
+ * <p>The list of tag keys to remove from the resource.</p>
1812
+ */
1813
+ tagKeys: string[] | undefined;
1814
+ }
1731
1815
  /**
1732
1816
  * @internal
1733
1817
  */
@@ -1980,6 +2064,14 @@ export declare const GetQueryResultsResponseFilterSensitiveLog: (obj: GetQueryRe
1980
2064
  * @internal
1981
2065
  */
1982
2066
  export declare const InputLogEventFilterSensitiveLog: (obj: InputLogEvent) => any;
2067
+ /**
2068
+ * @internal
2069
+ */
2070
+ export declare const ListTagsForResourceRequestFilterSensitiveLog: (obj: ListTagsForResourceRequest) => any;
2071
+ /**
2072
+ * @internal
2073
+ */
2074
+ export declare const ListTagsForResourceResponseFilterSensitiveLog: (obj: ListTagsForResourceResponse) => any;
1983
2075
  /**
1984
2076
  * @internal
1985
2077
  */
@@ -2068,6 +2160,10 @@ export declare const StopQueryResponseFilterSensitiveLog: (obj: StopQueryRespons
2068
2160
  * @internal
2069
2161
  */
2070
2162
  export declare const TagLogGroupRequestFilterSensitiveLog: (obj: TagLogGroupRequest) => any;
2163
+ /**
2164
+ * @internal
2165
+ */
2166
+ export declare const TagResourceRequestFilterSensitiveLog: (obj: TagResourceRequest) => any;
2071
2167
  /**
2072
2168
  * @internal
2073
2169
  */
@@ -2084,3 +2180,7 @@ export declare const TestMetricFilterResponseFilterSensitiveLog: (obj: TestMetri
2084
2180
  * @internal
2085
2181
  */
2086
2182
  export declare const UntagLogGroupRequestFilterSensitiveLog: (obj: UntagLogGroupRequest) => any;
2183
+ /**
2184
+ * @internal
2185
+ */
2186
+ export declare const UntagResourceRequestFilterSensitiveLog: (obj: UntagResourceRequest) => any;
@@ -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
+ }