@aws-sdk/client-lambda 3.52.0 → 3.54.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 +28 -28
@@ -1,6 +1,7 @@
1
1
  /// <reference types="node" />
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
  * <p>Limits that are related to concurrency and storage. All file and storage sizes are in bytes.</p>
6
7
  */
@@ -113,77 +114,88 @@ export declare namespace AddLayerVersionPermissionResponse {
113
114
  /**
114
115
  * <p>One of the parameters in the request is invalid.</p>
115
116
  */
116
- export interface InvalidParameterValueException extends __SmithyException, $MetadataBearer {
117
- name: "InvalidParameterValueException";
118
- $fault: "client";
117
+ export declare class InvalidParameterValueException extends __BaseException {
118
+ readonly name: "InvalidParameterValueException";
119
+ readonly $fault: "client";
119
120
  /**
120
121
  * <p>The exception type.</p>
121
122
  */
122
123
  Type?: string;
123
124
  /**
124
- * <p>The exception message.</p>
125
+ * @internal
125
126
  */
126
- message?: string;
127
+ constructor(opts: __ExceptionOptionType<InvalidParameterValueException, __BaseException>);
127
128
  }
128
129
  /**
129
130
  * <p>The permissions policy for the resource is too large. <a href="https://docs.aws.amazon.com/lambda/latest/dg/limits.html">Learn more</a>
130
131
  * </p>
131
132
  */
132
- export interface PolicyLengthExceededException extends __SmithyException, $MetadataBearer {
133
- name: "PolicyLengthExceededException";
134
- $fault: "client";
133
+ export declare class PolicyLengthExceededException extends __BaseException {
134
+ readonly name: "PolicyLengthExceededException";
135
+ readonly $fault: "client";
135
136
  Type?: string;
136
- message?: string;
137
+ /**
138
+ * @internal
139
+ */
140
+ constructor(opts: __ExceptionOptionType<PolicyLengthExceededException, __BaseException>);
137
141
  }
138
142
  /**
139
143
  * <p>The RevisionId provided does not match the latest RevisionId for the Lambda function or alias. Call the
140
144
  * <code>GetFunction</code> or the <code>GetAlias</code> API to retrieve the latest RevisionId for your
141
145
  * resource.</p>
142
146
  */
143
- export interface PreconditionFailedException extends __SmithyException, $MetadataBearer {
144
- name: "PreconditionFailedException";
145
- $fault: "client";
147
+ export declare class PreconditionFailedException extends __BaseException {
148
+ readonly name: "PreconditionFailedException";
149
+ readonly $fault: "client";
146
150
  /**
147
151
  * <p>The exception type.</p>
148
152
  */
149
153
  Type?: string;
150
154
  /**
151
- * <p>The exception message.</p>
155
+ * @internal
152
156
  */
153
- message?: string;
157
+ constructor(opts: __ExceptionOptionType<PreconditionFailedException, __BaseException>);
154
158
  }
155
159
  /**
156
160
  * <p>The resource already exists, or another operation is in progress.</p>
157
161
  */
158
- export interface ResourceConflictException extends __SmithyException, $MetadataBearer {
159
- name: "ResourceConflictException";
160
- $fault: "client";
162
+ export declare class ResourceConflictException extends __BaseException {
163
+ readonly name: "ResourceConflictException";
164
+ readonly $fault: "client";
161
165
  /**
162
166
  * <p>The exception type.</p>
163
167
  */
164
168
  Type?: string;
165
169
  /**
166
- * <p>The exception message.</p>
170
+ * @internal
167
171
  */
168
- message?: string;
172
+ constructor(opts: __ExceptionOptionType<ResourceConflictException, __BaseException>);
169
173
  }
170
174
  /**
171
175
  * <p>The resource specified in the request does not exist.</p>
172
176
  */
173
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
174
- name: "ResourceNotFoundException";
175
- $fault: "client";
177
+ export declare class ResourceNotFoundException extends __BaseException {
178
+ readonly name: "ResourceNotFoundException";
179
+ readonly $fault: "client";
176
180
  Type?: string;
177
181
  Message?: string;
182
+ /**
183
+ * @internal
184
+ */
185
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
178
186
  }
179
187
  /**
180
188
  * <p>The Lambda service encountered an internal error.</p>
181
189
  */
182
- export interface ServiceException extends __SmithyException, $MetadataBearer {
183
- name: "ServiceException";
184
- $fault: "server";
190
+ export declare class ServiceException extends __BaseException {
191
+ readonly name: "ServiceException";
192
+ readonly $fault: "server";
185
193
  Type?: string;
186
194
  Message?: string;
195
+ /**
196
+ * @internal
197
+ */
198
+ constructor(opts: __ExceptionOptionType<ServiceException, __BaseException>);
187
199
  }
188
200
  export declare enum ThrottleReason {
189
201
  CallerRateLimitExceeded = "CallerRateLimitExceeded",
@@ -195,16 +207,19 @@ export declare enum ThrottleReason {
195
207
  /**
196
208
  * <p>The request throughput limit was exceeded.</p>
197
209
  */
198
- export interface TooManyRequestsException extends __SmithyException, $MetadataBearer {
199
- name: "TooManyRequestsException";
200
- $fault: "client";
210
+ export declare class TooManyRequestsException extends __BaseException {
211
+ readonly name: "TooManyRequestsException";
212
+ readonly $fault: "client";
201
213
  /**
202
214
  * <p>The number of seconds the caller should wait before retrying.</p>
203
215
  */
204
216
  retryAfterSeconds?: string;
205
217
  Type?: string;
206
- message?: string;
207
218
  Reason?: ThrottleReason | string;
219
+ /**
220
+ * @internal
221
+ */
222
+ constructor(opts: __ExceptionOptionType<TooManyRequestsException, __BaseException>);
208
223
  }
209
224
  export interface AddPermissionRequest {
210
225
  /**
@@ -963,34 +978,45 @@ export declare namespace EventSourceMappingConfiguration {
963
978
  /**
964
979
  * <p>The specified code signing configuration does not exist.</p>
965
980
  */
966
- export interface CodeSigningConfigNotFoundException extends __SmithyException, $MetadataBearer {
967
- name: "CodeSigningConfigNotFoundException";
968
- $fault: "client";
981
+ export declare class CodeSigningConfigNotFoundException extends __BaseException {
982
+ readonly name: "CodeSigningConfigNotFoundException";
983
+ readonly $fault: "client";
969
984
  Type?: string;
970
985
  Message?: string;
986
+ /**
987
+ * @internal
988
+ */
989
+ constructor(opts: __ExceptionOptionType<CodeSigningConfigNotFoundException, __BaseException>);
971
990
  }
972
991
  /**
973
992
  * <p>You have exceeded your maximum total code size per account. <a href="https://docs.aws.amazon.com/lambda/latest/dg/limits.html">Learn more</a>
974
993
  * </p>
975
994
  */
976
- export interface CodeStorageExceededException extends __SmithyException, $MetadataBearer {
977
- name: "CodeStorageExceededException";
978
- $fault: "client";
995
+ export declare class CodeStorageExceededException extends __BaseException {
996
+ readonly name: "CodeStorageExceededException";
997
+ readonly $fault: "client";
979
998
  /**
980
999
  * <p>The exception type.</p>
981
1000
  */
982
1001
  Type?: string;
983
- message?: string;
1002
+ /**
1003
+ * @internal
1004
+ */
1005
+ constructor(opts: __ExceptionOptionType<CodeStorageExceededException, __BaseException>);
984
1006
  }
985
1007
  /**
986
1008
  * <p>The code signature failed one or more of the validation checks for signature mismatch or expiry, and the code signing policy
987
1009
  * is set to ENFORCE. Lambda blocks the deployment. </p>
988
1010
  */
989
- export interface CodeVerificationFailedException extends __SmithyException, $MetadataBearer {
990
- name: "CodeVerificationFailedException";
991
- $fault: "client";
1011
+ export declare class CodeVerificationFailedException extends __BaseException {
1012
+ readonly name: "CodeVerificationFailedException";
1013
+ readonly $fault: "client";
992
1014
  Type?: string;
993
1015
  Message?: string;
1016
+ /**
1017
+ * @internal
1018
+ */
1019
+ constructor(opts: __ExceptionOptionType<CodeVerificationFailedException, __BaseException>);
994
1020
  }
995
1021
  /**
996
1022
  * <p>The code for the Lambda function. You can specify either an object in Amazon S3, upload a .zip file archive deployment
@@ -1111,6 +1137,7 @@ export declare enum PackageType {
1111
1137
  Zip = "Zip"
1112
1138
  }
1113
1139
  export declare enum Runtime {
1140
+ dotnet6 = "dotnet6",
1114
1141
  dotnetcore10 = "dotnetcore1.0",
1115
1142
  dotnetcore20 = "dotnetcore2.0",
1116
1143
  dotnetcore21 = "dotnetcore2.1",
@@ -1637,11 +1664,15 @@ export declare namespace FunctionConfiguration {
1637
1664
  * <p>The code signature failed the integrity check. Lambda always blocks deployment if the integrity check
1638
1665
  * fails, even if code signing policy is set to WARN.</p>
1639
1666
  */
1640
- export interface InvalidCodeSignatureException extends __SmithyException, $MetadataBearer {
1641
- name: "InvalidCodeSignatureException";
1642
- $fault: "client";
1667
+ export declare class InvalidCodeSignatureException extends __BaseException {
1668
+ readonly name: "InvalidCodeSignatureException";
1669
+ readonly $fault: "client";
1643
1670
  Type?: string;
1644
1671
  Message?: string;
1672
+ /**
1673
+ * @internal
1674
+ */
1675
+ constructor(opts: __ExceptionOptionType<InvalidCodeSignatureException, __BaseException>);
1645
1676
  }
1646
1677
  export interface DeleteAliasRequest {
1647
1678
  /**
@@ -1714,11 +1745,15 @@ export declare namespace DeleteEventSourceMappingRequest {
1714
1745
  * <p>The operation conflicts with the resource's availability. For example, you attempted to update an EventSource
1715
1746
  * Mapping in CREATING, or tried to delete a EventSource mapping currently in the UPDATING state.</p>
1716
1747
  */
1717
- export interface ResourceInUseException extends __SmithyException, $MetadataBearer {
1718
- name: "ResourceInUseException";
1719
- $fault: "client";
1748
+ export declare class ResourceInUseException extends __BaseException {
1749
+ readonly name: "ResourceInUseException";
1750
+ readonly $fault: "client";
1720
1751
  Type?: string;
1721
1752
  Message?: string;
1753
+ /**
1754
+ * @internal
1755
+ */
1756
+ constructor(opts: __ExceptionOptionType<ResourceInUseException, __BaseException>);
1722
1757
  }
1723
1758
  export interface DeleteFunctionRequest {
1724
1759
  /**
@@ -2590,138 +2625,189 @@ export declare namespace GetProvisionedConcurrencyConfigResponse {
2590
2625
  /**
2591
2626
  * <p>The specified configuration does not exist.</p>
2592
2627
  */
2593
- export interface ProvisionedConcurrencyConfigNotFoundException extends __SmithyException, $MetadataBearer {
2594
- name: "ProvisionedConcurrencyConfigNotFoundException";
2595
- $fault: "client";
2628
+ export declare class ProvisionedConcurrencyConfigNotFoundException extends __BaseException {
2629
+ readonly name: "ProvisionedConcurrencyConfigNotFoundException";
2630
+ readonly $fault: "client";
2596
2631
  Type?: string;
2597
- message?: string;
2632
+ /**
2633
+ * @internal
2634
+ */
2635
+ constructor(opts: __ExceptionOptionType<ProvisionedConcurrencyConfigNotFoundException, __BaseException>);
2598
2636
  }
2599
2637
  /**
2600
2638
  * <p>Need additional permissions to configure VPC settings.</p>
2601
2639
  */
2602
- export interface EC2AccessDeniedException extends __SmithyException, $MetadataBearer {
2603
- name: "EC2AccessDeniedException";
2604
- $fault: "server";
2640
+ export declare class EC2AccessDeniedException extends __BaseException {
2641
+ readonly name: "EC2AccessDeniedException";
2642
+ readonly $fault: "server";
2605
2643
  Type?: string;
2606
2644
  Message?: string;
2645
+ /**
2646
+ * @internal
2647
+ */
2648
+ constructor(opts: __ExceptionOptionType<EC2AccessDeniedException, __BaseException>);
2607
2649
  }
2608
2650
  /**
2609
2651
  * <p>Lambda was throttled by Amazon EC2 during Lambda function initialization using the execution role provided
2610
2652
  * for the Lambda function.</p>
2611
2653
  */
2612
- export interface EC2ThrottledException extends __SmithyException, $MetadataBearer {
2613
- name: "EC2ThrottledException";
2614
- $fault: "server";
2654
+ export declare class EC2ThrottledException extends __BaseException {
2655
+ readonly name: "EC2ThrottledException";
2656
+ readonly $fault: "server";
2615
2657
  Type?: string;
2616
2658
  Message?: string;
2659
+ /**
2660
+ * @internal
2661
+ */
2662
+ constructor(opts: __ExceptionOptionType<EC2ThrottledException, __BaseException>);
2617
2663
  }
2618
2664
  /**
2619
2665
  * <p>Lambda received an unexpected EC2 client exception while setting up for the Lambda function.</p>
2620
2666
  */
2621
- export interface EC2UnexpectedException extends __SmithyException, $MetadataBearer {
2622
- name: "EC2UnexpectedException";
2623
- $fault: "server";
2667
+ export declare class EC2UnexpectedException extends __BaseException {
2668
+ readonly name: "EC2UnexpectedException";
2669
+ readonly $fault: "server";
2624
2670
  Type?: string;
2625
2671
  Message?: string;
2626
2672
  EC2ErrorCode?: string;
2673
+ /**
2674
+ * @internal
2675
+ */
2676
+ constructor(opts: __ExceptionOptionType<EC2UnexpectedException, __BaseException>);
2627
2677
  }
2628
2678
  /**
2629
2679
  * <p>An error occurred when reading from or writing to a connected file system.</p>
2630
2680
  */
2631
- export interface EFSIOException extends __SmithyException, $MetadataBearer {
2632
- name: "EFSIOException";
2633
- $fault: "client";
2681
+ export declare class EFSIOException extends __BaseException {
2682
+ readonly name: "EFSIOException";
2683
+ readonly $fault: "client";
2634
2684
  Type?: string;
2635
2685
  Message?: string;
2686
+ /**
2687
+ * @internal
2688
+ */
2689
+ constructor(opts: __ExceptionOptionType<EFSIOException, __BaseException>);
2636
2690
  }
2637
2691
  /**
2638
2692
  * <p>The function couldn't make a network connection to the configured file system.</p>
2639
2693
  */
2640
- export interface EFSMountConnectivityException extends __SmithyException, $MetadataBearer {
2641
- name: "EFSMountConnectivityException";
2642
- $fault: "client";
2694
+ export declare class EFSMountConnectivityException extends __BaseException {
2695
+ readonly name: "EFSMountConnectivityException";
2696
+ readonly $fault: "client";
2643
2697
  Type?: string;
2644
2698
  Message?: string;
2699
+ /**
2700
+ * @internal
2701
+ */
2702
+ constructor(opts: __ExceptionOptionType<EFSMountConnectivityException, __BaseException>);
2645
2703
  }
2646
2704
  /**
2647
2705
  * <p>The function couldn't mount the configured file system due to a permission or configuration issue.</p>
2648
2706
  */
2649
- export interface EFSMountFailureException extends __SmithyException, $MetadataBearer {
2650
- name: "EFSMountFailureException";
2651
- $fault: "client";
2707
+ export declare class EFSMountFailureException extends __BaseException {
2708
+ readonly name: "EFSMountFailureException";
2709
+ readonly $fault: "client";
2652
2710
  Type?: string;
2653
2711
  Message?: string;
2712
+ /**
2713
+ * @internal
2714
+ */
2715
+ constructor(opts: __ExceptionOptionType<EFSMountFailureException, __BaseException>);
2654
2716
  }
2655
2717
  /**
2656
2718
  * <p>The function was able to make a network connection to the configured file system, but the mount operation
2657
2719
  * timed out.</p>
2658
2720
  */
2659
- export interface EFSMountTimeoutException extends __SmithyException, $MetadataBearer {
2660
- name: "EFSMountTimeoutException";
2661
- $fault: "client";
2721
+ export declare class EFSMountTimeoutException extends __BaseException {
2722
+ readonly name: "EFSMountTimeoutException";
2723
+ readonly $fault: "client";
2662
2724
  Type?: string;
2663
2725
  Message?: string;
2726
+ /**
2727
+ * @internal
2728
+ */
2729
+ constructor(opts: __ExceptionOptionType<EFSMountTimeoutException, __BaseException>);
2664
2730
  }
2665
2731
  /**
2666
2732
  * <p>Lambda was not able to create an elastic network interface in the VPC, specified as part of Lambda
2667
2733
  * function configuration, because the limit for network interfaces has been reached.</p>
2668
2734
  */
2669
- export interface ENILimitReachedException extends __SmithyException, $MetadataBearer {
2670
- name: "ENILimitReachedException";
2671
- $fault: "server";
2735
+ export declare class ENILimitReachedException extends __BaseException {
2736
+ readonly name: "ENILimitReachedException";
2737
+ readonly $fault: "server";
2672
2738
  Type?: string;
2673
2739
  Message?: string;
2740
+ /**
2741
+ * @internal
2742
+ */
2743
+ constructor(opts: __ExceptionOptionType<ENILimitReachedException, __BaseException>);
2674
2744
  }
2675
2745
  /**
2676
2746
  * <p>The request body could not be parsed as JSON.</p>
2677
2747
  */
2678
- export interface InvalidRequestContentException extends __SmithyException, $MetadataBearer {
2679
- name: "InvalidRequestContentException";
2680
- $fault: "client";
2748
+ export declare class InvalidRequestContentException extends __BaseException {
2749
+ readonly name: "InvalidRequestContentException";
2750
+ readonly $fault: "client";
2681
2751
  /**
2682
2752
  * <p>The exception type.</p>
2683
2753
  */
2684
2754
  Type?: string;
2685
2755
  /**
2686
- * <p>The exception message.</p>
2756
+ * @internal
2687
2757
  */
2688
- message?: string;
2758
+ constructor(opts: __ExceptionOptionType<InvalidRequestContentException, __BaseException>);
2689
2759
  }
2690
2760
  /**
2691
2761
  * <p>The runtime or runtime version specified is not supported.</p>
2692
2762
  */
2693
- export interface InvalidRuntimeException extends __SmithyException, $MetadataBearer {
2694
- name: "InvalidRuntimeException";
2695
- $fault: "server";
2763
+ export declare class InvalidRuntimeException extends __BaseException {
2764
+ readonly name: "InvalidRuntimeException";
2765
+ readonly $fault: "server";
2696
2766
  Type?: string;
2697
2767
  Message?: string;
2768
+ /**
2769
+ * @internal
2770
+ */
2771
+ constructor(opts: __ExceptionOptionType<InvalidRuntimeException, __BaseException>);
2698
2772
  }
2699
2773
  /**
2700
2774
  * <p>The Security Group ID provided in the Lambda function VPC configuration is invalid.</p>
2701
2775
  */
2702
- export interface InvalidSecurityGroupIDException extends __SmithyException, $MetadataBearer {
2703
- name: "InvalidSecurityGroupIDException";
2704
- $fault: "server";
2776
+ export declare class InvalidSecurityGroupIDException extends __BaseException {
2777
+ readonly name: "InvalidSecurityGroupIDException";
2778
+ readonly $fault: "server";
2705
2779
  Type?: string;
2706
2780
  Message?: string;
2781
+ /**
2782
+ * @internal
2783
+ */
2784
+ constructor(opts: __ExceptionOptionType<InvalidSecurityGroupIDException, __BaseException>);
2707
2785
  }
2708
2786
  /**
2709
2787
  * <p>The Subnet ID provided in the Lambda function VPC configuration is invalid.</p>
2710
2788
  */
2711
- export interface InvalidSubnetIDException extends __SmithyException, $MetadataBearer {
2712
- name: "InvalidSubnetIDException";
2713
- $fault: "server";
2789
+ export declare class InvalidSubnetIDException extends __BaseException {
2790
+ readonly name: "InvalidSubnetIDException";
2791
+ readonly $fault: "server";
2714
2792
  Type?: string;
2715
2793
  Message?: string;
2794
+ /**
2795
+ * @internal
2796
+ */
2797
+ constructor(opts: __ExceptionOptionType<InvalidSubnetIDException, __BaseException>);
2716
2798
  }
2717
2799
  /**
2718
2800
  * <p>Lambda could not unzip the deployment package.</p>
2719
2801
  */
2720
- export interface InvalidZipFileException extends __SmithyException, $MetadataBearer {
2721
- name: "InvalidZipFileException";
2722
- $fault: "server";
2802
+ export declare class InvalidZipFileException extends __BaseException {
2803
+ readonly name: "InvalidZipFileException";
2804
+ readonly $fault: "server";
2723
2805
  Type?: string;
2724
2806
  Message?: string;
2807
+ /**
2808
+ * @internal
2809
+ */
2810
+ constructor(opts: __ExceptionOptionType<InvalidZipFileException, __BaseException>);
2725
2811
  }
2726
2812
  export declare enum InvocationType {
2727
2813
  DryRun = "DryRun",
@@ -2841,86 +2927,112 @@ export declare namespace InvocationResponse {
2841
2927
  * <p>Lambda was unable to decrypt the environment variables because KMS access was denied. Check the Lambda
2842
2928
  * function's KMS permissions.</p>
2843
2929
  */
2844
- export interface KMSAccessDeniedException extends __SmithyException, $MetadataBearer {
2845
- name: "KMSAccessDeniedException";
2846
- $fault: "server";
2930
+ export declare class KMSAccessDeniedException extends __BaseException {
2931
+ readonly name: "KMSAccessDeniedException";
2932
+ readonly $fault: "server";
2847
2933
  Type?: string;
2848
2934
  Message?: string;
2935
+ /**
2936
+ * @internal
2937
+ */
2938
+ constructor(opts: __ExceptionOptionType<KMSAccessDeniedException, __BaseException>);
2849
2939
  }
2850
2940
  /**
2851
2941
  * <p>Lambda was unable to decrypt the environment variables because the KMS key used is disabled. Check the Lambda
2852
2942
  * function's KMS key settings.</p>
2853
2943
  */
2854
- export interface KMSDisabledException extends __SmithyException, $MetadataBearer {
2855
- name: "KMSDisabledException";
2856
- $fault: "server";
2944
+ export declare class KMSDisabledException extends __BaseException {
2945
+ readonly name: "KMSDisabledException";
2946
+ readonly $fault: "server";
2857
2947
  Type?: string;
2858
2948
  Message?: string;
2949
+ /**
2950
+ * @internal
2951
+ */
2952
+ constructor(opts: __ExceptionOptionType<KMSDisabledException, __BaseException>);
2859
2953
  }
2860
2954
  /**
2861
2955
  * <p>Lambda was unable to decrypt the environment variables because the KMS key used is in an invalid state for
2862
2956
  * Decrypt. Check the function's KMS key settings.</p>
2863
2957
  */
2864
- export interface KMSInvalidStateException extends __SmithyException, $MetadataBearer {
2865
- name: "KMSInvalidStateException";
2866
- $fault: "server";
2958
+ export declare class KMSInvalidStateException extends __BaseException {
2959
+ readonly name: "KMSInvalidStateException";
2960
+ readonly $fault: "server";
2867
2961
  Type?: string;
2868
2962
  Message?: string;
2963
+ /**
2964
+ * @internal
2965
+ */
2966
+ constructor(opts: __ExceptionOptionType<KMSInvalidStateException, __BaseException>);
2869
2967
  }
2870
2968
  /**
2871
2969
  * <p>Lambda was unable to decrypt the environment variables because the KMS key was not found. Check the function's
2872
2970
  * KMS key settings. </p>
2873
2971
  */
2874
- export interface KMSNotFoundException extends __SmithyException, $MetadataBearer {
2875
- name: "KMSNotFoundException";
2876
- $fault: "server";
2972
+ export declare class KMSNotFoundException extends __BaseException {
2973
+ readonly name: "KMSNotFoundException";
2974
+ readonly $fault: "server";
2877
2975
  Type?: string;
2878
2976
  Message?: string;
2977
+ /**
2978
+ * @internal
2979
+ */
2980
+ constructor(opts: __ExceptionOptionType<KMSNotFoundException, __BaseException>);
2879
2981
  }
2880
2982
  /**
2881
2983
  * <p>The request payload exceeded the <code>Invoke</code> request body JSON input limit. For more information, see
2882
2984
  * <a href="https://docs.aws.amazon.com/lambda/latest/dg/limits.html">Limits</a>. </p>
2883
2985
  */
2884
- export interface RequestTooLargeException extends __SmithyException, $MetadataBearer {
2885
- name: "RequestTooLargeException";
2886
- $fault: "client";
2986
+ export declare class RequestTooLargeException extends __BaseException {
2987
+ readonly name: "RequestTooLargeException";
2988
+ readonly $fault: "client";
2887
2989
  Type?: string;
2888
- message?: string;
2990
+ /**
2991
+ * @internal
2992
+ */
2993
+ constructor(opts: __ExceptionOptionType<RequestTooLargeException, __BaseException>);
2889
2994
  }
2890
2995
  /**
2891
2996
  * <p>The function is inactive and its VPC connection is no longer available. Wait for the VPC connection to
2892
2997
  * reestablish and try again.</p>
2893
2998
  */
2894
- export interface ResourceNotReadyException extends __SmithyException, $MetadataBearer {
2895
- name: "ResourceNotReadyException";
2896
- $fault: "server";
2999
+ export declare class ResourceNotReadyException extends __BaseException {
3000
+ readonly name: "ResourceNotReadyException";
3001
+ readonly $fault: "server";
2897
3002
  /**
2898
3003
  * <p>The exception type.</p>
2899
3004
  */
2900
3005
  Type?: string;
2901
3006
  /**
2902
- * <p>The exception message.</p>
3007
+ * @internal
2903
3008
  */
2904
- message?: string;
3009
+ constructor(opts: __ExceptionOptionType<ResourceNotReadyException, __BaseException>);
2905
3010
  }
2906
3011
  /**
2907
3012
  * <p>Lambda was not able to set up VPC access for the Lambda function because one or more configured subnets
2908
3013
  * has no available IP addresses.</p>
2909
3014
  */
2910
- export interface SubnetIPAddressLimitReachedException extends __SmithyException, $MetadataBearer {
2911
- name: "SubnetIPAddressLimitReachedException";
2912
- $fault: "server";
3015
+ export declare class SubnetIPAddressLimitReachedException extends __BaseException {
3016
+ readonly name: "SubnetIPAddressLimitReachedException";
3017
+ readonly $fault: "server";
2913
3018
  Type?: string;
2914
3019
  Message?: string;
3020
+ /**
3021
+ * @internal
3022
+ */
3023
+ constructor(opts: __ExceptionOptionType<SubnetIPAddressLimitReachedException, __BaseException>);
2915
3024
  }
2916
3025
  /**
2917
3026
  * <p>The content type of the <code>Invoke</code> request body is not JSON.</p>
2918
3027
  */
2919
- export interface UnsupportedMediaTypeException extends __SmithyException, $MetadataBearer {
2920
- name: "UnsupportedMediaTypeException";
2921
- $fault: "client";
3028
+ export declare class UnsupportedMediaTypeException extends __BaseException {
3029
+ readonly name: "UnsupportedMediaTypeException";
3030
+ readonly $fault: "client";
2922
3031
  Type?: string;
2923
- message?: string;
3032
+ /**
3033
+ * @internal
3034
+ */
3035
+ constructor(opts: __ExceptionOptionType<UnsupportedMediaTypeException, __BaseException>);
2924
3036
  }
2925
3037
  export interface InvokeAsyncRequest {
2926
3038
  /**
@@ -4362,16 +4474,17 @@ export interface UpdateFunctionCodeRequest {
4362
4474
  */
4363
4475
  FunctionName: string | undefined;
4364
4476
  /**
4365
- * <p>The base64-encoded contents of the deployment package. Amazon Web Services SDK and Amazon Web Services CLI clients handle the encoding for
4366
- * you.</p>
4477
+ * <p>The base64-encoded contents of the deployment package. Amazon Web Services SDK and Amazon Web Services CLI clients
4478
+ * handle the encoding for you. Use only with a function defined with a .zip file archive deployment package.</p>
4367
4479
  */
4368
4480
  ZipFile?: Uint8Array;
4369
4481
  /**
4370
- * <p>An Amazon S3 bucket in the same Amazon Web Services Region as your function. The bucket can be in a different Amazon Web Services account.</p>
4482
+ * <p>An Amazon S3 bucket in the same Amazon Web Services Region as your function. The bucket can be in a different
4483
+ * Amazon Web Services account. Use only with a function defined with a .zip file archive deployment package.</p>
4371
4484
  */
4372
4485
  S3Bucket?: string;
4373
4486
  /**
4374
- * <p>The Amazon S3 key of the deployment package.</p>
4487
+ * <p>The Amazon S3 key of the deployment package. Use only with a function defined with a .zip file archive deployment package.</p>
4375
4488
  */
4376
4489
  S3Key?: string;
4377
4490
  /**
@@ -4379,7 +4492,8 @@ export interface UpdateFunctionCodeRequest {
4379
4492
  */
4380
4493
  S3ObjectVersion?: string;
4381
4494
  /**
4382
- * <p>URI of a container image in the Amazon ECR registry.</p>
4495
+ * <p>URI of a container image in the Amazon ECR registry. Do not use for a function defined
4496
+ * with a .zip file archive.</p>
4383
4497
  */
4384
4498
  ImageUri?: string;
4385
4499
  /**
@@ -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>;