@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,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { TagResourceRequestFilterSensitiveLog } from "../models/models_0";
5
+ import { deserializeAws_json1_1TagResourceCommand, serializeAws_json1_1TagResourceCommand, } from "../protocols/Aws_json1_1";
6
+ export class TagResourceCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, TagResourceCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "CloudWatchLogsClient";
25
+ const commandName = "TagResourceCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: TagResourceRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: (output) => output,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_json1_1TagResourceCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_json1_1TagResourceCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { UntagResourceRequestFilterSensitiveLog } from "../models/models_0";
5
+ import { deserializeAws_json1_1UntagResourceCommand, serializeAws_json1_1UntagResourceCommand, } from "../protocols/Aws_json1_1";
6
+ export class UntagResourceCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, UntagResourceCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "CloudWatchLogsClient";
25
+ const commandName = "UntagResourceCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: UntagResourceRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: (output) => output,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_json1_1UntagResourceCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_json1_1UntagResourceCommand(output, context);
41
+ }
42
+ }
@@ -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";
@@ -193,6 +193,19 @@ export class MalformedQueryException extends __BaseException {
193
193
  this.queryCompileError = opts.queryCompileError;
194
194
  }
195
195
  }
196
+ export class TooManyTagsException extends __BaseException {
197
+ constructor(opts) {
198
+ super({
199
+ name: "TooManyTagsException",
200
+ $fault: "client",
201
+ ...opts,
202
+ });
203
+ this.name = "TooManyTagsException";
204
+ this.$fault = "client";
205
+ Object.setPrototypeOf(this, TooManyTagsException.prototype);
206
+ this.resourceName = opts.resourceName;
207
+ }
208
+ }
196
209
  export const AssociateKmsKeyRequestFilterSensitiveLog = (obj) => ({
197
210
  ...obj,
198
211
  });
@@ -382,6 +395,12 @@ export const GetQueryResultsResponseFilterSensitiveLog = (obj) => ({
382
395
  export const InputLogEventFilterSensitiveLog = (obj) => ({
383
396
  ...obj,
384
397
  });
398
+ export const ListTagsForResourceRequestFilterSensitiveLog = (obj) => ({
399
+ ...obj,
400
+ });
401
+ export const ListTagsForResourceResponseFilterSensitiveLog = (obj) => ({
402
+ ...obj,
403
+ });
385
404
  export const ListTagsLogGroupRequestFilterSensitiveLog = (obj) => ({
386
405
  ...obj,
387
406
  });
@@ -448,6 +467,9 @@ export const StopQueryResponseFilterSensitiveLog = (obj) => ({
448
467
  export const TagLogGroupRequestFilterSensitiveLog = (obj) => ({
449
468
  ...obj,
450
469
  });
470
+ export const TagResourceRequestFilterSensitiveLog = (obj) => ({
471
+ ...obj,
472
+ });
451
473
  export const TestMetricFilterRequestFilterSensitiveLog = (obj) => ({
452
474
  ...obj,
453
475
  });
@@ -460,3 +482,6 @@ export const TestMetricFilterResponseFilterSensitiveLog = (obj) => ({
460
482
  export const UntagLogGroupRequestFilterSensitiveLog = (obj) => ({
461
483
  ...obj,
462
484
  });
485
+ export const UntagResourceRequestFilterSensitiveLog = (obj) => ({
486
+ ...obj,
487
+ });
@@ -1,7 +1,7 @@
1
1
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
2
  import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectString as __expectString, limitedParseDouble as __limitedParseDouble, serializeFloat as __serializeFloat, throwDefaultError, } from "@aws-sdk/smithy-client";
3
3
  import { CloudWatchLogsServiceException as __BaseException } from "../models/CloudWatchLogsServiceException";
4
- import { DataAlreadyAcceptedException, InvalidOperationException, InvalidParameterException, InvalidSequenceTokenException, LimitExceededException, MalformedQueryException, OperationAbortedException, ResourceAlreadyExistsException, ResourceNotFoundException, ServiceUnavailableException, UnrecognizedClientException, } from "../models/models_0";
4
+ import { DataAlreadyAcceptedException, InvalidOperationException, InvalidParameterException, InvalidSequenceTokenException, LimitExceededException, MalformedQueryException, OperationAbortedException, ResourceAlreadyExistsException, ResourceNotFoundException, ServiceUnavailableException, TooManyTagsException, UnrecognizedClientException, } from "../models/models_0";
5
5
  export const serializeAws_json1_1AssociateKmsKeyCommand = async (input, context) => {
6
6
  const headers = {
7
7
  "content-type": "application/x-amz-json-1.1",
@@ -254,6 +254,15 @@ export const serializeAws_json1_1GetQueryResultsCommand = async (input, context)
254
254
  body = JSON.stringify(serializeAws_json1_1GetQueryResultsRequest(input, context));
255
255
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
256
256
  };
257
+ export const serializeAws_json1_1ListTagsForResourceCommand = async (input, context) => {
258
+ const headers = {
259
+ "content-type": "application/x-amz-json-1.1",
260
+ "x-amz-target": "Logs_20140328.ListTagsForResource",
261
+ };
262
+ let body;
263
+ body = JSON.stringify(serializeAws_json1_1ListTagsForResourceRequest(input, context));
264
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
265
+ };
257
266
  export const serializeAws_json1_1ListTagsLogGroupCommand = async (input, context) => {
258
267
  const headers = {
259
268
  "content-type": "application/x-amz-json-1.1",
@@ -362,6 +371,15 @@ export const serializeAws_json1_1TagLogGroupCommand = async (input, context) =>
362
371
  body = JSON.stringify(serializeAws_json1_1TagLogGroupRequest(input, context));
363
372
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
364
373
  };
374
+ export const serializeAws_json1_1TagResourceCommand = async (input, context) => {
375
+ const headers = {
376
+ "content-type": "application/x-amz-json-1.1",
377
+ "x-amz-target": "Logs_20140328.TagResource",
378
+ };
379
+ let body;
380
+ body = JSON.stringify(serializeAws_json1_1TagResourceRequest(input, context));
381
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
382
+ };
365
383
  export const serializeAws_json1_1TestMetricFilterCommand = async (input, context) => {
366
384
  const headers = {
367
385
  "content-type": "application/x-amz-json-1.1",
@@ -380,6 +398,15 @@ export const serializeAws_json1_1UntagLogGroupCommand = async (input, context) =
380
398
  body = JSON.stringify(serializeAws_json1_1UntagLogGroupRequest(input, context));
381
399
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
382
400
  };
401
+ export const serializeAws_json1_1UntagResourceCommand = async (input, context) => {
402
+ const headers = {
403
+ "content-type": "application/x-amz-json-1.1",
404
+ "x-amz-target": "Logs_20140328.UntagResource",
405
+ };
406
+ let body;
407
+ body = JSON.stringify(serializeAws_json1_1UntagResourceRequest(input, context));
408
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
409
+ };
383
410
  export const deserializeAws_json1_1AssociateKmsKeyCommand = async (output, context) => {
384
411
  if (output.statusCode >= 300) {
385
412
  return deserializeAws_json1_1AssociateKmsKeyCommandError(output, context);
@@ -1472,6 +1499,45 @@ const deserializeAws_json1_1GetQueryResultsCommandError = async (output, context
1472
1499
  });
1473
1500
  }
1474
1501
  };
1502
+ export const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
1503
+ if (output.statusCode >= 300) {
1504
+ return deserializeAws_json1_1ListTagsForResourceCommandError(output, context);
1505
+ }
1506
+ const data = await parseBody(output.body, context);
1507
+ let contents = {};
1508
+ contents = deserializeAws_json1_1ListTagsForResourceResponse(data, context);
1509
+ const response = {
1510
+ $metadata: deserializeMetadata(output),
1511
+ ...contents,
1512
+ };
1513
+ return Promise.resolve(response);
1514
+ };
1515
+ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, context) => {
1516
+ const parsedOutput = {
1517
+ ...output,
1518
+ body: await parseErrorBody(output.body, context),
1519
+ };
1520
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1521
+ switch (errorCode) {
1522
+ case "InvalidParameterException":
1523
+ case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
1524
+ throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
1525
+ case "ResourceNotFoundException":
1526
+ case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
1527
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1528
+ case "ServiceUnavailableException":
1529
+ case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
1530
+ throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
1531
+ default:
1532
+ const parsedBody = parsedOutput.body;
1533
+ throwDefaultError({
1534
+ output,
1535
+ parsedBody,
1536
+ exceptionCtor: __BaseException,
1537
+ errorCode,
1538
+ });
1539
+ }
1540
+ };
1475
1541
  export const deserializeAws_json1_1ListTagsLogGroupCommand = async (output, context) => {
1476
1542
  if (output.statusCode >= 300) {
1477
1543
  return deserializeAws_json1_1ListTagsLogGroupCommandError(output, context);
@@ -1952,6 +2018,45 @@ const deserializeAws_json1_1TagLogGroupCommandError = async (output, context) =>
1952
2018
  });
1953
2019
  }
1954
2020
  };
2021
+ export const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
2022
+ if (output.statusCode >= 300) {
2023
+ return deserializeAws_json1_1TagResourceCommandError(output, context);
2024
+ }
2025
+ await collectBody(output.body, context);
2026
+ const response = {
2027
+ $metadata: deserializeMetadata(output),
2028
+ };
2029
+ return Promise.resolve(response);
2030
+ };
2031
+ const deserializeAws_json1_1TagResourceCommandError = async (output, context) => {
2032
+ const parsedOutput = {
2033
+ ...output,
2034
+ body: await parseErrorBody(output.body, context),
2035
+ };
2036
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2037
+ switch (errorCode) {
2038
+ case "InvalidParameterException":
2039
+ case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
2040
+ throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
2041
+ case "ResourceNotFoundException":
2042
+ case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
2043
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
2044
+ case "ServiceUnavailableException":
2045
+ case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
2046
+ throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
2047
+ case "TooManyTagsException":
2048
+ case "com.amazonaws.cloudwatchlogs#TooManyTagsException":
2049
+ throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
2050
+ default:
2051
+ const parsedBody = parsedOutput.body;
2052
+ throwDefaultError({
2053
+ output,
2054
+ parsedBody,
2055
+ exceptionCtor: __BaseException,
2056
+ errorCode,
2057
+ });
2058
+ }
2059
+ };
1955
2060
  export const deserializeAws_json1_1TestMetricFilterCommand = async (output, context) => {
1956
2061
  if (output.statusCode >= 300) {
1957
2062
  return deserializeAws_json1_1TestMetricFilterCommandError(output, context);
@@ -2018,6 +2123,42 @@ const deserializeAws_json1_1UntagLogGroupCommandError = async (output, context)
2018
2123
  });
2019
2124
  }
2020
2125
  };
2126
+ export const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
2127
+ if (output.statusCode >= 300) {
2128
+ return deserializeAws_json1_1UntagResourceCommandError(output, context);
2129
+ }
2130
+ await collectBody(output.body, context);
2131
+ const response = {
2132
+ $metadata: deserializeMetadata(output),
2133
+ };
2134
+ return Promise.resolve(response);
2135
+ };
2136
+ const deserializeAws_json1_1UntagResourceCommandError = async (output, context) => {
2137
+ const parsedOutput = {
2138
+ ...output,
2139
+ body: await parseErrorBody(output.body, context),
2140
+ };
2141
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2142
+ switch (errorCode) {
2143
+ case "InvalidParameterException":
2144
+ case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
2145
+ throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
2146
+ case "ResourceNotFoundException":
2147
+ case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
2148
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
2149
+ case "ServiceUnavailableException":
2150
+ case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
2151
+ throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
2152
+ default:
2153
+ const parsedBody = parsedOutput.body;
2154
+ throwDefaultError({
2155
+ output,
2156
+ parsedBody,
2157
+ exceptionCtor: __BaseException,
2158
+ errorCode,
2159
+ });
2160
+ }
2161
+ };
2021
2162
  const deserializeAws_json1_1DataAlreadyAcceptedExceptionResponse = async (parsedOutput, context) => {
2022
2163
  const body = parsedOutput.body;
2023
2164
  const deserialized = deserializeAws_json1_1DataAlreadyAcceptedException(body, context);
@@ -2108,6 +2249,15 @@ const deserializeAws_json1_1ServiceUnavailableExceptionResponse = async (parsedO
2108
2249
  });
2109
2250
  return __decorateServiceException(exception, body);
2110
2251
  };
2252
+ const deserializeAws_json1_1TooManyTagsExceptionResponse = async (parsedOutput, context) => {
2253
+ const body = parsedOutput.body;
2254
+ const deserialized = deserializeAws_json1_1TooManyTagsException(body, context);
2255
+ const exception = new TooManyTagsException({
2256
+ $metadata: deserializeMetadata(parsedOutput),
2257
+ ...deserialized,
2258
+ });
2259
+ return __decorateServiceException(exception, body);
2260
+ };
2111
2261
  const deserializeAws_json1_1UnrecognizedClientExceptionResponse = async (parsedOutput, context) => {
2112
2262
  const body = parsedOutput.body;
2113
2263
  const deserialized = deserializeAws_json1_1UnrecognizedClientException(body, context);
@@ -2344,6 +2494,11 @@ const serializeAws_json1_1InputLogStreamNames = (input, context) => {
2344
2494
  return entry;
2345
2495
  });
2346
2496
  };
2497
+ const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => {
2498
+ return {
2499
+ ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
2500
+ };
2501
+ };
2347
2502
  const serializeAws_json1_1ListTagsLogGroupRequest = (input, context) => {
2348
2503
  return {
2349
2504
  ...(input.logGroupName != null && { logGroupName: input.logGroupName }),
@@ -2384,6 +2539,7 @@ const serializeAws_json1_1PutDestinationRequest = (input, context) => {
2384
2539
  return {
2385
2540
  ...(input.destinationName != null && { destinationName: input.destinationName }),
2386
2541
  ...(input.roleArn != null && { roleArn: input.roleArn }),
2542
+ ...(input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
2387
2543
  ...(input.targetArn != null && { targetArn: input.targetArn }),
2388
2544
  };
2389
2545
  };
@@ -2454,6 +2610,13 @@ const serializeAws_json1_1StopQueryRequest = (input, context) => {
2454
2610
  ...(input.queryId != null && { queryId: input.queryId }),
2455
2611
  };
2456
2612
  };
2613
+ const serializeAws_json1_1TagKeyList = (input, context) => {
2614
+ return input
2615
+ .filter((e) => e != null)
2616
+ .map((entry) => {
2617
+ return entry;
2618
+ });
2619
+ };
2457
2620
  const serializeAws_json1_1TagList = (input, context) => {
2458
2621
  return input
2459
2622
  .filter((e) => e != null)
@@ -2467,6 +2630,12 @@ const serializeAws_json1_1TagLogGroupRequest = (input, context) => {
2467
2630
  ...(input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
2468
2631
  };
2469
2632
  };
2633
+ const serializeAws_json1_1TagResourceRequest = (input, context) => {
2634
+ return {
2635
+ ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
2636
+ ...(input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
2637
+ };
2638
+ };
2470
2639
  const serializeAws_json1_1Tags = (input, context) => {
2471
2640
  return Object.entries(input).reduce((acc, [key, value]) => {
2472
2641
  if (value === null) {
@@ -2499,6 +2668,12 @@ const serializeAws_json1_1UntagLogGroupRequest = (input, context) => {
2499
2668
  ...(input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
2500
2669
  };
2501
2670
  };
2671
+ const serializeAws_json1_1UntagResourceRequest = (input, context) => {
2672
+ return {
2673
+ ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
2674
+ ...(input.tagKeys != null && { tagKeys: serializeAws_json1_1TagKeyList(input.tagKeys, context) }),
2675
+ };
2676
+ };
2502
2677
  const deserializeAws_json1_1CreateExportTaskResponse = (output, context) => {
2503
2678
  return {
2504
2679
  taskId: __expectString(output.taskId),
@@ -2732,6 +2907,11 @@ const deserializeAws_json1_1LimitExceededException = (output, context) => {
2732
2907
  message: __expectString(output.message),
2733
2908
  };
2734
2909
  };
2910
+ const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
2911
+ return {
2912
+ tags: output.tags != null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
2913
+ };
2914
+ };
2735
2915
  const deserializeAws_json1_1ListTagsLogGroupResponse = (output, context) => {
2736
2916
  return {
2737
2917
  tags: output.tags != null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
@@ -3130,6 +3310,12 @@ const deserializeAws_json1_1TestMetricFilterResponse = (output, context) => {
3130
3310
  matches: output.matches != null ? deserializeAws_json1_1MetricFilterMatches(output.matches, context) : undefined,
3131
3311
  };
3132
3312
  };
3313
+ const deserializeAws_json1_1TooManyTagsException = (output, context) => {
3314
+ return {
3315
+ message: __expectString(output.message),
3316
+ resourceName: __expectString(output.resourceName),
3317
+ };
3318
+ };
3133
3319
  const deserializeAws_json1_1UnrecognizedClientException = (output, context) => {
3134
3320
  return {
3135
3321
  message: __expectString(output.message),
@@ -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
  /**
46
49
  * <p>You can use Amazon CloudWatch Logs to monitor, store, and access your log files from
47
50
  * EC2 instances, CloudTrail, and other sources. You can then retrieve the associated
@@ -109,12 +112,6 @@ export declare class CloudWatchLogs extends CloudWatchLogsClient {
109
112
  * log group to an Amazon S3 bucket. When you perform a <code>CreateExportTask</code>
110
113
  * operation, you must use credentials that have permission to write to the S3 bucket
111
114
  * that you specify as the destination.</p>
112
- * <important>
113
- * <p>Exporting log data to Amazon S3 buckets that are encrypted by KMS is not
114
- * supported. Exporting
115
- * log data to Amazon S3 buckets that have S3 Object Lock enabled with a retention period is not supported.</p>
116
- * <p>Exporting to S3 buckets that are encrypted with AES-256 is supported. </p>
117
- * </important>
118
115
  * <p>This is an asynchronous call. If all the required information is provided, this
119
116
  * operation initiates an export task and responds with the ID of the task. After the task has started,
120
117
  * you can use <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DescribeExportTasks.html">DescribeExportTasks</a> to get the status of the export task. Each account can
@@ -123,11 +120,8 @@ export declare class CloudWatchLogs extends CloudWatchLogsClient {
123
120
  * <p>You can export logs from multiple log groups or multiple time ranges to the same S3
124
121
  * bucket. To separate out log data for each export task, you can specify a prefix to be used as
125
122
  * the Amazon S3 key prefix for all exported objects.</p>
126
- *
127
- * <note>
128
- * <p>Time-based sorting on chunks of log data inside an exported file is not guaranteed. You can sort the
129
- * exported log fild data by using Linux utilities.</p>
130
- * </note>
123
+ * <p>Exporting to S3 buckets that are encrypted with AES-256 is supported. Exporting to S3 buckets
124
+ * encrypted with SSE-KMS is not supported. </p>
131
125
  */
132
126
  createExportTask(args: CreateExportTaskCommandInput, options?: __HttpHandlerOptions): Promise<CreateExportTaskCommandOutput>;
133
127
  createExportTask(args: CreateExportTaskCommandInput, cb: (err: any, data?: CreateExportTaskCommandOutput) => void): void;
@@ -390,7 +384,20 @@ export declare class CloudWatchLogs extends CloudWatchLogsClient {
390
384
  getQueryResults(args: GetQueryResultsCommandInput, cb: (err: any, data?: GetQueryResultsCommandOutput) => void): void;
391
385
  getQueryResults(args: GetQueryResultsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetQueryResultsCommandOutput) => void): void;
392
386
  /**
393
- * <p>Lists the tags for the specified log group.</p>
387
+ * <p>Displays the tags associated with a CloudWatch Logs resource. Currently, log groups
388
+ * and destinations support tagging.</p>
389
+ */
390
+ listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
391
+ listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
392
+ listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
393
+ /**
394
+ * @deprecated
395
+ *
396
+ * <important>
397
+ * <p>The ListTagsLogGroup operation is on the path to deprecation. We recommend that you use
398
+ * <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListTagsForResource.html">ListTagsForResource</a> instead.</p>
399
+ * </important>
400
+ * <p>Lists the tags for the specified log group.</p>
394
401
  */
395
402
  listTagsLogGroup(args: ListTagsLogGroupCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsLogGroupCommandOutput>;
396
403
  listTagsLogGroup(args: ListTagsLogGroupCommandInput, cb: (err: any, data?: ListTagsLogGroupCommandOutput) => void): void;
@@ -578,9 +585,15 @@ export declare class CloudWatchLogs extends CloudWatchLogsClient {
578
585
  stopQuery(args: StopQueryCommandInput, cb: (err: any, data?: StopQueryCommandOutput) => void): void;
579
586
  stopQuery(args: StopQueryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StopQueryCommandOutput) => void): void;
580
587
  /**
581
- * <p>Adds or updates the specified tags for the specified log group.</p>
582
- * <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>.
583
- * To remove tags, use <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_UntagLogGroup.html">UntagLogGroup</a>.</p>
588
+ * @deprecated
589
+ *
590
+ * <important>
591
+ * <p>The TagLogGroup operation is on the path to deprecation. We recommend that you use
592
+ * <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_TagResource.html">TagResource</a> instead.</p>
593
+ * </important>
594
+ * <p>Adds or updates the specified tags for the specified log group.</p>
595
+ * <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>.
596
+ * To remove tags, use <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_UntagResource.html">UntagResource</a>.</p>
584
597
  * <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>
585
598
  * in the <i>Amazon CloudWatch Logs User Guide</i>.</p>
586
599
  * <p>CloudWatch Logs doesn’t support IAM policies that prevent users from assigning specified tags to
@@ -592,6 +605,23 @@ export declare class CloudWatchLogs extends CloudWatchLogsClient {
592
605
  tagLogGroup(args: TagLogGroupCommandInput, options?: __HttpHandlerOptions): Promise<TagLogGroupCommandOutput>;
593
606
  tagLogGroup(args: TagLogGroupCommandInput, cb: (err: any, data?: TagLogGroupCommandOutput) => void): void;
594
607
  tagLogGroup(args: TagLogGroupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagLogGroupCommandOutput) => void): void;
608
+ /**
609
+ * <p>Assigns one or more tags (key-value pairs) to the specified CloudWatch Logs resource.
610
+ * Currently, the only CloudWatch Logs resources that
611
+ * can be tagged are log groups and destinations. </p>
612
+ * <p>Tags can help you organize and categorize your resources. You can also use them to scope user
613
+ * permissions by granting a user
614
+ * permission to access or change only resources with certain tag values.</p>
615
+ * <p>Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly as strings of characters.</p>
616
+ * <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,
617
+ * this tag is appended to the list of tags associated
618
+ * with the alarm. If you specify a tag key that is already associated with the alarm, the new tag value that you specify replaces
619
+ * the previous value for that tag.</p>
620
+ * <p>You can associate as many as 50 tags with a CloudWatch Logs resource.</p>
621
+ */
622
+ tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
623
+ tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
624
+ tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
595
625
  /**
596
626
  * <p>Tests the filter pattern of a metric filter against a sample of log event messages. You
597
627
  * can use this operation to validate the correctness of a metric filter pattern.</p>
@@ -600,9 +630,15 @@ export declare class CloudWatchLogs extends CloudWatchLogsClient {
600
630
  testMetricFilter(args: TestMetricFilterCommandInput, cb: (err: any, data?: TestMetricFilterCommandOutput) => void): void;
601
631
  testMetricFilter(args: TestMetricFilterCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TestMetricFilterCommandOutput) => void): void;
602
632
  /**
603
- * <p>Removes the specified tags from the specified log group.</p>
604
- * <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>.
605
- * To add tags, use <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_TagLogGroup.html">TagLogGroup</a>.</p>
633
+ * @deprecated
634
+ *
635
+ * <important>
636
+ * <p>The UntagLogGroup operation is on the path to deprecation. We recommend that you use
637
+ * <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_UntagResource.html">UntagResource</a> instead.</p>
638
+ * </important>
639
+ * <p>Removes the specified tags from the specified log group.</p>
640
+ * <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>.
641
+ * To add tags, use <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_TagResource.html">TagResource</a>.</p>
606
642
  * <p>CloudWatch Logs doesn’t support IAM policies that prevent users from assigning specified tags to
607
643
  * log groups using the <code>aws:Resource/<i>key-name</i>
608
644
  * </code> or <code>aws:TagKeys</code> condition keys.
@@ -611,4 +647,10 @@ export declare class CloudWatchLogs extends CloudWatchLogsClient {
611
647
  untagLogGroup(args: UntagLogGroupCommandInput, options?: __HttpHandlerOptions): Promise<UntagLogGroupCommandOutput>;
612
648
  untagLogGroup(args: UntagLogGroupCommandInput, cb: (err: any, data?: UntagLogGroupCommandOutput) => void): void;
613
649
  untagLogGroup(args: UntagLogGroupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagLogGroupCommandOutput) => void): void;
650
+ /**
651
+ * <p>Removes one or more tags from the specified resource.</p>
652
+ */
653
+ untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
654
+ untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
655
+ untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
614
656
  }
@@ -35,6 +35,7 @@ import { GetLogEventsCommandInput, GetLogEventsCommandOutput } from "./commands/
35
35
  import { GetLogGroupFieldsCommandInput, GetLogGroupFieldsCommandOutput } from "./commands/GetLogGroupFieldsCommand";
36
36
  import { GetLogRecordCommandInput, GetLogRecordCommandOutput } from "./commands/GetLogRecordCommand";
37
37
  import { GetQueryResultsCommandInput, GetQueryResultsCommandOutput } from "./commands/GetQueryResultsCommand";
38
+ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
38
39
  import { ListTagsLogGroupCommandInput, ListTagsLogGroupCommandOutput } from "./commands/ListTagsLogGroupCommand";
39
40
  import { PutDestinationCommandInput, PutDestinationCommandOutput } from "./commands/PutDestinationCommand";
40
41
  import { PutDestinationPolicyCommandInput, PutDestinationPolicyCommandOutput } from "./commands/PutDestinationPolicyCommand";
@@ -47,11 +48,13 @@ import { PutSubscriptionFilterCommandInput, PutSubscriptionFilterCommandOutput }
47
48
  import { StartQueryCommandInput, StartQueryCommandOutput } from "./commands/StartQueryCommand";
48
49
  import { StopQueryCommandInput, StopQueryCommandOutput } from "./commands/StopQueryCommand";
49
50
  import { TagLogGroupCommandInput, TagLogGroupCommandOutput } from "./commands/TagLogGroupCommand";
51
+ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
50
52
  import { TestMetricFilterCommandInput, TestMetricFilterCommandOutput } from "./commands/TestMetricFilterCommand";
51
53
  import { UntagLogGroupCommandInput, UntagLogGroupCommandOutput } from "./commands/UntagLogGroupCommand";
54
+ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
52
55
  import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
53
- export declare type ServiceInputTypes = AssociateKmsKeyCommandInput | CancelExportTaskCommandInput | CreateExportTaskCommandInput | CreateLogGroupCommandInput | CreateLogStreamCommandInput | DeleteDestinationCommandInput | DeleteLogGroupCommandInput | DeleteLogStreamCommandInput | DeleteMetricFilterCommandInput | DeleteQueryDefinitionCommandInput | DeleteResourcePolicyCommandInput | DeleteRetentionPolicyCommandInput | DeleteSubscriptionFilterCommandInput | DescribeDestinationsCommandInput | DescribeExportTasksCommandInput | DescribeLogGroupsCommandInput | DescribeLogStreamsCommandInput | DescribeMetricFiltersCommandInput | DescribeQueriesCommandInput | DescribeQueryDefinitionsCommandInput | DescribeResourcePoliciesCommandInput | DescribeSubscriptionFiltersCommandInput | DisassociateKmsKeyCommandInput | FilterLogEventsCommandInput | GetLogEventsCommandInput | GetLogGroupFieldsCommandInput | GetLogRecordCommandInput | GetQueryResultsCommandInput | ListTagsLogGroupCommandInput | PutDestinationCommandInput | PutDestinationPolicyCommandInput | PutLogEventsCommandInput | PutMetricFilterCommandInput | PutQueryDefinitionCommandInput | PutResourcePolicyCommandInput | PutRetentionPolicyCommandInput | PutSubscriptionFilterCommandInput | StartQueryCommandInput | StopQueryCommandInput | TagLogGroupCommandInput | TestMetricFilterCommandInput | UntagLogGroupCommandInput;
54
- export declare type ServiceOutputTypes = AssociateKmsKeyCommandOutput | CancelExportTaskCommandOutput | CreateExportTaskCommandOutput | CreateLogGroupCommandOutput | CreateLogStreamCommandOutput | DeleteDestinationCommandOutput | DeleteLogGroupCommandOutput | DeleteLogStreamCommandOutput | DeleteMetricFilterCommandOutput | DeleteQueryDefinitionCommandOutput | DeleteResourcePolicyCommandOutput | DeleteRetentionPolicyCommandOutput | DeleteSubscriptionFilterCommandOutput | DescribeDestinationsCommandOutput | DescribeExportTasksCommandOutput | DescribeLogGroupsCommandOutput | DescribeLogStreamsCommandOutput | DescribeMetricFiltersCommandOutput | DescribeQueriesCommandOutput | DescribeQueryDefinitionsCommandOutput | DescribeResourcePoliciesCommandOutput | DescribeSubscriptionFiltersCommandOutput | DisassociateKmsKeyCommandOutput | FilterLogEventsCommandOutput | GetLogEventsCommandOutput | GetLogGroupFieldsCommandOutput | GetLogRecordCommandOutput | GetQueryResultsCommandOutput | ListTagsLogGroupCommandOutput | PutDestinationCommandOutput | PutDestinationPolicyCommandOutput | PutLogEventsCommandOutput | PutMetricFilterCommandOutput | PutQueryDefinitionCommandOutput | PutResourcePolicyCommandOutput | PutRetentionPolicyCommandOutput | PutSubscriptionFilterCommandOutput | StartQueryCommandOutput | StopQueryCommandOutput | TagLogGroupCommandOutput | TestMetricFilterCommandOutput | UntagLogGroupCommandOutput;
56
+ export declare type ServiceInputTypes = AssociateKmsKeyCommandInput | CancelExportTaskCommandInput | CreateExportTaskCommandInput | CreateLogGroupCommandInput | CreateLogStreamCommandInput | DeleteDestinationCommandInput | DeleteLogGroupCommandInput | DeleteLogStreamCommandInput | DeleteMetricFilterCommandInput | DeleteQueryDefinitionCommandInput | DeleteResourcePolicyCommandInput | DeleteRetentionPolicyCommandInput | DeleteSubscriptionFilterCommandInput | DescribeDestinationsCommandInput | DescribeExportTasksCommandInput | DescribeLogGroupsCommandInput | DescribeLogStreamsCommandInput | DescribeMetricFiltersCommandInput | DescribeQueriesCommandInput | DescribeQueryDefinitionsCommandInput | DescribeResourcePoliciesCommandInput | DescribeSubscriptionFiltersCommandInput | DisassociateKmsKeyCommandInput | FilterLogEventsCommandInput | GetLogEventsCommandInput | GetLogGroupFieldsCommandInput | GetLogRecordCommandInput | GetQueryResultsCommandInput | ListTagsForResourceCommandInput | ListTagsLogGroupCommandInput | PutDestinationCommandInput | PutDestinationPolicyCommandInput | PutLogEventsCommandInput | PutMetricFilterCommandInput | PutQueryDefinitionCommandInput | PutResourcePolicyCommandInput | PutRetentionPolicyCommandInput | PutSubscriptionFilterCommandInput | StartQueryCommandInput | StopQueryCommandInput | TagLogGroupCommandInput | TagResourceCommandInput | TestMetricFilterCommandInput | UntagLogGroupCommandInput | UntagResourceCommandInput;
57
+ export declare type ServiceOutputTypes = AssociateKmsKeyCommandOutput | CancelExportTaskCommandOutput | CreateExportTaskCommandOutput | CreateLogGroupCommandOutput | CreateLogStreamCommandOutput | DeleteDestinationCommandOutput | DeleteLogGroupCommandOutput | DeleteLogStreamCommandOutput | DeleteMetricFilterCommandOutput | DeleteQueryDefinitionCommandOutput | DeleteResourcePolicyCommandOutput | DeleteRetentionPolicyCommandOutput | DeleteSubscriptionFilterCommandOutput | DescribeDestinationsCommandOutput | DescribeExportTasksCommandOutput | DescribeLogGroupsCommandOutput | DescribeLogStreamsCommandOutput | DescribeMetricFiltersCommandOutput | DescribeQueriesCommandOutput | DescribeQueryDefinitionsCommandOutput | DescribeResourcePoliciesCommandOutput | DescribeSubscriptionFiltersCommandOutput | DisassociateKmsKeyCommandOutput | FilterLogEventsCommandOutput | GetLogEventsCommandOutput | GetLogGroupFieldsCommandOutput | GetLogRecordCommandOutput | GetQueryResultsCommandOutput | ListTagsForResourceCommandOutput | ListTagsLogGroupCommandOutput | PutDestinationCommandOutput | PutDestinationPolicyCommandOutput | PutLogEventsCommandOutput | PutMetricFilterCommandOutput | PutQueryDefinitionCommandOutput | PutResourcePolicyCommandOutput | PutRetentionPolicyCommandOutput | PutSubscriptionFilterCommandOutput | StartQueryCommandOutput | StopQueryCommandOutput | TagLogGroupCommandOutput | TagResourceCommandOutput | TestMetricFilterCommandOutput | UntagLogGroupCommandOutput | UntagResourceCommandOutput;
55
58
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
56
59
  /**
57
60
  * The HTTP handler to use. Fetch in browser and Https in Nodejs.
@@ -12,12 +12,6 @@ export interface CreateExportTaskCommandOutput extends CreateExportTaskResponse,
12
12
  * log group to an Amazon S3 bucket. When you perform a <code>CreateExportTask</code>
13
13
  * operation, you must use credentials that have permission to write to the S3 bucket
14
14
  * that you specify as the destination.</p>
15
- * <important>
16
- * <p>Exporting log data to Amazon S3 buckets that are encrypted by KMS is not
17
- * supported. Exporting
18
- * log data to Amazon S3 buckets that have S3 Object Lock enabled with a retention period is not supported.</p>
19
- * <p>Exporting to S3 buckets that are encrypted with AES-256 is supported. </p>
20
- * </important>
21
15
  * <p>This is an asynchronous call. If all the required information is provided, this
22
16
  * operation initiates an export task and responds with the ID of the task. After the task has started,
23
17
  * you can use <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DescribeExportTasks.html">DescribeExportTasks</a> to get the status of the export task. Each account can
@@ -26,11 +20,8 @@ export interface CreateExportTaskCommandOutput extends CreateExportTaskResponse,
26
20
  * <p>You can export logs from multiple log groups or multiple time ranges to the same S3
27
21
  * bucket. To separate out log data for each export task, you can specify a prefix to be used as
28
22
  * the Amazon S3 key prefix for all exported objects.</p>
29
- *
30
- * <note>
31
- * <p>Time-based sorting on chunks of log data inside an exported file is not guaranteed. You can sort the
32
- * exported log fild data by using Linux utilities.</p>
33
- * </note>
23
+ * <p>Exporting to S3 buckets that are encrypted with AES-256 is supported. Exporting to S3 buckets
24
+ * encrypted with SSE-KMS is not supported. </p>
34
25
  * @example
35
26
  * Use a bare-bones client and the command you need to make an API call.
36
27
  * ```javascript