@aws-sdk/client-lambda 3.46.0 → 3.47.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
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.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.46.0...v3.47.0) (2022-01-15)
7
+
8
+
9
+ ### Features
10
+
11
+ * **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))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
7
18
 
8
19
 
@@ -5,10 +5,6 @@ const config_resolver_1 = require("@aws-sdk/config-resolver");
5
5
  const regionHash = {
6
6
  "af-south-1": {
7
7
  variants: [
8
- {
9
- hostname: "lambda.af-south-1.amazonaws.com",
10
- tags: [],
11
- },
12
8
  {
13
9
  hostname: "lambda.af-south-1.api.aws",
14
10
  tags: ["dualstack"],
@@ -17,10 +13,6 @@ const regionHash = {
17
13
  },
18
14
  "ap-east-1": {
19
15
  variants: [
20
- {
21
- hostname: "lambda.ap-east-1.amazonaws.com",
22
- tags: [],
23
- },
24
16
  {
25
17
  hostname: "lambda.ap-east-1.api.aws",
26
18
  tags: ["dualstack"],
@@ -29,10 +21,6 @@ const regionHash = {
29
21
  },
30
22
  "ap-northeast-1": {
31
23
  variants: [
32
- {
33
- hostname: "lambda.ap-northeast-1.amazonaws.com",
34
- tags: [],
35
- },
36
24
  {
37
25
  hostname: "lambda.ap-northeast-1.api.aws",
38
26
  tags: ["dualstack"],
@@ -41,10 +29,6 @@ const regionHash = {
41
29
  },
42
30
  "ap-northeast-2": {
43
31
  variants: [
44
- {
45
- hostname: "lambda.ap-northeast-2.amazonaws.com",
46
- tags: [],
47
- },
48
32
  {
49
33
  hostname: "lambda.ap-northeast-2.api.aws",
50
34
  tags: ["dualstack"],
@@ -53,10 +37,6 @@ const regionHash = {
53
37
  },
54
38
  "ap-northeast-3": {
55
39
  variants: [
56
- {
57
- hostname: "lambda.ap-northeast-3.amazonaws.com",
58
- tags: [],
59
- },
60
40
  {
61
41
  hostname: "lambda.ap-northeast-3.api.aws",
62
42
  tags: ["dualstack"],
@@ -65,10 +45,6 @@ const regionHash = {
65
45
  },
66
46
  "ap-south-1": {
67
47
  variants: [
68
- {
69
- hostname: "lambda.ap-south-1.amazonaws.com",
70
- tags: [],
71
- },
72
48
  {
73
49
  hostname: "lambda.ap-south-1.api.aws",
74
50
  tags: ["dualstack"],
@@ -77,10 +53,6 @@ const regionHash = {
77
53
  },
78
54
  "ap-southeast-1": {
79
55
  variants: [
80
- {
81
- hostname: "lambda.ap-southeast-1.amazonaws.com",
82
- tags: [],
83
- },
84
56
  {
85
57
  hostname: "lambda.ap-southeast-1.api.aws",
86
58
  tags: ["dualstack"],
@@ -89,10 +61,6 @@ const regionHash = {
89
61
  },
90
62
  "ap-southeast-2": {
91
63
  variants: [
92
- {
93
- hostname: "lambda.ap-southeast-2.amazonaws.com",
94
- tags: [],
95
- },
96
64
  {
97
65
  hostname: "lambda.ap-southeast-2.api.aws",
98
66
  tags: ["dualstack"],
@@ -101,10 +69,6 @@ const regionHash = {
101
69
  },
102
70
  "ap-southeast-3": {
103
71
  variants: [
104
- {
105
- hostname: "lambda.ap-southeast-3.amazonaws.com",
106
- tags: [],
107
- },
108
72
  {
109
73
  hostname: "lambda.ap-southeast-3.api.aws",
110
74
  tags: ["dualstack"],
@@ -113,10 +77,6 @@ const regionHash = {
113
77
  },
114
78
  "ca-central-1": {
115
79
  variants: [
116
- {
117
- hostname: "lambda.ca-central-1.amazonaws.com",
118
- tags: [],
119
- },
120
80
  {
121
81
  hostname: "lambda.ca-central-1.api.aws",
122
82
  tags: ["dualstack"],
@@ -125,10 +85,6 @@ const regionHash = {
125
85
  },
126
86
  "cn-north-1": {
127
87
  variants: [
128
- {
129
- hostname: "lambda.cn-north-1.amazonaws.com.cn",
130
- tags: [],
131
- },
132
88
  {
133
89
  hostname: "lambda.cn-north-1.api.amazonwebservices.com.cn",
134
90
  tags: ["dualstack"],
@@ -137,10 +93,6 @@ const regionHash = {
137
93
  },
138
94
  "cn-northwest-1": {
139
95
  variants: [
140
- {
141
- hostname: "lambda.cn-northwest-1.amazonaws.com.cn",
142
- tags: [],
143
- },
144
96
  {
145
97
  hostname: "lambda.cn-northwest-1.api.amazonwebservices.com.cn",
146
98
  tags: ["dualstack"],
@@ -149,10 +101,6 @@ const regionHash = {
149
101
  },
150
102
  "eu-central-1": {
151
103
  variants: [
152
- {
153
- hostname: "lambda.eu-central-1.amazonaws.com",
154
- tags: [],
155
- },
156
104
  {
157
105
  hostname: "lambda.eu-central-1.api.aws",
158
106
  tags: ["dualstack"],
@@ -161,10 +109,6 @@ const regionHash = {
161
109
  },
162
110
  "eu-north-1": {
163
111
  variants: [
164
- {
165
- hostname: "lambda.eu-north-1.amazonaws.com",
166
- tags: [],
167
- },
168
112
  {
169
113
  hostname: "lambda.eu-north-1.api.aws",
170
114
  tags: ["dualstack"],
@@ -173,10 +117,6 @@ const regionHash = {
173
117
  },
174
118
  "eu-south-1": {
175
119
  variants: [
176
- {
177
- hostname: "lambda.eu-south-1.amazonaws.com",
178
- tags: [],
179
- },
180
120
  {
181
121
  hostname: "lambda.eu-south-1.api.aws",
182
122
  tags: ["dualstack"],
@@ -185,10 +125,6 @@ const regionHash = {
185
125
  },
186
126
  "eu-west-1": {
187
127
  variants: [
188
- {
189
- hostname: "lambda.eu-west-1.amazonaws.com",
190
- tags: [],
191
- },
192
128
  {
193
129
  hostname: "lambda.eu-west-1.api.aws",
194
130
  tags: ["dualstack"],
@@ -197,10 +133,6 @@ const regionHash = {
197
133
  },
198
134
  "eu-west-2": {
199
135
  variants: [
200
- {
201
- hostname: "lambda.eu-west-2.amazonaws.com",
202
- tags: [],
203
- },
204
136
  {
205
137
  hostname: "lambda.eu-west-2.api.aws",
206
138
  tags: ["dualstack"],
@@ -209,10 +141,6 @@ const regionHash = {
209
141
  },
210
142
  "eu-west-3": {
211
143
  variants: [
212
- {
213
- hostname: "lambda.eu-west-3.amazonaws.com",
214
- tags: [],
215
- },
216
144
  {
217
145
  hostname: "lambda.eu-west-3.api.aws",
218
146
  tags: ["dualstack"],
@@ -221,10 +149,6 @@ const regionHash = {
221
149
  },
222
150
  "me-south-1": {
223
151
  variants: [
224
- {
225
- hostname: "lambda.me-south-1.amazonaws.com",
226
- tags: [],
227
- },
228
152
  {
229
153
  hostname: "lambda.me-south-1.api.aws",
230
154
  tags: ["dualstack"],
@@ -233,10 +157,6 @@ const regionHash = {
233
157
  },
234
158
  "sa-east-1": {
235
159
  variants: [
236
- {
237
- hostname: "lambda.sa-east-1.amazonaws.com",
238
- tags: [],
239
- },
240
160
  {
241
161
  hostname: "lambda.sa-east-1.api.aws",
242
162
  tags: ["dualstack"],
@@ -245,10 +165,6 @@ const regionHash = {
245
165
  },
246
166
  "us-east-1": {
247
167
  variants: [
248
- {
249
- hostname: "lambda.us-east-1.amazonaws.com",
250
- tags: [],
251
- },
252
168
  {
253
169
  hostname: "lambda-fips.us-east-1.amazonaws.com",
254
170
  tags: ["fips"],
@@ -261,10 +177,6 @@ const regionHash = {
261
177
  },
262
178
  "us-east-2": {
263
179
  variants: [
264
- {
265
- hostname: "lambda.us-east-2.amazonaws.com",
266
- tags: [],
267
- },
268
180
  {
269
181
  hostname: "lambda-fips.us-east-2.amazonaws.com",
270
182
  tags: ["fips"],
@@ -277,10 +189,6 @@ const regionHash = {
277
189
  },
278
190
  "us-gov-east-1": {
279
191
  variants: [
280
- {
281
- hostname: "lambda.us-gov-east-1.amazonaws.com",
282
- tags: [],
283
- },
284
192
  {
285
193
  hostname: "lambda-fips.us-gov-east-1.amazonaws.com",
286
194
  tags: ["fips"],
@@ -289,10 +197,6 @@ const regionHash = {
289
197
  },
290
198
  "us-gov-west-1": {
291
199
  variants: [
292
- {
293
- hostname: "lambda.us-gov-west-1.amazonaws.com",
294
- tags: [],
295
- },
296
200
  {
297
201
  hostname: "lambda-fips.us-gov-west-1.amazonaws.com",
298
202
  tags: ["fips"],
@@ -301,10 +205,6 @@ const regionHash = {
301
205
  },
302
206
  "us-west-1": {
303
207
  variants: [
304
- {
305
- hostname: "lambda.us-west-1.amazonaws.com",
306
- tags: [],
307
- },
308
208
  {
309
209
  hostname: "lambda-fips.us-west-1.amazonaws.com",
310
210
  tags: ["fips"],
@@ -317,10 +217,6 @@ const regionHash = {
317
217
  },
318
218
  "us-west-2": {
319
219
  variants: [
320
- {
321
- hostname: "lambda.us-west-2.amazonaws.com",
322
- tags: [],
323
- },
324
220
  {
325
221
  hostname: "lambda-fips.us-west-2.amazonaws.com",
326
222
  tags: ["fips"],
@@ -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)),
@@ -15,13 +15,18 @@ const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
15
15
  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
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
19
+ const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
18
20
  const getRuntimeConfig = (config) => {
19
21
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
22
+ const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
23
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
20
24
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
21
25
  return {
22
26
  ...clientSharedValues,
23
27
  ...config,
24
28
  runtime: "node",
29
+ defaultsMode,
25
30
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
26
31
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
27
32
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
@@ -29,8 +34,11 @@ const getRuntimeConfig = (config) => {
29
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 }),
30
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),
31
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),
32
- requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(),
33
- 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
+ }),
34
42
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
35
43
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
36
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),