@aws-sdk/client-lambda 3.216.0 → 3.219.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/endpoint/ruleset.js +1 -1
- package/dist-cjs/models/models_0.js +90 -4
- package/dist-cjs/protocols/Aws_restJson1.js +91 -5
- package/dist-cjs/waiters/index.js +1 -0
- package/dist-cjs/waiters/waitForPublishedVersionActive.js +54 -0
- package/dist-es/endpoint/ruleset.js +1 -1
- package/dist-es/models/models_0.js +81 -0
- package/dist-es/protocols/Aws_restJson1.js +92 -6
- package/dist-es/waiters/index.js +1 -0
- package/dist-es/waiters/waitForPublishedVersionActive.js +49 -0
- package/dist-types/Lambda.d.ts +77 -80
- package/dist-types/commands/AddPermissionCommand.d.ts +13 -13
- package/dist-types/commands/CreateFunctionCommand.d.ts +26 -27
- package/dist-types/commands/DeleteFunctionCommand.d.ts +2 -3
- package/dist-types/commands/InvokeCommand.d.ts +10 -8
- package/dist-types/commands/ListFunctionsCommand.d.ts +4 -4
- package/dist-types/commands/PutFunctionConcurrencyCommand.d.ts +1 -1
- package/dist-types/commands/RemovePermissionCommand.d.ts +2 -2
- package/dist-types/commands/UpdateFunctionCodeCommand.d.ts +12 -15
- package/dist-types/commands/UpdateFunctionConfigurationCommand.d.ts +7 -7
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +339 -209
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +70 -0
- package/dist-types/ts3.4/waiters/index.d.ts +1 -0
- package/dist-types/ts3.4/waiters/waitForPublishedVersionActive.d.ts +11 -0
- package/dist-types/waiters/index.d.ts +1 -0
- package/dist-types/waiters/waitForPublishedVersionActive.d.ts +14 -0
- package/package.json +3 -3
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.UpdateFunctionUrlConfigResponseFilterSensitiveLog = exports.UpdateFunctionUrlConfigRequestFilterSensitiveLog = exports.UpdateFunctionEventInvokeConfigRequestFilterSensitiveLog = exports.UpdateFunctionConfigurationRequestFilterSensitiveLog = exports.UpdateFunctionCodeRequestFilterSensitiveLog = exports.UpdateEventSourceMappingRequestFilterSensitiveLog = exports.UpdateCodeSigningConfigResponseFilterSensitiveLog = exports.UpdateCodeSigningConfigRequestFilterSensitiveLog = exports.UpdateAliasRequestFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.RemovePermissionRequestFilterSensitiveLog = exports.RemoveLayerVersionPermissionRequestFilterSensitiveLog = exports.PutProvisionedConcurrencyConfigResponseFilterSensitiveLog = exports.PutProvisionedConcurrencyConfigRequestFilterSensitiveLog = exports.PutFunctionEventInvokeConfigRequestFilterSensitiveLog = exports.PutFunctionConcurrencyRequestFilterSensitiveLog = exports.PutFunctionCodeSigningConfigResponseFilterSensitiveLog = exports.PutFunctionCodeSigningConfigRequestFilterSensitiveLog = exports.PublishVersionRequestFilterSensitiveLog = exports.PublishLayerVersionResponseFilterSensitiveLog = exports.PublishLayerVersionRequestFilterSensitiveLog = exports.LayerVersionContentInputFilterSensitiveLog = exports.ListVersionsByFunctionResponseFilterSensitiveLog = exports.ListVersionsByFunctionRequestFilterSensitiveLog = exports.ListTagsResponseFilterSensitiveLog = exports.ListTagsRequestFilterSensitiveLog = exports.ListProvisionedConcurrencyConfigsResponseFilterSensitiveLog = exports.ProvisionedConcurrencyConfigListItemFilterSensitiveLog = exports.ListProvisionedConcurrencyConfigsRequestFilterSensitiveLog = exports.ListLayerVersionsResponseFilterSensitiveLog = exports.ListLayerVersionsRequestFilterSensitiveLog = exports.ListLayersResponseFilterSensitiveLog = exports.LayersListItemFilterSensitiveLog = exports.LayerVersionsListItemFilterSensitiveLog = exports.ListLayersRequestFilterSensitiveLog = exports.ListFunctionUrlConfigsResponseFilterSensitiveLog = exports.FunctionUrlConfigFilterSensitiveLog = exports.ListFunctionUrlConfigsRequestFilterSensitiveLog = exports.ListFunctionsByCodeSigningConfigResponseFilterSensitiveLog = exports.ListFunctionsByCodeSigningConfigRequestFilterSensitiveLog = exports.ListFunctionsResponseFilterSensitiveLog = exports.ListFunctionsRequestFilterSensitiveLog = void 0;
|
|
3
|
+
exports.KMSNotFoundException = exports.KMSInvalidStateException = exports.KMSDisabledException = exports.KMSAccessDeniedException = exports.LogType = exports.InvocationType = exports.InvalidZipFileException = exports.InvalidSubnetIDException = exports.InvalidSecurityGroupIDException = exports.InvalidRuntimeException = exports.InvalidRequestContentException = exports.ENILimitReachedException = exports.EFSMountTimeoutException = exports.EFSMountFailureException = exports.EFSMountConnectivityException = exports.EFSIOException = exports.EC2UnexpectedException = exports.EC2ThrottledException = exports.EC2AccessDeniedException = exports.ProvisionedConcurrencyConfigNotFoundException = exports.ProvisionedConcurrencyStatusEnum = exports.ResourceInUseException = exports.InvalidCodeSignatureException = exports.StateReasonCode = exports.State = exports.SnapStartOptimizationStatus = exports.LastUpdateStatusReasonCode = exports.LastUpdateStatus = exports.TracingMode = exports.SnapStartApplyOn = exports.Runtime = exports.PackageType = exports.CodeVerificationFailedException = exports.CodeStorageExceededException = exports.CodeSigningConfigNotFoundException = exports.EventSourcePosition = exports.SourceAccessType = exports.EndPointType = exports.FunctionResponseType = exports.CodeSigningPolicy = exports.Architecture = exports.FunctionUrlAuthType = exports.TooManyRequestsException = exports.ThrottleReason = exports.ServiceException = exports.ResourceNotFoundException = exports.ResourceConflictException = exports.PreconditionFailedException = exports.PolicyLengthExceededException = exports.InvalidParameterValueException = void 0;
|
|
4
|
+
exports.TracingConfigResponseFilterSensitiveLog = exports.SnapStartResponseFilterSensitiveLog = exports.LayerFilterSensitiveLog = exports.ImageConfigResponseFilterSensitiveLog = exports.ImageConfigErrorFilterSensitiveLog = exports.EnvironmentResponseFilterSensitiveLog = exports.EnvironmentErrorFilterSensitiveLog = exports.CreateFunctionRequestFilterSensitiveLog = exports.VpcConfigFilterSensitiveLog = exports.TracingConfigFilterSensitiveLog = exports.SnapStartFilterSensitiveLog = exports.ImageConfigFilterSensitiveLog = exports.FileSystemConfigFilterSensitiveLog = exports.EphemeralStorageFilterSensitiveLog = exports.EnvironmentFilterSensitiveLog = exports.DeadLetterConfigFilterSensitiveLog = exports.FunctionCodeFilterSensitiveLog = exports.EventSourceMappingConfigurationFilterSensitiveLog = exports.CreateEventSourceMappingRequestFilterSensitiveLog = exports.SourceAccessConfigurationFilterSensitiveLog = exports.SelfManagedKafkaEventSourceConfigFilterSensitiveLog = exports.SelfManagedEventSourceFilterSensitiveLog = exports.FilterCriteriaFilterSensitiveLog = exports.FilterFilterSensitiveLog = exports.DestinationConfigFilterSensitiveLog = exports.OnSuccessFilterSensitiveLog = exports.OnFailureFilterSensitiveLog = exports.CreateCodeSigningConfigResponseFilterSensitiveLog = exports.CodeSigningConfigFilterSensitiveLog = exports.CreateCodeSigningConfigRequestFilterSensitiveLog = exports.CodeSigningPoliciesFilterSensitiveLog = exports.CreateAliasRequestFilterSensitiveLog = exports.AmazonManagedKafkaEventSourceConfigFilterSensitiveLog = exports.AllowedPublishersFilterSensitiveLog = exports.AliasConfigurationFilterSensitiveLog = exports.AliasRoutingConfigurationFilterSensitiveLog = exports.AddPermissionResponseFilterSensitiveLog = exports.AddPermissionRequestFilterSensitiveLog = exports.AddLayerVersionPermissionResponseFilterSensitiveLog = exports.AddLayerVersionPermissionRequestFilterSensitiveLog = exports.AccountUsageFilterSensitiveLog = exports.AccountLimitFilterSensitiveLog = exports.FunctionVersion = exports.UnsupportedMediaTypeException = exports.SubnetIPAddressLimitReachedException = exports.SnapStartTimeoutException = exports.SnapStartNotReadyException = exports.SnapStartException = exports.ResourceNotReadyException = exports.RequestTooLargeException = void 0;
|
|
5
|
+
exports.ListAliasesRequestFilterSensitiveLog = exports.InvokeAsyncResponseFilterSensitiveLog = exports.InvokeAsyncRequestFilterSensitiveLog = exports.InvocationResponseFilterSensitiveLog = exports.InvocationRequestFilterSensitiveLog = exports.GetProvisionedConcurrencyConfigResponseFilterSensitiveLog = exports.GetProvisionedConcurrencyConfigRequestFilterSensitiveLog = exports.GetPolicyResponseFilterSensitiveLog = exports.GetPolicyRequestFilterSensitiveLog = exports.GetLayerVersionPolicyResponseFilterSensitiveLog = exports.GetLayerVersionPolicyRequestFilterSensitiveLog = exports.GetLayerVersionByArnRequestFilterSensitiveLog = exports.GetLayerVersionResponseFilterSensitiveLog = exports.LayerVersionContentOutputFilterSensitiveLog = exports.GetLayerVersionRequestFilterSensitiveLog = exports.GetFunctionUrlConfigResponseFilterSensitiveLog = exports.GetFunctionUrlConfigRequestFilterSensitiveLog = exports.GetFunctionEventInvokeConfigRequestFilterSensitiveLog = exports.FunctionEventInvokeConfigFilterSensitiveLog = exports.GetFunctionConfigurationRequestFilterSensitiveLog = exports.GetFunctionConcurrencyResponseFilterSensitiveLog = exports.GetFunctionConcurrencyRequestFilterSensitiveLog = exports.GetFunctionCodeSigningConfigResponseFilterSensitiveLog = exports.GetFunctionCodeSigningConfigRequestFilterSensitiveLog = exports.GetFunctionResponseFilterSensitiveLog = exports.ConcurrencyFilterSensitiveLog = exports.FunctionCodeLocationFilterSensitiveLog = exports.GetFunctionRequestFilterSensitiveLog = exports.GetEventSourceMappingRequestFilterSensitiveLog = exports.GetCodeSigningConfigResponseFilterSensitiveLog = exports.GetCodeSigningConfigRequestFilterSensitiveLog = exports.GetAliasRequestFilterSensitiveLog = exports.GetAccountSettingsResponseFilterSensitiveLog = exports.GetAccountSettingsRequestFilterSensitiveLog = exports.DeleteProvisionedConcurrencyConfigRequestFilterSensitiveLog = exports.DeleteLayerVersionRequestFilterSensitiveLog = exports.DeleteFunctionUrlConfigRequestFilterSensitiveLog = exports.DeleteFunctionEventInvokeConfigRequestFilterSensitiveLog = exports.DeleteFunctionConcurrencyRequestFilterSensitiveLog = exports.DeleteFunctionCodeSigningConfigRequestFilterSensitiveLog = exports.DeleteFunctionRequestFilterSensitiveLog = exports.DeleteEventSourceMappingRequestFilterSensitiveLog = exports.DeleteCodeSigningConfigResponseFilterSensitiveLog = exports.DeleteCodeSigningConfigRequestFilterSensitiveLog = exports.DeleteAliasRequestFilterSensitiveLog = exports.CreateFunctionUrlConfigResponseFilterSensitiveLog = exports.CreateFunctionUrlConfigRequestFilterSensitiveLog = exports.CorsFilterSensitiveLog = exports.FunctionConfigurationFilterSensitiveLog = exports.VpcConfigResponseFilterSensitiveLog = void 0;
|
|
6
|
+
exports.UpdateFunctionUrlConfigResponseFilterSensitiveLog = exports.UpdateFunctionUrlConfigRequestFilterSensitiveLog = exports.UpdateFunctionEventInvokeConfigRequestFilterSensitiveLog = exports.UpdateFunctionConfigurationRequestFilterSensitiveLog = exports.UpdateFunctionCodeRequestFilterSensitiveLog = exports.UpdateEventSourceMappingRequestFilterSensitiveLog = exports.UpdateCodeSigningConfigResponseFilterSensitiveLog = exports.UpdateCodeSigningConfigRequestFilterSensitiveLog = exports.UpdateAliasRequestFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.RemovePermissionRequestFilterSensitiveLog = exports.RemoveLayerVersionPermissionRequestFilterSensitiveLog = exports.PutProvisionedConcurrencyConfigResponseFilterSensitiveLog = exports.PutProvisionedConcurrencyConfigRequestFilterSensitiveLog = exports.PutFunctionEventInvokeConfigRequestFilterSensitiveLog = exports.PutFunctionConcurrencyRequestFilterSensitiveLog = exports.PutFunctionCodeSigningConfigResponseFilterSensitiveLog = exports.PutFunctionCodeSigningConfigRequestFilterSensitiveLog = exports.PublishVersionRequestFilterSensitiveLog = exports.PublishLayerVersionResponseFilterSensitiveLog = exports.PublishLayerVersionRequestFilterSensitiveLog = exports.LayerVersionContentInputFilterSensitiveLog = exports.ListVersionsByFunctionResponseFilterSensitiveLog = exports.ListVersionsByFunctionRequestFilterSensitiveLog = exports.ListTagsResponseFilterSensitiveLog = exports.ListTagsRequestFilterSensitiveLog = exports.ListProvisionedConcurrencyConfigsResponseFilterSensitiveLog = exports.ProvisionedConcurrencyConfigListItemFilterSensitiveLog = exports.ListProvisionedConcurrencyConfigsRequestFilterSensitiveLog = exports.ListLayerVersionsResponseFilterSensitiveLog = exports.ListLayerVersionsRequestFilterSensitiveLog = exports.ListLayersResponseFilterSensitiveLog = exports.LayersListItemFilterSensitiveLog = exports.LayerVersionsListItemFilterSensitiveLog = exports.ListLayersRequestFilterSensitiveLog = exports.ListFunctionUrlConfigsResponseFilterSensitiveLog = exports.FunctionUrlConfigFilterSensitiveLog = exports.ListFunctionUrlConfigsRequestFilterSensitiveLog = exports.ListFunctionsByCodeSigningConfigResponseFilterSensitiveLog = exports.ListFunctionsByCodeSigningConfigRequestFilterSensitiveLog = exports.ListFunctionsResponseFilterSensitiveLog = exports.ListFunctionsRequestFilterSensitiveLog = exports.ListFunctionEventInvokeConfigsResponseFilterSensitiveLog = exports.ListFunctionEventInvokeConfigsRequestFilterSensitiveLog = exports.ListEventSourceMappingsResponseFilterSensitiveLog = exports.ListEventSourceMappingsRequestFilterSensitiveLog = exports.ListCodeSigningConfigsResponseFilterSensitiveLog = exports.ListCodeSigningConfigsRequestFilterSensitiveLog = exports.ListAliasesResponseFilterSensitiveLog = void 0;
|
|
7
7
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
8
|
const LambdaServiceException_1 = require("./LambdaServiceException");
|
|
9
9
|
class InvalidParameterValueException extends LambdaServiceException_1.LambdaServiceException {
|
|
@@ -96,6 +96,7 @@ var ThrottleReason;
|
|
|
96
96
|
(function (ThrottleReason) {
|
|
97
97
|
ThrottleReason["CallerRateLimitExceeded"] = "CallerRateLimitExceeded";
|
|
98
98
|
ThrottleReason["ConcurrentInvocationLimitExceeded"] = "ConcurrentInvocationLimitExceeded";
|
|
99
|
+
ThrottleReason["ConcurrentSnapshotCreateLimitExceeded"] = "ConcurrentSnapshotCreateLimitExceeded";
|
|
99
100
|
ThrottleReason["FunctionInvocationRateLimitExceeded"] = "FunctionInvocationRateLimitExceeded";
|
|
100
101
|
ThrottleReason["ReservedFunctionConcurrentInvocationLimitExceeded"] = "ReservedFunctionConcurrentInvocationLimitExceeded";
|
|
101
102
|
ThrottleReason["ReservedFunctionInvocationRateLimitExceeded"] = "ReservedFunctionInvocationRateLimitExceeded";
|
|
@@ -236,6 +237,11 @@ var Runtime;
|
|
|
236
237
|
Runtime["ruby25"] = "ruby2.5";
|
|
237
238
|
Runtime["ruby27"] = "ruby2.7";
|
|
238
239
|
})(Runtime = exports.Runtime || (exports.Runtime = {}));
|
|
240
|
+
var SnapStartApplyOn;
|
|
241
|
+
(function (SnapStartApplyOn) {
|
|
242
|
+
SnapStartApplyOn["None"] = "None";
|
|
243
|
+
SnapStartApplyOn["PublishedVersions"] = "PublishedVersions";
|
|
244
|
+
})(SnapStartApplyOn = exports.SnapStartApplyOn || (exports.SnapStartApplyOn = {}));
|
|
239
245
|
var TracingMode;
|
|
240
246
|
(function (TracingMode) {
|
|
241
247
|
TracingMode["Active"] = "Active";
|
|
@@ -249,17 +255,33 @@ var LastUpdateStatus;
|
|
|
249
255
|
})(LastUpdateStatus = exports.LastUpdateStatus || (exports.LastUpdateStatus = {}));
|
|
250
256
|
var LastUpdateStatusReasonCode;
|
|
251
257
|
(function (LastUpdateStatusReasonCode) {
|
|
258
|
+
LastUpdateStatusReasonCode["DisabledKMSKey"] = "DisabledKMSKey";
|
|
259
|
+
LastUpdateStatusReasonCode["EFSIOError"] = "EFSIOError";
|
|
260
|
+
LastUpdateStatusReasonCode["EFSMountConnectivityError"] = "EFSMountConnectivityError";
|
|
261
|
+
LastUpdateStatusReasonCode["EFSMountFailure"] = "EFSMountFailure";
|
|
262
|
+
LastUpdateStatusReasonCode["EFSMountTimeout"] = "EFSMountTimeout";
|
|
252
263
|
LastUpdateStatusReasonCode["EniLimitExceeded"] = "EniLimitExceeded";
|
|
264
|
+
LastUpdateStatusReasonCode["FunctionError"] = "FunctionError";
|
|
253
265
|
LastUpdateStatusReasonCode["ImageAccessDenied"] = "ImageAccessDenied";
|
|
254
266
|
LastUpdateStatusReasonCode["ImageDeleted"] = "ImageDeleted";
|
|
255
267
|
LastUpdateStatusReasonCode["InsufficientRolePermissions"] = "InsufficientRolePermissions";
|
|
256
268
|
LastUpdateStatusReasonCode["InternalError"] = "InternalError";
|
|
257
269
|
LastUpdateStatusReasonCode["InvalidConfiguration"] = "InvalidConfiguration";
|
|
258
270
|
LastUpdateStatusReasonCode["InvalidImage"] = "InvalidImage";
|
|
271
|
+
LastUpdateStatusReasonCode["InvalidRuntime"] = "InvalidRuntime";
|
|
259
272
|
LastUpdateStatusReasonCode["InvalidSecurityGroup"] = "InvalidSecurityGroup";
|
|
273
|
+
LastUpdateStatusReasonCode["InvalidStateKMSKey"] = "InvalidStateKMSKey";
|
|
260
274
|
LastUpdateStatusReasonCode["InvalidSubnet"] = "InvalidSubnet";
|
|
275
|
+
LastUpdateStatusReasonCode["InvalidZipFileException"] = "InvalidZipFileException";
|
|
276
|
+
LastUpdateStatusReasonCode["KMSKeyAccessDenied"] = "KMSKeyAccessDenied";
|
|
277
|
+
LastUpdateStatusReasonCode["KMSKeyNotFound"] = "KMSKeyNotFound";
|
|
261
278
|
LastUpdateStatusReasonCode["SubnetOutOfIPAddresses"] = "SubnetOutOfIPAddresses";
|
|
262
279
|
})(LastUpdateStatusReasonCode = exports.LastUpdateStatusReasonCode || (exports.LastUpdateStatusReasonCode = {}));
|
|
280
|
+
var SnapStartOptimizationStatus;
|
|
281
|
+
(function (SnapStartOptimizationStatus) {
|
|
282
|
+
SnapStartOptimizationStatus["Off"] = "Off";
|
|
283
|
+
SnapStartOptimizationStatus["On"] = "On";
|
|
284
|
+
})(SnapStartOptimizationStatus = exports.SnapStartOptimizationStatus || (exports.SnapStartOptimizationStatus = {}));
|
|
263
285
|
var State;
|
|
264
286
|
(function (State) {
|
|
265
287
|
State["Active"] = "Active";
|
|
@@ -270,7 +292,13 @@ var State;
|
|
|
270
292
|
var StateReasonCode;
|
|
271
293
|
(function (StateReasonCode) {
|
|
272
294
|
StateReasonCode["Creating"] = "Creating";
|
|
295
|
+
StateReasonCode["DisabledKMSKey"] = "DisabledKMSKey";
|
|
296
|
+
StateReasonCode["EFSIOError"] = "EFSIOError";
|
|
297
|
+
StateReasonCode["EFSMountConnectivityError"] = "EFSMountConnectivityError";
|
|
298
|
+
StateReasonCode["EFSMountFailure"] = "EFSMountFailure";
|
|
299
|
+
StateReasonCode["EFSMountTimeout"] = "EFSMountTimeout";
|
|
273
300
|
StateReasonCode["EniLimitExceeded"] = "EniLimitExceeded";
|
|
301
|
+
StateReasonCode["FunctionError"] = "FunctionError";
|
|
274
302
|
StateReasonCode["Idle"] = "Idle";
|
|
275
303
|
StateReasonCode["ImageAccessDenied"] = "ImageAccessDenied";
|
|
276
304
|
StateReasonCode["ImageDeleted"] = "ImageDeleted";
|
|
@@ -278,8 +306,13 @@ var StateReasonCode;
|
|
|
278
306
|
StateReasonCode["InternalError"] = "InternalError";
|
|
279
307
|
StateReasonCode["InvalidConfiguration"] = "InvalidConfiguration";
|
|
280
308
|
StateReasonCode["InvalidImage"] = "InvalidImage";
|
|
309
|
+
StateReasonCode["InvalidRuntime"] = "InvalidRuntime";
|
|
281
310
|
StateReasonCode["InvalidSecurityGroup"] = "InvalidSecurityGroup";
|
|
311
|
+
StateReasonCode["InvalidStateKMSKey"] = "InvalidStateKMSKey";
|
|
282
312
|
StateReasonCode["InvalidSubnet"] = "InvalidSubnet";
|
|
313
|
+
StateReasonCode["InvalidZipFileException"] = "InvalidZipFileException";
|
|
314
|
+
StateReasonCode["KMSKeyAccessDenied"] = "KMSKeyAccessDenied";
|
|
315
|
+
StateReasonCode["KMSKeyNotFound"] = "KMSKeyNotFound";
|
|
283
316
|
StateReasonCode["Restoring"] = "Restoring";
|
|
284
317
|
StateReasonCode["SubnetOutOfIPAddresses"] = "SubnetOutOfIPAddresses";
|
|
285
318
|
})(StateReasonCode = exports.StateReasonCode || (exports.StateReasonCode = {}));
|
|
@@ -627,6 +660,51 @@ class ResourceNotReadyException extends LambdaServiceException_1.LambdaServiceEx
|
|
|
627
660
|
}
|
|
628
661
|
}
|
|
629
662
|
exports.ResourceNotReadyException = ResourceNotReadyException;
|
|
663
|
+
class SnapStartException extends LambdaServiceException_1.LambdaServiceException {
|
|
664
|
+
constructor(opts) {
|
|
665
|
+
super({
|
|
666
|
+
name: "SnapStartException",
|
|
667
|
+
$fault: "client",
|
|
668
|
+
...opts,
|
|
669
|
+
});
|
|
670
|
+
this.name = "SnapStartException";
|
|
671
|
+
this.$fault = "client";
|
|
672
|
+
Object.setPrototypeOf(this, SnapStartException.prototype);
|
|
673
|
+
this.Type = opts.Type;
|
|
674
|
+
this.Message = opts.Message;
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
exports.SnapStartException = SnapStartException;
|
|
678
|
+
class SnapStartNotReadyException extends LambdaServiceException_1.LambdaServiceException {
|
|
679
|
+
constructor(opts) {
|
|
680
|
+
super({
|
|
681
|
+
name: "SnapStartNotReadyException",
|
|
682
|
+
$fault: "client",
|
|
683
|
+
...opts,
|
|
684
|
+
});
|
|
685
|
+
this.name = "SnapStartNotReadyException";
|
|
686
|
+
this.$fault = "client";
|
|
687
|
+
Object.setPrototypeOf(this, SnapStartNotReadyException.prototype);
|
|
688
|
+
this.Type = opts.Type;
|
|
689
|
+
this.Message = opts.Message;
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
exports.SnapStartNotReadyException = SnapStartNotReadyException;
|
|
693
|
+
class SnapStartTimeoutException extends LambdaServiceException_1.LambdaServiceException {
|
|
694
|
+
constructor(opts) {
|
|
695
|
+
super({
|
|
696
|
+
name: "SnapStartTimeoutException",
|
|
697
|
+
$fault: "client",
|
|
698
|
+
...opts,
|
|
699
|
+
});
|
|
700
|
+
this.name = "SnapStartTimeoutException";
|
|
701
|
+
this.$fault = "client";
|
|
702
|
+
Object.setPrototypeOf(this, SnapStartTimeoutException.prototype);
|
|
703
|
+
this.Type = opts.Type;
|
|
704
|
+
this.Message = opts.Message;
|
|
705
|
+
}
|
|
706
|
+
}
|
|
707
|
+
exports.SnapStartTimeoutException = SnapStartTimeoutException;
|
|
630
708
|
class SubnetIPAddressLimitReachedException extends LambdaServiceException_1.LambdaServiceException {
|
|
631
709
|
constructor(opts) {
|
|
632
710
|
super({
|
|
@@ -786,6 +864,10 @@ const ImageConfigFilterSensitiveLog = (obj) => ({
|
|
|
786
864
|
...obj,
|
|
787
865
|
});
|
|
788
866
|
exports.ImageConfigFilterSensitiveLog = ImageConfigFilterSensitiveLog;
|
|
867
|
+
const SnapStartFilterSensitiveLog = (obj) => ({
|
|
868
|
+
...obj,
|
|
869
|
+
});
|
|
870
|
+
exports.SnapStartFilterSensitiveLog = SnapStartFilterSensitiveLog;
|
|
789
871
|
const TracingConfigFilterSensitiveLog = (obj) => ({
|
|
790
872
|
...obj,
|
|
791
873
|
});
|
|
@@ -825,6 +907,10 @@ const LayerFilterSensitiveLog = (obj) => ({
|
|
|
825
907
|
...obj,
|
|
826
908
|
});
|
|
827
909
|
exports.LayerFilterSensitiveLog = LayerFilterSensitiveLog;
|
|
910
|
+
const SnapStartResponseFilterSensitiveLog = (obj) => ({
|
|
911
|
+
...obj,
|
|
912
|
+
});
|
|
913
|
+
exports.SnapStartResponseFilterSensitiveLog = SnapStartResponseFilterSensitiveLog;
|
|
828
914
|
const TracingConfigResponseFilterSensitiveLog = (obj) => ({
|
|
829
915
|
...obj,
|
|
830
916
|
});
|
|
@@ -221,6 +221,7 @@ const serializeAws_restJson1CreateFunctionCommand = async (input, context) => {
|
|
|
221
221
|
...(input.Publish != null && { Publish: input.Publish }),
|
|
222
222
|
...(input.Role != null && { Role: input.Role }),
|
|
223
223
|
...(input.Runtime != null && { Runtime: input.Runtime }),
|
|
224
|
+
...(input.SnapStart != null && { SnapStart: serializeAws_restJson1SnapStart(input.SnapStart, context) }),
|
|
224
225
|
...(input.Tags != null && { Tags: serializeAws_restJson1Tags(input.Tags, context) }),
|
|
225
226
|
...(input.Timeout != null && { Timeout: input.Timeout }),
|
|
226
227
|
...(input.TracingConfig != null && {
|
|
@@ -446,7 +447,7 @@ const serializeAws_restJson1DeleteProvisionedConcurrencyConfigCommand = async (i
|
|
|
446
447
|
"/2019-09-30/functions/{FunctionName}/provisioned-concurrency";
|
|
447
448
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
|
|
448
449
|
const query = map({
|
|
449
|
-
Qualifier: [, input.Qualifier],
|
|
450
|
+
Qualifier: [, (0, smithy_client_1.expectNonNull)(input.Qualifier, `Qualifier`)],
|
|
450
451
|
});
|
|
451
452
|
let body;
|
|
452
453
|
return new protocol_http_1.HttpRequest({
|
|
@@ -681,7 +682,7 @@ const serializeAws_restJson1GetLayerVersionByArnCommand = async (input, context)
|
|
|
681
682
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2018-10-31/layers";
|
|
682
683
|
const query = map({
|
|
683
684
|
find: [, "LayerVersion"],
|
|
684
|
-
Arn: [, input.Arn],
|
|
685
|
+
Arn: [, (0, smithy_client_1.expectNonNull)(input.Arn, `Arn`)],
|
|
685
686
|
});
|
|
686
687
|
let body;
|
|
687
688
|
return new protocol_http_1.HttpRequest({
|
|
@@ -744,7 +745,7 @@ const serializeAws_restJson1GetProvisionedConcurrencyConfigCommand = async (inpu
|
|
|
744
745
|
"/2019-09-30/functions/{FunctionName}/provisioned-concurrency";
|
|
745
746
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
|
|
746
747
|
const query = map({
|
|
747
|
-
Qualifier: [, input.Qualifier],
|
|
748
|
+
Qualifier: [, (0, smithy_client_1.expectNonNull)(input.Qualifier, `Qualifier`)],
|
|
748
749
|
});
|
|
749
750
|
let body;
|
|
750
751
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1225,7 +1226,7 @@ const serializeAws_restJson1PutProvisionedConcurrencyConfigCommand = async (inpu
|
|
|
1225
1226
|
"/2019-09-30/functions/{FunctionName}/provisioned-concurrency";
|
|
1226
1227
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionName", () => input.FunctionName, "{FunctionName}", false);
|
|
1227
1228
|
const query = map({
|
|
1228
|
-
Qualifier: [, input.Qualifier],
|
|
1229
|
+
Qualifier: [, (0, smithy_client_1.expectNonNull)(input.Qualifier, `Qualifier`)],
|
|
1229
1230
|
});
|
|
1230
1231
|
let body;
|
|
1231
1232
|
body = JSON.stringify({
|
|
@@ -1321,7 +1322,10 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
1321
1322
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2017-03-31/tags/{Resource}";
|
|
1322
1323
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Resource", () => input.Resource, "{Resource}", false);
|
|
1323
1324
|
const query = map({
|
|
1324
|
-
tagKeys: [
|
|
1325
|
+
tagKeys: [
|
|
1326
|
+
(0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
|
|
1327
|
+
() => (input.TagKeys || []).map((_entry) => _entry),
|
|
1328
|
+
],
|
|
1325
1329
|
});
|
|
1326
1330
|
let body;
|
|
1327
1331
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1499,6 +1503,7 @@ const serializeAws_restJson1UpdateFunctionConfigurationCommand = async (input, c
|
|
|
1499
1503
|
...(input.RevisionId != null && { RevisionId: input.RevisionId }),
|
|
1500
1504
|
...(input.Role != null && { Role: input.Role }),
|
|
1501
1505
|
...(input.Runtime != null && { Runtime: input.Runtime }),
|
|
1506
|
+
...(input.SnapStart != null && { SnapStart: serializeAws_restJson1SnapStart(input.SnapStart, context) }),
|
|
1502
1507
|
...(input.Timeout != null && { Timeout: input.Timeout }),
|
|
1503
1508
|
...(input.TracingConfig != null && {
|
|
1504
1509
|
TracingConfig: serializeAws_restJson1TracingConfig(input.TracingConfig, context),
|
|
@@ -1983,6 +1988,9 @@ const deserializeAws_restJson1CreateFunctionCommand = async (output, context) =>
|
|
|
1983
1988
|
if (data.SigningProfileVersionArn != null) {
|
|
1984
1989
|
contents.SigningProfileVersionArn = (0, smithy_client_1.expectString)(data.SigningProfileVersionArn);
|
|
1985
1990
|
}
|
|
1991
|
+
if (data.SnapStart != null) {
|
|
1992
|
+
contents.SnapStart = deserializeAws_restJson1SnapStartResponse(data.SnapStart, context);
|
|
1993
|
+
}
|
|
1986
1994
|
if (data.State != null) {
|
|
1987
1995
|
contents.State = (0, smithy_client_1.expectString)(data.State);
|
|
1988
1996
|
}
|
|
@@ -3079,6 +3087,9 @@ const deserializeAws_restJson1GetFunctionConfigurationCommand = async (output, c
|
|
|
3079
3087
|
if (data.SigningProfileVersionArn != null) {
|
|
3080
3088
|
contents.SigningProfileVersionArn = (0, smithy_client_1.expectString)(data.SigningProfileVersionArn);
|
|
3081
3089
|
}
|
|
3090
|
+
if (data.SnapStart != null) {
|
|
3091
|
+
contents.SnapStart = deserializeAws_restJson1SnapStartResponse(data.SnapStart, context);
|
|
3092
|
+
}
|
|
3082
3093
|
if (data.State != null) {
|
|
3083
3094
|
contents.State = (0, smithy_client_1.expectString)(data.State);
|
|
3084
3095
|
}
|
|
@@ -3626,6 +3637,15 @@ const deserializeAws_restJson1InvokeCommandError = async (output, context) => {
|
|
|
3626
3637
|
case "ServiceException":
|
|
3627
3638
|
case "com.amazonaws.lambda#ServiceException":
|
|
3628
3639
|
throw await deserializeAws_restJson1ServiceExceptionResponse(parsedOutput, context);
|
|
3640
|
+
case "SnapStartException":
|
|
3641
|
+
case "com.amazonaws.lambda#SnapStartException":
|
|
3642
|
+
throw await deserializeAws_restJson1SnapStartExceptionResponse(parsedOutput, context);
|
|
3643
|
+
case "SnapStartNotReadyException":
|
|
3644
|
+
case "com.amazonaws.lambda#SnapStartNotReadyException":
|
|
3645
|
+
throw await deserializeAws_restJson1SnapStartNotReadyExceptionResponse(parsedOutput, context);
|
|
3646
|
+
case "SnapStartTimeoutException":
|
|
3647
|
+
case "com.amazonaws.lambda#SnapStartTimeoutException":
|
|
3648
|
+
throw await deserializeAws_restJson1SnapStartTimeoutExceptionResponse(parsedOutput, context);
|
|
3629
3649
|
case "SubnetIPAddressLimitReachedException":
|
|
3630
3650
|
case "com.amazonaws.lambda#SubnetIPAddressLimitReachedException":
|
|
3631
3651
|
throw await deserializeAws_restJson1SubnetIPAddressLimitReachedExceptionResponse(parsedOutput, context);
|
|
@@ -4381,6 +4401,9 @@ const deserializeAws_restJson1PublishVersionCommand = async (output, context) =>
|
|
|
4381
4401
|
if (data.SigningProfileVersionArn != null) {
|
|
4382
4402
|
contents.SigningProfileVersionArn = (0, smithy_client_1.expectString)(data.SigningProfileVersionArn);
|
|
4383
4403
|
}
|
|
4404
|
+
if (data.SnapStart != null) {
|
|
4405
|
+
contents.SnapStart = deserializeAws_restJson1SnapStartResponse(data.SnapStart, context);
|
|
4406
|
+
}
|
|
4384
4407
|
if (data.State != null) {
|
|
4385
4408
|
contents.State = (0, smithy_client_1.expectString)(data.State);
|
|
4386
4409
|
}
|
|
@@ -5143,6 +5166,9 @@ const deserializeAws_restJson1UpdateFunctionCodeCommand = async (output, context
|
|
|
5143
5166
|
if (data.SigningProfileVersionArn != null) {
|
|
5144
5167
|
contents.SigningProfileVersionArn = (0, smithy_client_1.expectString)(data.SigningProfileVersionArn);
|
|
5145
5168
|
}
|
|
5169
|
+
if (data.SnapStart != null) {
|
|
5170
|
+
contents.SnapStart = deserializeAws_restJson1SnapStartResponse(data.SnapStart, context);
|
|
5171
|
+
}
|
|
5146
5172
|
if (data.State != null) {
|
|
5147
5173
|
contents.State = (0, smithy_client_1.expectString)(data.State);
|
|
5148
5174
|
}
|
|
@@ -5300,6 +5326,9 @@ const deserializeAws_restJson1UpdateFunctionConfigurationCommand = async (output
|
|
|
5300
5326
|
if (data.SigningProfileVersionArn != null) {
|
|
5301
5327
|
contents.SigningProfileVersionArn = (0, smithy_client_1.expectString)(data.SigningProfileVersionArn);
|
|
5302
5328
|
}
|
|
5329
|
+
if (data.SnapStart != null) {
|
|
5330
|
+
contents.SnapStart = deserializeAws_restJson1SnapStartResponse(data.SnapStart, context);
|
|
5331
|
+
}
|
|
5303
5332
|
if (data.State != null) {
|
|
5304
5333
|
contents.State = (0, smithy_client_1.expectString)(data.State);
|
|
5305
5334
|
}
|
|
@@ -5956,6 +5985,51 @@ const deserializeAws_restJson1ServiceExceptionResponse = async (parsedOutput, co
|
|
|
5956
5985
|
});
|
|
5957
5986
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
5958
5987
|
};
|
|
5988
|
+
const deserializeAws_restJson1SnapStartExceptionResponse = async (parsedOutput, context) => {
|
|
5989
|
+
const contents = map({});
|
|
5990
|
+
const data = parsedOutput.body;
|
|
5991
|
+
if (data.Message != null) {
|
|
5992
|
+
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
5993
|
+
}
|
|
5994
|
+
if (data.Type != null) {
|
|
5995
|
+
contents.Type = (0, smithy_client_1.expectString)(data.Type);
|
|
5996
|
+
}
|
|
5997
|
+
const exception = new models_0_1.SnapStartException({
|
|
5998
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5999
|
+
...contents,
|
|
6000
|
+
});
|
|
6001
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
6002
|
+
};
|
|
6003
|
+
const deserializeAws_restJson1SnapStartNotReadyExceptionResponse = async (parsedOutput, context) => {
|
|
6004
|
+
const contents = map({});
|
|
6005
|
+
const data = parsedOutput.body;
|
|
6006
|
+
if (data.Message != null) {
|
|
6007
|
+
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
6008
|
+
}
|
|
6009
|
+
if (data.Type != null) {
|
|
6010
|
+
contents.Type = (0, smithy_client_1.expectString)(data.Type);
|
|
6011
|
+
}
|
|
6012
|
+
const exception = new models_0_1.SnapStartNotReadyException({
|
|
6013
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
6014
|
+
...contents,
|
|
6015
|
+
});
|
|
6016
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
6017
|
+
};
|
|
6018
|
+
const deserializeAws_restJson1SnapStartTimeoutExceptionResponse = async (parsedOutput, context) => {
|
|
6019
|
+
const contents = map({});
|
|
6020
|
+
const data = parsedOutput.body;
|
|
6021
|
+
if (data.Message != null) {
|
|
6022
|
+
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
6023
|
+
}
|
|
6024
|
+
if (data.Type != null) {
|
|
6025
|
+
contents.Type = (0, smithy_client_1.expectString)(data.Type);
|
|
6026
|
+
}
|
|
6027
|
+
const exception = new models_0_1.SnapStartTimeoutException({
|
|
6028
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
6029
|
+
...contents,
|
|
6030
|
+
});
|
|
6031
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
6032
|
+
};
|
|
5959
6033
|
const deserializeAws_restJson1SubnetIPAddressLimitReachedExceptionResponse = async (parsedOutput, context) => {
|
|
5960
6034
|
const contents = map({});
|
|
5961
6035
|
const data = parsedOutput.body;
|
|
@@ -6254,6 +6328,11 @@ const serializeAws_restJson1SigningProfileVersionArns = (input, context) => {
|
|
|
6254
6328
|
return entry;
|
|
6255
6329
|
});
|
|
6256
6330
|
};
|
|
6331
|
+
const serializeAws_restJson1SnapStart = (input, context) => {
|
|
6332
|
+
return {
|
|
6333
|
+
...(input.ApplyOn != null && { ApplyOn: input.ApplyOn }),
|
|
6334
|
+
};
|
|
6335
|
+
};
|
|
6257
6336
|
const serializeAws_restJson1SourceAccessConfiguration = (input, context) => {
|
|
6258
6337
|
return {
|
|
6259
6338
|
...(input.Type != null && { Type: input.Type }),
|
|
@@ -6686,6 +6765,7 @@ const deserializeAws_restJson1FunctionConfiguration = (output, context) => {
|
|
|
6686
6765
|
Runtime: (0, smithy_client_1.expectString)(output.Runtime),
|
|
6687
6766
|
SigningJobArn: (0, smithy_client_1.expectString)(output.SigningJobArn),
|
|
6688
6767
|
SigningProfileVersionArn: (0, smithy_client_1.expectString)(output.SigningProfileVersionArn),
|
|
6768
|
+
SnapStart: output.SnapStart != null ? deserializeAws_restJson1SnapStartResponse(output.SnapStart, context) : undefined,
|
|
6689
6769
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
6690
6770
|
StateReason: (0, smithy_client_1.expectString)(output.StateReason),
|
|
6691
6771
|
StateReasonCode: (0, smithy_client_1.expectString)(output.StateReasonCode),
|
|
@@ -6943,6 +7023,12 @@ const deserializeAws_restJson1SigningProfileVersionArns = (output, context) => {
|
|
|
6943
7023
|
});
|
|
6944
7024
|
return retVal;
|
|
6945
7025
|
};
|
|
7026
|
+
const deserializeAws_restJson1SnapStartResponse = (output, context) => {
|
|
7027
|
+
return {
|
|
7028
|
+
ApplyOn: (0, smithy_client_1.expectString)(output.ApplyOn),
|
|
7029
|
+
OptimizationStatus: (0, smithy_client_1.expectString)(output.OptimizationStatus),
|
|
7030
|
+
};
|
|
7031
|
+
};
|
|
6946
7032
|
const deserializeAws_restJson1SourceAccessConfiguration = (output, context) => {
|
|
6947
7033
|
return {
|
|
6948
7034
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
@@ -6,3 +6,4 @@ tslib_1.__exportStar(require("./waitForFunctionActiveV2"), exports);
|
|
|
6
6
|
tslib_1.__exportStar(require("./waitForFunctionExists"), exports);
|
|
7
7
|
tslib_1.__exportStar(require("./waitForFunctionUpdated"), exports);
|
|
8
8
|
tslib_1.__exportStar(require("./waitForFunctionUpdatedV2"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./waitForPublishedVersionActive"), exports);
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.waitUntilPublishedVersionActive = exports.waitForPublishedVersionActive = void 0;
|
|
4
|
+
const util_waiter_1 = require("@aws-sdk/util-waiter");
|
|
5
|
+
const GetFunctionConfigurationCommand_1 = require("../commands/GetFunctionConfigurationCommand");
|
|
6
|
+
const checkState = async (client, input) => {
|
|
7
|
+
let reason;
|
|
8
|
+
try {
|
|
9
|
+
const result = await client.send(new GetFunctionConfigurationCommand_1.GetFunctionConfigurationCommand(input));
|
|
10
|
+
reason = result;
|
|
11
|
+
try {
|
|
12
|
+
const returnComparator = () => {
|
|
13
|
+
return result.State;
|
|
14
|
+
};
|
|
15
|
+
if (returnComparator() === "Active") {
|
|
16
|
+
return { state: util_waiter_1.WaiterState.SUCCESS, reason };
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
catch (e) { }
|
|
20
|
+
try {
|
|
21
|
+
const returnComparator = () => {
|
|
22
|
+
return result.State;
|
|
23
|
+
};
|
|
24
|
+
if (returnComparator() === "Failed") {
|
|
25
|
+
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
catch (e) { }
|
|
29
|
+
try {
|
|
30
|
+
const returnComparator = () => {
|
|
31
|
+
return result.State;
|
|
32
|
+
};
|
|
33
|
+
if (returnComparator() === "Pending") {
|
|
34
|
+
return { state: util_waiter_1.WaiterState.RETRY, reason };
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
catch (e) { }
|
|
38
|
+
}
|
|
39
|
+
catch (exception) {
|
|
40
|
+
reason = exception;
|
|
41
|
+
}
|
|
42
|
+
return { state: util_waiter_1.WaiterState.RETRY, reason };
|
|
43
|
+
};
|
|
44
|
+
const waitForPublishedVersionActive = async (params, input) => {
|
|
45
|
+
const serviceDefaults = { minDelay: 5, maxDelay: 120 };
|
|
46
|
+
return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
47
|
+
};
|
|
48
|
+
exports.waitForPublishedVersionActive = waitForPublishedVersionActive;
|
|
49
|
+
const waitUntilPublishedVersionActive = async (params, input) => {
|
|
50
|
+
const serviceDefaults = { minDelay: 5, maxDelay: 120 };
|
|
51
|
+
const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
52
|
+
return (0, util_waiter_1.checkExceptions)(result);
|
|
53
|
+
};
|
|
54
|
+
exports.waitUntilPublishedVersionActive = waitUntilPublishedVersionActive;
|
|
@@ -84,6 +84,7 @@ export var ThrottleReason;
|
|
|
84
84
|
(function (ThrottleReason) {
|
|
85
85
|
ThrottleReason["CallerRateLimitExceeded"] = "CallerRateLimitExceeded";
|
|
86
86
|
ThrottleReason["ConcurrentInvocationLimitExceeded"] = "ConcurrentInvocationLimitExceeded";
|
|
87
|
+
ThrottleReason["ConcurrentSnapshotCreateLimitExceeded"] = "ConcurrentSnapshotCreateLimitExceeded";
|
|
87
88
|
ThrottleReason["FunctionInvocationRateLimitExceeded"] = "FunctionInvocationRateLimitExceeded";
|
|
88
89
|
ThrottleReason["ReservedFunctionConcurrentInvocationLimitExceeded"] = "ReservedFunctionConcurrentInvocationLimitExceeded";
|
|
89
90
|
ThrottleReason["ReservedFunctionInvocationRateLimitExceeded"] = "ReservedFunctionInvocationRateLimitExceeded";
|
|
@@ -220,6 +221,11 @@ export var Runtime;
|
|
|
220
221
|
Runtime["ruby25"] = "ruby2.5";
|
|
221
222
|
Runtime["ruby27"] = "ruby2.7";
|
|
222
223
|
})(Runtime || (Runtime = {}));
|
|
224
|
+
export var SnapStartApplyOn;
|
|
225
|
+
(function (SnapStartApplyOn) {
|
|
226
|
+
SnapStartApplyOn["None"] = "None";
|
|
227
|
+
SnapStartApplyOn["PublishedVersions"] = "PublishedVersions";
|
|
228
|
+
})(SnapStartApplyOn || (SnapStartApplyOn = {}));
|
|
223
229
|
export var TracingMode;
|
|
224
230
|
(function (TracingMode) {
|
|
225
231
|
TracingMode["Active"] = "Active";
|
|
@@ -233,17 +239,33 @@ export var LastUpdateStatus;
|
|
|
233
239
|
})(LastUpdateStatus || (LastUpdateStatus = {}));
|
|
234
240
|
export var LastUpdateStatusReasonCode;
|
|
235
241
|
(function (LastUpdateStatusReasonCode) {
|
|
242
|
+
LastUpdateStatusReasonCode["DisabledKMSKey"] = "DisabledKMSKey";
|
|
243
|
+
LastUpdateStatusReasonCode["EFSIOError"] = "EFSIOError";
|
|
244
|
+
LastUpdateStatusReasonCode["EFSMountConnectivityError"] = "EFSMountConnectivityError";
|
|
245
|
+
LastUpdateStatusReasonCode["EFSMountFailure"] = "EFSMountFailure";
|
|
246
|
+
LastUpdateStatusReasonCode["EFSMountTimeout"] = "EFSMountTimeout";
|
|
236
247
|
LastUpdateStatusReasonCode["EniLimitExceeded"] = "EniLimitExceeded";
|
|
248
|
+
LastUpdateStatusReasonCode["FunctionError"] = "FunctionError";
|
|
237
249
|
LastUpdateStatusReasonCode["ImageAccessDenied"] = "ImageAccessDenied";
|
|
238
250
|
LastUpdateStatusReasonCode["ImageDeleted"] = "ImageDeleted";
|
|
239
251
|
LastUpdateStatusReasonCode["InsufficientRolePermissions"] = "InsufficientRolePermissions";
|
|
240
252
|
LastUpdateStatusReasonCode["InternalError"] = "InternalError";
|
|
241
253
|
LastUpdateStatusReasonCode["InvalidConfiguration"] = "InvalidConfiguration";
|
|
242
254
|
LastUpdateStatusReasonCode["InvalidImage"] = "InvalidImage";
|
|
255
|
+
LastUpdateStatusReasonCode["InvalidRuntime"] = "InvalidRuntime";
|
|
243
256
|
LastUpdateStatusReasonCode["InvalidSecurityGroup"] = "InvalidSecurityGroup";
|
|
257
|
+
LastUpdateStatusReasonCode["InvalidStateKMSKey"] = "InvalidStateKMSKey";
|
|
244
258
|
LastUpdateStatusReasonCode["InvalidSubnet"] = "InvalidSubnet";
|
|
259
|
+
LastUpdateStatusReasonCode["InvalidZipFileException"] = "InvalidZipFileException";
|
|
260
|
+
LastUpdateStatusReasonCode["KMSKeyAccessDenied"] = "KMSKeyAccessDenied";
|
|
261
|
+
LastUpdateStatusReasonCode["KMSKeyNotFound"] = "KMSKeyNotFound";
|
|
245
262
|
LastUpdateStatusReasonCode["SubnetOutOfIPAddresses"] = "SubnetOutOfIPAddresses";
|
|
246
263
|
})(LastUpdateStatusReasonCode || (LastUpdateStatusReasonCode = {}));
|
|
264
|
+
export var SnapStartOptimizationStatus;
|
|
265
|
+
(function (SnapStartOptimizationStatus) {
|
|
266
|
+
SnapStartOptimizationStatus["Off"] = "Off";
|
|
267
|
+
SnapStartOptimizationStatus["On"] = "On";
|
|
268
|
+
})(SnapStartOptimizationStatus || (SnapStartOptimizationStatus = {}));
|
|
247
269
|
export var State;
|
|
248
270
|
(function (State) {
|
|
249
271
|
State["Active"] = "Active";
|
|
@@ -254,7 +276,13 @@ export var State;
|
|
|
254
276
|
export var StateReasonCode;
|
|
255
277
|
(function (StateReasonCode) {
|
|
256
278
|
StateReasonCode["Creating"] = "Creating";
|
|
279
|
+
StateReasonCode["DisabledKMSKey"] = "DisabledKMSKey";
|
|
280
|
+
StateReasonCode["EFSIOError"] = "EFSIOError";
|
|
281
|
+
StateReasonCode["EFSMountConnectivityError"] = "EFSMountConnectivityError";
|
|
282
|
+
StateReasonCode["EFSMountFailure"] = "EFSMountFailure";
|
|
283
|
+
StateReasonCode["EFSMountTimeout"] = "EFSMountTimeout";
|
|
257
284
|
StateReasonCode["EniLimitExceeded"] = "EniLimitExceeded";
|
|
285
|
+
StateReasonCode["FunctionError"] = "FunctionError";
|
|
258
286
|
StateReasonCode["Idle"] = "Idle";
|
|
259
287
|
StateReasonCode["ImageAccessDenied"] = "ImageAccessDenied";
|
|
260
288
|
StateReasonCode["ImageDeleted"] = "ImageDeleted";
|
|
@@ -262,8 +290,13 @@ export var StateReasonCode;
|
|
|
262
290
|
StateReasonCode["InternalError"] = "InternalError";
|
|
263
291
|
StateReasonCode["InvalidConfiguration"] = "InvalidConfiguration";
|
|
264
292
|
StateReasonCode["InvalidImage"] = "InvalidImage";
|
|
293
|
+
StateReasonCode["InvalidRuntime"] = "InvalidRuntime";
|
|
265
294
|
StateReasonCode["InvalidSecurityGroup"] = "InvalidSecurityGroup";
|
|
295
|
+
StateReasonCode["InvalidStateKMSKey"] = "InvalidStateKMSKey";
|
|
266
296
|
StateReasonCode["InvalidSubnet"] = "InvalidSubnet";
|
|
297
|
+
StateReasonCode["InvalidZipFileException"] = "InvalidZipFileException";
|
|
298
|
+
StateReasonCode["KMSKeyAccessDenied"] = "KMSKeyAccessDenied";
|
|
299
|
+
StateReasonCode["KMSKeyNotFound"] = "KMSKeyNotFound";
|
|
267
300
|
StateReasonCode["Restoring"] = "Restoring";
|
|
268
301
|
StateReasonCode["SubnetOutOfIPAddresses"] = "SubnetOutOfIPAddresses";
|
|
269
302
|
})(StateReasonCode || (StateReasonCode = {}));
|
|
@@ -589,6 +622,48 @@ export class ResourceNotReadyException extends __BaseException {
|
|
|
589
622
|
this.Type = opts.Type;
|
|
590
623
|
}
|
|
591
624
|
}
|
|
625
|
+
export class SnapStartException extends __BaseException {
|
|
626
|
+
constructor(opts) {
|
|
627
|
+
super({
|
|
628
|
+
name: "SnapStartException",
|
|
629
|
+
$fault: "client",
|
|
630
|
+
...opts,
|
|
631
|
+
});
|
|
632
|
+
this.name = "SnapStartException";
|
|
633
|
+
this.$fault = "client";
|
|
634
|
+
Object.setPrototypeOf(this, SnapStartException.prototype);
|
|
635
|
+
this.Type = opts.Type;
|
|
636
|
+
this.Message = opts.Message;
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
export class SnapStartNotReadyException extends __BaseException {
|
|
640
|
+
constructor(opts) {
|
|
641
|
+
super({
|
|
642
|
+
name: "SnapStartNotReadyException",
|
|
643
|
+
$fault: "client",
|
|
644
|
+
...opts,
|
|
645
|
+
});
|
|
646
|
+
this.name = "SnapStartNotReadyException";
|
|
647
|
+
this.$fault = "client";
|
|
648
|
+
Object.setPrototypeOf(this, SnapStartNotReadyException.prototype);
|
|
649
|
+
this.Type = opts.Type;
|
|
650
|
+
this.Message = opts.Message;
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
export class SnapStartTimeoutException extends __BaseException {
|
|
654
|
+
constructor(opts) {
|
|
655
|
+
super({
|
|
656
|
+
name: "SnapStartTimeoutException",
|
|
657
|
+
$fault: "client",
|
|
658
|
+
...opts,
|
|
659
|
+
});
|
|
660
|
+
this.name = "SnapStartTimeoutException";
|
|
661
|
+
this.$fault = "client";
|
|
662
|
+
Object.setPrototypeOf(this, SnapStartTimeoutException.prototype);
|
|
663
|
+
this.Type = opts.Type;
|
|
664
|
+
this.Message = opts.Message;
|
|
665
|
+
}
|
|
666
|
+
}
|
|
592
667
|
export class SubnetIPAddressLimitReachedException extends __BaseException {
|
|
593
668
|
constructor(opts) {
|
|
594
669
|
super({
|
|
@@ -715,6 +790,9 @@ export const FileSystemConfigFilterSensitiveLog = (obj) => ({
|
|
|
715
790
|
export const ImageConfigFilterSensitiveLog = (obj) => ({
|
|
716
791
|
...obj,
|
|
717
792
|
});
|
|
793
|
+
export const SnapStartFilterSensitiveLog = (obj) => ({
|
|
794
|
+
...obj,
|
|
795
|
+
});
|
|
718
796
|
export const TracingConfigFilterSensitiveLog = (obj) => ({
|
|
719
797
|
...obj,
|
|
720
798
|
});
|
|
@@ -746,6 +824,9 @@ export const ImageConfigResponseFilterSensitiveLog = (obj) => ({
|
|
|
746
824
|
export const LayerFilterSensitiveLog = (obj) => ({
|
|
747
825
|
...obj,
|
|
748
826
|
});
|
|
827
|
+
export const SnapStartResponseFilterSensitiveLog = (obj) => ({
|
|
828
|
+
...obj,
|
|
829
|
+
});
|
|
749
830
|
export const TracingConfigResponseFilterSensitiveLog = (obj) => ({
|
|
750
831
|
...obj,
|
|
751
832
|
});
|