@aws-sdk/client-cloudwatch-logs 3.36.0 → 3.39.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 (122) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/dist-cjs/CloudWatchLogs.js +0 -36
  3. package/dist-cjs/CloudWatchLogsClient.js +0 -41
  4. package/dist-cjs/commands/AssociateKmsKeyCommand.js +0 -36
  5. package/dist-cjs/commands/CancelExportTaskCommand.js +0 -25
  6. package/dist-cjs/commands/CreateExportTaskCommand.js +0 -37
  7. package/dist-cjs/commands/CreateLogGroupCommand.js +0 -50
  8. package/dist-cjs/commands/CreateLogStreamCommand.js +0 -40
  9. package/dist-cjs/commands/DeleteDestinationCommand.js +0 -26
  10. package/dist-cjs/commands/DeleteLogGroupCommand.js +0 -25
  11. package/dist-cjs/commands/DeleteLogStreamCommand.js +0 -25
  12. package/dist-cjs/commands/DeleteMetricFilterCommand.js +0 -24
  13. package/dist-cjs/commands/DeleteQueryDefinitionCommand.js +0 -28
  14. package/dist-cjs/commands/DeleteResourcePolicyCommand.js +0 -25
  15. package/dist-cjs/commands/DeleteRetentionPolicyCommand.js +0 -25
  16. package/dist-cjs/commands/DeleteSubscriptionFilterCommand.js +0 -24
  17. package/dist-cjs/commands/DescribeDestinationsCommand.js +0 -24
  18. package/dist-cjs/commands/DescribeExportTasksCommand.js +0 -25
  19. package/dist-cjs/commands/DescribeLogGroupsCommand.js +0 -32
  20. package/dist-cjs/commands/DescribeLogStreamsCommand.js +0 -27
  21. package/dist-cjs/commands/DescribeMetricFiltersCommand.js +0 -26
  22. package/dist-cjs/commands/DescribeQueriesCommand.js +0 -26
  23. package/dist-cjs/commands/DescribeQueryDefinitionsCommand.js +0 -26
  24. package/dist-cjs/commands/DescribeResourcePoliciesCommand.js +0 -24
  25. package/dist-cjs/commands/DescribeSubscriptionFiltersCommand.js +0 -25
  26. package/dist-cjs/commands/DisassociateKmsKeyCommand.js +0 -27
  27. package/dist-cjs/commands/FilterLogEventsCommand.js +0 -32
  28. package/dist-cjs/commands/GetLogEventsCommand.js +0 -29
  29. package/dist-cjs/commands/GetLogGroupFieldsCommand.js +0 -31
  30. package/dist-cjs/commands/GetLogRecordCommand.js +0 -27
  31. package/dist-cjs/commands/GetQueryResultsCommand.js +0 -34
  32. package/dist-cjs/commands/ListTagsLogGroupCommand.js +0 -24
  33. package/dist-cjs/commands/PutDestinationCommand.js +0 -33
  34. package/dist-cjs/commands/PutDestinationPolicyCommand.js +0 -29
  35. package/dist-cjs/commands/PutLogEventsCommand.js +0 -61
  36. package/dist-cjs/commands/PutMetricFilterCommand.js +0 -46
  37. package/dist-cjs/commands/PutQueryDefinitionCommand.js +0 -35
  38. package/dist-cjs/commands/PutResourcePolicyCommand.js +0 -26
  39. package/dist-cjs/commands/PutRetentionPolicyCommand.js +0 -26
  40. package/dist-cjs/commands/PutSubscriptionFilterCommand.js +0 -52
  41. package/dist-cjs/commands/StartQueryCommand.js +0 -29
  42. package/dist-cjs/commands/StopQueryCommand.js +0 -25
  43. package/dist-cjs/commands/TagLogGroupCommand.js +0 -33
  44. package/dist-cjs/commands/TestMetricFilterCommand.js +0 -25
  45. package/dist-cjs/commands/UntagLogGroupCommand.js +0 -30
  46. package/dist-cjs/commands/index.js +45 -0
  47. package/dist-cjs/endpoints.js +6 -1
  48. package/dist-cjs/index.js +4 -52
  49. package/dist-cjs/models/models_0.js +0 -300
  50. package/dist-cjs/pagination/DescribeDestinationsPaginator.js +0 -10
  51. package/dist-cjs/pagination/DescribeLogGroupsPaginator.js +0 -10
  52. package/dist-cjs/pagination/DescribeLogStreamsPaginator.js +0 -10
  53. package/dist-cjs/pagination/DescribeMetricFiltersPaginator.js +0 -10
  54. package/dist-cjs/pagination/DescribeSubscriptionFiltersPaginator.js +0 -10
  55. package/dist-cjs/pagination/FilterLogEventsPaginator.js +0 -10
  56. package/dist-cjs/pagination/GetLogEventsPaginator.js +0 -10
  57. package/dist-cjs/pagination/index.js +11 -0
  58. package/dist-cjs/protocols/Aws_json1_1.js +0 -5
  59. package/dist-cjs/runtimeConfig.browser.js +1 -5
  60. package/dist-cjs/runtimeConfig.js +1 -5
  61. package/dist-cjs/runtimeConfig.native.js +0 -3
  62. package/dist-cjs/runtimeConfig.shared.js +0 -3
  63. package/dist-es/commands/index.js +42 -0
  64. package/dist-es/endpoints.js +6 -1
  65. package/dist-es/index.js +4 -52
  66. package/dist-es/pagination/index.js +8 -0
  67. package/dist-types/commands/index.d.ts +42 -0
  68. package/dist-types/index.d.ts +4 -52
  69. package/dist-types/pagination/index.d.ts +8 -0
  70. package/dist-types/ts3.4/CloudWatchLogs.d.ts +43 -433
  71. package/dist-types/ts3.4/CloudWatchLogsClient.d.ts +24 -122
  72. package/dist-types/ts3.4/commands/AssociateKmsKeyCommand.d.ts +2 -32
  73. package/dist-types/ts3.4/commands/CancelExportTaskCommand.d.ts +2 -21
  74. package/dist-types/ts3.4/commands/CreateExportTaskCommand.d.ts +2 -33
  75. package/dist-types/ts3.4/commands/CreateLogGroupCommand.d.ts +2 -46
  76. package/dist-types/ts3.4/commands/CreateLogStreamCommand.d.ts +2 -36
  77. package/dist-types/ts3.4/commands/DeleteDestinationCommand.d.ts +2 -22
  78. package/dist-types/ts3.4/commands/DeleteLogGroupCommand.d.ts +2 -21
  79. package/dist-types/ts3.4/commands/DeleteLogStreamCommand.d.ts +2 -21
  80. package/dist-types/ts3.4/commands/DeleteMetricFilterCommand.d.ts +2 -20
  81. package/dist-types/ts3.4/commands/DeleteQueryDefinitionCommand.d.ts +2 -24
  82. package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +2 -21
  83. package/dist-types/ts3.4/commands/DeleteRetentionPolicyCommand.d.ts +2 -21
  84. package/dist-types/ts3.4/commands/DeleteSubscriptionFilterCommand.d.ts +2 -20
  85. package/dist-types/ts3.4/commands/DescribeDestinationsCommand.d.ts +2 -20
  86. package/dist-types/ts3.4/commands/DescribeExportTasksCommand.d.ts +2 -21
  87. package/dist-types/ts3.4/commands/DescribeLogGroupsCommand.d.ts +2 -28
  88. package/dist-types/ts3.4/commands/DescribeLogStreamsCommand.d.ts +2 -23
  89. package/dist-types/ts3.4/commands/DescribeMetricFiltersCommand.d.ts +2 -22
  90. package/dist-types/ts3.4/commands/DescribeQueriesCommand.d.ts +2 -22
  91. package/dist-types/ts3.4/commands/DescribeQueryDefinitionsCommand.d.ts +2 -22
  92. package/dist-types/ts3.4/commands/DescribeResourcePoliciesCommand.d.ts +2 -20
  93. package/dist-types/ts3.4/commands/DescribeSubscriptionFiltersCommand.d.ts +2 -21
  94. package/dist-types/ts3.4/commands/DisassociateKmsKeyCommand.d.ts +2 -23
  95. package/dist-types/ts3.4/commands/FilterLogEventsCommand.d.ts +2 -28
  96. package/dist-types/ts3.4/commands/GetLogEventsCommand.d.ts +2 -25
  97. package/dist-types/ts3.4/commands/GetLogGroupFieldsCommand.d.ts +2 -27
  98. package/dist-types/ts3.4/commands/GetLogRecordCommand.d.ts +2 -23
  99. package/dist-types/ts3.4/commands/GetQueryResultsCommand.d.ts +2 -30
  100. package/dist-types/ts3.4/commands/ListTagsLogGroupCommand.d.ts +2 -20
  101. package/dist-types/ts3.4/commands/PutDestinationCommand.d.ts +2 -29
  102. package/dist-types/ts3.4/commands/PutDestinationPolicyCommand.d.ts +2 -25
  103. package/dist-types/ts3.4/commands/PutLogEventsCommand.d.ts +2 -57
  104. package/dist-types/ts3.4/commands/PutMetricFilterCommand.d.ts +2 -42
  105. package/dist-types/ts3.4/commands/PutQueryDefinitionCommand.d.ts +2 -31
  106. package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +2 -22
  107. package/dist-types/ts3.4/commands/PutRetentionPolicyCommand.d.ts +2 -22
  108. package/dist-types/ts3.4/commands/PutSubscriptionFilterCommand.d.ts +2 -48
  109. package/dist-types/ts3.4/commands/StartQueryCommand.d.ts +2 -25
  110. package/dist-types/ts3.4/commands/StopQueryCommand.d.ts +2 -21
  111. package/dist-types/ts3.4/commands/TagLogGroupCommand.d.ts +2 -29
  112. package/dist-types/ts3.4/commands/TestMetricFilterCommand.d.ts +2 -21
  113. package/dist-types/ts3.4/commands/UntagLogGroupCommand.d.ts +2 -26
  114. package/dist-types/ts3.4/commands/index.d.ts +42 -0
  115. package/dist-types/ts3.4/index.d.ts +4 -52
  116. package/dist-types/ts3.4/models/models_0.d.ts +392 -1434
  117. package/dist-types/ts3.4/pagination/index.d.ts +8 -0
  118. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  119. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  120. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  121. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  122. package/package.json +32 -32
@@ -4,22 +4,13 @@ exports.paginateDescribeDestinations = void 0;
4
4
  const CloudWatchLogs_1 = require("../CloudWatchLogs");
5
5
  const CloudWatchLogsClient_1 = require("../CloudWatchLogsClient");
6
6
  const DescribeDestinationsCommand_1 = require("../commands/DescribeDestinationsCommand");
7
- /**
8
- * @private
9
- */
10
7
  const makePagedClientRequest = async (client, input, ...args) => {
11
- // @ts-ignore
12
8
  return await client.send(new DescribeDestinationsCommand_1.DescribeDestinationsCommand(input), ...args);
13
9
  };
14
- /**
15
- * @private
16
- */
17
10
  const makePagedRequest = async (client, input, ...args) => {
18
- // @ts-ignore
19
11
  return await client.describeDestinations(input, ...args);
20
12
  };
21
13
  async function* paginateDescribeDestinations(config, input, ...additionalArguments) {
22
- // ToDo: replace with actual type instead of typeof input.nextToken
23
14
  let token = config.startingToken || undefined;
24
15
  let hasNext = true;
25
16
  let page;
@@ -39,7 +30,6 @@ async function* paginateDescribeDestinations(config, input, ...additionalArgumen
39
30
  token = page.nextToken;
40
31
  hasNext = !!token;
41
32
  }
42
- // @ts-ignore
43
33
  return undefined;
44
34
  }
45
35
  exports.paginateDescribeDestinations = paginateDescribeDestinations;
@@ -4,22 +4,13 @@ exports.paginateDescribeLogGroups = void 0;
4
4
  const CloudWatchLogs_1 = require("../CloudWatchLogs");
5
5
  const CloudWatchLogsClient_1 = require("../CloudWatchLogsClient");
6
6
  const DescribeLogGroupsCommand_1 = require("../commands/DescribeLogGroupsCommand");
7
- /**
8
- * @private
9
- */
10
7
  const makePagedClientRequest = async (client, input, ...args) => {
11
- // @ts-ignore
12
8
  return await client.send(new DescribeLogGroupsCommand_1.DescribeLogGroupsCommand(input), ...args);
13
9
  };
14
- /**
15
- * @private
16
- */
17
10
  const makePagedRequest = async (client, input, ...args) => {
18
- // @ts-ignore
19
11
  return await client.describeLogGroups(input, ...args);
20
12
  };
21
13
  async function* paginateDescribeLogGroups(config, input, ...additionalArguments) {
22
- // ToDo: replace with actual type instead of typeof input.nextToken
23
14
  let token = config.startingToken || undefined;
24
15
  let hasNext = true;
25
16
  let page;
@@ -39,7 +30,6 @@ async function* paginateDescribeLogGroups(config, input, ...additionalArguments)
39
30
  token = page.nextToken;
40
31
  hasNext = !!token;
41
32
  }
42
- // @ts-ignore
43
33
  return undefined;
44
34
  }
45
35
  exports.paginateDescribeLogGroups = paginateDescribeLogGroups;
@@ -4,22 +4,13 @@ exports.paginateDescribeLogStreams = void 0;
4
4
  const CloudWatchLogs_1 = require("../CloudWatchLogs");
5
5
  const CloudWatchLogsClient_1 = require("../CloudWatchLogsClient");
6
6
  const DescribeLogStreamsCommand_1 = require("../commands/DescribeLogStreamsCommand");
7
- /**
8
- * @private
9
- */
10
7
  const makePagedClientRequest = async (client, input, ...args) => {
11
- // @ts-ignore
12
8
  return await client.send(new DescribeLogStreamsCommand_1.DescribeLogStreamsCommand(input), ...args);
13
9
  };
14
- /**
15
- * @private
16
- */
17
10
  const makePagedRequest = async (client, input, ...args) => {
18
- // @ts-ignore
19
11
  return await client.describeLogStreams(input, ...args);
20
12
  };
21
13
  async function* paginateDescribeLogStreams(config, input, ...additionalArguments) {
22
- // ToDo: replace with actual type instead of typeof input.nextToken
23
14
  let token = config.startingToken || undefined;
24
15
  let hasNext = true;
25
16
  let page;
@@ -39,7 +30,6 @@ async function* paginateDescribeLogStreams(config, input, ...additionalArguments
39
30
  token = page.nextToken;
40
31
  hasNext = !!token;
41
32
  }
42
- // @ts-ignore
43
33
  return undefined;
44
34
  }
45
35
  exports.paginateDescribeLogStreams = paginateDescribeLogStreams;
@@ -4,22 +4,13 @@ exports.paginateDescribeMetricFilters = void 0;
4
4
  const CloudWatchLogs_1 = require("../CloudWatchLogs");
5
5
  const CloudWatchLogsClient_1 = require("../CloudWatchLogsClient");
6
6
  const DescribeMetricFiltersCommand_1 = require("../commands/DescribeMetricFiltersCommand");
7
- /**
8
- * @private
9
- */
10
7
  const makePagedClientRequest = async (client, input, ...args) => {
11
- // @ts-ignore
12
8
  return await client.send(new DescribeMetricFiltersCommand_1.DescribeMetricFiltersCommand(input), ...args);
13
9
  };
14
- /**
15
- * @private
16
- */
17
10
  const makePagedRequest = async (client, input, ...args) => {
18
- // @ts-ignore
19
11
  return await client.describeMetricFilters(input, ...args);
20
12
  };
21
13
  async function* paginateDescribeMetricFilters(config, input, ...additionalArguments) {
22
- // ToDo: replace with actual type instead of typeof input.nextToken
23
14
  let token = config.startingToken || undefined;
24
15
  let hasNext = true;
25
16
  let page;
@@ -39,7 +30,6 @@ async function* paginateDescribeMetricFilters(config, input, ...additionalArgume
39
30
  token = page.nextToken;
40
31
  hasNext = !!token;
41
32
  }
42
- // @ts-ignore
43
33
  return undefined;
44
34
  }
45
35
  exports.paginateDescribeMetricFilters = paginateDescribeMetricFilters;
@@ -4,22 +4,13 @@ exports.paginateDescribeSubscriptionFilters = void 0;
4
4
  const CloudWatchLogs_1 = require("../CloudWatchLogs");
5
5
  const CloudWatchLogsClient_1 = require("../CloudWatchLogsClient");
6
6
  const DescribeSubscriptionFiltersCommand_1 = require("../commands/DescribeSubscriptionFiltersCommand");
7
- /**
8
- * @private
9
- */
10
7
  const makePagedClientRequest = async (client, input, ...args) => {
11
- // @ts-ignore
12
8
  return await client.send(new DescribeSubscriptionFiltersCommand_1.DescribeSubscriptionFiltersCommand(input), ...args);
13
9
  };
14
- /**
15
- * @private
16
- */
17
10
  const makePagedRequest = async (client, input, ...args) => {
18
- // @ts-ignore
19
11
  return await client.describeSubscriptionFilters(input, ...args);
20
12
  };
21
13
  async function* paginateDescribeSubscriptionFilters(config, input, ...additionalArguments) {
22
- // ToDo: replace with actual type instead of typeof input.nextToken
23
14
  let token = config.startingToken || undefined;
24
15
  let hasNext = true;
25
16
  let page;
@@ -39,7 +30,6 @@ async function* paginateDescribeSubscriptionFilters(config, input, ...additional
39
30
  token = page.nextToken;
40
31
  hasNext = !!token;
41
32
  }
42
- // @ts-ignore
43
33
  return undefined;
44
34
  }
45
35
  exports.paginateDescribeSubscriptionFilters = paginateDescribeSubscriptionFilters;
@@ -4,22 +4,13 @@ exports.paginateFilterLogEvents = void 0;
4
4
  const CloudWatchLogs_1 = require("../CloudWatchLogs");
5
5
  const CloudWatchLogsClient_1 = require("../CloudWatchLogsClient");
6
6
  const FilterLogEventsCommand_1 = require("../commands/FilterLogEventsCommand");
7
- /**
8
- * @private
9
- */
10
7
  const makePagedClientRequest = async (client, input, ...args) => {
11
- // @ts-ignore
12
8
  return await client.send(new FilterLogEventsCommand_1.FilterLogEventsCommand(input), ...args);
13
9
  };
14
- /**
15
- * @private
16
- */
17
10
  const makePagedRequest = async (client, input, ...args) => {
18
- // @ts-ignore
19
11
  return await client.filterLogEvents(input, ...args);
20
12
  };
21
13
  async function* paginateFilterLogEvents(config, input, ...additionalArguments) {
22
- // ToDo: replace with actual type instead of typeof input.nextToken
23
14
  let token = config.startingToken || undefined;
24
15
  let hasNext = true;
25
16
  let page;
@@ -39,7 +30,6 @@ async function* paginateFilterLogEvents(config, input, ...additionalArguments) {
39
30
  token = page.nextToken;
40
31
  hasNext = !!token;
41
32
  }
42
- // @ts-ignore
43
33
  return undefined;
44
34
  }
45
35
  exports.paginateFilterLogEvents = paginateFilterLogEvents;
@@ -4,22 +4,13 @@ exports.paginateGetLogEvents = void 0;
4
4
  const CloudWatchLogs_1 = require("../CloudWatchLogs");
5
5
  const CloudWatchLogsClient_1 = require("../CloudWatchLogsClient");
6
6
  const GetLogEventsCommand_1 = require("../commands/GetLogEventsCommand");
7
- /**
8
- * @private
9
- */
10
7
  const makePagedClientRequest = async (client, input, ...args) => {
11
- // @ts-ignore
12
8
  return await client.send(new GetLogEventsCommand_1.GetLogEventsCommand(input), ...args);
13
9
  };
14
- /**
15
- * @private
16
- */
17
10
  const makePagedRequest = async (client, input, ...args) => {
18
- // @ts-ignore
19
11
  return await client.getLogEvents(input, ...args);
20
12
  };
21
13
  async function* paginateGetLogEvents(config, input, ...additionalArguments) {
22
- // ToDo: replace with actual type instead of typeof input.nextToken
23
14
  let token = config.startingToken || undefined;
24
15
  let hasNext = true;
25
16
  let page;
@@ -39,7 +30,6 @@ async function* paginateGetLogEvents(config, input, ...additionalArguments) {
39
30
  token = page.nextForwardToken;
40
31
  hasNext = !!token;
41
32
  }
42
- // @ts-ignore
43
33
  return undefined;
44
34
  }
45
35
  exports.paginateGetLogEvents = paginateGetLogEvents;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./DescribeDestinationsPaginator"), exports);
5
+ tslib_1.__exportStar(require("./DescribeLogGroupsPaginator"), exports);
6
+ tslib_1.__exportStar(require("./DescribeLogStreamsPaginator"), exports);
7
+ tslib_1.__exportStar(require("./DescribeMetricFiltersPaginator"), exports);
8
+ tslib_1.__exportStar(require("./DescribeSubscriptionFiltersPaginator"), exports);
9
+ tslib_1.__exportStar(require("./FilterLogEventsPaginator"), exports);
10
+ tslib_1.__exportStar(require("./GetLogEventsPaginator"), exports);
11
+ tslib_1.__exportStar(require("./Interfaces"), exports);
@@ -4363,14 +4363,12 @@ const deserializeMetadata = (output) => {
4363
4363
  cfId: output.headers["x-amz-cf-id"],
4364
4364
  });
4365
4365
  };
4366
- // Collect low-level response body stream to Uint8Array.
4367
4366
  const collectBody = (streamBody = new Uint8Array(), context) => {
4368
4367
  if (streamBody instanceof Uint8Array) {
4369
4368
  return Promise.resolve(streamBody);
4370
4369
  }
4371
4370
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
4372
4371
  };
4373
- // Encode Uint8Array data into string with utf-8.
4374
4372
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
4375
4373
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
4376
4374
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
@@ -4396,9 +4394,6 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
4396
4394
  }
4397
4395
  return {};
4398
4396
  });
4399
- /**
4400
- * Load an error code for the aws.rest-json-1.1 protocol.
4401
- */
4402
4397
  const loadRestJsonErrorCode = (output, data) => {
4403
4398
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
4404
4399
  const sanitizeErrorCode = (rawValue) => {
@@ -2,8 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
- // @ts-ignore: package.json will be imported from dist folders
6
- const package_json_1 = tslib_1.__importDefault(require("../package.json")); // eslint-disable-line
5
+ const package_json_1 = tslib_1.__importDefault(require("../package.json"));
7
6
  const sha256_browser_1 = require("@aws-crypto/sha256-browser");
8
7
  const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
9
8
  const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
@@ -13,9 +12,6 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
13
12
  const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
14
13
  const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
15
14
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
16
- /**
17
- * @internal
18
- */
19
15
  const getRuntimeConfig = (config) => {
20
16
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
21
17
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
@@ -2,8 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
- // @ts-ignore: package.json will be imported from dist folders
6
- const package_json_1 = tslib_1.__importDefault(require("../package.json")); // eslint-disable-line
5
+ const package_json_1 = tslib_1.__importDefault(require("../package.json"));
7
6
  const client_sts_1 = require("@aws-sdk/client-sts");
8
7
  const config_resolver_1 = require("@aws-sdk/config-resolver");
9
8
  const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
@@ -17,9 +16,6 @@ const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
17
16
  const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
18
17
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
19
18
  const smithy_client_1 = require("@aws-sdk/smithy-client");
20
- /**
21
- * @internal
22
- */
23
19
  const getRuntimeConfig = (config) => {
24
20
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
25
21
  smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
@@ -3,9 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const sha256_js_1 = require("@aws-crypto/sha256-js");
5
5
  const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
6
- /**
7
- * @internal
8
- */
9
6
  const getRuntimeConfig = (config) => {
10
7
  var _a;
11
8
  const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config);
@@ -3,9 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const url_parser_1 = require("@aws-sdk/url-parser");
5
5
  const endpoints_1 = require("./endpoints");
6
- /**
7
- * @internal
8
- */
9
6
  const getRuntimeConfig = (config) => {
10
7
  var _a, _b, _c, _d, _e;
11
8
  return ({
@@ -0,0 +1,42 @@
1
+ export * from "./AssociateKmsKeyCommand";
2
+ export * from "./CancelExportTaskCommand";
3
+ export * from "./CreateExportTaskCommand";
4
+ export * from "./CreateLogGroupCommand";
5
+ export * from "./CreateLogStreamCommand";
6
+ export * from "./DeleteDestinationCommand";
7
+ export * from "./DeleteLogGroupCommand";
8
+ export * from "./DeleteLogStreamCommand";
9
+ export * from "./DeleteMetricFilterCommand";
10
+ export * from "./DeleteQueryDefinitionCommand";
11
+ export * from "./DeleteResourcePolicyCommand";
12
+ export * from "./DeleteRetentionPolicyCommand";
13
+ export * from "./DeleteSubscriptionFilterCommand";
14
+ export * from "./DescribeDestinationsCommand";
15
+ export * from "./DescribeExportTasksCommand";
16
+ export * from "./DescribeLogGroupsCommand";
17
+ export * from "./DescribeLogStreamsCommand";
18
+ export * from "./DescribeMetricFiltersCommand";
19
+ export * from "./DescribeQueriesCommand";
20
+ export * from "./DescribeQueryDefinitionsCommand";
21
+ export * from "./DescribeResourcePoliciesCommand";
22
+ export * from "./DescribeSubscriptionFiltersCommand";
23
+ export * from "./DisassociateKmsKeyCommand";
24
+ export * from "./FilterLogEventsCommand";
25
+ export * from "./GetLogEventsCommand";
26
+ export * from "./GetLogGroupFieldsCommand";
27
+ export * from "./GetLogRecordCommand";
28
+ export * from "./GetQueryResultsCommand";
29
+ export * from "./ListTagsLogGroupCommand";
30
+ export * from "./PutDestinationCommand";
31
+ export * from "./PutDestinationPolicyCommand";
32
+ export * from "./PutLogEventsCommand";
33
+ export * from "./PutMetricFilterCommand";
34
+ export * from "./PutQueryDefinitionCommand";
35
+ export * from "./PutResourcePolicyCommand";
36
+ export * from "./PutRetentionPolicyCommand";
37
+ export * from "./PutSubscriptionFilterCommand";
38
+ export * from "./StartQueryCommand";
39
+ export * from "./StopQueryCommand";
40
+ export * from "./TagLogGroupCommand";
41
+ export * from "./TestMetricFilterCommand";
42
+ export * from "./UntagLogGroupCommand";
@@ -55,22 +55,27 @@ var partitionHash = {
55
55
  "us-west-1",
56
56
  "us-west-2",
57
57
  ],
58
+ regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
58
59
  hostname: "logs.{region}.amazonaws.com",
59
60
  },
60
61
  "aws-cn": {
61
62
  regions: ["cn-north-1", "cn-northwest-1"],
63
+ regionRegex: "^cn\\-\\w+\\-\\d+$",
62
64
  hostname: "logs.{region}.amazonaws.com.cn",
63
65
  },
64
66
  "aws-iso": {
65
- regions: ["us-iso-east-1"],
67
+ regions: ["us-iso-east-1", "us-iso-west-1"],
68
+ regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
66
69
  hostname: "logs.{region}.c2s.ic.gov",
67
70
  },
68
71
  "aws-iso-b": {
69
72
  regions: ["us-isob-east-1"],
73
+ regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
70
74
  hostname: "logs.{region}.sc2s.sgov.gov",
71
75
  },
72
76
  "aws-us-gov": {
73
77
  regions: ["us-gov-east-1", "us-gov-west-1"],
78
+ regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
74
79
  hostname: "logs.{region}.amazonaws.com",
75
80
  },
76
81
  };
package/dist-es/index.js CHANGED
@@ -1,53 +1,5 @@
1
- export * from "./CloudWatchLogsClient";
2
1
  export * from "./CloudWatchLogs";
3
- export * from "./commands/AssociateKmsKeyCommand";
4
- export * from "./commands/CancelExportTaskCommand";
5
- export * from "./commands/CreateExportTaskCommand";
6
- export * from "./commands/CreateLogGroupCommand";
7
- export * from "./commands/CreateLogStreamCommand";
8
- export * from "./commands/DeleteDestinationCommand";
9
- export * from "./commands/DeleteLogGroupCommand";
10
- export * from "./commands/DeleteLogStreamCommand";
11
- export * from "./commands/DeleteMetricFilterCommand";
12
- export * from "./commands/DeleteQueryDefinitionCommand";
13
- export * from "./commands/DeleteResourcePolicyCommand";
14
- export * from "./commands/DeleteRetentionPolicyCommand";
15
- export * from "./commands/DeleteSubscriptionFilterCommand";
16
- export * from "./commands/DescribeDestinationsCommand";
17
- export * from "./pagination/DescribeDestinationsPaginator";
18
- export * from "./commands/DescribeExportTasksCommand";
19
- export * from "./commands/DescribeLogGroupsCommand";
20
- export * from "./pagination/DescribeLogGroupsPaginator";
21
- export * from "./commands/DescribeLogStreamsCommand";
22
- export * from "./pagination/DescribeLogStreamsPaginator";
23
- export * from "./commands/DescribeMetricFiltersCommand";
24
- export * from "./pagination/DescribeMetricFiltersPaginator";
25
- export * from "./commands/DescribeQueriesCommand";
26
- export * from "./commands/DescribeQueryDefinitionsCommand";
27
- export * from "./commands/DescribeResourcePoliciesCommand";
28
- export * from "./commands/DescribeSubscriptionFiltersCommand";
29
- export * from "./pagination/DescribeSubscriptionFiltersPaginator";
30
- export * from "./commands/DisassociateKmsKeyCommand";
31
- export * from "./commands/FilterLogEventsCommand";
32
- export * from "./pagination/FilterLogEventsPaginator";
33
- export * from "./commands/GetLogEventsCommand";
34
- export * from "./pagination/GetLogEventsPaginator";
35
- export * from "./commands/GetLogGroupFieldsCommand";
36
- export * from "./commands/GetLogRecordCommand";
37
- export * from "./commands/GetQueryResultsCommand";
38
- export * from "./commands/ListTagsLogGroupCommand";
39
- export * from "./commands/PutDestinationCommand";
40
- export * from "./commands/PutDestinationPolicyCommand";
41
- export * from "./commands/PutLogEventsCommand";
42
- export * from "./commands/PutMetricFilterCommand";
43
- export * from "./commands/PutQueryDefinitionCommand";
44
- export * from "./commands/PutResourcePolicyCommand";
45
- export * from "./commands/PutRetentionPolicyCommand";
46
- export * from "./commands/PutSubscriptionFilterCommand";
47
- export * from "./commands/StartQueryCommand";
48
- export * from "./commands/StopQueryCommand";
49
- export * from "./commands/TagLogGroupCommand";
50
- export * from "./commands/TestMetricFilterCommand";
51
- export * from "./commands/UntagLogGroupCommand";
52
- export * from "./pagination/Interfaces";
53
- export * from "./models/index";
2
+ export * from "./CloudWatchLogsClient";
3
+ export * from "./commands";
4
+ export * from "./models";
5
+ export * from "./pagination";
@@ -0,0 +1,8 @@
1
+ export * from "./DescribeDestinationsPaginator";
2
+ export * from "./DescribeLogGroupsPaginator";
3
+ export * from "./DescribeLogStreamsPaginator";
4
+ export * from "./DescribeMetricFiltersPaginator";
5
+ export * from "./DescribeSubscriptionFiltersPaginator";
6
+ export * from "./FilterLogEventsPaginator";
7
+ export * from "./GetLogEventsPaginator";
8
+ export * from "./Interfaces";
@@ -0,0 +1,42 @@
1
+ export * from "./AssociateKmsKeyCommand";
2
+ export * from "./CancelExportTaskCommand";
3
+ export * from "./CreateExportTaskCommand";
4
+ export * from "./CreateLogGroupCommand";
5
+ export * from "./CreateLogStreamCommand";
6
+ export * from "./DeleteDestinationCommand";
7
+ export * from "./DeleteLogGroupCommand";
8
+ export * from "./DeleteLogStreamCommand";
9
+ export * from "./DeleteMetricFilterCommand";
10
+ export * from "./DeleteQueryDefinitionCommand";
11
+ export * from "./DeleteResourcePolicyCommand";
12
+ export * from "./DeleteRetentionPolicyCommand";
13
+ export * from "./DeleteSubscriptionFilterCommand";
14
+ export * from "./DescribeDestinationsCommand";
15
+ export * from "./DescribeExportTasksCommand";
16
+ export * from "./DescribeLogGroupsCommand";
17
+ export * from "./DescribeLogStreamsCommand";
18
+ export * from "./DescribeMetricFiltersCommand";
19
+ export * from "./DescribeQueriesCommand";
20
+ export * from "./DescribeQueryDefinitionsCommand";
21
+ export * from "./DescribeResourcePoliciesCommand";
22
+ export * from "./DescribeSubscriptionFiltersCommand";
23
+ export * from "./DisassociateKmsKeyCommand";
24
+ export * from "./FilterLogEventsCommand";
25
+ export * from "./GetLogEventsCommand";
26
+ export * from "./GetLogGroupFieldsCommand";
27
+ export * from "./GetLogRecordCommand";
28
+ export * from "./GetQueryResultsCommand";
29
+ export * from "./ListTagsLogGroupCommand";
30
+ export * from "./PutDestinationCommand";
31
+ export * from "./PutDestinationPolicyCommand";
32
+ export * from "./PutLogEventsCommand";
33
+ export * from "./PutMetricFilterCommand";
34
+ export * from "./PutQueryDefinitionCommand";
35
+ export * from "./PutResourcePolicyCommand";
36
+ export * from "./PutRetentionPolicyCommand";
37
+ export * from "./PutSubscriptionFilterCommand";
38
+ export * from "./StartQueryCommand";
39
+ export * from "./StopQueryCommand";
40
+ export * from "./TagLogGroupCommand";
41
+ export * from "./TestMetricFilterCommand";
42
+ export * from "./UntagLogGroupCommand";
@@ -1,53 +1,5 @@
1
- export * from "./CloudWatchLogsClient";
2
1
  export * from "./CloudWatchLogs";
3
- export * from "./commands/AssociateKmsKeyCommand";
4
- export * from "./commands/CancelExportTaskCommand";
5
- export * from "./commands/CreateExportTaskCommand";
6
- export * from "./commands/CreateLogGroupCommand";
7
- export * from "./commands/CreateLogStreamCommand";
8
- export * from "./commands/DeleteDestinationCommand";
9
- export * from "./commands/DeleteLogGroupCommand";
10
- export * from "./commands/DeleteLogStreamCommand";
11
- export * from "./commands/DeleteMetricFilterCommand";
12
- export * from "./commands/DeleteQueryDefinitionCommand";
13
- export * from "./commands/DeleteResourcePolicyCommand";
14
- export * from "./commands/DeleteRetentionPolicyCommand";
15
- export * from "./commands/DeleteSubscriptionFilterCommand";
16
- export * from "./commands/DescribeDestinationsCommand";
17
- export * from "./pagination/DescribeDestinationsPaginator";
18
- export * from "./commands/DescribeExportTasksCommand";
19
- export * from "./commands/DescribeLogGroupsCommand";
20
- export * from "./pagination/DescribeLogGroupsPaginator";
21
- export * from "./commands/DescribeLogStreamsCommand";
22
- export * from "./pagination/DescribeLogStreamsPaginator";
23
- export * from "./commands/DescribeMetricFiltersCommand";
24
- export * from "./pagination/DescribeMetricFiltersPaginator";
25
- export * from "./commands/DescribeQueriesCommand";
26
- export * from "./commands/DescribeQueryDefinitionsCommand";
27
- export * from "./commands/DescribeResourcePoliciesCommand";
28
- export * from "./commands/DescribeSubscriptionFiltersCommand";
29
- export * from "./pagination/DescribeSubscriptionFiltersPaginator";
30
- export * from "./commands/DisassociateKmsKeyCommand";
31
- export * from "./commands/FilterLogEventsCommand";
32
- export * from "./pagination/FilterLogEventsPaginator";
33
- export * from "./commands/GetLogEventsCommand";
34
- export * from "./pagination/GetLogEventsPaginator";
35
- export * from "./commands/GetLogGroupFieldsCommand";
36
- export * from "./commands/GetLogRecordCommand";
37
- export * from "./commands/GetQueryResultsCommand";
38
- export * from "./commands/ListTagsLogGroupCommand";
39
- export * from "./commands/PutDestinationCommand";
40
- export * from "./commands/PutDestinationPolicyCommand";
41
- export * from "./commands/PutLogEventsCommand";
42
- export * from "./commands/PutMetricFilterCommand";
43
- export * from "./commands/PutQueryDefinitionCommand";
44
- export * from "./commands/PutResourcePolicyCommand";
45
- export * from "./commands/PutRetentionPolicyCommand";
46
- export * from "./commands/PutSubscriptionFilterCommand";
47
- export * from "./commands/StartQueryCommand";
48
- export * from "./commands/StopQueryCommand";
49
- export * from "./commands/TagLogGroupCommand";
50
- export * from "./commands/TestMetricFilterCommand";
51
- export * from "./commands/UntagLogGroupCommand";
52
- export * from "./pagination/Interfaces";
53
- export * from "./models/index";
2
+ export * from "./CloudWatchLogsClient";
3
+ export * from "./commands";
4
+ export * from "./models";
5
+ export * from "./pagination";
@@ -0,0 +1,8 @@
1
+ export * from "./DescribeDestinationsPaginator";
2
+ export * from "./DescribeLogGroupsPaginator";
3
+ export * from "./DescribeLogStreamsPaginator";
4
+ export * from "./DescribeMetricFiltersPaginator";
5
+ export * from "./DescribeSubscriptionFiltersPaginator";
6
+ export * from "./FilterLogEventsPaginator";
7
+ export * from "./GetLogEventsPaginator";
8
+ export * from "./Interfaces";