@aws-sdk/client-cloudwatch-logs 3.43.0 → 3.47.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,53 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [3.47.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.0-release-test-1...v3.47.1) (2022-01-20)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-cloudwatch-logs
9
+
10
+
11
+
12
+
13
+
14
+ # [3.47.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.46.0...v3.47.0) (2022-01-15)
15
+
16
+
17
+ ### Features
18
+
19
+ * **clients:** update clients to use default values inferred from defaults mode ([#3192](https://github.com/aws/aws-sdk-js-v3/issues/3192)) ([9152e21](https://github.com/aws/aws-sdk-js-v3/commit/9152e210c6ec29f34bb070eaf2874039022e6ab7))
20
+
21
+
22
+
23
+
24
+
25
+ # [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
26
+
27
+
28
+ ### Bug Fixes
29
+
30
+ * **clients:** update clean:dist script to delete dist-* folder ([#3155](https://github.com/aws/aws-sdk-js-v3/issues/3155)) ([cdb1709](https://github.com/aws/aws-sdk-js-v3/commit/cdb17090f82d1fc8755811c82cbed5976ec7e60b))
31
+
32
+
33
+ ### Features
34
+
35
+ * **clients:** extend typedoc.json from root ([#3136](https://github.com/aws/aws-sdk-js-v3/issues/3136)) ([f6a3ef5](https://github.com/aws/aws-sdk-js-v3/commit/f6a3ef541ae2d92872d09d8cab6727911287ebb2))
36
+ * end support for Node.js 10.x ([#3122](https://github.com/aws/aws-sdk-js-v3/issues/3122)) ([7acf18a](https://github.com/aws/aws-sdk-js-v3/commit/7acf18abd3fb1cc461f809110cdb0d7968c2070e))
37
+
38
+
39
+
40
+
41
+
42
+ # [3.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
43
+
44
+
45
+ ### Features
46
+
47
+ * **clients:** update clients as of 2021/12/23 ([#3110](https://github.com/aws/aws-sdk-js-v3/issues/3110)) ([5d638e1](https://github.com/aws/aws-sdk-js-v3/commit/5d638e188ce64fa80fe36b8cba79ba63b80b50b7))
48
+
49
+
50
+
51
+
52
+
6
53
  # [3.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
7
54
 
8
55
  **Note:** Version bump only for package @aws-sdk/client-cloudwatch-logs
@@ -5,10 +5,6 @@ const config_resolver_1 = require("@aws-sdk/config-resolver");
5
5
  const regionHash = {
6
6
  "us-east-1": {
7
7
  variants: [
8
- {
9
- hostname: "logs.us-east-1.amazonaws.com",
10
- tags: [],
11
- },
12
8
  {
13
9
  hostname: "logs-fips.us-east-1.amazonaws.com",
14
10
  tags: ["fips"],
@@ -17,10 +13,6 @@ const regionHash = {
17
13
  },
18
14
  "us-east-2": {
19
15
  variants: [
20
- {
21
- hostname: "logs.us-east-2.amazonaws.com",
22
- tags: [],
23
- },
24
16
  {
25
17
  hostname: "logs-fips.us-east-2.amazonaws.com",
26
18
  tags: ["fips"],
@@ -47,10 +39,6 @@ const regionHash = {
47
39
  },
48
40
  "us-west-1": {
49
41
  variants: [
50
- {
51
- hostname: "logs.us-west-1.amazonaws.com",
52
- tags: [],
53
- },
54
42
  {
55
43
  hostname: "logs-fips.us-west-1.amazonaws.com",
56
44
  tags: ["fips"],
@@ -59,10 +47,6 @@ const regionHash = {
59
47
  },
60
48
  "us-west-2": {
61
49
  variants: [
62
- {
63
- hostname: "logs.us-west-2.amazonaws.com",
64
- tags: [],
65
- },
66
50
  {
67
51
  hostname: "logs-fips.us-west-2.amazonaws.com",
68
52
  tags: ["fips"],
@@ -81,6 +65,7 @@ const partitionHash = {
81
65
  "ap-south-1",
82
66
  "ap-southeast-1",
83
67
  "ap-southeast-2",
68
+ "ap-southeast-3",
84
69
  "ca-central-1",
85
70
  "eu-central-1",
86
71
  "eu-north-1",
@@ -1,50 +1,19 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.QueryDefinition = exports.DescribeQueryDefinitionsRequest = exports.DescribeQueriesResponse = exports.QueryInfo = exports.DescribeQueriesRequest = exports.QueryStatus = exports.DescribeMetricFiltersResponse = exports.MetricFilter = exports.MetricTransformation = exports.StandardUnit = exports.DescribeMetricFiltersRequest = exports.DescribeLogStreamsResponse = exports.LogStream = exports.DescribeLogStreamsRequest = exports.OrderBy = exports.DescribeLogGroupsResponse = exports.LogGroup = exports.DescribeLogGroupsRequest = exports.DescribeExportTasksResponse = exports.ExportTask = exports.ExportTaskStatus = exports.ExportTaskExecutionInfo = exports.DescribeExportTasksRequest = exports.ExportTaskStatusCode = exports.DescribeDestinationsResponse = exports.Destination = exports.DescribeDestinationsRequest = exports.DeleteSubscriptionFilterRequest = exports.DeleteRetentionPolicyRequest = exports.DeleteResourcePolicyRequest = exports.DeleteQueryDefinitionResponse = exports.DeleteQueryDefinitionRequest = exports.DeleteMetricFilterRequest = exports.DeleteLogStreamRequest = exports.DeleteLogGroupRequest = exports.DeleteDestinationRequest = exports.DataAlreadyAcceptedException = exports.CreateLogStreamRequest = exports.CreateLogGroupRequest = exports.ResourceAlreadyExistsException = exports.LimitExceededException = exports.CreateExportTaskResponse = exports.CreateExportTaskRequest = exports.InvalidOperationException = exports.CancelExportTaskRequest = exports.ServiceUnavailableException = exports.ResourceNotFoundException = exports.OperationAbortedException = exports.InvalidParameterException = exports.AssociateKmsKeyRequest = void 0;
4
- exports.StopQueryResponse = exports.StopQueryRequest = exports.StartQueryResponse = exports.StartQueryRequest = exports.MalformedQueryException = exports.QueryCompileError = exports.QueryCompileErrorLocation = exports.PutSubscriptionFilterRequest = exports.PutRetentionPolicyRequest = exports.PutResourcePolicyResponse = exports.PutResourcePolicyRequest = exports.PutQueryDefinitionResponse = exports.PutQueryDefinitionRequest = exports.PutMetricFilterRequest = exports.UnrecognizedClientException = exports.PutLogEventsResponse = exports.RejectedLogEventsInfo = exports.PutLogEventsRequest = exports.PutDestinationPolicyRequest = exports.PutDestinationResponse = exports.PutDestinationRequest = exports.ListTagsLogGroupResponse = exports.ListTagsLogGroupRequest = exports.InvalidSequenceTokenException = exports.InputLogEvent = exports.GetQueryResultsResponse = exports.QueryStatistics = exports.ResultField = exports.GetQueryResultsRequest = exports.GetLogRecordResponse = exports.GetLogRecordRequest = exports.GetLogGroupFieldsResponse = exports.LogGroupField = exports.GetLogGroupFieldsRequest = exports.GetLogEventsResponse = exports.OutputLogEvent = exports.GetLogEventsRequest = exports.FilterLogEventsResponse = exports.SearchedLogStream = exports.FilterLogEventsRequest = exports.FilteredLogEvent = exports.DisassociateKmsKeyRequest = exports.DescribeSubscriptionFiltersResponse = exports.SubscriptionFilter = exports.Distribution = exports.DescribeSubscriptionFiltersRequest = exports.DescribeResourcePoliciesResponse = exports.ResourcePolicy = exports.DescribeResourcePoliciesRequest = exports.DescribeQueryDefinitionsResponse = void 0;
5
- exports.UntagLogGroupRequest = exports.TestMetricFilterResponse = exports.MetricFilterMatchRecord = exports.TestMetricFilterRequest = exports.TagLogGroupRequest = void 0;
3
+ exports.DescribeSubscriptionFiltersResponse = exports.SubscriptionFilter = exports.Distribution = exports.DescribeSubscriptionFiltersRequest = exports.DescribeResourcePoliciesResponse = exports.ResourcePolicy = exports.DescribeResourcePoliciesRequest = exports.DescribeQueryDefinitionsResponse = exports.QueryDefinition = exports.DescribeQueryDefinitionsRequest = exports.DescribeQueriesResponse = exports.QueryInfo = exports.DescribeQueriesRequest = exports.QueryStatus = exports.DescribeMetricFiltersResponse = exports.MetricFilter = exports.MetricTransformation = exports.StandardUnit = exports.DescribeMetricFiltersRequest = exports.DescribeLogStreamsResponse = exports.LogStream = exports.DescribeLogStreamsRequest = exports.OrderBy = exports.DescribeLogGroupsResponse = exports.LogGroup = exports.DescribeLogGroupsRequest = exports.DescribeExportTasksResponse = exports.ExportTask = exports.ExportTaskStatus = exports.ExportTaskExecutionInfo = exports.DescribeExportTasksRequest = exports.ExportTaskStatusCode = exports.DescribeDestinationsResponse = exports.Destination = exports.DescribeDestinationsRequest = exports.DeleteSubscriptionFilterRequest = exports.DeleteRetentionPolicyRequest = exports.DeleteResourcePolicyRequest = exports.DeleteQueryDefinitionResponse = exports.DeleteQueryDefinitionRequest = exports.DeleteMetricFilterRequest = exports.DeleteLogStreamRequest = exports.DeleteLogGroupRequest = exports.DeleteDestinationRequest = exports.CreateLogStreamRequest = exports.CreateLogGroupRequest = exports.CreateExportTaskResponse = exports.CreateExportTaskRequest = exports.CancelExportTaskRequest = exports.AssociateKmsKeyRequest = void 0;
4
+ exports.UntagLogGroupRequest = exports.TestMetricFilterResponse = exports.MetricFilterMatchRecord = exports.TestMetricFilterRequest = exports.TagLogGroupRequest = exports.StopQueryResponse = exports.StopQueryRequest = exports.StartQueryResponse = exports.StartQueryRequest = exports.QueryCompileError = exports.QueryCompileErrorLocation = exports.PutSubscriptionFilterRequest = exports.PutRetentionPolicyRequest = exports.PutResourcePolicyResponse = exports.PutResourcePolicyRequest = exports.PutQueryDefinitionResponse = exports.PutQueryDefinitionRequest = exports.PutMetricFilterRequest = exports.PutLogEventsResponse = exports.RejectedLogEventsInfo = exports.PutLogEventsRequest = exports.PutDestinationPolicyRequest = exports.PutDestinationResponse = exports.PutDestinationRequest = exports.ListTagsLogGroupResponse = exports.ListTagsLogGroupRequest = exports.InputLogEvent = exports.GetQueryResultsResponse = exports.QueryStatistics = exports.ResultField = exports.GetQueryResultsRequest = exports.GetLogRecordResponse = exports.GetLogRecordRequest = exports.GetLogGroupFieldsResponse = exports.LogGroupField = exports.GetLogGroupFieldsRequest = exports.GetLogEventsResponse = exports.OutputLogEvent = exports.GetLogEventsRequest = exports.FilterLogEventsResponse = exports.SearchedLogStream = exports.FilterLogEventsRequest = exports.FilteredLogEvent = exports.DisassociateKmsKeyRequest = void 0;
6
5
  var AssociateKmsKeyRequest;
7
6
  (function (AssociateKmsKeyRequest) {
8
7
  AssociateKmsKeyRequest.filterSensitiveLog = (obj) => ({
9
8
  ...obj,
10
9
  });
11
10
  })(AssociateKmsKeyRequest = exports.AssociateKmsKeyRequest || (exports.AssociateKmsKeyRequest = {}));
12
- var InvalidParameterException;
13
- (function (InvalidParameterException) {
14
- InvalidParameterException.filterSensitiveLog = (obj) => ({
15
- ...obj,
16
- });
17
- })(InvalidParameterException = exports.InvalidParameterException || (exports.InvalidParameterException = {}));
18
- var OperationAbortedException;
19
- (function (OperationAbortedException) {
20
- OperationAbortedException.filterSensitiveLog = (obj) => ({
21
- ...obj,
22
- });
23
- })(OperationAbortedException = exports.OperationAbortedException || (exports.OperationAbortedException = {}));
24
- var ResourceNotFoundException;
25
- (function (ResourceNotFoundException) {
26
- ResourceNotFoundException.filterSensitiveLog = (obj) => ({
27
- ...obj,
28
- });
29
- })(ResourceNotFoundException = exports.ResourceNotFoundException || (exports.ResourceNotFoundException = {}));
30
- var ServiceUnavailableException;
31
- (function (ServiceUnavailableException) {
32
- ServiceUnavailableException.filterSensitiveLog = (obj) => ({
33
- ...obj,
34
- });
35
- })(ServiceUnavailableException = exports.ServiceUnavailableException || (exports.ServiceUnavailableException = {}));
36
11
  var CancelExportTaskRequest;
37
12
  (function (CancelExportTaskRequest) {
38
13
  CancelExportTaskRequest.filterSensitiveLog = (obj) => ({
39
14
  ...obj,
40
15
  });
41
16
  })(CancelExportTaskRequest = exports.CancelExportTaskRequest || (exports.CancelExportTaskRequest = {}));
42
- var InvalidOperationException;
43
- (function (InvalidOperationException) {
44
- InvalidOperationException.filterSensitiveLog = (obj) => ({
45
- ...obj,
46
- });
47
- })(InvalidOperationException = exports.InvalidOperationException || (exports.InvalidOperationException = {}));
48
17
  var CreateExportTaskRequest;
49
18
  (function (CreateExportTaskRequest) {
50
19
  CreateExportTaskRequest.filterSensitiveLog = (obj) => ({
@@ -57,18 +26,6 @@ var CreateExportTaskResponse;
57
26
  ...obj,
58
27
  });
59
28
  })(CreateExportTaskResponse = exports.CreateExportTaskResponse || (exports.CreateExportTaskResponse = {}));
60
- var LimitExceededException;
61
- (function (LimitExceededException) {
62
- LimitExceededException.filterSensitiveLog = (obj) => ({
63
- ...obj,
64
- });
65
- })(LimitExceededException = exports.LimitExceededException || (exports.LimitExceededException = {}));
66
- var ResourceAlreadyExistsException;
67
- (function (ResourceAlreadyExistsException) {
68
- ResourceAlreadyExistsException.filterSensitiveLog = (obj) => ({
69
- ...obj,
70
- });
71
- })(ResourceAlreadyExistsException = exports.ResourceAlreadyExistsException || (exports.ResourceAlreadyExistsException = {}));
72
29
  var CreateLogGroupRequest;
73
30
  (function (CreateLogGroupRequest) {
74
31
  CreateLogGroupRequest.filterSensitiveLog = (obj) => ({
@@ -81,12 +38,6 @@ var CreateLogStreamRequest;
81
38
  ...obj,
82
39
  });
83
40
  })(CreateLogStreamRequest = exports.CreateLogStreamRequest || (exports.CreateLogStreamRequest = {}));
84
- var DataAlreadyAcceptedException;
85
- (function (DataAlreadyAcceptedException) {
86
- DataAlreadyAcceptedException.filterSensitiveLog = (obj) => ({
87
- ...obj,
88
- });
89
- })(DataAlreadyAcceptedException = exports.DataAlreadyAcceptedException || (exports.DataAlreadyAcceptedException = {}));
90
41
  var DeleteDestinationRequest;
91
42
  (function (DeleteDestinationRequest) {
92
43
  DeleteDestinationRequest.filterSensitiveLog = (obj) => ({
@@ -488,12 +439,6 @@ var InputLogEvent;
488
439
  ...obj,
489
440
  });
490
441
  })(InputLogEvent = exports.InputLogEvent || (exports.InputLogEvent = {}));
491
- var InvalidSequenceTokenException;
492
- (function (InvalidSequenceTokenException) {
493
- InvalidSequenceTokenException.filterSensitiveLog = (obj) => ({
494
- ...obj,
495
- });
496
- })(InvalidSequenceTokenException = exports.InvalidSequenceTokenException || (exports.InvalidSequenceTokenException = {}));
497
442
  var ListTagsLogGroupRequest;
498
443
  (function (ListTagsLogGroupRequest) {
499
444
  ListTagsLogGroupRequest.filterSensitiveLog = (obj) => ({
@@ -542,12 +487,6 @@ var PutLogEventsResponse;
542
487
  ...obj,
543
488
  });
544
489
  })(PutLogEventsResponse = exports.PutLogEventsResponse || (exports.PutLogEventsResponse = {}));
545
- var UnrecognizedClientException;
546
- (function (UnrecognizedClientException) {
547
- UnrecognizedClientException.filterSensitiveLog = (obj) => ({
548
- ...obj,
549
- });
550
- })(UnrecognizedClientException = exports.UnrecognizedClientException || (exports.UnrecognizedClientException = {}));
551
490
  var PutMetricFilterRequest;
552
491
  (function (PutMetricFilterRequest) {
553
492
  PutMetricFilterRequest.filterSensitiveLog = (obj) => ({
@@ -602,12 +541,6 @@ var QueryCompileError;
602
541
  ...obj,
603
542
  });
604
543
  })(QueryCompileError = exports.QueryCompileError || (exports.QueryCompileError = {}));
605
- var MalformedQueryException;
606
- (function (MalformedQueryException) {
607
- MalformedQueryException.filterSensitiveLog = (obj) => ({
608
- ...obj,
609
- });
610
- })(MalformedQueryException = exports.MalformedQueryException || (exports.MalformedQueryException = {}));
611
544
  var StartQueryRequest;
612
545
  (function (StartQueryRequest) {
613
546
  StartQueryRequest.filterSensitiveLog = (obj) => ({
@@ -2620,6 +2620,14 @@ const deserializeAws_json1_1PutQueryDefinitionCommandError = async (output, cont
2620
2620
  $metadata: deserializeMetadata(output),
2621
2621
  };
2622
2622
  break;
2623
+ case "LimitExceededException":
2624
+ case "com.amazonaws.cloudwatchlogs#LimitExceededException":
2625
+ response = {
2626
+ ...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
2627
+ name: errorCode,
2628
+ $metadata: deserializeMetadata(output),
2629
+ };
2630
+ break;
2623
2631
  case "ResourceNotFoundException":
2624
2632
  case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
2625
2633
  response = {
@@ -3563,6 +3571,7 @@ const serializeAws_json1_1PutDestinationPolicyRequest = (input, context) => {
3563
3571
  ...(input.accessPolicy !== undefined && input.accessPolicy !== null && { accessPolicy: input.accessPolicy }),
3564
3572
  ...(input.destinationName !== undefined &&
3565
3573
  input.destinationName !== null && { destinationName: input.destinationName }),
3574
+ ...(input.forceUpdate !== undefined && input.forceUpdate !== null && { forceUpdate: input.forceUpdate }),
3566
3575
  };
3567
3576
  };
3568
3577
  const serializeAws_json1_1PutDestinationRequest = (input, context) => {
@@ -13,13 +13,18 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
13
13
  const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
14
14
  const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
15
15
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
16
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
17
+ const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
16
18
  const getRuntimeConfig = (config) => {
17
19
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
20
+ const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
21
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
18
22
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
19
23
  return {
20
24
  ...clientSharedValues,
21
25
  ...config,
22
26
  runtime: "browser",
27
+ defaultsMode,
23
28
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
24
29
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
25
30
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
@@ -27,8 +32,8 @@ const getRuntimeConfig = (config) => {
27
32
  defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
28
33
  maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
29
34
  region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
30
- requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(),
31
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (() => Promise.resolve(middleware_retry_1.DEFAULT_RETRY_MODE)),
35
+ requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
36
+ retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
32
37
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
33
38
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
34
39
  useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
@@ -16,14 +16,17 @@ const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
16
16
  const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
17
17
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
18
18
  const smithy_client_1 = require("@aws-sdk/smithy-client");
19
+ const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
19
20
  const getRuntimeConfig = (config) => {
20
21
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
21
- smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
22
+ const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
23
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
22
24
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
23
25
  return {
24
26
  ...clientSharedValues,
25
27
  ...config,
26
28
  runtime: "node",
29
+ defaultsMode,
27
30
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
28
31
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
29
32
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
@@ -31,8 +34,11 @@ const getRuntimeConfig = (config) => {
31
34
  defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
32
35
  maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
33
36
  region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
34
- requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(),
35
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS),
37
+ requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
38
+ retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
39
+ ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
40
+ default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
41
+ }),
36
42
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
37
43
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
38
44
  useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
@@ -3,10 +3,6 @@ import { getRegionInfo } from "@aws-sdk/config-resolver";
3
3
  var regionHash = {
4
4
  "us-east-1": {
5
5
  variants: [
6
- {
7
- hostname: "logs.us-east-1.amazonaws.com",
8
- tags: [],
9
- },
10
6
  {
11
7
  hostname: "logs-fips.us-east-1.amazonaws.com",
12
8
  tags: ["fips"],
@@ -15,10 +11,6 @@ var regionHash = {
15
11
  },
16
12
  "us-east-2": {
17
13
  variants: [
18
- {
19
- hostname: "logs.us-east-2.amazonaws.com",
20
- tags: [],
21
- },
22
14
  {
23
15
  hostname: "logs-fips.us-east-2.amazonaws.com",
24
16
  tags: ["fips"],
@@ -45,10 +37,6 @@ var regionHash = {
45
37
  },
46
38
  "us-west-1": {
47
39
  variants: [
48
- {
49
- hostname: "logs.us-west-1.amazonaws.com",
50
- tags: [],
51
- },
52
40
  {
53
41
  hostname: "logs-fips.us-west-1.amazonaws.com",
54
42
  tags: ["fips"],
@@ -57,10 +45,6 @@ var regionHash = {
57
45
  },
58
46
  "us-west-2": {
59
47
  variants: [
60
- {
61
- hostname: "logs.us-west-2.amazonaws.com",
62
- tags: [],
63
- },
64
48
  {
65
49
  hostname: "logs-fips.us-west-2.amazonaws.com",
66
50
  tags: ["fips"],
@@ -79,6 +63,7 @@ var partitionHash = {
79
63
  "ap-south-1",
80
64
  "ap-southeast-1",
81
65
  "ap-southeast-2",
66
+ "ap-southeast-3",
82
67
  "ca-central-1",
83
68
  "eu-central-1",
84
69
  "eu-north-1",
@@ -3,30 +3,10 @@ export var AssociateKmsKeyRequest;
3
3
  (function (AssociateKmsKeyRequest) {
4
4
  AssociateKmsKeyRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
5
5
  })(AssociateKmsKeyRequest || (AssociateKmsKeyRequest = {}));
6
- export var InvalidParameterException;
7
- (function (InvalidParameterException) {
8
- InvalidParameterException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
9
- })(InvalidParameterException || (InvalidParameterException = {}));
10
- export var OperationAbortedException;
11
- (function (OperationAbortedException) {
12
- OperationAbortedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
13
- })(OperationAbortedException || (OperationAbortedException = {}));
14
- export var ResourceNotFoundException;
15
- (function (ResourceNotFoundException) {
16
- ResourceNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
17
- })(ResourceNotFoundException || (ResourceNotFoundException = {}));
18
- export var ServiceUnavailableException;
19
- (function (ServiceUnavailableException) {
20
- ServiceUnavailableException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
21
- })(ServiceUnavailableException || (ServiceUnavailableException = {}));
22
6
  export var CancelExportTaskRequest;
23
7
  (function (CancelExportTaskRequest) {
24
8
  CancelExportTaskRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
25
9
  })(CancelExportTaskRequest || (CancelExportTaskRequest = {}));
26
- export var InvalidOperationException;
27
- (function (InvalidOperationException) {
28
- InvalidOperationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
29
- })(InvalidOperationException || (InvalidOperationException = {}));
30
10
  export var CreateExportTaskRequest;
31
11
  (function (CreateExportTaskRequest) {
32
12
  CreateExportTaskRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -35,14 +15,6 @@ export var CreateExportTaskResponse;
35
15
  (function (CreateExportTaskResponse) {
36
16
  CreateExportTaskResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
37
17
  })(CreateExportTaskResponse || (CreateExportTaskResponse = {}));
38
- export var LimitExceededException;
39
- (function (LimitExceededException) {
40
- LimitExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
41
- })(LimitExceededException || (LimitExceededException = {}));
42
- export var ResourceAlreadyExistsException;
43
- (function (ResourceAlreadyExistsException) {
44
- ResourceAlreadyExistsException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
45
- })(ResourceAlreadyExistsException || (ResourceAlreadyExistsException = {}));
46
18
  export var CreateLogGroupRequest;
47
19
  (function (CreateLogGroupRequest) {
48
20
  CreateLogGroupRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -51,10 +23,6 @@ export var CreateLogStreamRequest;
51
23
  (function (CreateLogStreamRequest) {
52
24
  CreateLogStreamRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
53
25
  })(CreateLogStreamRequest || (CreateLogStreamRequest = {}));
54
- export var DataAlreadyAcceptedException;
55
- (function (DataAlreadyAcceptedException) {
56
- DataAlreadyAcceptedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
57
- })(DataAlreadyAcceptedException || (DataAlreadyAcceptedException = {}));
58
26
  export var DeleteDestinationRequest;
59
27
  (function (DeleteDestinationRequest) {
60
28
  DeleteDestinationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -342,10 +310,6 @@ export var InputLogEvent;
342
310
  (function (InputLogEvent) {
343
311
  InputLogEvent.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
344
312
  })(InputLogEvent || (InputLogEvent = {}));
345
- export var InvalidSequenceTokenException;
346
- (function (InvalidSequenceTokenException) {
347
- InvalidSequenceTokenException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
348
- })(InvalidSequenceTokenException || (InvalidSequenceTokenException = {}));
349
313
  export var ListTagsLogGroupRequest;
350
314
  (function (ListTagsLogGroupRequest) {
351
315
  ListTagsLogGroupRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -378,10 +342,6 @@ export var PutLogEventsResponse;
378
342
  (function (PutLogEventsResponse) {
379
343
  PutLogEventsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
380
344
  })(PutLogEventsResponse || (PutLogEventsResponse = {}));
381
- export var UnrecognizedClientException;
382
- (function (UnrecognizedClientException) {
383
- UnrecognizedClientException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
384
- })(UnrecognizedClientException || (UnrecognizedClientException = {}));
385
345
  export var PutMetricFilterRequest;
386
346
  (function (PutMetricFilterRequest) {
387
347
  PutMetricFilterRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -418,10 +378,6 @@ export var QueryCompileError;
418
378
  (function (QueryCompileError) {
419
379
  QueryCompileError.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
420
380
  })(QueryCompileError || (QueryCompileError = {}));
421
- export var MalformedQueryException;
422
- (function (MalformedQueryException) {
423
- MalformedQueryException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
424
- })(MalformedQueryException || (MalformedQueryException = {}));
425
381
  export var StartQueryRequest;
426
382
  (function (StartQueryRequest) {
427
383
  StartQueryRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -2986,52 +2986,60 @@ export var deserializeAws_json1_1PutQueryDefinitionCommand = function (output, c
2986
2986
  });
2987
2987
  }); };
2988
2988
  var deserializeAws_json1_1PutQueryDefinitionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2989
- var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
2990
- var _f;
2991
- return __generator(this, function (_g) {
2992
- switch (_g.label) {
2989
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
2990
+ var _g;
2991
+ return __generator(this, function (_h) {
2992
+ switch (_h.label) {
2993
2993
  case 0:
2994
2994
  _a = [__assign({}, output)];
2995
- _f = {};
2995
+ _g = {};
2996
2996
  return [4, parseBody(output.body, context)];
2997
2997
  case 1:
2998
- parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
2998
+ parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
2999
2999
  errorCode = "UnknownError";
3000
3000
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3001
3001
  _b = errorCode;
3002
3002
  switch (_b) {
3003
3003
  case "InvalidParameterException": return [3, 2];
3004
3004
  case "com.amazonaws.cloudwatchlogs#InvalidParameterException": return [3, 2];
3005
- case "ResourceNotFoundException": return [3, 4];
3006
- case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException": return [3, 4];
3007
- case "ServiceUnavailableException": return [3, 6];
3008
- case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException": return [3, 6];
3005
+ case "LimitExceededException": return [3, 4];
3006
+ case "com.amazonaws.cloudwatchlogs#LimitExceededException": return [3, 4];
3007
+ case "ResourceNotFoundException": return [3, 6];
3008
+ case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException": return [3, 6];
3009
+ case "ServiceUnavailableException": return [3, 8];
3010
+ case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException": return [3, 8];
3009
3011
  }
3010
- return [3, 8];
3012
+ return [3, 10];
3011
3013
  case 2:
3012
3014
  _c = [{}];
3013
3015
  return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
3014
3016
  case 3:
3015
- response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3016
- return [3, 9];
3017
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3018
+ return [3, 11];
3017
3019
  case 4:
3018
3020
  _d = [{}];
3019
- return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
3021
+ return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
3020
3022
  case 5:
3021
- response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3022
- return [3, 9];
3023
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3024
+ return [3, 11];
3023
3025
  case 6:
3024
3026
  _e = [{}];
3025
- return [4, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)];
3027
+ return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
3026
3028
  case 7:
3027
- response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3028
- return [3, 9];
3029
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3030
+ return [3, 11];
3029
3031
  case 8:
3032
+ _f = [{}];
3033
+ return [4, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)];
3034
+ case 9:
3035
+ response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3036
+ return [3, 11];
3037
+ case 10:
3030
3038
  parsedBody = parsedOutput.body;
3031
3039
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
3032
3040
  response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
3033
- _g.label = 9;
3034
- case 9:
3041
+ _h.label = 11;
3042
+ case 11:
3035
3043
  message = response.message || response.Message || errorCode;
3036
3044
  response.message = message;
3037
3045
  delete response.Message;
@@ -3885,8 +3893,8 @@ var serializeAws_json1_1MetricTransformations = function (input, context) {
3885
3893
  });
3886
3894
  };
3887
3895
  var serializeAws_json1_1PutDestinationPolicyRequest = function (input, context) {
3888
- return __assign(__assign({}, (input.accessPolicy !== undefined && input.accessPolicy !== null && { accessPolicy: input.accessPolicy })), (input.destinationName !== undefined &&
3889
- input.destinationName !== null && { destinationName: input.destinationName }));
3896
+ return __assign(__assign(__assign({}, (input.accessPolicy !== undefined && input.accessPolicy !== null && { accessPolicy: input.accessPolicy })), (input.destinationName !== undefined &&
3897
+ input.destinationName !== null && { destinationName: input.destinationName })), (input.forceUpdate !== undefined && input.forceUpdate !== null && { forceUpdate: input.forceUpdate }));
3890
3898
  };
3891
3899
  var serializeAws_json1_1PutDestinationRequest = function (input, context) {
3892
3900
  return __assign(__assign(__assign({}, (input.destinationName !== undefined &&
@@ -1,8 +1,8 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __awaiter, __generator } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { Sha256 } from "@aws-crypto/sha256-browser";
4
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
5
- import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
5
+ import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
6
6
  import { invalidProvider } from "@aws-sdk/invalid-dependency";
7
7
  import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
8
8
  import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
@@ -10,8 +10,17 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
10
10
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
11
11
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
12
12
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
13
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
14
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
13
15
  export var getRuntimeConfig = function (config) {
14
16
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
17
+ var defaultsMode = resolveDefaultsModeConfig(config);
18
+ var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
15
19
  var clientSharedValues = getSharedRuntimeConfig(config);
16
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
20
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
21
+ switch (_a.label) {
22
+ case 0: return [4, defaultConfigProvider()];
23
+ case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
24
+ }
25
+ }); }); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
17
26
  };
@@ -1,21 +1,28 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __awaiter, __generator } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
4
4
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
5
5
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
6
6
  import { Hash } from "@aws-sdk/hash-node";
7
- import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
7
+ import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
8
8
  import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
9
- import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
9
+ import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
10
10
  import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
11
11
  import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
12
12
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
13
13
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
14
14
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
15
- import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
15
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
16
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
16
17
  export var getRuntimeConfig = function (config) {
17
18
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
18
- emitWarningIfUnsupportedVersion(process.version);
19
+ var defaultsMode = resolveDefaultsModeConfig(config);
20
+ var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
19
21
  var clientSharedValues = getSharedRuntimeConfig(config);
20
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
22
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
23
+ switch (_a.label) {
24
+ case 0: return [4, defaultConfigProvider()];
25
+ case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
26
+ }
27
+ }); }); } })), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
21
28
  };
@@ -4,7 +4,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
4
4
  import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
- import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
7
+ import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
8
  import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { AssociateKmsKeyCommandInput, AssociateKmsKeyCommandOutput } from "./commands/AssociateKmsKeyCommand";
10
10
  import { CancelExportTaskCommandInput, CancelExportTaskCommandOutput } from "./commands/CancelExportTaskCommand";
@@ -150,6 +150,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
150
150
  * @internal
151
151
  */
152
152
  defaultUserAgentProvider?: Provider<__UserAgent>;
153
+ /**
154
+ * The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
155
+ */
156
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
153
157
  }
154
158
  declare type CloudWatchLogsClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
155
159
  /**
@@ -24,12 +24,6 @@ export interface InvalidParameterException extends __SmithyException, $MetadataB
24
24
  $fault: "client";
25
25
  message?: string;
26
26
  }
27
- export declare namespace InvalidParameterException {
28
- /**
29
- * @internal
30
- */
31
- const filterSensitiveLog: (obj: InvalidParameterException) => any;
32
- }
33
27
  /**
34
28
  * <p>Multiple requests to update the same resource were in conflict.</p>
35
29
  */
@@ -38,12 +32,6 @@ export interface OperationAbortedException extends __SmithyException, $MetadataB
38
32
  $fault: "client";
39
33
  message?: string;
40
34
  }
41
- export declare namespace OperationAbortedException {
42
- /**
43
- * @internal
44
- */
45
- const filterSensitiveLog: (obj: OperationAbortedException) => any;
46
- }
47
35
  /**
48
36
  * <p>The specified resource does not exist.</p>
49
37
  */
@@ -52,12 +40,6 @@ export interface ResourceNotFoundException extends __SmithyException, $MetadataB
52
40
  $fault: "client";
53
41
  message?: string;
54
42
  }
55
- export declare namespace ResourceNotFoundException {
56
- /**
57
- * @internal
58
- */
59
- const filterSensitiveLog: (obj: ResourceNotFoundException) => any;
60
- }
61
43
  /**
62
44
  * <p>The service cannot complete the request.</p>
63
45
  */
@@ -66,12 +48,6 @@ export interface ServiceUnavailableException extends __SmithyException, $Metadat
66
48
  $fault: "server";
67
49
  message?: string;
68
50
  }
69
- export declare namespace ServiceUnavailableException {
70
- /**
71
- * @internal
72
- */
73
- const filterSensitiveLog: (obj: ServiceUnavailableException) => any;
74
- }
75
51
  export interface CancelExportTaskRequest {
76
52
  /**
77
53
  * <p>The ID of the export task.</p>
@@ -92,12 +68,6 @@ export interface InvalidOperationException extends __SmithyException, $MetadataB
92
68
  $fault: "client";
93
69
  message?: string;
94
70
  }
95
- export declare namespace InvalidOperationException {
96
- /**
97
- * @internal
98
- */
99
- const filterSensitiveLog: (obj: InvalidOperationException) => any;
100
- }
101
71
  export interface CreateExportTaskRequest {
102
72
  /**
103
73
  * <p>The name of the export task.</p>
@@ -160,12 +130,6 @@ export interface LimitExceededException extends __SmithyException, $MetadataBear
160
130
  $fault: "client";
161
131
  message?: string;
162
132
  }
163
- export declare namespace LimitExceededException {
164
- /**
165
- * @internal
166
- */
167
- const filterSensitiveLog: (obj: LimitExceededException) => any;
168
- }
169
133
  /**
170
134
  * <p>The specified resource already exists.</p>
171
135
  */
@@ -174,12 +138,6 @@ export interface ResourceAlreadyExistsException extends __SmithyException, $Meta
174
138
  $fault: "client";
175
139
  message?: string;
176
140
  }
177
- export declare namespace ResourceAlreadyExistsException {
178
- /**
179
- * @internal
180
- */
181
- const filterSensitiveLog: (obj: ResourceAlreadyExistsException) => any;
182
- }
183
141
  export interface CreateLogGroupRequest {
184
142
  /**
185
143
  * <p>The name of the log group.</p>
@@ -233,12 +191,6 @@ export interface DataAlreadyAcceptedException extends __SmithyException, $Metada
233
191
  expectedSequenceToken?: string;
234
192
  message?: string;
235
193
  }
236
- export declare namespace DataAlreadyAcceptedException {
237
- /**
238
- * @internal
239
- */
240
- const filterSensitiveLog: (obj: DataAlreadyAcceptedException) => any;
241
- }
242
194
  export interface DeleteDestinationRequest {
243
195
  /**
244
196
  * <p>The name of the destination.</p>
@@ -1685,12 +1637,6 @@ export interface InvalidSequenceTokenException extends __SmithyException, $Metad
1685
1637
  expectedSequenceToken?: string;
1686
1638
  message?: string;
1687
1639
  }
1688
- export declare namespace InvalidSequenceTokenException {
1689
- /**
1690
- * @internal
1691
- */
1692
- const filterSensitiveLog: (obj: InvalidSequenceTokenException) => any;
1693
- }
1694
1640
  export interface ListTagsLogGroupRequest {
1695
1641
  /**
1696
1642
  * <p>The name of the log group.</p>
@@ -1760,6 +1706,20 @@ export interface PutDestinationPolicyRequest {
1760
1706
  * to the associated destination. This can be up to 5120 bytes.</p>
1761
1707
  */
1762
1708
  accessPolicy: string | undefined;
1709
+ /**
1710
+ * <p>Specify true if you are updating an existing destination policy to grant permission to
1711
+ * an organization ID instead of granting permission to individual AWS accounts. Before
1712
+ * you update a destination policy this way, you must first update the subscription
1713
+ * filters in the accounts that send logs to this destination. If you do not, the subscription
1714
+ * filters might stop working. By specifying <code>true</code>
1715
+ * for <code>forceUpdate</code>, you are affirming that you have already updated the subscription
1716
+ * filters.
1717
+ * For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Cross-Account-Log_Subscription-Update.html">
1718
+ * Updating an existing cross-account subscription</a>
1719
+ * </p>
1720
+ * <p>If you omit this parameter, the default of <code>false</code> is used.</p>
1721
+ */
1722
+ forceUpdate?: boolean;
1763
1723
  }
1764
1724
  export declare namespace PutDestinationPolicyRequest {
1765
1725
  /**
@@ -1842,12 +1802,6 @@ export interface UnrecognizedClientException extends __SmithyException, $Metadat
1842
1802
  $fault: "client";
1843
1803
  message?: string;
1844
1804
  }
1845
- export declare namespace UnrecognizedClientException {
1846
- /**
1847
- * @internal
1848
- */
1849
- const filterSensitiveLog: (obj: UnrecognizedClientException) => any;
1850
- }
1851
1805
  export interface PutMetricFilterRequest {
1852
1806
  /**
1853
1807
  * <p>The name of the log group.</p>
@@ -1933,7 +1887,7 @@ export interface PutResourcePolicyRequest {
1933
1887
  * and <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-sourceaccount">aws:SourceAccount</a>
1934
1888
  * condition context keys.</p>
1935
1889
  * <p>In the example resource policy, you would replace the value of <code>SourceArn</code> with the resource making the
1936
- * call from Route 53 to CloudWatch Logs and replace the value of <code>SourceAccount</code> with
1890
+ * call from Route 53 to CloudWatch Logs and replace the value of <code>SourceAccount</code> with
1937
1891
  * the Amazon Web Services account ID making that call.</p>
1938
1892
  * <p></p>
1939
1893
  * <p>
@@ -2118,12 +2072,6 @@ export interface MalformedQueryException extends __SmithyException, $MetadataBea
2118
2072
  queryCompileError?: QueryCompileError;
2119
2073
  message?: string;
2120
2074
  }
2121
- export declare namespace MalformedQueryException {
2122
- /**
2123
- * @internal
2124
- */
2125
- const filterSensitiveLog: (obj: MalformedQueryException) => any;
2126
- }
2127
2075
  export interface StartQueryRequest {
2128
2076
  /**
2129
2077
  * <p>The log group on which to perform the query.</p>
@@ -1,10 +1,11 @@
1
- import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
1
+ import { FetchHttpHandler as RequestHandler } from "@aws-sdk/fetch-http-handler";
2
2
  import { CloudWatchLogsClientConfig } from "./CloudWatchLogsClient";
3
3
  /**
4
4
  * @internal
5
5
  */
6
6
  export declare const getRuntimeConfig: (config: CloudWatchLogsClientConfig) => {
7
7
  runtime: string;
8
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
8
9
  base64Decoder: import("@aws-sdk/types").Decoder;
9
10
  base64Encoder: import("@aws-sdk/types").Encoder;
10
11
  bodyLengthChecker: (body: any) => number | undefined;
@@ -12,7 +13,7 @@ export declare const getRuntimeConfig: (config: CloudWatchLogsClientConfig) => {
12
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
13
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
14
15
  region: string | import("@aws-sdk/types").Provider<any>;
15
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | FetchHttpHandler;
16
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
16
17
  retryMode: string | import("@aws-sdk/types").Provider<string>;
17
18
  sha256: import("@aws-sdk/types").HashConstructor;
18
19
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -1,18 +1,19 @@
1
- import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
1
+ import { NodeHttpHandler as RequestHandler } from "@aws-sdk/node-http-handler";
2
2
  import { CloudWatchLogsClientConfig } from "./CloudWatchLogsClient";
3
3
  /**
4
4
  * @internal
5
5
  */
6
6
  export declare const getRuntimeConfig: (config: CloudWatchLogsClientConfig) => {
7
7
  runtime: string;
8
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
8
9
  base64Decoder: import("@aws-sdk/types").Decoder;
9
10
  base64Encoder: import("@aws-sdk/types").Encoder;
10
11
  bodyLengthChecker: (body: any) => number | undefined;
11
- credentialDefaultProvider: import("@aws-sdk/client-sts/dist-types/defaultStsRoleAssumers").DefaultCredentialProvider;
12
+ credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
12
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
13
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
14
15
  region: string | import("@aws-sdk/types").Provider<string>;
15
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | NodeHttpHandler;
16
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
16
17
  retryMode: string | import("@aws-sdk/types").Provider<string>;
17
18
  sha256: import("@aws-sdk/types").HashConstructor;
18
19
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -25,6 +25,7 @@ export declare const getRuntimeConfig: (config: CloudWatchLogsClientConfig) => {
25
25
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
26
26
  regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
27
27
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
28
+ defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
28
29
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
29
30
  tls?: boolean | undefined;
30
31
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
@@ -4,7 +4,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
4
4
  import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
- import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
7
+ import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
8
  import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { AssociateKmsKeyCommandInput, AssociateKmsKeyCommandOutput } from "./commands/AssociateKmsKeyCommand";
10
10
  import { CancelExportTaskCommandInput, CancelExportTaskCommandOutput } from "./commands/CancelExportTaskCommand";
@@ -93,6 +93,8 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
93
93
  regionInfoProvider?: RegionInfoProvider;
94
94
 
95
95
  defaultUserAgentProvider?: Provider<__UserAgent>;
96
+
97
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
96
98
  }
97
99
  declare type CloudWatchLogsClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
98
100
 
@@ -15,40 +15,24 @@ export interface InvalidParameterException extends __SmithyException, $MetadataB
15
15
  $fault: "client";
16
16
  message?: string;
17
17
  }
18
- export declare namespace InvalidParameterException {
19
-
20
- const filterSensitiveLog: (obj: InvalidParameterException) => any;
21
- }
22
18
 
23
19
  export interface OperationAbortedException extends __SmithyException, $MetadataBearer {
24
20
  name: "OperationAbortedException";
25
21
  $fault: "client";
26
22
  message?: string;
27
23
  }
28
- export declare namespace OperationAbortedException {
29
-
30
- const filterSensitiveLog: (obj: OperationAbortedException) => any;
31
- }
32
24
 
33
25
  export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
34
26
  name: "ResourceNotFoundException";
35
27
  $fault: "client";
36
28
  message?: string;
37
29
  }
38
- export declare namespace ResourceNotFoundException {
39
-
40
- const filterSensitiveLog: (obj: ResourceNotFoundException) => any;
41
- }
42
30
 
43
31
  export interface ServiceUnavailableException extends __SmithyException, $MetadataBearer {
44
32
  name: "ServiceUnavailableException";
45
33
  $fault: "server";
46
34
  message?: string;
47
35
  }
48
- export declare namespace ServiceUnavailableException {
49
-
50
- const filterSensitiveLog: (obj: ServiceUnavailableException) => any;
51
- }
52
36
  export interface CancelExportTaskRequest {
53
37
 
54
38
  taskId: string | undefined;
@@ -63,10 +47,6 @@ export interface InvalidOperationException extends __SmithyException, $MetadataB
63
47
  $fault: "client";
64
48
  message?: string;
65
49
  }
66
- export declare namespace InvalidOperationException {
67
-
68
- const filterSensitiveLog: (obj: InvalidOperationException) => any;
69
- }
70
50
  export interface CreateExportTaskRequest {
71
51
 
72
52
  taskName?: string;
@@ -101,20 +81,12 @@ export interface LimitExceededException extends __SmithyException, $MetadataBear
101
81
  $fault: "client";
102
82
  message?: string;
103
83
  }
104
- export declare namespace LimitExceededException {
105
-
106
- const filterSensitiveLog: (obj: LimitExceededException) => any;
107
- }
108
84
 
109
85
  export interface ResourceAlreadyExistsException extends __SmithyException, $MetadataBearer {
110
86
  name: "ResourceAlreadyExistsException";
111
87
  $fault: "client";
112
88
  message?: string;
113
89
  }
114
- export declare namespace ResourceAlreadyExistsException {
115
-
116
- const filterSensitiveLog: (obj: ResourceAlreadyExistsException) => any;
117
- }
118
90
  export interface CreateLogGroupRequest {
119
91
 
120
92
  logGroupName: string | undefined;
@@ -146,10 +118,6 @@ export interface DataAlreadyAcceptedException extends __SmithyException, $Metada
146
118
  expectedSequenceToken?: string;
147
119
  message?: string;
148
120
  }
149
- export declare namespace DataAlreadyAcceptedException {
150
-
151
- const filterSensitiveLog: (obj: DataAlreadyAcceptedException) => any;
152
- }
153
121
  export interface DeleteDestinationRequest {
154
122
 
155
123
  destinationName: string | undefined;
@@ -938,10 +906,6 @@ export interface InvalidSequenceTokenException extends __SmithyException, $Metad
938
906
  expectedSequenceToken?: string;
939
907
  message?: string;
940
908
  }
941
- export declare namespace InvalidSequenceTokenException {
942
-
943
- const filterSensitiveLog: (obj: InvalidSequenceTokenException) => any;
944
- }
945
909
  export interface ListTagsLogGroupRequest {
946
910
 
947
911
  logGroupName: string | undefined;
@@ -985,6 +949,8 @@ export interface PutDestinationPolicyRequest {
985
949
  destinationName: string | undefined;
986
950
 
987
951
  accessPolicy: string | undefined;
952
+
953
+ forceUpdate?: boolean;
988
954
  }
989
955
  export declare namespace PutDestinationPolicyRequest {
990
956
 
@@ -1033,10 +999,6 @@ export interface UnrecognizedClientException extends __SmithyException, $Metadat
1033
999
  $fault: "client";
1034
1000
  message?: string;
1035
1001
  }
1036
- export declare namespace UnrecognizedClientException {
1037
-
1038
- const filterSensitiveLog: (obj: UnrecognizedClientException) => any;
1039
- }
1040
1002
  export interface PutMetricFilterRequest {
1041
1003
 
1042
1004
  logGroupName: string | undefined;
@@ -1149,10 +1111,6 @@ export interface MalformedQueryException extends __SmithyException, $MetadataBea
1149
1111
  queryCompileError?: QueryCompileError;
1150
1112
  message?: string;
1151
1113
  }
1152
- export declare namespace MalformedQueryException {
1153
-
1154
- const filterSensitiveLog: (obj: MalformedQueryException) => any;
1155
- }
1156
1114
  export interface StartQueryRequest {
1157
1115
 
1158
1116
  logGroupName?: string;
@@ -1,8 +1,9 @@
1
- import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
1
+ import { FetchHttpHandler as RequestHandler } from "@aws-sdk/fetch-http-handler";
2
2
  import { CloudWatchLogsClientConfig } from "./CloudWatchLogsClient";
3
3
 
4
4
  export declare const getRuntimeConfig: (config: CloudWatchLogsClientConfig) => {
5
5
  runtime: string;
6
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
6
7
  base64Decoder: import("@aws-sdk/types").Decoder;
7
8
  base64Encoder: import("@aws-sdk/types").Encoder;
8
9
  bodyLengthChecker: (body: any) => number | undefined;
@@ -10,7 +11,7 @@ export declare const getRuntimeConfig: (config: CloudWatchLogsClientConfig) => {
10
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
11
12
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
12
13
  region: string | import("@aws-sdk/types").Provider<any>;
13
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | FetchHttpHandler;
14
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
14
15
  retryMode: string | import("@aws-sdk/types").Provider<string>;
15
16
  sha256: import("@aws-sdk/types").HashConstructor;
16
17
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -1,16 +1,17 @@
1
- import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
1
+ import { NodeHttpHandler as RequestHandler } from "@aws-sdk/node-http-handler";
2
2
  import { CloudWatchLogsClientConfig } from "./CloudWatchLogsClient";
3
3
 
4
4
  export declare const getRuntimeConfig: (config: CloudWatchLogsClientConfig) => {
5
5
  runtime: string;
6
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
6
7
  base64Decoder: import("@aws-sdk/types").Decoder;
7
8
  base64Encoder: import("@aws-sdk/types").Encoder;
8
9
  bodyLengthChecker: (body: any) => number | undefined;
9
- credentialDefaultProvider: import("@aws-sdk/client-sts/dist-types/defaultStsRoleAssumers").DefaultCredentialProvider;
10
+ credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
10
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
11
12
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
12
13
  region: string | import("@aws-sdk/types").Provider<string>;
13
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | NodeHttpHandler;
14
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
14
15
  retryMode: string | import("@aws-sdk/types").Provider<string>;
15
16
  sha256: import("@aws-sdk/types").HashConstructor;
16
17
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -23,6 +23,7 @@ export declare const getRuntimeConfig: (config: CloudWatchLogsClientConfig) => {
23
23
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
24
24
  regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
25
25
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
26
+ defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
26
27
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
27
28
  tls?: boolean | undefined;
28
29
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
package/package.json CHANGED
@@ -1,18 +1,15 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cloudwatch-logs",
3
3
  "description": "AWS SDK for JavaScript Cloudwatch Logs Client for Node.js, Browser and React Native",
4
- "version": "3.43.0",
4
+ "version": "3.47.1",
5
5
  "scripts": {
6
- "build": "yarn build:cjs && yarn build:es && yarn build:types",
7
- "build:cjs": "tsc -p tsconfig.json",
8
- "build:docs": "yarn clean:docs && typedoc ./",
6
+ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
+ "build:cjs": "tsc -p tsconfig.cjs.json",
8
+ "build:docs": "typedoc",
9
9
  "build:es": "tsc -p tsconfig.es.json",
10
10
  "build:types": "tsc -p tsconfig.types.json",
11
- "clean": "yarn clean:dist && yarn clean:docs",
12
- "clean:dist": "rimraf ./dist",
13
- "clean:docs": "rimraf ./docs",
14
- "downlevel-dts": "downlevel-dts dist-types dist-types/ts3.4",
15
- "test": "exit 0"
11
+ "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
12
+ "clean": "rimraf ./dist-*"
16
13
  },
17
14
  "main": "./dist-cjs/index.js",
18
15
  "types": "./dist-types/index.d.ts",
@@ -21,48 +18,44 @@
21
18
  "dependencies": {
22
19
  "@aws-crypto/sha256-browser": "2.0.0",
23
20
  "@aws-crypto/sha256-js": "2.0.0",
24
- "@aws-sdk/client-sts": "3.43.0",
25
- "@aws-sdk/config-resolver": "3.40.0",
26
- "@aws-sdk/credential-provider-node": "3.41.0",
27
- "@aws-sdk/fetch-http-handler": "3.40.0",
28
- "@aws-sdk/hash-node": "3.40.0",
29
- "@aws-sdk/invalid-dependency": "3.40.0",
30
- "@aws-sdk/middleware-content-length": "3.40.0",
31
- "@aws-sdk/middleware-host-header": "3.40.0",
32
- "@aws-sdk/middleware-logger": "3.40.0",
33
- "@aws-sdk/middleware-retry": "3.40.0",
34
- "@aws-sdk/middleware-serde": "3.40.0",
35
- "@aws-sdk/middleware-signing": "3.40.0",
36
- "@aws-sdk/middleware-stack": "3.40.0",
37
- "@aws-sdk/middleware-user-agent": "3.40.0",
38
- "@aws-sdk/node-config-provider": "3.40.0",
39
- "@aws-sdk/node-http-handler": "3.40.0",
40
- "@aws-sdk/protocol-http": "3.40.0",
41
- "@aws-sdk/smithy-client": "3.41.0",
42
- "@aws-sdk/types": "3.40.0",
43
- "@aws-sdk/url-parser": "3.40.0",
44
- "@aws-sdk/util-base64-browser": "3.37.0",
45
- "@aws-sdk/util-base64-node": "3.37.0",
46
- "@aws-sdk/util-body-length-browser": "3.37.0",
47
- "@aws-sdk/util-body-length-node": "3.37.0",
48
- "@aws-sdk/util-user-agent-browser": "3.40.0",
49
- "@aws-sdk/util-user-agent-node": "3.40.0",
50
- "@aws-sdk/util-utf8-browser": "3.37.0",
51
- "@aws-sdk/util-utf8-node": "3.37.0",
21
+ "@aws-sdk/client-sts": "3.47.1",
22
+ "@aws-sdk/config-resolver": "3.47.1",
23
+ "@aws-sdk/credential-provider-node": "3.47.1",
24
+ "@aws-sdk/fetch-http-handler": "3.47.1",
25
+ "@aws-sdk/hash-node": "3.47.1",
26
+ "@aws-sdk/invalid-dependency": "3.47.1",
27
+ "@aws-sdk/middleware-content-length": "3.47.1",
28
+ "@aws-sdk/middleware-host-header": "3.47.1",
29
+ "@aws-sdk/middleware-logger": "3.47.1",
30
+ "@aws-sdk/middleware-retry": "3.47.1",
31
+ "@aws-sdk/middleware-serde": "3.47.1",
32
+ "@aws-sdk/middleware-signing": "3.47.1",
33
+ "@aws-sdk/middleware-stack": "3.47.1",
34
+ "@aws-sdk/middleware-user-agent": "3.47.1",
35
+ "@aws-sdk/node-config-provider": "3.47.1",
36
+ "@aws-sdk/node-http-handler": "3.47.1",
37
+ "@aws-sdk/protocol-http": "3.47.1",
38
+ "@aws-sdk/smithy-client": "3.47.1",
39
+ "@aws-sdk/types": "3.47.1",
40
+ "@aws-sdk/url-parser": "3.47.1",
41
+ "@aws-sdk/util-base64-browser": "3.47.1",
42
+ "@aws-sdk/util-base64-node": "3.47.1",
43
+ "@aws-sdk/util-body-length-browser": "3.47.1",
44
+ "@aws-sdk/util-body-length-node": "3.47.1",
45
+ "@aws-sdk/util-defaults-mode-browser": "3.47.1",
46
+ "@aws-sdk/util-defaults-mode-node": "3.47.1",
47
+ "@aws-sdk/util-user-agent-browser": "3.47.1",
48
+ "@aws-sdk/util-user-agent-node": "3.47.1",
49
+ "@aws-sdk/util-utf8-browser": "3.47.1",
50
+ "@aws-sdk/util-utf8-node": "3.47.1",
52
51
  "tslib": "^2.3.0"
53
52
  },
54
53
  "devDependencies": {
55
- "@aws-sdk/service-client-documentation-generator": "3.38.0",
56
- "@types/node": "^12.7.5",
57
- "downlevel-dts": "0.7.0",
58
- "jest": "^26.1.0",
59
- "rimraf": "^3.0.0",
60
- "ts-jest": "^26.4.1",
61
- "typedoc": "^0.19.2",
62
- "typescript": "~4.3.5"
54
+ "@aws-sdk/service-client-documentation-generator": "3.47.1",
55
+ "@types/node": "^12.7.5"
63
56
  },
64
57
  "engines": {
65
- "node": ">=10.0.0"
58
+ "node": ">=12.0.0"
66
59
  },
67
60
  "typesVersions": {
68
61
  "<4.0": {