@aws-sdk/client-lambda 3.301.0 → 3.303.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.
@@ -80,15 +80,14 @@ export class ServiceException extends __BaseException {
80
80
  this.Message = opts.Message;
81
81
  }
82
82
  }
83
- export var ThrottleReason;
84
- (function (ThrottleReason) {
85
- ThrottleReason["CallerRateLimitExceeded"] = "CallerRateLimitExceeded";
86
- ThrottleReason["ConcurrentInvocationLimitExceeded"] = "ConcurrentInvocationLimitExceeded";
87
- ThrottleReason["ConcurrentSnapshotCreateLimitExceeded"] = "ConcurrentSnapshotCreateLimitExceeded";
88
- ThrottleReason["FunctionInvocationRateLimitExceeded"] = "FunctionInvocationRateLimitExceeded";
89
- ThrottleReason["ReservedFunctionConcurrentInvocationLimitExceeded"] = "ReservedFunctionConcurrentInvocationLimitExceeded";
90
- ThrottleReason["ReservedFunctionInvocationRateLimitExceeded"] = "ReservedFunctionInvocationRateLimitExceeded";
91
- })(ThrottleReason || (ThrottleReason = {}));
83
+ export const ThrottleReason = {
84
+ CallerRateLimitExceeded: "CallerRateLimitExceeded",
85
+ ConcurrentInvocationLimitExceeded: "ConcurrentInvocationLimitExceeded",
86
+ ConcurrentSnapshotCreateLimitExceeded: "ConcurrentSnapshotCreateLimitExceeded",
87
+ FunctionInvocationRateLimitExceeded: "FunctionInvocationRateLimitExceeded",
88
+ ReservedFunctionConcurrentInvocationLimitExceeded: "ReservedFunctionConcurrentInvocationLimitExceeded",
89
+ ReservedFunctionInvocationRateLimitExceeded: "ReservedFunctionInvocationRateLimitExceeded",
90
+ };
92
91
  export class TooManyRequestsException extends __BaseException {
93
92
  constructor(opts) {
94
93
  super({
@@ -104,51 +103,43 @@ export class TooManyRequestsException extends __BaseException {
104
103
  this.Reason = opts.Reason;
105
104
  }
106
105
  }
107
- export var FunctionUrlAuthType;
108
- (function (FunctionUrlAuthType) {
109
- FunctionUrlAuthType["AWS_IAM"] = "AWS_IAM";
110
- FunctionUrlAuthType["NONE"] = "NONE";
111
- })(FunctionUrlAuthType || (FunctionUrlAuthType = {}));
112
- export var Architecture;
113
- (function (Architecture) {
114
- Architecture["arm64"] = "arm64";
115
- Architecture["x86_64"] = "x86_64";
116
- })(Architecture || (Architecture = {}));
117
- export var CodeSigningPolicy;
118
- (function (CodeSigningPolicy) {
119
- CodeSigningPolicy["Enforce"] = "Enforce";
120
- CodeSigningPolicy["Warn"] = "Warn";
121
- })(CodeSigningPolicy || (CodeSigningPolicy = {}));
122
- export var FullDocument;
123
- (function (FullDocument) {
124
- FullDocument["Default"] = "Default";
125
- FullDocument["UpdateLookup"] = "UpdateLookup";
126
- })(FullDocument || (FullDocument = {}));
127
- export var FunctionResponseType;
128
- (function (FunctionResponseType) {
129
- FunctionResponseType["ReportBatchItemFailures"] = "ReportBatchItemFailures";
130
- })(FunctionResponseType || (FunctionResponseType = {}));
131
- export var EndPointType;
132
- (function (EndPointType) {
133
- EndPointType["KAFKA_BOOTSTRAP_SERVERS"] = "KAFKA_BOOTSTRAP_SERVERS";
134
- })(EndPointType || (EndPointType = {}));
135
- export var SourceAccessType;
136
- (function (SourceAccessType) {
137
- SourceAccessType["BASIC_AUTH"] = "BASIC_AUTH";
138
- SourceAccessType["CLIENT_CERTIFICATE_TLS_AUTH"] = "CLIENT_CERTIFICATE_TLS_AUTH";
139
- SourceAccessType["SASL_SCRAM_256_AUTH"] = "SASL_SCRAM_256_AUTH";
140
- SourceAccessType["SASL_SCRAM_512_AUTH"] = "SASL_SCRAM_512_AUTH";
141
- SourceAccessType["SERVER_ROOT_CA_CERTIFICATE"] = "SERVER_ROOT_CA_CERTIFICATE";
142
- SourceAccessType["VIRTUAL_HOST"] = "VIRTUAL_HOST";
143
- SourceAccessType["VPC_SECURITY_GROUP"] = "VPC_SECURITY_GROUP";
144
- SourceAccessType["VPC_SUBNET"] = "VPC_SUBNET";
145
- })(SourceAccessType || (SourceAccessType = {}));
146
- export var EventSourcePosition;
147
- (function (EventSourcePosition) {
148
- EventSourcePosition["AT_TIMESTAMP"] = "AT_TIMESTAMP";
149
- EventSourcePosition["LATEST"] = "LATEST";
150
- EventSourcePosition["TRIM_HORIZON"] = "TRIM_HORIZON";
151
- })(EventSourcePosition || (EventSourcePosition = {}));
106
+ export const FunctionUrlAuthType = {
107
+ AWS_IAM: "AWS_IAM",
108
+ NONE: "NONE",
109
+ };
110
+ export const Architecture = {
111
+ arm64: "arm64",
112
+ x86_64: "x86_64",
113
+ };
114
+ export const CodeSigningPolicy = {
115
+ Enforce: "Enforce",
116
+ Warn: "Warn",
117
+ };
118
+ export const FullDocument = {
119
+ Default: "Default",
120
+ UpdateLookup: "UpdateLookup",
121
+ };
122
+ export const FunctionResponseType = {
123
+ ReportBatchItemFailures: "ReportBatchItemFailures",
124
+ };
125
+ export const EndPointType = {
126
+ KAFKA_BOOTSTRAP_SERVERS: "KAFKA_BOOTSTRAP_SERVERS",
127
+ };
128
+ export const SourceAccessType = {
129
+ BASIC_AUTH: "BASIC_AUTH",
130
+ CLIENT_CERTIFICATE_TLS_AUTH: "CLIENT_CERTIFICATE_TLS_AUTH",
131
+ SASL_SCRAM_256_AUTH: "SASL_SCRAM_256_AUTH",
132
+ SASL_SCRAM_512_AUTH: "SASL_SCRAM_512_AUTH",
133
+ SERVER_ROOT_CA_CERTIFICATE: "SERVER_ROOT_CA_CERTIFICATE",
134
+ VIRTUAL_HOST: "VIRTUAL_HOST",
135
+ VPC_SECURITY_GROUP: "VPC_SECURITY_GROUP",
136
+ VPC_SUBNET: "VPC_SUBNET",
137
+ };
138
+ export const EventSourcePosition = {
139
+ AT_TIMESTAMP: "AT_TIMESTAMP",
140
+ LATEST: "LATEST",
141
+ TRIM_HORIZON: "TRIM_HORIZON",
142
+ };
152
143
  export class CodeSigningConfigNotFoundException extends __BaseException {
153
144
  constructor(opts) {
154
145
  super({
@@ -190,121 +181,112 @@ export class CodeVerificationFailedException extends __BaseException {
190
181
  this.Message = opts.Message;
191
182
  }
192
183
  }
193
- export var PackageType;
194
- (function (PackageType) {
195
- PackageType["Image"] = "Image";
196
- PackageType["Zip"] = "Zip";
197
- })(PackageType || (PackageType = {}));
198
- export var Runtime;
199
- (function (Runtime) {
200
- Runtime["dotnet6"] = "dotnet6";
201
- Runtime["dotnetcore10"] = "dotnetcore1.0";
202
- Runtime["dotnetcore20"] = "dotnetcore2.0";
203
- Runtime["dotnetcore21"] = "dotnetcore2.1";
204
- Runtime["dotnetcore31"] = "dotnetcore3.1";
205
- Runtime["go1x"] = "go1.x";
206
- Runtime["java11"] = "java11";
207
- Runtime["java8"] = "java8";
208
- Runtime["java8al2"] = "java8.al2";
209
- Runtime["nodejs"] = "nodejs";
210
- Runtime["nodejs10x"] = "nodejs10.x";
211
- Runtime["nodejs12x"] = "nodejs12.x";
212
- Runtime["nodejs14x"] = "nodejs14.x";
213
- Runtime["nodejs16x"] = "nodejs16.x";
214
- Runtime["nodejs18x"] = "nodejs18.x";
215
- Runtime["nodejs43"] = "nodejs4.3";
216
- Runtime["nodejs43edge"] = "nodejs4.3-edge";
217
- Runtime["nodejs610"] = "nodejs6.10";
218
- Runtime["nodejs810"] = "nodejs8.10";
219
- Runtime["provided"] = "provided";
220
- Runtime["providedal2"] = "provided.al2";
221
- Runtime["python27"] = "python2.7";
222
- Runtime["python36"] = "python3.6";
223
- Runtime["python37"] = "python3.7";
224
- Runtime["python38"] = "python3.8";
225
- Runtime["python39"] = "python3.9";
226
- Runtime["ruby25"] = "ruby2.5";
227
- Runtime["ruby27"] = "ruby2.7";
228
- })(Runtime || (Runtime = {}));
229
- export var SnapStartApplyOn;
230
- (function (SnapStartApplyOn) {
231
- SnapStartApplyOn["None"] = "None";
232
- SnapStartApplyOn["PublishedVersions"] = "PublishedVersions";
233
- })(SnapStartApplyOn || (SnapStartApplyOn = {}));
234
- export var TracingMode;
235
- (function (TracingMode) {
236
- TracingMode["Active"] = "Active";
237
- TracingMode["PassThrough"] = "PassThrough";
238
- })(TracingMode || (TracingMode = {}));
239
- export var LastUpdateStatus;
240
- (function (LastUpdateStatus) {
241
- LastUpdateStatus["Failed"] = "Failed";
242
- LastUpdateStatus["InProgress"] = "InProgress";
243
- LastUpdateStatus["Successful"] = "Successful";
244
- })(LastUpdateStatus || (LastUpdateStatus = {}));
245
- export var LastUpdateStatusReasonCode;
246
- (function (LastUpdateStatusReasonCode) {
247
- LastUpdateStatusReasonCode["DisabledKMSKey"] = "DisabledKMSKey";
248
- LastUpdateStatusReasonCode["EFSIOError"] = "EFSIOError";
249
- LastUpdateStatusReasonCode["EFSMountConnectivityError"] = "EFSMountConnectivityError";
250
- LastUpdateStatusReasonCode["EFSMountFailure"] = "EFSMountFailure";
251
- LastUpdateStatusReasonCode["EFSMountTimeout"] = "EFSMountTimeout";
252
- LastUpdateStatusReasonCode["EniLimitExceeded"] = "EniLimitExceeded";
253
- LastUpdateStatusReasonCode["FunctionError"] = "FunctionError";
254
- LastUpdateStatusReasonCode["ImageAccessDenied"] = "ImageAccessDenied";
255
- LastUpdateStatusReasonCode["ImageDeleted"] = "ImageDeleted";
256
- LastUpdateStatusReasonCode["InsufficientRolePermissions"] = "InsufficientRolePermissions";
257
- LastUpdateStatusReasonCode["InternalError"] = "InternalError";
258
- LastUpdateStatusReasonCode["InvalidConfiguration"] = "InvalidConfiguration";
259
- LastUpdateStatusReasonCode["InvalidImage"] = "InvalidImage";
260
- LastUpdateStatusReasonCode["InvalidRuntime"] = "InvalidRuntime";
261
- LastUpdateStatusReasonCode["InvalidSecurityGroup"] = "InvalidSecurityGroup";
262
- LastUpdateStatusReasonCode["InvalidStateKMSKey"] = "InvalidStateKMSKey";
263
- LastUpdateStatusReasonCode["InvalidSubnet"] = "InvalidSubnet";
264
- LastUpdateStatusReasonCode["InvalidZipFileException"] = "InvalidZipFileException";
265
- LastUpdateStatusReasonCode["KMSKeyAccessDenied"] = "KMSKeyAccessDenied";
266
- LastUpdateStatusReasonCode["KMSKeyNotFound"] = "KMSKeyNotFound";
267
- LastUpdateStatusReasonCode["SubnetOutOfIPAddresses"] = "SubnetOutOfIPAddresses";
268
- })(LastUpdateStatusReasonCode || (LastUpdateStatusReasonCode = {}));
269
- export var SnapStartOptimizationStatus;
270
- (function (SnapStartOptimizationStatus) {
271
- SnapStartOptimizationStatus["Off"] = "Off";
272
- SnapStartOptimizationStatus["On"] = "On";
273
- })(SnapStartOptimizationStatus || (SnapStartOptimizationStatus = {}));
274
- export var State;
275
- (function (State) {
276
- State["Active"] = "Active";
277
- State["Failed"] = "Failed";
278
- State["Inactive"] = "Inactive";
279
- State["Pending"] = "Pending";
280
- })(State || (State = {}));
281
- export var StateReasonCode;
282
- (function (StateReasonCode) {
283
- StateReasonCode["Creating"] = "Creating";
284
- StateReasonCode["DisabledKMSKey"] = "DisabledKMSKey";
285
- StateReasonCode["EFSIOError"] = "EFSIOError";
286
- StateReasonCode["EFSMountConnectivityError"] = "EFSMountConnectivityError";
287
- StateReasonCode["EFSMountFailure"] = "EFSMountFailure";
288
- StateReasonCode["EFSMountTimeout"] = "EFSMountTimeout";
289
- StateReasonCode["EniLimitExceeded"] = "EniLimitExceeded";
290
- StateReasonCode["FunctionError"] = "FunctionError";
291
- StateReasonCode["Idle"] = "Idle";
292
- StateReasonCode["ImageAccessDenied"] = "ImageAccessDenied";
293
- StateReasonCode["ImageDeleted"] = "ImageDeleted";
294
- StateReasonCode["InsufficientRolePermissions"] = "InsufficientRolePermissions";
295
- StateReasonCode["InternalError"] = "InternalError";
296
- StateReasonCode["InvalidConfiguration"] = "InvalidConfiguration";
297
- StateReasonCode["InvalidImage"] = "InvalidImage";
298
- StateReasonCode["InvalidRuntime"] = "InvalidRuntime";
299
- StateReasonCode["InvalidSecurityGroup"] = "InvalidSecurityGroup";
300
- StateReasonCode["InvalidStateKMSKey"] = "InvalidStateKMSKey";
301
- StateReasonCode["InvalidSubnet"] = "InvalidSubnet";
302
- StateReasonCode["InvalidZipFileException"] = "InvalidZipFileException";
303
- StateReasonCode["KMSKeyAccessDenied"] = "KMSKeyAccessDenied";
304
- StateReasonCode["KMSKeyNotFound"] = "KMSKeyNotFound";
305
- StateReasonCode["Restoring"] = "Restoring";
306
- StateReasonCode["SubnetOutOfIPAddresses"] = "SubnetOutOfIPAddresses";
307
- })(StateReasonCode || (StateReasonCode = {}));
184
+ export const PackageType = {
185
+ Image: "Image",
186
+ Zip: "Zip",
187
+ };
188
+ export const Runtime = {
189
+ dotnet6: "dotnet6",
190
+ dotnetcore10: "dotnetcore1.0",
191
+ dotnetcore20: "dotnetcore2.0",
192
+ dotnetcore21: "dotnetcore2.1",
193
+ dotnetcore31: "dotnetcore3.1",
194
+ go1x: "go1.x",
195
+ java11: "java11",
196
+ java8: "java8",
197
+ java8al2: "java8.al2",
198
+ nodejs: "nodejs",
199
+ nodejs10x: "nodejs10.x",
200
+ nodejs12x: "nodejs12.x",
201
+ nodejs14x: "nodejs14.x",
202
+ nodejs16x: "nodejs16.x",
203
+ nodejs18x: "nodejs18.x",
204
+ nodejs43: "nodejs4.3",
205
+ nodejs43edge: "nodejs4.3-edge",
206
+ nodejs610: "nodejs6.10",
207
+ nodejs810: "nodejs8.10",
208
+ provided: "provided",
209
+ providedal2: "provided.al2",
210
+ python27: "python2.7",
211
+ python36: "python3.6",
212
+ python37: "python3.7",
213
+ python38: "python3.8",
214
+ python39: "python3.9",
215
+ ruby25: "ruby2.5",
216
+ ruby27: "ruby2.7",
217
+ };
218
+ export const SnapStartApplyOn = {
219
+ None: "None",
220
+ PublishedVersions: "PublishedVersions",
221
+ };
222
+ export const TracingMode = {
223
+ Active: "Active",
224
+ PassThrough: "PassThrough",
225
+ };
226
+ export const LastUpdateStatus = {
227
+ Failed: "Failed",
228
+ InProgress: "InProgress",
229
+ Successful: "Successful",
230
+ };
231
+ export const LastUpdateStatusReasonCode = {
232
+ DisabledKMSKey: "DisabledKMSKey",
233
+ EFSIOError: "EFSIOError",
234
+ EFSMountConnectivityError: "EFSMountConnectivityError",
235
+ EFSMountFailure: "EFSMountFailure",
236
+ EFSMountTimeout: "EFSMountTimeout",
237
+ EniLimitExceeded: "EniLimitExceeded",
238
+ FunctionError: "FunctionError",
239
+ ImageAccessDenied: "ImageAccessDenied",
240
+ ImageDeleted: "ImageDeleted",
241
+ InsufficientRolePermissions: "InsufficientRolePermissions",
242
+ InternalError: "InternalError",
243
+ InvalidConfiguration: "InvalidConfiguration",
244
+ InvalidImage: "InvalidImage",
245
+ InvalidRuntime: "InvalidRuntime",
246
+ InvalidSecurityGroup: "InvalidSecurityGroup",
247
+ InvalidStateKMSKey: "InvalidStateKMSKey",
248
+ InvalidSubnet: "InvalidSubnet",
249
+ InvalidZipFileException: "InvalidZipFileException",
250
+ KMSKeyAccessDenied: "KMSKeyAccessDenied",
251
+ KMSKeyNotFound: "KMSKeyNotFound",
252
+ SubnetOutOfIPAddresses: "SubnetOutOfIPAddresses",
253
+ };
254
+ export const SnapStartOptimizationStatus = {
255
+ Off: "Off",
256
+ On: "On",
257
+ };
258
+ export const State = {
259
+ Active: "Active",
260
+ Failed: "Failed",
261
+ Inactive: "Inactive",
262
+ Pending: "Pending",
263
+ };
264
+ export const StateReasonCode = {
265
+ Creating: "Creating",
266
+ DisabledKMSKey: "DisabledKMSKey",
267
+ EFSIOError: "EFSIOError",
268
+ EFSMountConnectivityError: "EFSMountConnectivityError",
269
+ EFSMountFailure: "EFSMountFailure",
270
+ EFSMountTimeout: "EFSMountTimeout",
271
+ EniLimitExceeded: "EniLimitExceeded",
272
+ FunctionError: "FunctionError",
273
+ Idle: "Idle",
274
+ ImageAccessDenied: "ImageAccessDenied",
275
+ ImageDeleted: "ImageDeleted",
276
+ InsufficientRolePermissions: "InsufficientRolePermissions",
277
+ InternalError: "InternalError",
278
+ InvalidConfiguration: "InvalidConfiguration",
279
+ InvalidImage: "InvalidImage",
280
+ InvalidRuntime: "InvalidRuntime",
281
+ InvalidSecurityGroup: "InvalidSecurityGroup",
282
+ InvalidStateKMSKey: "InvalidStateKMSKey",
283
+ InvalidSubnet: "InvalidSubnet",
284
+ InvalidZipFileException: "InvalidZipFileException",
285
+ KMSKeyAccessDenied: "KMSKeyAccessDenied",
286
+ KMSKeyNotFound: "KMSKeyNotFound",
287
+ Restoring: "Restoring",
288
+ SubnetOutOfIPAddresses: "SubnetOutOfIPAddresses",
289
+ };
308
290
  export class InvalidCodeSignatureException extends __BaseException {
309
291
  constructor(opts) {
310
292
  super({
@@ -333,12 +315,11 @@ export class ResourceInUseException extends __BaseException {
333
315
  this.Message = opts.Message;
334
316
  }
335
317
  }
336
- export var ProvisionedConcurrencyStatusEnum;
337
- (function (ProvisionedConcurrencyStatusEnum) {
338
- ProvisionedConcurrencyStatusEnum["FAILED"] = "FAILED";
339
- ProvisionedConcurrencyStatusEnum["IN_PROGRESS"] = "IN_PROGRESS";
340
- ProvisionedConcurrencyStatusEnum["READY"] = "READY";
341
- })(ProvisionedConcurrencyStatusEnum || (ProvisionedConcurrencyStatusEnum = {}));
318
+ export const ProvisionedConcurrencyStatusEnum = {
319
+ FAILED: "FAILED",
320
+ IN_PROGRESS: "IN_PROGRESS",
321
+ READY: "READY",
322
+ };
342
323
  export class ProvisionedConcurrencyConfigNotFoundException extends __BaseException {
343
324
  constructor(opts) {
344
325
  super({
@@ -352,12 +333,11 @@ export class ProvisionedConcurrencyConfigNotFoundException extends __BaseExcepti
352
333
  this.Type = opts.Type;
353
334
  }
354
335
  }
355
- export var UpdateRuntimeOn;
356
- (function (UpdateRuntimeOn) {
357
- UpdateRuntimeOn["Auto"] = "Auto";
358
- UpdateRuntimeOn["FunctionUpdate"] = "FunctionUpdate";
359
- UpdateRuntimeOn["Manual"] = "Manual";
360
- })(UpdateRuntimeOn || (UpdateRuntimeOn = {}));
336
+ export const UpdateRuntimeOn = {
337
+ Auto: "Auto",
338
+ FunctionUpdate: "FunctionUpdate",
339
+ Manual: "Manual",
340
+ };
361
341
  export class EC2AccessDeniedException extends __BaseException {
362
342
  constructor(opts) {
363
343
  super({
@@ -540,17 +520,15 @@ export class InvalidZipFileException extends __BaseException {
540
520
  this.Message = opts.Message;
541
521
  }
542
522
  }
543
- export var InvocationType;
544
- (function (InvocationType) {
545
- InvocationType["DryRun"] = "DryRun";
546
- InvocationType["Event"] = "Event";
547
- InvocationType["RequestResponse"] = "RequestResponse";
548
- })(InvocationType || (InvocationType = {}));
549
- export var LogType;
550
- (function (LogType) {
551
- LogType["None"] = "None";
552
- LogType["Tail"] = "Tail";
553
- })(LogType || (LogType = {}));
523
+ export const InvocationType = {
524
+ DryRun: "DryRun",
525
+ Event: "Event",
526
+ RequestResponse: "RequestResponse",
527
+ };
528
+ export const LogType = {
529
+ None: "None",
530
+ Tail: "Tail",
531
+ };
554
532
  export class KMSAccessDeniedException extends __BaseException {
555
533
  constructor(opts) {
556
534
  super({
@@ -702,10 +680,9 @@ export class UnsupportedMediaTypeException extends __BaseException {
702
680
  this.Type = opts.Type;
703
681
  }
704
682
  }
705
- export var FunctionVersion;
706
- (function (FunctionVersion) {
707
- FunctionVersion["ALL"] = "ALL";
708
- })(FunctionVersion || (FunctionVersion = {}));
683
+ export const FunctionVersion = {
684
+ ALL: "ALL",
685
+ };
709
686
  export const FunctionCodeFilterSensitiveLog = (obj) => ({
710
687
  ...obj,
711
688
  ...(obj.ZipFile && { ZipFile: SENSITIVE_STRING }),