@aws-sdk/client-lambda 3.45.0 → 3.47.2

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,51 @@
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.2](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.1...v3.47.2) (2022-01-21)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-lambda
9
+
10
+
11
+
12
+
13
+
14
+ ## [3.47.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.0-release-test-1...v3.47.1) (2022-01-20)
15
+
16
+ **Note:** Version bump only for package @aws-sdk/client-lambda
17
+
18
+
19
+
20
+
21
+
22
+ # [3.47.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.46.0...v3.47.0) (2022-01-15)
23
+
24
+
25
+ ### Features
26
+
27
+ * **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))
28
+
29
+
30
+
31
+
32
+
33
+ # [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
34
+
35
+
36
+ ### Bug Fixes
37
+
38
+ * **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))
39
+
40
+
41
+ ### Features
42
+
43
+ * **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))
44
+ * **clients:** update clients as of 2021/01/07 ([#3163](https://github.com/aws/aws-sdk-js-v3/issues/3163)) ([6648b07](https://github.com/aws/aws-sdk-js-v3/commit/6648b07ea97691d2fed55eab49831646543b648b))
45
+ * 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))
46
+
47
+
48
+
49
+
50
+
6
51
  # [3.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
7
52
 
8
53
 
@@ -3,36 +3,192 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.defaultRegionInfoProvider = void 0;
4
4
  const config_resolver_1 = require("@aws-sdk/config-resolver");
5
5
  const regionHash = {
6
- "us-east-1": {
6
+ "af-south-1": {
7
7
  variants: [
8
8
  {
9
- hostname: "lambda.us-east-1.amazonaws.com",
10
- tags: [],
9
+ hostname: "lambda.af-south-1.api.aws",
10
+ tags: ["dualstack"],
11
+ },
12
+ ],
13
+ },
14
+ "ap-east-1": {
15
+ variants: [
16
+ {
17
+ hostname: "lambda.ap-east-1.api.aws",
18
+ tags: ["dualstack"],
19
+ },
20
+ ],
21
+ },
22
+ "ap-northeast-1": {
23
+ variants: [
24
+ {
25
+ hostname: "lambda.ap-northeast-1.api.aws",
26
+ tags: ["dualstack"],
27
+ },
28
+ ],
29
+ },
30
+ "ap-northeast-2": {
31
+ variants: [
32
+ {
33
+ hostname: "lambda.ap-northeast-2.api.aws",
34
+ tags: ["dualstack"],
35
+ },
36
+ ],
37
+ },
38
+ "ap-northeast-3": {
39
+ variants: [
40
+ {
41
+ hostname: "lambda.ap-northeast-3.api.aws",
42
+ tags: ["dualstack"],
43
+ },
44
+ ],
45
+ },
46
+ "ap-south-1": {
47
+ variants: [
48
+ {
49
+ hostname: "lambda.ap-south-1.api.aws",
50
+ tags: ["dualstack"],
51
+ },
52
+ ],
53
+ },
54
+ "ap-southeast-1": {
55
+ variants: [
56
+ {
57
+ hostname: "lambda.ap-southeast-1.api.aws",
58
+ tags: ["dualstack"],
59
+ },
60
+ ],
61
+ },
62
+ "ap-southeast-2": {
63
+ variants: [
64
+ {
65
+ hostname: "lambda.ap-southeast-2.api.aws",
66
+ tags: ["dualstack"],
67
+ },
68
+ ],
69
+ },
70
+ "ap-southeast-3": {
71
+ variants: [
72
+ {
73
+ hostname: "lambda.ap-southeast-3.api.aws",
74
+ tags: ["dualstack"],
75
+ },
76
+ ],
77
+ },
78
+ "ca-central-1": {
79
+ variants: [
80
+ {
81
+ hostname: "lambda.ca-central-1.api.aws",
82
+ tags: ["dualstack"],
83
+ },
84
+ ],
85
+ },
86
+ "cn-north-1": {
87
+ variants: [
88
+ {
89
+ hostname: "lambda.cn-north-1.api.amazonwebservices.com.cn",
90
+ tags: ["dualstack"],
91
+ },
92
+ ],
93
+ },
94
+ "cn-northwest-1": {
95
+ variants: [
96
+ {
97
+ hostname: "lambda.cn-northwest-1.api.amazonwebservices.com.cn",
98
+ tags: ["dualstack"],
99
+ },
100
+ ],
101
+ },
102
+ "eu-central-1": {
103
+ variants: [
104
+ {
105
+ hostname: "lambda.eu-central-1.api.aws",
106
+ tags: ["dualstack"],
107
+ },
108
+ ],
109
+ },
110
+ "eu-north-1": {
111
+ variants: [
112
+ {
113
+ hostname: "lambda.eu-north-1.api.aws",
114
+ tags: ["dualstack"],
115
+ },
116
+ ],
117
+ },
118
+ "eu-south-1": {
119
+ variants: [
120
+ {
121
+ hostname: "lambda.eu-south-1.api.aws",
122
+ tags: ["dualstack"],
123
+ },
124
+ ],
125
+ },
126
+ "eu-west-1": {
127
+ variants: [
128
+ {
129
+ hostname: "lambda.eu-west-1.api.aws",
130
+ tags: ["dualstack"],
131
+ },
132
+ ],
133
+ },
134
+ "eu-west-2": {
135
+ variants: [
136
+ {
137
+ hostname: "lambda.eu-west-2.api.aws",
138
+ tags: ["dualstack"],
139
+ },
140
+ ],
141
+ },
142
+ "eu-west-3": {
143
+ variants: [
144
+ {
145
+ hostname: "lambda.eu-west-3.api.aws",
146
+ tags: ["dualstack"],
147
+ },
148
+ ],
149
+ },
150
+ "me-south-1": {
151
+ variants: [
152
+ {
153
+ hostname: "lambda.me-south-1.api.aws",
154
+ tags: ["dualstack"],
11
155
  },
156
+ ],
157
+ },
158
+ "sa-east-1": {
159
+ variants: [
160
+ {
161
+ hostname: "lambda.sa-east-1.api.aws",
162
+ tags: ["dualstack"],
163
+ },
164
+ ],
165
+ },
166
+ "us-east-1": {
167
+ variants: [
12
168
  {
13
169
  hostname: "lambda-fips.us-east-1.amazonaws.com",
14
170
  tags: ["fips"],
15
171
  },
172
+ {
173
+ hostname: "lambda.us-east-1.api.aws",
174
+ tags: ["dualstack"],
175
+ },
16
176
  ],
17
177
  },
18
178
  "us-east-2": {
19
179
  variants: [
20
- {
21
- hostname: "lambda.us-east-2.amazonaws.com",
22
- tags: [],
23
- },
24
180
  {
25
181
  hostname: "lambda-fips.us-east-2.amazonaws.com",
26
182
  tags: ["fips"],
27
183
  },
184
+ {
185
+ hostname: "lambda.us-east-2.api.aws",
186
+ tags: ["dualstack"],
187
+ },
28
188
  ],
29
189
  },
30
190
  "us-gov-east-1": {
31
191
  variants: [
32
- {
33
- hostname: "lambda.us-gov-east-1.amazonaws.com",
34
- tags: [],
35
- },
36
192
  {
37
193
  hostname: "lambda-fips.us-gov-east-1.amazonaws.com",
38
194
  tags: ["fips"],
@@ -41,10 +197,6 @@ const regionHash = {
41
197
  },
42
198
  "us-gov-west-1": {
43
199
  variants: [
44
- {
45
- hostname: "lambda.us-gov-west-1.amazonaws.com",
46
- tags: [],
47
- },
48
200
  {
49
201
  hostname: "lambda-fips.us-gov-west-1.amazonaws.com",
50
202
  tags: ["fips"],
@@ -53,26 +205,26 @@ const regionHash = {
53
205
  },
54
206
  "us-west-1": {
55
207
  variants: [
56
- {
57
- hostname: "lambda.us-west-1.amazonaws.com",
58
- tags: [],
59
- },
60
208
  {
61
209
  hostname: "lambda-fips.us-west-1.amazonaws.com",
62
210
  tags: ["fips"],
63
211
  },
212
+ {
213
+ hostname: "lambda.us-west-1.api.aws",
214
+ tags: ["dualstack"],
215
+ },
64
216
  ],
65
217
  },
66
218
  "us-west-2": {
67
219
  variants: [
68
- {
69
- hostname: "lambda.us-west-2.amazonaws.com",
70
- tags: [],
71
- },
72
220
  {
73
221
  hostname: "lambda-fips.us-west-2.amazonaws.com",
74
222
  tags: ["fips"],
75
223
  },
224
+ {
225
+ hostname: "lambda.us-west-2.api.aws",
226
+ tags: ["dualstack"],
227
+ },
76
228
  ],
77
229
  },
78
230
  };
@@ -1,9 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.VpcConfig = exports.TracingConfig = exports.TracingMode = exports.Runtime = exports.PackageType = exports.ImageConfig = exports.FileSystemConfig = exports.Environment = exports.DeadLetterConfig = exports.FunctionCode = exports.CodeVerificationFailedException = exports.CodeStorageExceededException = exports.CodeSigningConfigNotFoundException = exports.EventSourceMappingConfiguration = exports.CreateEventSourceMappingRequest = exports.EventSourcePosition = exports.SourceAccessConfiguration = exports.SourceAccessType = exports.SelfManagedEventSource = exports.EndPointType = exports.FunctionResponseType = exports.FilterCriteria = exports.Filter = exports.DestinationConfig = exports.OnSuccess = exports.OnFailure = exports.CreateCodeSigningConfigResponse = exports.CodeSigningConfig = exports.CreateCodeSigningConfigRequest = exports.CodeSigningPolicies = exports.CodeSigningPolicy = exports.CreateAliasRequest = exports.Architecture = exports.AllowedPublishers = exports.AliasConfiguration = exports.AliasRoutingConfiguration = exports.AddPermissionResponse = exports.AddPermissionRequest = exports.TooManyRequestsException = exports.ThrottleReason = exports.ServiceException = exports.ResourceNotFoundException = exports.ResourceConflictException = exports.PreconditionFailedException = exports.PolicyLengthExceededException = exports.InvalidParameterValueException = exports.AddLayerVersionPermissionResponse = exports.AddLayerVersionPermissionRequest = exports.AccountUsage = exports.AccountLimit = void 0;
4
- exports.GetPolicyResponse = exports.GetPolicyRequest = exports.GetLayerVersionPolicyResponse = exports.GetLayerVersionPolicyRequest = exports.GetLayerVersionByArnRequest = exports.GetLayerVersionResponse = exports.LayerVersionContentOutput = exports.GetLayerVersionRequest = exports.GetFunctionEventInvokeConfigRequest = exports.FunctionEventInvokeConfig = exports.GetFunctionConfigurationRequest = exports.GetFunctionConcurrencyResponse = exports.GetFunctionConcurrencyRequest = exports.GetFunctionCodeSigningConfigResponse = exports.GetFunctionCodeSigningConfigRequest = exports.GetFunctionResponse = exports.Concurrency = exports.FunctionCodeLocation = exports.GetFunctionRequest = exports.GetEventSourceMappingRequest = exports.GetCodeSigningConfigResponse = exports.GetCodeSigningConfigRequest = exports.GetAliasRequest = exports.GetAccountSettingsResponse = exports.GetAccountSettingsRequest = exports.DeleteProvisionedConcurrencyConfigRequest = exports.DeleteLayerVersionRequest = exports.DeleteFunctionEventInvokeConfigRequest = exports.DeleteFunctionConcurrencyRequest = exports.DeleteFunctionCodeSigningConfigRequest = exports.DeleteFunctionRequest = exports.ResourceInUseException = exports.DeleteEventSourceMappingRequest = exports.DeleteCodeSigningConfigResponse = exports.DeleteCodeSigningConfigRequest = exports.DeleteAliasRequest = exports.InvalidCodeSignatureException = exports.FunctionConfiguration = exports.VpcConfigResponse = exports.TracingConfigResponse = exports.StateReasonCode = exports.State = exports.Layer = exports.LastUpdateStatusReasonCode = exports.LastUpdateStatus = exports.ImageConfigResponse = exports.ImageConfigError = exports.EnvironmentResponse = exports.EnvironmentError = exports.CreateFunctionRequest = void 0;
5
- exports.ListLayerVersionsResponse = exports.ListLayerVersionsRequest = exports.ListLayersResponse = exports.LayersListItem = exports.LayerVersionsListItem = exports.ListLayersRequest = exports.ListFunctionsByCodeSigningConfigResponse = exports.ListFunctionsByCodeSigningConfigRequest = exports.ListFunctionsResponse = exports.ListFunctionsRequest = exports.FunctionVersion = exports.ListFunctionEventInvokeConfigsResponse = exports.ListFunctionEventInvokeConfigsRequest = exports.ListEventSourceMappingsResponse = exports.ListEventSourceMappingsRequest = exports.ListCodeSigningConfigsResponse = exports.ListCodeSigningConfigsRequest = exports.ListAliasesResponse = exports.ListAliasesRequest = exports.InvokeAsyncResponse = exports.InvokeAsyncRequest = exports.UnsupportedMediaTypeException = exports.SubnetIPAddressLimitReachedException = exports.ResourceNotReadyException = exports.RequestTooLargeException = exports.KMSNotFoundException = exports.KMSInvalidStateException = exports.KMSDisabledException = exports.KMSAccessDeniedException = exports.InvocationResponse = exports.InvocationRequest = exports.LogType = exports.InvocationType = exports.InvalidZipFileException = exports.InvalidSubnetIDException = exports.InvalidSecurityGroupIDException = exports.InvalidRuntimeException = exports.InvalidRequestContentException = exports.ENILimitReachedException = exports.EFSMountTimeoutException = exports.EFSMountFailureException = exports.EFSMountConnectivityException = exports.EFSIOException = exports.EC2UnexpectedException = exports.EC2ThrottledException = exports.EC2AccessDeniedException = exports.ProvisionedConcurrencyConfigNotFoundException = exports.GetProvisionedConcurrencyConfigResponse = exports.ProvisionedConcurrencyStatusEnum = exports.GetProvisionedConcurrencyConfigRequest = void 0;
6
- exports.UpdateFunctionEventInvokeConfigRequest = exports.UpdateFunctionConfigurationRequest = exports.UpdateFunctionCodeRequest = exports.UpdateEventSourceMappingRequest = exports.UpdateCodeSigningConfigResponse = exports.UpdateCodeSigningConfigRequest = exports.UpdateAliasRequest = exports.UntagResourceRequest = exports.TagResourceRequest = exports.RemovePermissionRequest = exports.RemoveLayerVersionPermissionRequest = exports.PutProvisionedConcurrencyConfigResponse = exports.PutProvisionedConcurrencyConfigRequest = exports.PutFunctionEventInvokeConfigRequest = exports.PutFunctionConcurrencyRequest = exports.PutFunctionCodeSigningConfigResponse = exports.PutFunctionCodeSigningConfigRequest = exports.PublishVersionRequest = exports.PublishLayerVersionResponse = exports.PublishLayerVersionRequest = exports.LayerVersionContentInput = exports.ListVersionsByFunctionResponse = exports.ListVersionsByFunctionRequest = exports.ListTagsResponse = exports.ListTagsRequest = exports.ListProvisionedConcurrencyConfigsResponse = exports.ProvisionedConcurrencyConfigListItem = exports.ListProvisionedConcurrencyConfigsRequest = void 0;
3
+ exports.StateReasonCode = exports.State = exports.Layer = exports.LastUpdateStatusReasonCode = exports.LastUpdateStatus = exports.ImageConfigResponse = exports.ImageConfigError = exports.EnvironmentResponse = exports.EnvironmentError = exports.CreateFunctionRequest = exports.VpcConfig = exports.TracingConfig = exports.TracingMode = exports.Runtime = exports.PackageType = exports.ImageConfig = exports.FileSystemConfig = exports.Environment = exports.DeadLetterConfig = exports.FunctionCode = exports.EventSourceMappingConfiguration = exports.CreateEventSourceMappingRequest = exports.EventSourcePosition = exports.SourceAccessConfiguration = exports.SourceAccessType = exports.SelfManagedEventSource = exports.EndPointType = exports.FunctionResponseType = exports.FilterCriteria = exports.Filter = exports.DestinationConfig = exports.OnSuccess = exports.OnFailure = exports.CreateCodeSigningConfigResponse = exports.CodeSigningConfig = exports.CreateCodeSigningConfigRequest = exports.CodeSigningPolicies = exports.CodeSigningPolicy = exports.CreateAliasRequest = exports.Architecture = exports.AllowedPublishers = exports.AliasConfiguration = exports.AliasRoutingConfiguration = exports.AddPermissionResponse = exports.AddPermissionRequest = exports.ThrottleReason = exports.AddLayerVersionPermissionResponse = exports.AddLayerVersionPermissionRequest = exports.AccountUsage = exports.AccountLimit = void 0;
4
+ exports.ListCodeSigningConfigsRequest = exports.ListAliasesResponse = exports.ListAliasesRequest = exports.InvokeAsyncResponse = exports.InvokeAsyncRequest = exports.InvocationResponse = exports.InvocationRequest = exports.LogType = exports.InvocationType = exports.GetProvisionedConcurrencyConfigResponse = exports.ProvisionedConcurrencyStatusEnum = exports.GetProvisionedConcurrencyConfigRequest = exports.GetPolicyResponse = exports.GetPolicyRequest = exports.GetLayerVersionPolicyResponse = exports.GetLayerVersionPolicyRequest = exports.GetLayerVersionByArnRequest = exports.GetLayerVersionResponse = exports.LayerVersionContentOutput = exports.GetLayerVersionRequest = exports.GetFunctionEventInvokeConfigRequest = exports.FunctionEventInvokeConfig = exports.GetFunctionConfigurationRequest = exports.GetFunctionConcurrencyResponse = exports.GetFunctionConcurrencyRequest = exports.GetFunctionCodeSigningConfigResponse = exports.GetFunctionCodeSigningConfigRequest = exports.GetFunctionResponse = exports.Concurrency = exports.FunctionCodeLocation = exports.GetFunctionRequest = exports.GetEventSourceMappingRequest = exports.GetCodeSigningConfigResponse = exports.GetCodeSigningConfigRequest = exports.GetAliasRequest = exports.GetAccountSettingsResponse = exports.GetAccountSettingsRequest = exports.DeleteProvisionedConcurrencyConfigRequest = exports.DeleteLayerVersionRequest = exports.DeleteFunctionEventInvokeConfigRequest = exports.DeleteFunctionConcurrencyRequest = exports.DeleteFunctionCodeSigningConfigRequest = exports.DeleteFunctionRequest = exports.DeleteEventSourceMappingRequest = exports.DeleteCodeSigningConfigResponse = exports.DeleteCodeSigningConfigRequest = exports.DeleteAliasRequest = exports.FunctionConfiguration = exports.VpcConfigResponse = exports.TracingConfigResponse = void 0;
5
+ exports.UpdateFunctionEventInvokeConfigRequest = exports.UpdateFunctionConfigurationRequest = exports.UpdateFunctionCodeRequest = exports.UpdateEventSourceMappingRequest = exports.UpdateCodeSigningConfigResponse = exports.UpdateCodeSigningConfigRequest = exports.UpdateAliasRequest = exports.UntagResourceRequest = exports.TagResourceRequest = exports.RemovePermissionRequest = exports.RemoveLayerVersionPermissionRequest = exports.PutProvisionedConcurrencyConfigResponse = exports.PutProvisionedConcurrencyConfigRequest = exports.PutFunctionEventInvokeConfigRequest = exports.PutFunctionConcurrencyRequest = exports.PutFunctionCodeSigningConfigResponse = exports.PutFunctionCodeSigningConfigRequest = exports.PublishVersionRequest = exports.PublishLayerVersionResponse = exports.PublishLayerVersionRequest = exports.LayerVersionContentInput = exports.ListVersionsByFunctionResponse = exports.ListVersionsByFunctionRequest = exports.ListTagsResponse = exports.ListTagsRequest = exports.ListProvisionedConcurrencyConfigsResponse = exports.ProvisionedConcurrencyConfigListItem = exports.ListProvisionedConcurrencyConfigsRequest = exports.ListLayerVersionsResponse = exports.ListLayerVersionsRequest = exports.ListLayersResponse = exports.LayersListItem = exports.LayerVersionsListItem = exports.ListLayersRequest = exports.ListFunctionsByCodeSigningConfigResponse = exports.ListFunctionsByCodeSigningConfigRequest = exports.ListFunctionsResponse = exports.ListFunctionsRequest = exports.FunctionVersion = exports.ListFunctionEventInvokeConfigsResponse = exports.ListFunctionEventInvokeConfigsRequest = exports.ListEventSourceMappingsResponse = exports.ListEventSourceMappingsRequest = exports.ListCodeSigningConfigsResponse = void 0;
7
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
8
7
  var AccountLimit;
9
8
  (function (AccountLimit) {
@@ -29,42 +28,6 @@ var AddLayerVersionPermissionResponse;
29
28
  ...obj,
30
29
  });
31
30
  })(AddLayerVersionPermissionResponse = exports.AddLayerVersionPermissionResponse || (exports.AddLayerVersionPermissionResponse = {}));
32
- var InvalidParameterValueException;
33
- (function (InvalidParameterValueException) {
34
- InvalidParameterValueException.filterSensitiveLog = (obj) => ({
35
- ...obj,
36
- });
37
- })(InvalidParameterValueException = exports.InvalidParameterValueException || (exports.InvalidParameterValueException = {}));
38
- var PolicyLengthExceededException;
39
- (function (PolicyLengthExceededException) {
40
- PolicyLengthExceededException.filterSensitiveLog = (obj) => ({
41
- ...obj,
42
- });
43
- })(PolicyLengthExceededException = exports.PolicyLengthExceededException || (exports.PolicyLengthExceededException = {}));
44
- var PreconditionFailedException;
45
- (function (PreconditionFailedException) {
46
- PreconditionFailedException.filterSensitiveLog = (obj) => ({
47
- ...obj,
48
- });
49
- })(PreconditionFailedException = exports.PreconditionFailedException || (exports.PreconditionFailedException = {}));
50
- var ResourceConflictException;
51
- (function (ResourceConflictException) {
52
- ResourceConflictException.filterSensitiveLog = (obj) => ({
53
- ...obj,
54
- });
55
- })(ResourceConflictException = exports.ResourceConflictException || (exports.ResourceConflictException = {}));
56
- var ResourceNotFoundException;
57
- (function (ResourceNotFoundException) {
58
- ResourceNotFoundException.filterSensitiveLog = (obj) => ({
59
- ...obj,
60
- });
61
- })(ResourceNotFoundException = exports.ResourceNotFoundException || (exports.ResourceNotFoundException = {}));
62
- var ServiceException;
63
- (function (ServiceException) {
64
- ServiceException.filterSensitiveLog = (obj) => ({
65
- ...obj,
66
- });
67
- })(ServiceException = exports.ServiceException || (exports.ServiceException = {}));
68
31
  var ThrottleReason;
69
32
  (function (ThrottleReason) {
70
33
  ThrottleReason["CallerRateLimitExceeded"] = "CallerRateLimitExceeded";
@@ -73,12 +36,6 @@ var ThrottleReason;
73
36
  ThrottleReason["ReservedFunctionConcurrentInvocationLimitExceeded"] = "ReservedFunctionConcurrentInvocationLimitExceeded";
74
37
  ThrottleReason["ReservedFunctionInvocationRateLimitExceeded"] = "ReservedFunctionInvocationRateLimitExceeded";
75
38
  })(ThrottleReason = exports.ThrottleReason || (exports.ThrottleReason = {}));
76
- var TooManyRequestsException;
77
- (function (TooManyRequestsException) {
78
- TooManyRequestsException.filterSensitiveLog = (obj) => ({
79
- ...obj,
80
- });
81
- })(TooManyRequestsException = exports.TooManyRequestsException || (exports.TooManyRequestsException = {}));
82
39
  var AddPermissionRequest;
83
40
  (function (AddPermissionRequest) {
84
41
  AddPermissionRequest.filterSensitiveLog = (obj) => ({
@@ -228,24 +185,6 @@ var EventSourceMappingConfiguration;
228
185
  ...obj,
229
186
  });
230
187
  })(EventSourceMappingConfiguration = exports.EventSourceMappingConfiguration || (exports.EventSourceMappingConfiguration = {}));
231
- var CodeSigningConfigNotFoundException;
232
- (function (CodeSigningConfigNotFoundException) {
233
- CodeSigningConfigNotFoundException.filterSensitiveLog = (obj) => ({
234
- ...obj,
235
- });
236
- })(CodeSigningConfigNotFoundException = exports.CodeSigningConfigNotFoundException || (exports.CodeSigningConfigNotFoundException = {}));
237
- var CodeStorageExceededException;
238
- (function (CodeStorageExceededException) {
239
- CodeStorageExceededException.filterSensitiveLog = (obj) => ({
240
- ...obj,
241
- });
242
- })(CodeStorageExceededException = exports.CodeStorageExceededException || (exports.CodeStorageExceededException = {}));
243
- var CodeVerificationFailedException;
244
- (function (CodeVerificationFailedException) {
245
- CodeVerificationFailedException.filterSensitiveLog = (obj) => ({
246
- ...obj,
247
- });
248
- })(CodeVerificationFailedException = exports.CodeVerificationFailedException || (exports.CodeVerificationFailedException = {}));
249
188
  var FunctionCode;
250
189
  (function (FunctionCode) {
251
190
  FunctionCode.filterSensitiveLog = (obj) => ({
@@ -435,12 +374,6 @@ var FunctionConfiguration;
435
374
  }),
436
375
  });
437
376
  })(FunctionConfiguration = exports.FunctionConfiguration || (exports.FunctionConfiguration = {}));
438
- var InvalidCodeSignatureException;
439
- (function (InvalidCodeSignatureException) {
440
- InvalidCodeSignatureException.filterSensitiveLog = (obj) => ({
441
- ...obj,
442
- });
443
- })(InvalidCodeSignatureException = exports.InvalidCodeSignatureException || (exports.InvalidCodeSignatureException = {}));
444
377
  var DeleteAliasRequest;
445
378
  (function (DeleteAliasRequest) {
446
379
  DeleteAliasRequest.filterSensitiveLog = (obj) => ({
@@ -465,12 +398,6 @@ var DeleteEventSourceMappingRequest;
465
398
  ...obj,
466
399
  });
467
400
  })(DeleteEventSourceMappingRequest = exports.DeleteEventSourceMappingRequest || (exports.DeleteEventSourceMappingRequest = {}));
468
- var ResourceInUseException;
469
- (function (ResourceInUseException) {
470
- ResourceInUseException.filterSensitiveLog = (obj) => ({
471
- ...obj,
472
- });
473
- })(ResourceInUseException = exports.ResourceInUseException || (exports.ResourceInUseException = {}));
474
401
  var DeleteFunctionRequest;
475
402
  (function (DeleteFunctionRequest) {
476
403
  DeleteFunctionRequest.filterSensitiveLog = (obj) => ({
@@ -676,90 +603,6 @@ var GetProvisionedConcurrencyConfigResponse;
676
603
  ...obj,
677
604
  });
678
605
  })(GetProvisionedConcurrencyConfigResponse = exports.GetProvisionedConcurrencyConfigResponse || (exports.GetProvisionedConcurrencyConfigResponse = {}));
679
- var ProvisionedConcurrencyConfigNotFoundException;
680
- (function (ProvisionedConcurrencyConfigNotFoundException) {
681
- ProvisionedConcurrencyConfigNotFoundException.filterSensitiveLog = (obj) => ({
682
- ...obj,
683
- });
684
- })(ProvisionedConcurrencyConfigNotFoundException = exports.ProvisionedConcurrencyConfigNotFoundException || (exports.ProvisionedConcurrencyConfigNotFoundException = {}));
685
- var EC2AccessDeniedException;
686
- (function (EC2AccessDeniedException) {
687
- EC2AccessDeniedException.filterSensitiveLog = (obj) => ({
688
- ...obj,
689
- });
690
- })(EC2AccessDeniedException = exports.EC2AccessDeniedException || (exports.EC2AccessDeniedException = {}));
691
- var EC2ThrottledException;
692
- (function (EC2ThrottledException) {
693
- EC2ThrottledException.filterSensitiveLog = (obj) => ({
694
- ...obj,
695
- });
696
- })(EC2ThrottledException = exports.EC2ThrottledException || (exports.EC2ThrottledException = {}));
697
- var EC2UnexpectedException;
698
- (function (EC2UnexpectedException) {
699
- EC2UnexpectedException.filterSensitiveLog = (obj) => ({
700
- ...obj,
701
- });
702
- })(EC2UnexpectedException = exports.EC2UnexpectedException || (exports.EC2UnexpectedException = {}));
703
- var EFSIOException;
704
- (function (EFSIOException) {
705
- EFSIOException.filterSensitiveLog = (obj) => ({
706
- ...obj,
707
- });
708
- })(EFSIOException = exports.EFSIOException || (exports.EFSIOException = {}));
709
- var EFSMountConnectivityException;
710
- (function (EFSMountConnectivityException) {
711
- EFSMountConnectivityException.filterSensitiveLog = (obj) => ({
712
- ...obj,
713
- });
714
- })(EFSMountConnectivityException = exports.EFSMountConnectivityException || (exports.EFSMountConnectivityException = {}));
715
- var EFSMountFailureException;
716
- (function (EFSMountFailureException) {
717
- EFSMountFailureException.filterSensitiveLog = (obj) => ({
718
- ...obj,
719
- });
720
- })(EFSMountFailureException = exports.EFSMountFailureException || (exports.EFSMountFailureException = {}));
721
- var EFSMountTimeoutException;
722
- (function (EFSMountTimeoutException) {
723
- EFSMountTimeoutException.filterSensitiveLog = (obj) => ({
724
- ...obj,
725
- });
726
- })(EFSMountTimeoutException = exports.EFSMountTimeoutException || (exports.EFSMountTimeoutException = {}));
727
- var ENILimitReachedException;
728
- (function (ENILimitReachedException) {
729
- ENILimitReachedException.filterSensitiveLog = (obj) => ({
730
- ...obj,
731
- });
732
- })(ENILimitReachedException = exports.ENILimitReachedException || (exports.ENILimitReachedException = {}));
733
- var InvalidRequestContentException;
734
- (function (InvalidRequestContentException) {
735
- InvalidRequestContentException.filterSensitiveLog = (obj) => ({
736
- ...obj,
737
- });
738
- })(InvalidRequestContentException = exports.InvalidRequestContentException || (exports.InvalidRequestContentException = {}));
739
- var InvalidRuntimeException;
740
- (function (InvalidRuntimeException) {
741
- InvalidRuntimeException.filterSensitiveLog = (obj) => ({
742
- ...obj,
743
- });
744
- })(InvalidRuntimeException = exports.InvalidRuntimeException || (exports.InvalidRuntimeException = {}));
745
- var InvalidSecurityGroupIDException;
746
- (function (InvalidSecurityGroupIDException) {
747
- InvalidSecurityGroupIDException.filterSensitiveLog = (obj) => ({
748
- ...obj,
749
- });
750
- })(InvalidSecurityGroupIDException = exports.InvalidSecurityGroupIDException || (exports.InvalidSecurityGroupIDException = {}));
751
- var InvalidSubnetIDException;
752
- (function (InvalidSubnetIDException) {
753
- InvalidSubnetIDException.filterSensitiveLog = (obj) => ({
754
- ...obj,
755
- });
756
- })(InvalidSubnetIDException = exports.InvalidSubnetIDException || (exports.InvalidSubnetIDException = {}));
757
- var InvalidZipFileException;
758
- (function (InvalidZipFileException) {
759
- InvalidZipFileException.filterSensitiveLog = (obj) => ({
760
- ...obj,
761
- });
762
- })(InvalidZipFileException = exports.InvalidZipFileException || (exports.InvalidZipFileException = {}));
763
606
  var InvocationType;
764
607
  (function (InvocationType) {
765
608
  InvocationType["DryRun"] = "DryRun";
@@ -785,54 +628,6 @@ var InvocationResponse;
785
628
  ...(obj.Payload && { Payload: smithy_client_1.SENSITIVE_STRING }),
786
629
  });
787
630
  })(InvocationResponse = exports.InvocationResponse || (exports.InvocationResponse = {}));
788
- var KMSAccessDeniedException;
789
- (function (KMSAccessDeniedException) {
790
- KMSAccessDeniedException.filterSensitiveLog = (obj) => ({
791
- ...obj,
792
- });
793
- })(KMSAccessDeniedException = exports.KMSAccessDeniedException || (exports.KMSAccessDeniedException = {}));
794
- var KMSDisabledException;
795
- (function (KMSDisabledException) {
796
- KMSDisabledException.filterSensitiveLog = (obj) => ({
797
- ...obj,
798
- });
799
- })(KMSDisabledException = exports.KMSDisabledException || (exports.KMSDisabledException = {}));
800
- var KMSInvalidStateException;
801
- (function (KMSInvalidStateException) {
802
- KMSInvalidStateException.filterSensitiveLog = (obj) => ({
803
- ...obj,
804
- });
805
- })(KMSInvalidStateException = exports.KMSInvalidStateException || (exports.KMSInvalidStateException = {}));
806
- var KMSNotFoundException;
807
- (function (KMSNotFoundException) {
808
- KMSNotFoundException.filterSensitiveLog = (obj) => ({
809
- ...obj,
810
- });
811
- })(KMSNotFoundException = exports.KMSNotFoundException || (exports.KMSNotFoundException = {}));
812
- var RequestTooLargeException;
813
- (function (RequestTooLargeException) {
814
- RequestTooLargeException.filterSensitiveLog = (obj) => ({
815
- ...obj,
816
- });
817
- })(RequestTooLargeException = exports.RequestTooLargeException || (exports.RequestTooLargeException = {}));
818
- var ResourceNotReadyException;
819
- (function (ResourceNotReadyException) {
820
- ResourceNotReadyException.filterSensitiveLog = (obj) => ({
821
- ...obj,
822
- });
823
- })(ResourceNotReadyException = exports.ResourceNotReadyException || (exports.ResourceNotReadyException = {}));
824
- var SubnetIPAddressLimitReachedException;
825
- (function (SubnetIPAddressLimitReachedException) {
826
- SubnetIPAddressLimitReachedException.filterSensitiveLog = (obj) => ({
827
- ...obj,
828
- });
829
- })(SubnetIPAddressLimitReachedException = exports.SubnetIPAddressLimitReachedException || (exports.SubnetIPAddressLimitReachedException = {}));
830
- var UnsupportedMediaTypeException;
831
- (function (UnsupportedMediaTypeException) {
832
- UnsupportedMediaTypeException.filterSensitiveLog = (obj) => ({
833
- ...obj,
834
- });
835
- })(UnsupportedMediaTypeException = exports.UnsupportedMediaTypeException || (exports.UnsupportedMediaTypeException = {}));
836
631
  var InvokeAsyncRequest;
837
632
  (function (InvokeAsyncRequest) {
838
633
  InvokeAsyncRequest.filterSensitiveLog = (obj) => ({
@@ -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),