@aws-sdk/client-lambda 3.1068.0 → 3.1069.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/dist-cjs/auth/httpAuthSchemeProvider.js +9 -15
- package/dist-cjs/endpoint/bdd.js +2 -5
- package/dist-cjs/endpoint/endpointResolver.js +7 -11
- package/dist-cjs/index.js +366 -386
- package/dist-cjs/models/LambdaServiceException.js +4 -8
- package/dist-cjs/models/errors.js +95 -145
- package/dist-cjs/runtimeConfig.browser.js +24 -28
- package/dist-cjs/runtimeConfig.js +32 -36
- package/dist-cjs/runtimeConfig.native.js +4 -7
- package/dist-cjs/runtimeConfig.shared.js +20 -24
- package/dist-cjs/schemas/schemas_0.js +859 -559
- package/package.json +12 -12
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.LambdaServiceException =
|
|
4
|
-
const client_1 = require("@smithy/core/client");
|
|
5
|
-
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return client_1.ServiceException; } });
|
|
6
|
-
class LambdaServiceException extends client_1.ServiceException {
|
|
1
|
+
const { ServiceException: __ServiceException } = require("@smithy/core/client");
|
|
2
|
+
exports.__ServiceException = __ServiceException;
|
|
3
|
+
exports.LambdaServiceException = class LambdaServiceException extends __ServiceException {
|
|
7
4
|
constructor(options) {
|
|
8
5
|
super(options);
|
|
9
6
|
Object.setPrototypeOf(this, LambdaServiceException.prototype);
|
|
10
7
|
}
|
|
11
|
-
}
|
|
12
|
-
exports.LambdaServiceException = LambdaServiceException;
|
|
8
|
+
};
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.CallbackTimeoutException = exports.ProvisionedConcurrencyConfigNotFoundException = exports.UnsupportedMediaTypeException = exports.SubnetIPAddressLimitReachedException = exports.SnapStartTimeoutException = exports.SnapStartNotReadyException = exports.SnapStartException = exports.SerializedRequestEntityTooLargeException = exports.S3FilesMountTimeoutException = exports.S3FilesMountFailureException = exports.S3FilesMountConnectivityException = exports.ResourceNotReadyException = exports.RequestTooLargeException = exports.RecursiveInvocationException = exports.NoPublishedVersionException = exports.KMSNotFoundException = exports.KMSInvalidStateException = exports.KMSDisabledException = exports.KMSAccessDeniedException = 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.DurableExecutionAlreadyStartedException = exports.InvalidCodeSignatureException = exports.FunctionVersionsPerCapacityProviderLimitExceededException = exports.CodeVerificationFailedException = exports.CodeStorageExceededException = exports.CodeSigningConfigNotFoundException = exports.ResourceInUseException = exports.CapacityProviderLimitExceededException = exports.TooManyRequestsException = exports.ServiceException = exports.ResourceNotFoundException = exports.ResourceConflictException = exports.PreconditionFailedException = exports.PolicyLengthExceededException = exports.InvalidParameterValueException = void 0;
|
|
4
|
-
const LambdaServiceException_1 = require("./LambdaServiceException");
|
|
5
|
-
class InvalidParameterValueException extends LambdaServiceException_1.LambdaServiceException {
|
|
1
|
+
const { LambdaServiceException: __BaseException } = require("./LambdaServiceException");
|
|
2
|
+
exports.InvalidParameterValueException = class InvalidParameterValueException extends __BaseException {
|
|
6
3
|
name = "InvalidParameterValueException";
|
|
7
4
|
$fault = "client";
|
|
8
5
|
Type;
|
|
@@ -15,9 +12,8 @@ class InvalidParameterValueException extends LambdaServiceException_1.LambdaServ
|
|
|
15
12
|
Object.setPrototypeOf(this, InvalidParameterValueException.prototype);
|
|
16
13
|
this.Type = opts.Type;
|
|
17
14
|
}
|
|
18
|
-
}
|
|
19
|
-
exports.
|
|
20
|
-
class PolicyLengthExceededException extends LambdaServiceException_1.LambdaServiceException {
|
|
15
|
+
};
|
|
16
|
+
exports.PolicyLengthExceededException = class PolicyLengthExceededException extends __BaseException {
|
|
21
17
|
name = "PolicyLengthExceededException";
|
|
22
18
|
$fault = "client";
|
|
23
19
|
Type;
|
|
@@ -30,9 +26,8 @@ class PolicyLengthExceededException extends LambdaServiceException_1.LambdaServi
|
|
|
30
26
|
Object.setPrototypeOf(this, PolicyLengthExceededException.prototype);
|
|
31
27
|
this.Type = opts.Type;
|
|
32
28
|
}
|
|
33
|
-
}
|
|
34
|
-
exports.
|
|
35
|
-
class PreconditionFailedException extends LambdaServiceException_1.LambdaServiceException {
|
|
29
|
+
};
|
|
30
|
+
exports.PreconditionFailedException = class PreconditionFailedException extends __BaseException {
|
|
36
31
|
name = "PreconditionFailedException";
|
|
37
32
|
$fault = "client";
|
|
38
33
|
Type;
|
|
@@ -45,9 +40,8 @@ class PreconditionFailedException extends LambdaServiceException_1.LambdaService
|
|
|
45
40
|
Object.setPrototypeOf(this, PreconditionFailedException.prototype);
|
|
46
41
|
this.Type = opts.Type;
|
|
47
42
|
}
|
|
48
|
-
}
|
|
49
|
-
exports.
|
|
50
|
-
class ResourceConflictException extends LambdaServiceException_1.LambdaServiceException {
|
|
43
|
+
};
|
|
44
|
+
exports.ResourceConflictException = class ResourceConflictException extends __BaseException {
|
|
51
45
|
name = "ResourceConflictException";
|
|
52
46
|
$fault = "client";
|
|
53
47
|
Type;
|
|
@@ -60,9 +54,8 @@ class ResourceConflictException extends LambdaServiceException_1.LambdaServiceEx
|
|
|
60
54
|
Object.setPrototypeOf(this, ResourceConflictException.prototype);
|
|
61
55
|
this.Type = opts.Type;
|
|
62
56
|
}
|
|
63
|
-
}
|
|
64
|
-
exports.
|
|
65
|
-
class ResourceNotFoundException extends LambdaServiceException_1.LambdaServiceException {
|
|
57
|
+
};
|
|
58
|
+
exports.ResourceNotFoundException = class ResourceNotFoundException extends __BaseException {
|
|
66
59
|
name = "ResourceNotFoundException";
|
|
67
60
|
$fault = "client";
|
|
68
61
|
Type;
|
|
@@ -77,9 +70,8 @@ class ResourceNotFoundException extends LambdaServiceException_1.LambdaServiceEx
|
|
|
77
70
|
this.Type = opts.Type;
|
|
78
71
|
this.Message = opts.Message;
|
|
79
72
|
}
|
|
80
|
-
}
|
|
81
|
-
exports.
|
|
82
|
-
class ServiceException extends LambdaServiceException_1.LambdaServiceException {
|
|
73
|
+
};
|
|
74
|
+
exports.ServiceException = class ServiceException extends __BaseException {
|
|
83
75
|
name = "ServiceException";
|
|
84
76
|
$fault = "server";
|
|
85
77
|
Type;
|
|
@@ -94,9 +86,8 @@ class ServiceException extends LambdaServiceException_1.LambdaServiceException {
|
|
|
94
86
|
this.Type = opts.Type;
|
|
95
87
|
this.Message = opts.Message;
|
|
96
88
|
}
|
|
97
|
-
}
|
|
98
|
-
exports.
|
|
99
|
-
class TooManyRequestsException extends LambdaServiceException_1.LambdaServiceException {
|
|
89
|
+
};
|
|
90
|
+
exports.TooManyRequestsException = class TooManyRequestsException extends __BaseException {
|
|
100
91
|
name = "TooManyRequestsException";
|
|
101
92
|
$fault = "client";
|
|
102
93
|
retryAfterSeconds;
|
|
@@ -113,9 +104,8 @@ class TooManyRequestsException extends LambdaServiceException_1.LambdaServiceExc
|
|
|
113
104
|
this.Type = opts.Type;
|
|
114
105
|
this.Reason = opts.Reason;
|
|
115
106
|
}
|
|
116
|
-
}
|
|
117
|
-
exports.
|
|
118
|
-
class CapacityProviderLimitExceededException extends LambdaServiceException_1.LambdaServiceException {
|
|
107
|
+
};
|
|
108
|
+
exports.CapacityProviderLimitExceededException = class CapacityProviderLimitExceededException extends __BaseException {
|
|
119
109
|
name = "CapacityProviderLimitExceededException";
|
|
120
110
|
$fault = "client";
|
|
121
111
|
Type;
|
|
@@ -128,9 +118,8 @@ class CapacityProviderLimitExceededException extends LambdaServiceException_1.La
|
|
|
128
118
|
Object.setPrototypeOf(this, CapacityProviderLimitExceededException.prototype);
|
|
129
119
|
this.Type = opts.Type;
|
|
130
120
|
}
|
|
131
|
-
}
|
|
132
|
-
exports.
|
|
133
|
-
class ResourceInUseException extends LambdaServiceException_1.LambdaServiceException {
|
|
121
|
+
};
|
|
122
|
+
exports.ResourceInUseException = class ResourceInUseException extends __BaseException {
|
|
134
123
|
name = "ResourceInUseException";
|
|
135
124
|
$fault = "client";
|
|
136
125
|
Type;
|
|
@@ -145,9 +134,8 @@ class ResourceInUseException extends LambdaServiceException_1.LambdaServiceExcep
|
|
|
145
134
|
this.Type = opts.Type;
|
|
146
135
|
this.Message = opts.Message;
|
|
147
136
|
}
|
|
148
|
-
}
|
|
149
|
-
exports.
|
|
150
|
-
class CodeSigningConfigNotFoundException extends LambdaServiceException_1.LambdaServiceException {
|
|
137
|
+
};
|
|
138
|
+
exports.CodeSigningConfigNotFoundException = class CodeSigningConfigNotFoundException extends __BaseException {
|
|
151
139
|
name = "CodeSigningConfigNotFoundException";
|
|
152
140
|
$fault = "client";
|
|
153
141
|
Type;
|
|
@@ -162,9 +150,8 @@ class CodeSigningConfigNotFoundException extends LambdaServiceException_1.Lambda
|
|
|
162
150
|
this.Type = opts.Type;
|
|
163
151
|
this.Message = opts.Message;
|
|
164
152
|
}
|
|
165
|
-
}
|
|
166
|
-
exports.
|
|
167
|
-
class CodeStorageExceededException extends LambdaServiceException_1.LambdaServiceException {
|
|
153
|
+
};
|
|
154
|
+
exports.CodeStorageExceededException = class CodeStorageExceededException extends __BaseException {
|
|
168
155
|
name = "CodeStorageExceededException";
|
|
169
156
|
$fault = "client";
|
|
170
157
|
Type;
|
|
@@ -177,9 +164,8 @@ class CodeStorageExceededException extends LambdaServiceException_1.LambdaServic
|
|
|
177
164
|
Object.setPrototypeOf(this, CodeStorageExceededException.prototype);
|
|
178
165
|
this.Type = opts.Type;
|
|
179
166
|
}
|
|
180
|
-
}
|
|
181
|
-
exports.
|
|
182
|
-
class CodeVerificationFailedException extends LambdaServiceException_1.LambdaServiceException {
|
|
167
|
+
};
|
|
168
|
+
exports.CodeVerificationFailedException = class CodeVerificationFailedException extends __BaseException {
|
|
183
169
|
name = "CodeVerificationFailedException";
|
|
184
170
|
$fault = "client";
|
|
185
171
|
Type;
|
|
@@ -194,9 +180,8 @@ class CodeVerificationFailedException extends LambdaServiceException_1.LambdaSer
|
|
|
194
180
|
this.Type = opts.Type;
|
|
195
181
|
this.Message = opts.Message;
|
|
196
182
|
}
|
|
197
|
-
}
|
|
198
|
-
exports.
|
|
199
|
-
class FunctionVersionsPerCapacityProviderLimitExceededException extends LambdaServiceException_1.LambdaServiceException {
|
|
183
|
+
};
|
|
184
|
+
exports.FunctionVersionsPerCapacityProviderLimitExceededException = class FunctionVersionsPerCapacityProviderLimitExceededException extends __BaseException {
|
|
200
185
|
name = "FunctionVersionsPerCapacityProviderLimitExceededException";
|
|
201
186
|
$fault = "client";
|
|
202
187
|
Type;
|
|
@@ -209,9 +194,8 @@ class FunctionVersionsPerCapacityProviderLimitExceededException extends LambdaSe
|
|
|
209
194
|
Object.setPrototypeOf(this, FunctionVersionsPerCapacityProviderLimitExceededException.prototype);
|
|
210
195
|
this.Type = opts.Type;
|
|
211
196
|
}
|
|
212
|
-
}
|
|
213
|
-
exports.
|
|
214
|
-
class InvalidCodeSignatureException extends LambdaServiceException_1.LambdaServiceException {
|
|
197
|
+
};
|
|
198
|
+
exports.InvalidCodeSignatureException = class InvalidCodeSignatureException extends __BaseException {
|
|
215
199
|
name = "InvalidCodeSignatureException";
|
|
216
200
|
$fault = "client";
|
|
217
201
|
Type;
|
|
@@ -226,9 +210,8 @@ class InvalidCodeSignatureException extends LambdaServiceException_1.LambdaServi
|
|
|
226
210
|
this.Type = opts.Type;
|
|
227
211
|
this.Message = opts.Message;
|
|
228
212
|
}
|
|
229
|
-
}
|
|
230
|
-
exports.
|
|
231
|
-
class DurableExecutionAlreadyStartedException extends LambdaServiceException_1.LambdaServiceException {
|
|
213
|
+
};
|
|
214
|
+
exports.DurableExecutionAlreadyStartedException = class DurableExecutionAlreadyStartedException extends __BaseException {
|
|
232
215
|
name = "DurableExecutionAlreadyStartedException";
|
|
233
216
|
$fault = "client";
|
|
234
217
|
Type;
|
|
@@ -243,9 +226,8 @@ class DurableExecutionAlreadyStartedException extends LambdaServiceException_1.L
|
|
|
243
226
|
this.Type = opts.Type;
|
|
244
227
|
this.Message = opts.Message;
|
|
245
228
|
}
|
|
246
|
-
}
|
|
247
|
-
exports.
|
|
248
|
-
class EC2AccessDeniedException extends LambdaServiceException_1.LambdaServiceException {
|
|
229
|
+
};
|
|
230
|
+
exports.EC2AccessDeniedException = class EC2AccessDeniedException extends __BaseException {
|
|
249
231
|
name = "EC2AccessDeniedException";
|
|
250
232
|
$fault = "server";
|
|
251
233
|
Type;
|
|
@@ -260,9 +242,8 @@ class EC2AccessDeniedException extends LambdaServiceException_1.LambdaServiceExc
|
|
|
260
242
|
this.Type = opts.Type;
|
|
261
243
|
this.Message = opts.Message;
|
|
262
244
|
}
|
|
263
|
-
}
|
|
264
|
-
exports.
|
|
265
|
-
class EC2ThrottledException extends LambdaServiceException_1.LambdaServiceException {
|
|
245
|
+
};
|
|
246
|
+
exports.EC2ThrottledException = class EC2ThrottledException extends __BaseException {
|
|
266
247
|
name = "EC2ThrottledException";
|
|
267
248
|
$fault = "server";
|
|
268
249
|
Type;
|
|
@@ -277,9 +258,8 @@ class EC2ThrottledException extends LambdaServiceException_1.LambdaServiceExcept
|
|
|
277
258
|
this.Type = opts.Type;
|
|
278
259
|
this.Message = opts.Message;
|
|
279
260
|
}
|
|
280
|
-
}
|
|
281
|
-
exports.
|
|
282
|
-
class EC2UnexpectedException extends LambdaServiceException_1.LambdaServiceException {
|
|
261
|
+
};
|
|
262
|
+
exports.EC2UnexpectedException = class EC2UnexpectedException extends __BaseException {
|
|
283
263
|
name = "EC2UnexpectedException";
|
|
284
264
|
$fault = "server";
|
|
285
265
|
Type;
|
|
@@ -296,9 +276,8 @@ class EC2UnexpectedException extends LambdaServiceException_1.LambdaServiceExcep
|
|
|
296
276
|
this.Message = opts.Message;
|
|
297
277
|
this.EC2ErrorCode = opts.EC2ErrorCode;
|
|
298
278
|
}
|
|
299
|
-
}
|
|
300
|
-
exports.
|
|
301
|
-
class EFSIOException extends LambdaServiceException_1.LambdaServiceException {
|
|
279
|
+
};
|
|
280
|
+
exports.EFSIOException = class EFSIOException extends __BaseException {
|
|
302
281
|
name = "EFSIOException";
|
|
303
282
|
$fault = "client";
|
|
304
283
|
Type;
|
|
@@ -313,9 +292,8 @@ class EFSIOException extends LambdaServiceException_1.LambdaServiceException {
|
|
|
313
292
|
this.Type = opts.Type;
|
|
314
293
|
this.Message = opts.Message;
|
|
315
294
|
}
|
|
316
|
-
}
|
|
317
|
-
exports.
|
|
318
|
-
class EFSMountConnectivityException extends LambdaServiceException_1.LambdaServiceException {
|
|
295
|
+
};
|
|
296
|
+
exports.EFSMountConnectivityException = class EFSMountConnectivityException extends __BaseException {
|
|
319
297
|
name = "EFSMountConnectivityException";
|
|
320
298
|
$fault = "client";
|
|
321
299
|
Type;
|
|
@@ -330,9 +308,8 @@ class EFSMountConnectivityException extends LambdaServiceException_1.LambdaServi
|
|
|
330
308
|
this.Type = opts.Type;
|
|
331
309
|
this.Message = opts.Message;
|
|
332
310
|
}
|
|
333
|
-
}
|
|
334
|
-
exports.
|
|
335
|
-
class EFSMountFailureException extends LambdaServiceException_1.LambdaServiceException {
|
|
311
|
+
};
|
|
312
|
+
exports.EFSMountFailureException = class EFSMountFailureException extends __BaseException {
|
|
336
313
|
name = "EFSMountFailureException";
|
|
337
314
|
$fault = "client";
|
|
338
315
|
Type;
|
|
@@ -347,9 +324,8 @@ class EFSMountFailureException extends LambdaServiceException_1.LambdaServiceExc
|
|
|
347
324
|
this.Type = opts.Type;
|
|
348
325
|
this.Message = opts.Message;
|
|
349
326
|
}
|
|
350
|
-
}
|
|
351
|
-
exports.
|
|
352
|
-
class EFSMountTimeoutException extends LambdaServiceException_1.LambdaServiceException {
|
|
327
|
+
};
|
|
328
|
+
exports.EFSMountTimeoutException = class EFSMountTimeoutException extends __BaseException {
|
|
353
329
|
name = "EFSMountTimeoutException";
|
|
354
330
|
$fault = "client";
|
|
355
331
|
Type;
|
|
@@ -364,9 +340,8 @@ class EFSMountTimeoutException extends LambdaServiceException_1.LambdaServiceExc
|
|
|
364
340
|
this.Type = opts.Type;
|
|
365
341
|
this.Message = opts.Message;
|
|
366
342
|
}
|
|
367
|
-
}
|
|
368
|
-
exports.
|
|
369
|
-
class ENILimitReachedException extends LambdaServiceException_1.LambdaServiceException {
|
|
343
|
+
};
|
|
344
|
+
exports.ENILimitReachedException = class ENILimitReachedException extends __BaseException {
|
|
370
345
|
name = "ENILimitReachedException";
|
|
371
346
|
$fault = "server";
|
|
372
347
|
Type;
|
|
@@ -381,9 +356,8 @@ class ENILimitReachedException extends LambdaServiceException_1.LambdaServiceExc
|
|
|
381
356
|
this.Type = opts.Type;
|
|
382
357
|
this.Message = opts.Message;
|
|
383
358
|
}
|
|
384
|
-
}
|
|
385
|
-
exports.
|
|
386
|
-
class InvalidRequestContentException extends LambdaServiceException_1.LambdaServiceException {
|
|
359
|
+
};
|
|
360
|
+
exports.InvalidRequestContentException = class InvalidRequestContentException extends __BaseException {
|
|
387
361
|
name = "InvalidRequestContentException";
|
|
388
362
|
$fault = "client";
|
|
389
363
|
Type;
|
|
@@ -396,9 +370,8 @@ class InvalidRequestContentException extends LambdaServiceException_1.LambdaServ
|
|
|
396
370
|
Object.setPrototypeOf(this, InvalidRequestContentException.prototype);
|
|
397
371
|
this.Type = opts.Type;
|
|
398
372
|
}
|
|
399
|
-
}
|
|
400
|
-
exports.
|
|
401
|
-
class InvalidRuntimeException extends LambdaServiceException_1.LambdaServiceException {
|
|
373
|
+
};
|
|
374
|
+
exports.InvalidRuntimeException = class InvalidRuntimeException extends __BaseException {
|
|
402
375
|
name = "InvalidRuntimeException";
|
|
403
376
|
$fault = "server";
|
|
404
377
|
Type;
|
|
@@ -413,9 +386,8 @@ class InvalidRuntimeException extends LambdaServiceException_1.LambdaServiceExce
|
|
|
413
386
|
this.Type = opts.Type;
|
|
414
387
|
this.Message = opts.Message;
|
|
415
388
|
}
|
|
416
|
-
}
|
|
417
|
-
exports.
|
|
418
|
-
class InvalidSecurityGroupIDException extends LambdaServiceException_1.LambdaServiceException {
|
|
389
|
+
};
|
|
390
|
+
exports.InvalidSecurityGroupIDException = class InvalidSecurityGroupIDException extends __BaseException {
|
|
419
391
|
name = "InvalidSecurityGroupIDException";
|
|
420
392
|
$fault = "server";
|
|
421
393
|
Type;
|
|
@@ -430,9 +402,8 @@ class InvalidSecurityGroupIDException extends LambdaServiceException_1.LambdaSer
|
|
|
430
402
|
this.Type = opts.Type;
|
|
431
403
|
this.Message = opts.Message;
|
|
432
404
|
}
|
|
433
|
-
}
|
|
434
|
-
exports.
|
|
435
|
-
class InvalidSubnetIDException extends LambdaServiceException_1.LambdaServiceException {
|
|
405
|
+
};
|
|
406
|
+
exports.InvalidSubnetIDException = class InvalidSubnetIDException extends __BaseException {
|
|
436
407
|
name = "InvalidSubnetIDException";
|
|
437
408
|
$fault = "server";
|
|
438
409
|
Type;
|
|
@@ -447,9 +418,8 @@ class InvalidSubnetIDException extends LambdaServiceException_1.LambdaServiceExc
|
|
|
447
418
|
this.Type = opts.Type;
|
|
448
419
|
this.Message = opts.Message;
|
|
449
420
|
}
|
|
450
|
-
}
|
|
451
|
-
exports.
|
|
452
|
-
class InvalidZipFileException extends LambdaServiceException_1.LambdaServiceException {
|
|
421
|
+
};
|
|
422
|
+
exports.InvalidZipFileException = class InvalidZipFileException extends __BaseException {
|
|
453
423
|
name = "InvalidZipFileException";
|
|
454
424
|
$fault = "server";
|
|
455
425
|
Type;
|
|
@@ -464,9 +434,8 @@ class InvalidZipFileException extends LambdaServiceException_1.LambdaServiceExce
|
|
|
464
434
|
this.Type = opts.Type;
|
|
465
435
|
this.Message = opts.Message;
|
|
466
436
|
}
|
|
467
|
-
}
|
|
468
|
-
exports.
|
|
469
|
-
class KMSAccessDeniedException extends LambdaServiceException_1.LambdaServiceException {
|
|
437
|
+
};
|
|
438
|
+
exports.KMSAccessDeniedException = class KMSAccessDeniedException extends __BaseException {
|
|
470
439
|
name = "KMSAccessDeniedException";
|
|
471
440
|
$fault = "server";
|
|
472
441
|
Type;
|
|
@@ -481,9 +450,8 @@ class KMSAccessDeniedException extends LambdaServiceException_1.LambdaServiceExc
|
|
|
481
450
|
this.Type = opts.Type;
|
|
482
451
|
this.Message = opts.Message;
|
|
483
452
|
}
|
|
484
|
-
}
|
|
485
|
-
exports.
|
|
486
|
-
class KMSDisabledException extends LambdaServiceException_1.LambdaServiceException {
|
|
453
|
+
};
|
|
454
|
+
exports.KMSDisabledException = class KMSDisabledException extends __BaseException {
|
|
487
455
|
name = "KMSDisabledException";
|
|
488
456
|
$fault = "server";
|
|
489
457
|
Type;
|
|
@@ -498,9 +466,8 @@ class KMSDisabledException extends LambdaServiceException_1.LambdaServiceExcepti
|
|
|
498
466
|
this.Type = opts.Type;
|
|
499
467
|
this.Message = opts.Message;
|
|
500
468
|
}
|
|
501
|
-
}
|
|
502
|
-
exports.
|
|
503
|
-
class KMSInvalidStateException extends LambdaServiceException_1.LambdaServiceException {
|
|
469
|
+
};
|
|
470
|
+
exports.KMSInvalidStateException = class KMSInvalidStateException extends __BaseException {
|
|
504
471
|
name = "KMSInvalidStateException";
|
|
505
472
|
$fault = "server";
|
|
506
473
|
Type;
|
|
@@ -515,9 +482,8 @@ class KMSInvalidStateException extends LambdaServiceException_1.LambdaServiceExc
|
|
|
515
482
|
this.Type = opts.Type;
|
|
516
483
|
this.Message = opts.Message;
|
|
517
484
|
}
|
|
518
|
-
}
|
|
519
|
-
exports.
|
|
520
|
-
class KMSNotFoundException extends LambdaServiceException_1.LambdaServiceException {
|
|
485
|
+
};
|
|
486
|
+
exports.KMSNotFoundException = class KMSNotFoundException extends __BaseException {
|
|
521
487
|
name = "KMSNotFoundException";
|
|
522
488
|
$fault = "server";
|
|
523
489
|
Type;
|
|
@@ -532,9 +498,8 @@ class KMSNotFoundException extends LambdaServiceException_1.LambdaServiceExcepti
|
|
|
532
498
|
this.Type = opts.Type;
|
|
533
499
|
this.Message = opts.Message;
|
|
534
500
|
}
|
|
535
|
-
}
|
|
536
|
-
exports.
|
|
537
|
-
class NoPublishedVersionException extends LambdaServiceException_1.LambdaServiceException {
|
|
501
|
+
};
|
|
502
|
+
exports.NoPublishedVersionException = class NoPublishedVersionException extends __BaseException {
|
|
538
503
|
name = "NoPublishedVersionException";
|
|
539
504
|
$fault = "client";
|
|
540
505
|
Type;
|
|
@@ -549,9 +514,8 @@ class NoPublishedVersionException extends LambdaServiceException_1.LambdaService
|
|
|
549
514
|
this.Type = opts.Type;
|
|
550
515
|
this.Message = opts.Message;
|
|
551
516
|
}
|
|
552
|
-
}
|
|
553
|
-
exports.
|
|
554
|
-
class RecursiveInvocationException extends LambdaServiceException_1.LambdaServiceException {
|
|
517
|
+
};
|
|
518
|
+
exports.RecursiveInvocationException = class RecursiveInvocationException extends __BaseException {
|
|
555
519
|
name = "RecursiveInvocationException";
|
|
556
520
|
$fault = "client";
|
|
557
521
|
Type;
|
|
@@ -566,9 +530,8 @@ class RecursiveInvocationException extends LambdaServiceException_1.LambdaServic
|
|
|
566
530
|
this.Type = opts.Type;
|
|
567
531
|
this.Message = opts.Message;
|
|
568
532
|
}
|
|
569
|
-
}
|
|
570
|
-
exports.
|
|
571
|
-
class RequestTooLargeException extends LambdaServiceException_1.LambdaServiceException {
|
|
533
|
+
};
|
|
534
|
+
exports.RequestTooLargeException = class RequestTooLargeException extends __BaseException {
|
|
572
535
|
name = "RequestTooLargeException";
|
|
573
536
|
$fault = "client";
|
|
574
537
|
Type;
|
|
@@ -581,9 +544,8 @@ class RequestTooLargeException extends LambdaServiceException_1.LambdaServiceExc
|
|
|
581
544
|
Object.setPrototypeOf(this, RequestTooLargeException.prototype);
|
|
582
545
|
this.Type = opts.Type;
|
|
583
546
|
}
|
|
584
|
-
}
|
|
585
|
-
exports.
|
|
586
|
-
class ResourceNotReadyException extends LambdaServiceException_1.LambdaServiceException {
|
|
547
|
+
};
|
|
548
|
+
exports.ResourceNotReadyException = class ResourceNotReadyException extends __BaseException {
|
|
587
549
|
name = "ResourceNotReadyException";
|
|
588
550
|
$fault = "server";
|
|
589
551
|
Type;
|
|
@@ -596,9 +558,8 @@ class ResourceNotReadyException extends LambdaServiceException_1.LambdaServiceEx
|
|
|
596
558
|
Object.setPrototypeOf(this, ResourceNotReadyException.prototype);
|
|
597
559
|
this.Type = opts.Type;
|
|
598
560
|
}
|
|
599
|
-
}
|
|
600
|
-
exports.
|
|
601
|
-
class S3FilesMountConnectivityException extends LambdaServiceException_1.LambdaServiceException {
|
|
561
|
+
};
|
|
562
|
+
exports.S3FilesMountConnectivityException = class S3FilesMountConnectivityException extends __BaseException {
|
|
602
563
|
name = "S3FilesMountConnectivityException";
|
|
603
564
|
$fault = "client";
|
|
604
565
|
Type;
|
|
@@ -613,9 +574,8 @@ class S3FilesMountConnectivityException extends LambdaServiceException_1.LambdaS
|
|
|
613
574
|
this.Type = opts.Type;
|
|
614
575
|
this.Message = opts.Message;
|
|
615
576
|
}
|
|
616
|
-
}
|
|
617
|
-
exports.
|
|
618
|
-
class S3FilesMountFailureException extends LambdaServiceException_1.LambdaServiceException {
|
|
577
|
+
};
|
|
578
|
+
exports.S3FilesMountFailureException = class S3FilesMountFailureException extends __BaseException {
|
|
619
579
|
name = "S3FilesMountFailureException";
|
|
620
580
|
$fault = "client";
|
|
621
581
|
Type;
|
|
@@ -630,9 +590,8 @@ class S3FilesMountFailureException extends LambdaServiceException_1.LambdaServic
|
|
|
630
590
|
this.Type = opts.Type;
|
|
631
591
|
this.Message = opts.Message;
|
|
632
592
|
}
|
|
633
|
-
}
|
|
634
|
-
exports.
|
|
635
|
-
class S3FilesMountTimeoutException extends LambdaServiceException_1.LambdaServiceException {
|
|
593
|
+
};
|
|
594
|
+
exports.S3FilesMountTimeoutException = class S3FilesMountTimeoutException extends __BaseException {
|
|
636
595
|
name = "S3FilesMountTimeoutException";
|
|
637
596
|
$fault = "client";
|
|
638
597
|
Type;
|
|
@@ -647,9 +606,8 @@ class S3FilesMountTimeoutException extends LambdaServiceException_1.LambdaServic
|
|
|
647
606
|
this.Type = opts.Type;
|
|
648
607
|
this.Message = opts.Message;
|
|
649
608
|
}
|
|
650
|
-
}
|
|
651
|
-
exports.
|
|
652
|
-
class SerializedRequestEntityTooLargeException extends LambdaServiceException_1.LambdaServiceException {
|
|
609
|
+
};
|
|
610
|
+
exports.SerializedRequestEntityTooLargeException = class SerializedRequestEntityTooLargeException extends __BaseException {
|
|
653
611
|
name = "SerializedRequestEntityTooLargeException";
|
|
654
612
|
$fault = "client";
|
|
655
613
|
Type;
|
|
@@ -662,9 +620,8 @@ class SerializedRequestEntityTooLargeException extends LambdaServiceException_1.
|
|
|
662
620
|
Object.setPrototypeOf(this, SerializedRequestEntityTooLargeException.prototype);
|
|
663
621
|
this.Type = opts.Type;
|
|
664
622
|
}
|
|
665
|
-
}
|
|
666
|
-
exports.
|
|
667
|
-
class SnapStartException extends LambdaServiceException_1.LambdaServiceException {
|
|
623
|
+
};
|
|
624
|
+
exports.SnapStartException = class SnapStartException extends __BaseException {
|
|
668
625
|
name = "SnapStartException";
|
|
669
626
|
$fault = "client";
|
|
670
627
|
Type;
|
|
@@ -679,9 +636,8 @@ class SnapStartException extends LambdaServiceException_1.LambdaServiceException
|
|
|
679
636
|
this.Type = opts.Type;
|
|
680
637
|
this.Message = opts.Message;
|
|
681
638
|
}
|
|
682
|
-
}
|
|
683
|
-
exports.
|
|
684
|
-
class SnapStartNotReadyException extends LambdaServiceException_1.LambdaServiceException {
|
|
639
|
+
};
|
|
640
|
+
exports.SnapStartNotReadyException = class SnapStartNotReadyException extends __BaseException {
|
|
685
641
|
name = "SnapStartNotReadyException";
|
|
686
642
|
$fault = "client";
|
|
687
643
|
Type;
|
|
@@ -696,9 +652,8 @@ class SnapStartNotReadyException extends LambdaServiceException_1.LambdaServiceE
|
|
|
696
652
|
this.Type = opts.Type;
|
|
697
653
|
this.Message = opts.Message;
|
|
698
654
|
}
|
|
699
|
-
}
|
|
700
|
-
exports.
|
|
701
|
-
class SnapStartTimeoutException extends LambdaServiceException_1.LambdaServiceException {
|
|
655
|
+
};
|
|
656
|
+
exports.SnapStartTimeoutException = class SnapStartTimeoutException extends __BaseException {
|
|
702
657
|
name = "SnapStartTimeoutException";
|
|
703
658
|
$fault = "client";
|
|
704
659
|
Type;
|
|
@@ -713,9 +668,8 @@ class SnapStartTimeoutException extends LambdaServiceException_1.LambdaServiceEx
|
|
|
713
668
|
this.Type = opts.Type;
|
|
714
669
|
this.Message = opts.Message;
|
|
715
670
|
}
|
|
716
|
-
}
|
|
717
|
-
exports.
|
|
718
|
-
class SubnetIPAddressLimitReachedException extends LambdaServiceException_1.LambdaServiceException {
|
|
671
|
+
};
|
|
672
|
+
exports.SubnetIPAddressLimitReachedException = class SubnetIPAddressLimitReachedException extends __BaseException {
|
|
719
673
|
name = "SubnetIPAddressLimitReachedException";
|
|
720
674
|
$fault = "server";
|
|
721
675
|
Type;
|
|
@@ -730,9 +684,8 @@ class SubnetIPAddressLimitReachedException extends LambdaServiceException_1.Lamb
|
|
|
730
684
|
this.Type = opts.Type;
|
|
731
685
|
this.Message = opts.Message;
|
|
732
686
|
}
|
|
733
|
-
}
|
|
734
|
-
exports.
|
|
735
|
-
class UnsupportedMediaTypeException extends LambdaServiceException_1.LambdaServiceException {
|
|
687
|
+
};
|
|
688
|
+
exports.UnsupportedMediaTypeException = class UnsupportedMediaTypeException extends __BaseException {
|
|
736
689
|
name = "UnsupportedMediaTypeException";
|
|
737
690
|
$fault = "client";
|
|
738
691
|
Type;
|
|
@@ -745,9 +698,8 @@ class UnsupportedMediaTypeException extends LambdaServiceException_1.LambdaServi
|
|
|
745
698
|
Object.setPrototypeOf(this, UnsupportedMediaTypeException.prototype);
|
|
746
699
|
this.Type = opts.Type;
|
|
747
700
|
}
|
|
748
|
-
}
|
|
749
|
-
exports.
|
|
750
|
-
class ProvisionedConcurrencyConfigNotFoundException extends LambdaServiceException_1.LambdaServiceException {
|
|
701
|
+
};
|
|
702
|
+
exports.ProvisionedConcurrencyConfigNotFoundException = class ProvisionedConcurrencyConfigNotFoundException extends __BaseException {
|
|
751
703
|
name = "ProvisionedConcurrencyConfigNotFoundException";
|
|
752
704
|
$fault = "client";
|
|
753
705
|
Type;
|
|
@@ -760,9 +712,8 @@ class ProvisionedConcurrencyConfigNotFoundException extends LambdaServiceExcepti
|
|
|
760
712
|
Object.setPrototypeOf(this, ProvisionedConcurrencyConfigNotFoundException.prototype);
|
|
761
713
|
this.Type = opts.Type;
|
|
762
714
|
}
|
|
763
|
-
}
|
|
764
|
-
exports.
|
|
765
|
-
class CallbackTimeoutException extends LambdaServiceException_1.LambdaServiceException {
|
|
715
|
+
};
|
|
716
|
+
exports.CallbackTimeoutException = class CallbackTimeoutException extends __BaseException {
|
|
766
717
|
name = "CallbackTimeoutException";
|
|
767
718
|
$fault = "client";
|
|
768
719
|
Type;
|
|
@@ -777,5 +728,4 @@ class CallbackTimeoutException extends LambdaServiceException_1.LambdaServiceExc
|
|
|
777
728
|
this.Type = opts.Type;
|
|
778
729
|
this.Message = opts.Message;
|
|
779
730
|
}
|
|
780
|
-
}
|
|
781
|
-
exports.CallbackTimeoutException = CallbackTimeoutException;
|
|
731
|
+
};
|
|
@@ -1,38 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const retry_1 = require("@smithy/core/retry");
|
|
12
|
-
const serde_1 = require("@smithy/core/serde");
|
|
13
|
-
const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
|
|
14
|
-
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
1
|
+
const packageInfo = require("../package.json");
|
|
2
|
+
const { Sha256 } = require("@aws-crypto/sha256-browser");
|
|
3
|
+
const { createDefaultUserAgentProvider } = require("@aws-sdk/core/client");
|
|
4
|
+
const { invalidProvider, loadConfigsForDefaultMode } = require("@smithy/core/client");
|
|
5
|
+
const { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig } = require("@smithy/core/config");
|
|
6
|
+
const { eventStreamSerdeProvider } = require("@smithy/core/event-streams");
|
|
7
|
+
const { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } = require("@smithy/core/retry");
|
|
8
|
+
const { calculateBodyLength } = require("@smithy/core/serde");
|
|
9
|
+
const { FetchHttpHandler: RequestHandler, streamCollector } = require("@smithy/fetch-http-handler");
|
|
10
|
+
const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
|
|
15
11
|
const getRuntimeConfig = (config) => {
|
|
16
|
-
const defaultsMode =
|
|
17
|
-
const defaultConfigProvider = () => defaultsMode().then(
|
|
18
|
-
const clientSharedValues = (
|
|
12
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
13
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
14
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
19
15
|
return {
|
|
20
16
|
...clientSharedValues,
|
|
21
17
|
...config,
|
|
22
18
|
runtime: "browser",
|
|
23
19
|
defaultsMode,
|
|
24
|
-
bodyLengthChecker: config?.bodyLengthChecker ??
|
|
20
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
25
21
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
26
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
27
|
-
eventStreamSerdeProvider: config?.eventStreamSerdeProvider ??
|
|
28
|
-
maxAttempts: config?.maxAttempts ??
|
|
29
|
-
region: config?.region ??
|
|
30
|
-
requestHandler:
|
|
31
|
-
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode ||
|
|
32
|
-
sha256: config?.sha256 ??
|
|
33
|
-
streamCollector: config?.streamCollector ??
|
|
34
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(
|
|
35
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(
|
|
22
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
23
|
+
eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventStreamSerdeProvider,
|
|
24
|
+
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
25
|
+
region: config?.region ?? invalidProvider("Region is missing"),
|
|
26
|
+
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
27
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
28
|
+
sha256: config?.sha256 ?? Sha256,
|
|
29
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
30
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
31
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|
|
36
32
|
};
|
|
37
33
|
};
|
|
38
34
|
exports.getRuntimeConfig = getRuntimeConfig;
|