@aws-sdk/client-lambda 3.51.0 → 3.54.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/dist-cjs/index.js +3 -0
  3. package/dist-cjs/models/LambdaServiceException.js +11 -0
  4. package/dist-cjs/models/models_0.js +508 -3
  5. package/dist-cjs/protocols/Aws_restJson1.js +778 -2631
  6. package/dist-cjs/waiters/index.js +2 -0
  7. package/dist-cjs/waiters/waitForFunctionActiveV2.js +54 -0
  8. package/dist-cjs/waiters/waitForFunctionUpdatedV2.js +54 -0
  9. package/dist-es/index.js +1 -0
  10. package/dist-es/models/LambdaServiceException.js +12 -0
  11. package/dist-es/models/models_0.js +471 -1
  12. package/dist-es/protocols/Aws_restJson1.js +1467 -2898
  13. package/dist-es/waiters/index.js +2 -0
  14. package/dist-es/waiters/waitForFunctionActiveV2.js +69 -0
  15. package/dist-es/waiters/waitForFunctionUpdatedV2.js +69 -0
  16. package/dist-types/Lambda.d.ts +14 -1
  17. package/dist-types/LambdaClient.d.ts +2 -2
  18. package/dist-types/commands/UpdateFunctionCodeCommand.d.ts +14 -1
  19. package/dist-types/index.d.ts +1 -0
  20. package/dist-types/models/LambdaServiceException.d.ts +10 -0
  21. package/dist-types/models/models_0.d.ts +238 -124
  22. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  23. package/dist-types/runtimeConfig.d.ts +1 -1
  24. package/dist-types/runtimeConfig.native.d.ts +1 -1
  25. package/dist-types/ts3.4/LambdaClient.d.ts +2 -2
  26. package/dist-types/ts3.4/index.d.ts +1 -0
  27. package/dist-types/ts3.4/models/LambdaServiceException.d.ts +6 -0
  28. package/dist-types/ts3.4/models/models_0.d.ts +168 -114
  29. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  30. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  31. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  32. package/dist-types/ts3.4/waiters/index.d.ts +2 -0
  33. package/dist-types/ts3.4/waiters/waitForFunctionActiveV2.d.ts +7 -0
  34. package/dist-types/ts3.4/waiters/waitForFunctionUpdatedV2.d.ts +7 -0
  35. package/dist-types/waiters/index.d.ts +2 -0
  36. package/dist-types/waiters/waitForFunctionActive.d.ts +2 -2
  37. package/dist-types/waiters/waitForFunctionActiveV2.d.ts +14 -0
  38. package/dist-types/waiters/waitForFunctionUpdated.d.ts +2 -2
  39. package/dist-types/waiters/waitForFunctionUpdatedV2.d.ts +14 -0
  40. package/package.json +34 -34
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: LambdaClientConfig) => {
8
8
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
9
9
  base64Decoder: import("@aws-sdk/types").Decoder;
10
10
  base64Encoder: import("@aws-sdk/types").Encoder;
11
- bodyLengthChecker: (body: any) => number | undefined;
11
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
12
12
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
13
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
14
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: LambdaClientConfig) => {
8
8
  requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
9
9
  apiVersion: string;
10
10
  urlParser: import("@aws-sdk/types").UrlParser;
11
- bodyLengthChecker: (body: any) => number | undefined;
11
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
12
12
  streamCollector: import("@aws-sdk/types").StreamCollector;
13
13
  base64Decoder: import("@aws-sdk/types").Decoder;
14
14
  base64Encoder: import("@aws-sdk/types").Encoder;
@@ -5,7 +5,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
7
  import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
- import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
8
+ import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { AddLayerVersionPermissionCommandInput, AddLayerVersionPermissionCommandOutput } from "./commands/AddLayerVersionPermissionCommand";
10
10
  import { AddPermissionCommandInput, AddPermissionCommandOutput } from "./commands/AddPermissionCommand";
11
11
  import { CreateAliasCommandInput, CreateAliasCommandOutput } from "./commands/CreateAliasCommand";
@@ -74,7 +74,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
74
74
 
75
75
  urlParser?: __UrlParser;
76
76
 
77
- bodyLengthChecker?: (body: any) => number | undefined;
77
+ bodyLengthChecker?: __BodyLengthCalculator;
78
78
 
79
79
  streamCollector?: __StreamCollector;
80
80
 
@@ -4,3 +4,4 @@ export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
6
  export * from "./waiters";
7
+ export { LambdaServiceException } from "./models/LambdaServiceException";
@@ -0,0 +1,6 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+
3
+ export declare class LambdaServiceException extends __ServiceException {
4
+
5
+ constructor(options: __ServiceExceptionOptions);
6
+ }
@@ -1,6 +1,7 @@
1
1
 
2
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
2
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
3
3
  import { Readable } from "stream";
4
+ import { LambdaServiceException as __BaseException } from "./LambdaServiceException";
4
5
 
5
6
  export interface AccountLimit {
6
7
 
@@ -60,52 +61,57 @@ export declare namespace AddLayerVersionPermissionResponse {
60
61
  const filterSensitiveLog: (obj: AddLayerVersionPermissionResponse) => any;
61
62
  }
62
63
 
63
- export interface InvalidParameterValueException extends __SmithyException, $MetadataBearer {
64
- name: "InvalidParameterValueException";
65
- $fault: "client";
64
+ export declare class InvalidParameterValueException extends __BaseException {
65
+ readonly name: "InvalidParameterValueException";
66
+ readonly $fault: "client";
66
67
 
67
68
  Type?: string;
68
69
 
69
- message?: string;
70
+ constructor(opts: __ExceptionOptionType<InvalidParameterValueException, __BaseException>);
70
71
  }
71
72
 
72
- export interface PolicyLengthExceededException extends __SmithyException, $MetadataBearer {
73
- name: "PolicyLengthExceededException";
74
- $fault: "client";
73
+ export declare class PolicyLengthExceededException extends __BaseException {
74
+ readonly name: "PolicyLengthExceededException";
75
+ readonly $fault: "client";
75
76
  Type?: string;
76
- message?: string;
77
+
78
+ constructor(opts: __ExceptionOptionType<PolicyLengthExceededException, __BaseException>);
77
79
  }
78
80
 
79
- export interface PreconditionFailedException extends __SmithyException, $MetadataBearer {
80
- name: "PreconditionFailedException";
81
- $fault: "client";
81
+ export declare class PreconditionFailedException extends __BaseException {
82
+ readonly name: "PreconditionFailedException";
83
+ readonly $fault: "client";
82
84
 
83
85
  Type?: string;
84
86
 
85
- message?: string;
87
+ constructor(opts: __ExceptionOptionType<PreconditionFailedException, __BaseException>);
86
88
  }
87
89
 
88
- export interface ResourceConflictException extends __SmithyException, $MetadataBearer {
89
- name: "ResourceConflictException";
90
- $fault: "client";
90
+ export declare class ResourceConflictException extends __BaseException {
91
+ readonly name: "ResourceConflictException";
92
+ readonly $fault: "client";
91
93
 
92
94
  Type?: string;
93
95
 
94
- message?: string;
96
+ constructor(opts: __ExceptionOptionType<ResourceConflictException, __BaseException>);
95
97
  }
96
98
 
97
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
98
- name: "ResourceNotFoundException";
99
- $fault: "client";
99
+ export declare class ResourceNotFoundException extends __BaseException {
100
+ readonly name: "ResourceNotFoundException";
101
+ readonly $fault: "client";
100
102
  Type?: string;
101
103
  Message?: string;
104
+
105
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
102
106
  }
103
107
 
104
- export interface ServiceException extends __SmithyException, $MetadataBearer {
105
- name: "ServiceException";
106
- $fault: "server";
108
+ export declare class ServiceException extends __BaseException {
109
+ readonly name: "ServiceException";
110
+ readonly $fault: "server";
107
111
  Type?: string;
108
112
  Message?: string;
113
+
114
+ constructor(opts: __ExceptionOptionType<ServiceException, __BaseException>);
109
115
  }
110
116
  export declare enum ThrottleReason {
111
117
  CallerRateLimitExceeded = "CallerRateLimitExceeded",
@@ -115,14 +121,15 @@ export declare enum ThrottleReason {
115
121
  ReservedFunctionInvocationRateLimitExceeded = "ReservedFunctionInvocationRateLimitExceeded"
116
122
  }
117
123
 
118
- export interface TooManyRequestsException extends __SmithyException, $MetadataBearer {
119
- name: "TooManyRequestsException";
120
- $fault: "client";
124
+ export declare class TooManyRequestsException extends __BaseException {
125
+ readonly name: "TooManyRequestsException";
126
+ readonly $fault: "client";
121
127
 
122
128
  retryAfterSeconds?: string;
123
129
  Type?: string;
124
- message?: string;
125
130
  Reason?: ThrottleReason | string;
131
+
132
+ constructor(opts: __ExceptionOptionType<TooManyRequestsException, __BaseException>);
126
133
  }
127
134
  export interface AddPermissionRequest {
128
135
 
@@ -455,26 +462,31 @@ export declare namespace EventSourceMappingConfiguration {
455
462
  const filterSensitiveLog: (obj: EventSourceMappingConfiguration) => any;
456
463
  }
457
464
 
458
- export interface CodeSigningConfigNotFoundException extends __SmithyException, $MetadataBearer {
459
- name: "CodeSigningConfigNotFoundException";
460
- $fault: "client";
465
+ export declare class CodeSigningConfigNotFoundException extends __BaseException {
466
+ readonly name: "CodeSigningConfigNotFoundException";
467
+ readonly $fault: "client";
461
468
  Type?: string;
462
469
  Message?: string;
470
+
471
+ constructor(opts: __ExceptionOptionType<CodeSigningConfigNotFoundException, __BaseException>);
463
472
  }
464
473
 
465
- export interface CodeStorageExceededException extends __SmithyException, $MetadataBearer {
466
- name: "CodeStorageExceededException";
467
- $fault: "client";
474
+ export declare class CodeStorageExceededException extends __BaseException {
475
+ readonly name: "CodeStorageExceededException";
476
+ readonly $fault: "client";
468
477
 
469
478
  Type?: string;
470
- message?: string;
479
+
480
+ constructor(opts: __ExceptionOptionType<CodeStorageExceededException, __BaseException>);
471
481
  }
472
482
 
473
- export interface CodeVerificationFailedException extends __SmithyException, $MetadataBearer {
474
- name: "CodeVerificationFailedException";
475
- $fault: "client";
483
+ export declare class CodeVerificationFailedException extends __BaseException {
484
+ readonly name: "CodeVerificationFailedException";
485
+ readonly $fault: "client";
476
486
  Type?: string;
477
487
  Message?: string;
488
+
489
+ constructor(opts: __ExceptionOptionType<CodeVerificationFailedException, __BaseException>);
478
490
  }
479
491
 
480
492
  export interface FunctionCode {
@@ -542,6 +554,7 @@ export declare enum PackageType {
542
554
  Zip = "Zip"
543
555
  }
544
556
  export declare enum Runtime {
557
+ dotnet6 = "dotnet6",
545
558
  dotnetcore10 = "dotnetcore1.0",
546
559
  dotnetcore20 = "dotnetcore2.0",
547
560
  dotnetcore21 = "dotnetcore2.1",
@@ -835,11 +848,13 @@ export declare namespace FunctionConfiguration {
835
848
  const filterSensitiveLog: (obj: FunctionConfiguration) => any;
836
849
  }
837
850
 
838
- export interface InvalidCodeSignatureException extends __SmithyException, $MetadataBearer {
839
- name: "InvalidCodeSignatureException";
840
- $fault: "client";
851
+ export declare class InvalidCodeSignatureException extends __BaseException {
852
+ readonly name: "InvalidCodeSignatureException";
853
+ readonly $fault: "client";
841
854
  Type?: string;
842
855
  Message?: string;
856
+
857
+ constructor(opts: __ExceptionOptionType<InvalidCodeSignatureException, __BaseException>);
843
858
  }
844
859
  export interface DeleteAliasRequest {
845
860
 
@@ -874,11 +889,13 @@ export declare namespace DeleteEventSourceMappingRequest {
874
889
  const filterSensitiveLog: (obj: DeleteEventSourceMappingRequest) => any;
875
890
  }
876
891
 
877
- export interface ResourceInUseException extends __SmithyException, $MetadataBearer {
878
- name: "ResourceInUseException";
879
- $fault: "client";
892
+ export declare class ResourceInUseException extends __BaseException {
893
+ readonly name: "ResourceInUseException";
894
+ readonly $fault: "client";
880
895
  Type?: string;
881
896
  Message?: string;
897
+
898
+ constructor(opts: __ExceptionOptionType<ResourceInUseException, __BaseException>);
882
899
  }
883
900
  export interface DeleteFunctionRequest {
884
901
 
@@ -1238,105 +1255,130 @@ export declare namespace GetProvisionedConcurrencyConfigResponse {
1238
1255
  const filterSensitiveLog: (obj: GetProvisionedConcurrencyConfigResponse) => any;
1239
1256
  }
1240
1257
 
1241
- export interface ProvisionedConcurrencyConfigNotFoundException extends __SmithyException, $MetadataBearer {
1242
- name: "ProvisionedConcurrencyConfigNotFoundException";
1243
- $fault: "client";
1258
+ export declare class ProvisionedConcurrencyConfigNotFoundException extends __BaseException {
1259
+ readonly name: "ProvisionedConcurrencyConfigNotFoundException";
1260
+ readonly $fault: "client";
1244
1261
  Type?: string;
1245
- message?: string;
1262
+
1263
+ constructor(opts: __ExceptionOptionType<ProvisionedConcurrencyConfigNotFoundException, __BaseException>);
1246
1264
  }
1247
1265
 
1248
- export interface EC2AccessDeniedException extends __SmithyException, $MetadataBearer {
1249
- name: "EC2AccessDeniedException";
1250
- $fault: "server";
1266
+ export declare class EC2AccessDeniedException extends __BaseException {
1267
+ readonly name: "EC2AccessDeniedException";
1268
+ readonly $fault: "server";
1251
1269
  Type?: string;
1252
1270
  Message?: string;
1271
+
1272
+ constructor(opts: __ExceptionOptionType<EC2AccessDeniedException, __BaseException>);
1253
1273
  }
1254
1274
 
1255
- export interface EC2ThrottledException extends __SmithyException, $MetadataBearer {
1256
- name: "EC2ThrottledException";
1257
- $fault: "server";
1275
+ export declare class EC2ThrottledException extends __BaseException {
1276
+ readonly name: "EC2ThrottledException";
1277
+ readonly $fault: "server";
1258
1278
  Type?: string;
1259
1279
  Message?: string;
1280
+
1281
+ constructor(opts: __ExceptionOptionType<EC2ThrottledException, __BaseException>);
1260
1282
  }
1261
1283
 
1262
- export interface EC2UnexpectedException extends __SmithyException, $MetadataBearer {
1263
- name: "EC2UnexpectedException";
1264
- $fault: "server";
1284
+ export declare class EC2UnexpectedException extends __BaseException {
1285
+ readonly name: "EC2UnexpectedException";
1286
+ readonly $fault: "server";
1265
1287
  Type?: string;
1266
1288
  Message?: string;
1267
1289
  EC2ErrorCode?: string;
1290
+
1291
+ constructor(opts: __ExceptionOptionType<EC2UnexpectedException, __BaseException>);
1268
1292
  }
1269
1293
 
1270
- export interface EFSIOException extends __SmithyException, $MetadataBearer {
1271
- name: "EFSIOException";
1272
- $fault: "client";
1294
+ export declare class EFSIOException extends __BaseException {
1295
+ readonly name: "EFSIOException";
1296
+ readonly $fault: "client";
1273
1297
  Type?: string;
1274
1298
  Message?: string;
1299
+
1300
+ constructor(opts: __ExceptionOptionType<EFSIOException, __BaseException>);
1275
1301
  }
1276
1302
 
1277
- export interface EFSMountConnectivityException extends __SmithyException, $MetadataBearer {
1278
- name: "EFSMountConnectivityException";
1279
- $fault: "client";
1303
+ export declare class EFSMountConnectivityException extends __BaseException {
1304
+ readonly name: "EFSMountConnectivityException";
1305
+ readonly $fault: "client";
1280
1306
  Type?: string;
1281
1307
  Message?: string;
1308
+
1309
+ constructor(opts: __ExceptionOptionType<EFSMountConnectivityException, __BaseException>);
1282
1310
  }
1283
1311
 
1284
- export interface EFSMountFailureException extends __SmithyException, $MetadataBearer {
1285
- name: "EFSMountFailureException";
1286
- $fault: "client";
1312
+ export declare class EFSMountFailureException extends __BaseException {
1313
+ readonly name: "EFSMountFailureException";
1314
+ readonly $fault: "client";
1287
1315
  Type?: string;
1288
1316
  Message?: string;
1317
+
1318
+ constructor(opts: __ExceptionOptionType<EFSMountFailureException, __BaseException>);
1289
1319
  }
1290
1320
 
1291
- export interface EFSMountTimeoutException extends __SmithyException, $MetadataBearer {
1292
- name: "EFSMountTimeoutException";
1293
- $fault: "client";
1321
+ export declare class EFSMountTimeoutException extends __BaseException {
1322
+ readonly name: "EFSMountTimeoutException";
1323
+ readonly $fault: "client";
1294
1324
  Type?: string;
1295
1325
  Message?: string;
1326
+
1327
+ constructor(opts: __ExceptionOptionType<EFSMountTimeoutException, __BaseException>);
1296
1328
  }
1297
1329
 
1298
- export interface ENILimitReachedException extends __SmithyException, $MetadataBearer {
1299
- name: "ENILimitReachedException";
1300
- $fault: "server";
1330
+ export declare class ENILimitReachedException extends __BaseException {
1331
+ readonly name: "ENILimitReachedException";
1332
+ readonly $fault: "server";
1301
1333
  Type?: string;
1302
1334
  Message?: string;
1335
+
1336
+ constructor(opts: __ExceptionOptionType<ENILimitReachedException, __BaseException>);
1303
1337
  }
1304
1338
 
1305
- export interface InvalidRequestContentException extends __SmithyException, $MetadataBearer {
1306
- name: "InvalidRequestContentException";
1307
- $fault: "client";
1339
+ export declare class InvalidRequestContentException extends __BaseException {
1340
+ readonly name: "InvalidRequestContentException";
1341
+ readonly $fault: "client";
1308
1342
 
1309
1343
  Type?: string;
1310
1344
 
1311
- message?: string;
1345
+ constructor(opts: __ExceptionOptionType<InvalidRequestContentException, __BaseException>);
1312
1346
  }
1313
1347
 
1314
- export interface InvalidRuntimeException extends __SmithyException, $MetadataBearer {
1315
- name: "InvalidRuntimeException";
1316
- $fault: "server";
1348
+ export declare class InvalidRuntimeException extends __BaseException {
1349
+ readonly name: "InvalidRuntimeException";
1350
+ readonly $fault: "server";
1317
1351
  Type?: string;
1318
1352
  Message?: string;
1353
+
1354
+ constructor(opts: __ExceptionOptionType<InvalidRuntimeException, __BaseException>);
1319
1355
  }
1320
1356
 
1321
- export interface InvalidSecurityGroupIDException extends __SmithyException, $MetadataBearer {
1322
- name: "InvalidSecurityGroupIDException";
1323
- $fault: "server";
1357
+ export declare class InvalidSecurityGroupIDException extends __BaseException {
1358
+ readonly name: "InvalidSecurityGroupIDException";
1359
+ readonly $fault: "server";
1324
1360
  Type?: string;
1325
1361
  Message?: string;
1362
+
1363
+ constructor(opts: __ExceptionOptionType<InvalidSecurityGroupIDException, __BaseException>);
1326
1364
  }
1327
1365
 
1328
- export interface InvalidSubnetIDException extends __SmithyException, $MetadataBearer {
1329
- name: "InvalidSubnetIDException";
1330
- $fault: "server";
1366
+ export declare class InvalidSubnetIDException extends __BaseException {
1367
+ readonly name: "InvalidSubnetIDException";
1368
+ readonly $fault: "server";
1331
1369
  Type?: string;
1332
1370
  Message?: string;
1371
+
1372
+ constructor(opts: __ExceptionOptionType<InvalidSubnetIDException, __BaseException>);
1333
1373
  }
1334
1374
 
1335
- export interface InvalidZipFileException extends __SmithyException, $MetadataBearer {
1336
- name: "InvalidZipFileException";
1337
- $fault: "server";
1375
+ export declare class InvalidZipFileException extends __BaseException {
1376
+ readonly name: "InvalidZipFileException";
1377
+ readonly $fault: "server";
1338
1378
  Type?: string;
1339
1379
  Message?: string;
1380
+
1381
+ constructor(opts: __ExceptionOptionType<InvalidZipFileException, __BaseException>);
1340
1382
  }
1341
1383
  export declare enum InvocationType {
1342
1384
  DryRun = "DryRun",
@@ -1382,62 +1424,74 @@ export declare namespace InvocationResponse {
1382
1424
  const filterSensitiveLog: (obj: InvocationResponse) => any;
1383
1425
  }
1384
1426
 
1385
- export interface KMSAccessDeniedException extends __SmithyException, $MetadataBearer {
1386
- name: "KMSAccessDeniedException";
1387
- $fault: "server";
1427
+ export declare class KMSAccessDeniedException extends __BaseException {
1428
+ readonly name: "KMSAccessDeniedException";
1429
+ readonly $fault: "server";
1388
1430
  Type?: string;
1389
1431
  Message?: string;
1432
+
1433
+ constructor(opts: __ExceptionOptionType<KMSAccessDeniedException, __BaseException>);
1390
1434
  }
1391
1435
 
1392
- export interface KMSDisabledException extends __SmithyException, $MetadataBearer {
1393
- name: "KMSDisabledException";
1394
- $fault: "server";
1436
+ export declare class KMSDisabledException extends __BaseException {
1437
+ readonly name: "KMSDisabledException";
1438
+ readonly $fault: "server";
1395
1439
  Type?: string;
1396
1440
  Message?: string;
1441
+
1442
+ constructor(opts: __ExceptionOptionType<KMSDisabledException, __BaseException>);
1397
1443
  }
1398
1444
 
1399
- export interface KMSInvalidStateException extends __SmithyException, $MetadataBearer {
1400
- name: "KMSInvalidStateException";
1401
- $fault: "server";
1445
+ export declare class KMSInvalidStateException extends __BaseException {
1446
+ readonly name: "KMSInvalidStateException";
1447
+ readonly $fault: "server";
1402
1448
  Type?: string;
1403
1449
  Message?: string;
1450
+
1451
+ constructor(opts: __ExceptionOptionType<KMSInvalidStateException, __BaseException>);
1404
1452
  }
1405
1453
 
1406
- export interface KMSNotFoundException extends __SmithyException, $MetadataBearer {
1407
- name: "KMSNotFoundException";
1408
- $fault: "server";
1454
+ export declare class KMSNotFoundException extends __BaseException {
1455
+ readonly name: "KMSNotFoundException";
1456
+ readonly $fault: "server";
1409
1457
  Type?: string;
1410
1458
  Message?: string;
1459
+
1460
+ constructor(opts: __ExceptionOptionType<KMSNotFoundException, __BaseException>);
1411
1461
  }
1412
1462
 
1413
- export interface RequestTooLargeException extends __SmithyException, $MetadataBearer {
1414
- name: "RequestTooLargeException";
1415
- $fault: "client";
1463
+ export declare class RequestTooLargeException extends __BaseException {
1464
+ readonly name: "RequestTooLargeException";
1465
+ readonly $fault: "client";
1416
1466
  Type?: string;
1417
- message?: string;
1467
+
1468
+ constructor(opts: __ExceptionOptionType<RequestTooLargeException, __BaseException>);
1418
1469
  }
1419
1470
 
1420
- export interface ResourceNotReadyException extends __SmithyException, $MetadataBearer {
1421
- name: "ResourceNotReadyException";
1422
- $fault: "server";
1471
+ export declare class ResourceNotReadyException extends __BaseException {
1472
+ readonly name: "ResourceNotReadyException";
1473
+ readonly $fault: "server";
1423
1474
 
1424
1475
  Type?: string;
1425
1476
 
1426
- message?: string;
1477
+ constructor(opts: __ExceptionOptionType<ResourceNotReadyException, __BaseException>);
1427
1478
  }
1428
1479
 
1429
- export interface SubnetIPAddressLimitReachedException extends __SmithyException, $MetadataBearer {
1430
- name: "SubnetIPAddressLimitReachedException";
1431
- $fault: "server";
1480
+ export declare class SubnetIPAddressLimitReachedException extends __BaseException {
1481
+ readonly name: "SubnetIPAddressLimitReachedException";
1482
+ readonly $fault: "server";
1432
1483
  Type?: string;
1433
1484
  Message?: string;
1485
+
1486
+ constructor(opts: __ExceptionOptionType<SubnetIPAddressLimitReachedException, __BaseException>);
1434
1487
  }
1435
1488
 
1436
- export interface UnsupportedMediaTypeException extends __SmithyException, $MetadataBearer {
1437
- name: "UnsupportedMediaTypeException";
1438
- $fault: "client";
1489
+ export declare class UnsupportedMediaTypeException extends __BaseException {
1490
+ readonly name: "UnsupportedMediaTypeException";
1491
+ readonly $fault: "client";
1439
1492
  Type?: string;
1440
- message?: string;
1493
+
1494
+ constructor(opts: __ExceptionOptionType<UnsupportedMediaTypeException, __BaseException>);
1441
1495
  }
1442
1496
  export interface InvokeAsyncRequest {
1443
1497
 
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: LambdaClientConfig) => {
6
6
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
7
7
  base64Decoder: import("@aws-sdk/types").Decoder;
8
8
  base64Encoder: import("@aws-sdk/types").Encoder;
9
- bodyLengthChecker: (body: any) => number | undefined;
9
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
10
10
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
11
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
12
12
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: LambdaClientConfig) => {
6
6
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
7
7
  base64Decoder: import("@aws-sdk/types").Decoder;
8
8
  base64Encoder: import("@aws-sdk/types").Encoder;
9
- bodyLengthChecker: (body: any) => number | undefined;
9
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
10
10
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
11
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
12
12
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: LambdaClientConfig) => {
6
6
  requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
7
7
  apiVersion: string;
8
8
  urlParser: import("@aws-sdk/types").UrlParser;
9
- bodyLengthChecker: (body: any) => number | undefined;
9
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
10
10
  streamCollector: import("@aws-sdk/types").StreamCollector;
11
11
  base64Decoder: import("@aws-sdk/types").Decoder;
12
12
  base64Encoder: import("@aws-sdk/types").Encoder;
@@ -1,3 +1,5 @@
1
1
  export * from "./waitForFunctionActive";
2
+ export * from "./waitForFunctionActiveV2";
2
3
  export * from "./waitForFunctionExists";
3
4
  export * from "./waitForFunctionUpdated";
5
+ export * from "./waitForFunctionUpdatedV2";
@@ -0,0 +1,7 @@
1
+ import { WaiterConfiguration, WaiterResult } from "@aws-sdk/util-waiter";
2
+ import { GetFunctionCommandInput } from "../commands/GetFunctionCommand";
3
+ import { LambdaClient } from "../LambdaClient";
4
+
5
+ export declare const waitForFunctionActiveV2: (params: WaiterConfiguration<LambdaClient>, input: GetFunctionCommandInput) => Promise<WaiterResult>;
6
+
7
+ export declare const waitUntilFunctionActiveV2: (params: WaiterConfiguration<LambdaClient>, input: GetFunctionCommandInput) => Promise<WaiterResult>;
@@ -0,0 +1,7 @@
1
+ import { WaiterConfiguration, WaiterResult } from "@aws-sdk/util-waiter";
2
+ import { GetFunctionCommandInput } from "../commands/GetFunctionCommand";
3
+ import { LambdaClient } from "../LambdaClient";
4
+
5
+ export declare const waitForFunctionUpdatedV2: (params: WaiterConfiguration<LambdaClient>, input: GetFunctionCommandInput) => Promise<WaiterResult>;
6
+
7
+ export declare const waitUntilFunctionUpdatedV2: (params: WaiterConfiguration<LambdaClient>, input: GetFunctionCommandInput) => Promise<WaiterResult>;
@@ -1,3 +1,5 @@
1
1
  export * from "./waitForFunctionActive";
2
+ export * from "./waitForFunctionActiveV2";
2
3
  export * from "./waitForFunctionExists";
3
4
  export * from "./waitForFunctionUpdated";
5
+ export * from "./waitForFunctionUpdatedV2";
@@ -2,12 +2,12 @@ import { WaiterConfiguration, WaiterResult } from "@aws-sdk/util-waiter";
2
2
  import { GetFunctionConfigurationCommandInput } from "../commands/GetFunctionConfigurationCommand";
3
3
  import { LambdaClient } from "../LambdaClient";
4
4
  /**
5
- * Waits for the function's State to be Active.
5
+ * Waits for the function's State to be Active. This waiter uses GetFunctionConfiguration API. This should be used after new function creation.
6
6
  * @deprecated Use waitUntilFunctionActive instead. waitForFunctionActive does not throw error in non-success cases.
7
7
  */
8
8
  export declare const waitForFunctionActive: (params: WaiterConfiguration<LambdaClient>, input: GetFunctionConfigurationCommandInput) => Promise<WaiterResult>;
9
9
  /**
10
- * Waits for the function's State to be Active.
10
+ * Waits for the function's State to be Active. This waiter uses GetFunctionConfiguration API. This should be used after new function creation.
11
11
  * @param params - Waiter configuration options.
12
12
  * @param input - The input to GetFunctionConfigurationCommand for polling.
13
13
  */
@@ -0,0 +1,14 @@
1
+ import { WaiterConfiguration, WaiterResult } from "@aws-sdk/util-waiter";
2
+ import { GetFunctionCommandInput } from "../commands/GetFunctionCommand";
3
+ import { LambdaClient } from "../LambdaClient";
4
+ /**
5
+ * Waits for the function's State to be Active. This waiter uses GetFunction API. This should be used after new function creation.
6
+ * @deprecated Use waitUntilFunctionActiveV2 instead. waitForFunctionActiveV2 does not throw error in non-success cases.
7
+ */
8
+ export declare const waitForFunctionActiveV2: (params: WaiterConfiguration<LambdaClient>, input: GetFunctionCommandInput) => Promise<WaiterResult>;
9
+ /**
10
+ * Waits for the function's State to be Active. This waiter uses GetFunction API. This should be used after new function creation.
11
+ * @param params - Waiter configuration options.
12
+ * @param input - The input to GetFunctionCommand for polling.
13
+ */
14
+ export declare const waitUntilFunctionActiveV2: (params: WaiterConfiguration<LambdaClient>, input: GetFunctionCommandInput) => Promise<WaiterResult>;
@@ -2,12 +2,12 @@ import { WaiterConfiguration, WaiterResult } from "@aws-sdk/util-waiter";
2
2
  import { GetFunctionConfigurationCommandInput } from "../commands/GetFunctionConfigurationCommand";
3
3
  import { LambdaClient } from "../LambdaClient";
4
4
  /**
5
- * Waits for the function's LastUpdateStatus to be Successful.
5
+ * Waits for the function's LastUpdateStatus to be Successful. This waiter uses GetFunctionConfiguration API. This should be used after function updates.
6
6
  * @deprecated Use waitUntilFunctionUpdated instead. waitForFunctionUpdated does not throw error in non-success cases.
7
7
  */
8
8
  export declare const waitForFunctionUpdated: (params: WaiterConfiguration<LambdaClient>, input: GetFunctionConfigurationCommandInput) => Promise<WaiterResult>;
9
9
  /**
10
- * Waits for the function's LastUpdateStatus to be Successful.
10
+ * Waits for the function's LastUpdateStatus to be Successful. This waiter uses GetFunctionConfiguration API. This should be used after function updates.
11
11
  * @param params - Waiter configuration options.
12
12
  * @param input - The input to GetFunctionConfigurationCommand for polling.
13
13
  */