serverless-spy
Version:
CDK-based library for writing elegant integration tests on AWS serverless architecture and an additional web console to monitor events in real time.
1,337 lines (1,316 loc) • 276 kB
JavaScript
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// src/index.ts
var src_exports = {};
__export(src_exports, {
AddLayerVersionPermissionCommand: () => AddLayerVersionPermissionCommand,
AddPermissionCommand: () => AddPermissionCommand,
ApplicationLogLevel: () => ApplicationLogLevel,
Architecture: () => Architecture,
CodeSigningConfigNotFoundException: () => CodeSigningConfigNotFoundException,
CodeSigningPolicy: () => CodeSigningPolicy,
CodeStorageExceededException: () => CodeStorageExceededException,
CodeVerificationFailedException: () => CodeVerificationFailedException,
CreateAliasCommand: () => CreateAliasCommand,
CreateCodeSigningConfigCommand: () => CreateCodeSigningConfigCommand,
CreateEventSourceMappingCommand: () => CreateEventSourceMappingCommand,
CreateFunctionCommand: () => CreateFunctionCommand,
CreateFunctionRequestFilterSensitiveLog: () => CreateFunctionRequestFilterSensitiveLog,
CreateFunctionUrlConfigCommand: () => CreateFunctionUrlConfigCommand,
DeleteAliasCommand: () => DeleteAliasCommand,
DeleteCodeSigningConfigCommand: () => DeleteCodeSigningConfigCommand,
DeleteEventSourceMappingCommand: () => DeleteEventSourceMappingCommand,
DeleteFunctionCodeSigningConfigCommand: () => DeleteFunctionCodeSigningConfigCommand,
DeleteFunctionCommand: () => DeleteFunctionCommand,
DeleteFunctionConcurrencyCommand: () => DeleteFunctionConcurrencyCommand,
DeleteFunctionEventInvokeConfigCommand: () => DeleteFunctionEventInvokeConfigCommand,
DeleteFunctionUrlConfigCommand: () => DeleteFunctionUrlConfigCommand,
DeleteLayerVersionCommand: () => DeleteLayerVersionCommand,
DeleteProvisionedConcurrencyConfigCommand: () => DeleteProvisionedConcurrencyConfigCommand,
EC2AccessDeniedException: () => EC2AccessDeniedException,
EC2ThrottledException: () => EC2ThrottledException,
EC2UnexpectedException: () => EC2UnexpectedException,
EFSIOException: () => EFSIOException,
EFSMountConnectivityException: () => EFSMountConnectivityException,
EFSMountFailureException: () => EFSMountFailureException,
EFSMountTimeoutException: () => EFSMountTimeoutException,
ENILimitReachedException: () => ENILimitReachedException,
EndPointType: () => EndPointType,
EnvironmentErrorFilterSensitiveLog: () => EnvironmentErrorFilterSensitiveLog,
EnvironmentFilterSensitiveLog: () => EnvironmentFilterSensitiveLog,
EnvironmentResponseFilterSensitiveLog: () => EnvironmentResponseFilterSensitiveLog,
EventSourceMappingMetric: () => EventSourceMappingMetric,
EventSourcePosition: () => EventSourcePosition,
FullDocument: () => FullDocument,
FunctionCodeFilterSensitiveLog: () => FunctionCodeFilterSensitiveLog,
FunctionConfigurationFilterSensitiveLog: () => FunctionConfigurationFilterSensitiveLog,
FunctionResponseType: () => FunctionResponseType,
FunctionUrlAuthType: () => FunctionUrlAuthType,
FunctionVersion: () => FunctionVersion,
GetAccountSettingsCommand: () => GetAccountSettingsCommand,
GetAliasCommand: () => GetAliasCommand,
GetCodeSigningConfigCommand: () => GetCodeSigningConfigCommand,
GetEventSourceMappingCommand: () => GetEventSourceMappingCommand,
GetFunctionCodeSigningConfigCommand: () => GetFunctionCodeSigningConfigCommand,
GetFunctionCommand: () => GetFunctionCommand,
GetFunctionConcurrencyCommand: () => GetFunctionConcurrencyCommand,
GetFunctionConfigurationCommand: () => GetFunctionConfigurationCommand,
GetFunctionEventInvokeConfigCommand: () => GetFunctionEventInvokeConfigCommand,
GetFunctionRecursionConfigCommand: () => GetFunctionRecursionConfigCommand,
GetFunctionResponseFilterSensitiveLog: () => GetFunctionResponseFilterSensitiveLog,
GetFunctionUrlConfigCommand: () => GetFunctionUrlConfigCommand,
GetLayerVersionByArnCommand: () => GetLayerVersionByArnCommand,
GetLayerVersionCommand: () => GetLayerVersionCommand,
GetLayerVersionPolicyCommand: () => GetLayerVersionPolicyCommand,
GetPolicyCommand: () => GetPolicyCommand,
GetProvisionedConcurrencyConfigCommand: () => GetProvisionedConcurrencyConfigCommand,
GetRuntimeManagementConfigCommand: () => GetRuntimeManagementConfigCommand,
ImageConfigErrorFilterSensitiveLog: () => ImageConfigErrorFilterSensitiveLog,
ImageConfigResponseFilterSensitiveLog: () => ImageConfigResponseFilterSensitiveLog,
InvalidCodeSignatureException: () => InvalidCodeSignatureException,
InvalidParameterValueException: () => InvalidParameterValueException,
InvalidRequestContentException: () => InvalidRequestContentException,
InvalidRuntimeException: () => InvalidRuntimeException,
InvalidSecurityGroupIDException: () => InvalidSecurityGroupIDException,
InvalidSubnetIDException: () => InvalidSubnetIDException,
InvalidZipFileException: () => InvalidZipFileException,
InvocationRequestFilterSensitiveLog: () => InvocationRequestFilterSensitiveLog,
InvocationResponseFilterSensitiveLog: () => InvocationResponseFilterSensitiveLog,
InvocationType: () => InvocationType,
InvokeAsyncCommand: () => InvokeAsyncCommand,
InvokeAsyncRequestFilterSensitiveLog: () => InvokeAsyncRequestFilterSensitiveLog,
InvokeCommand: () => InvokeCommand,
InvokeMode: () => InvokeMode,
InvokeResponseStreamUpdateFilterSensitiveLog: () => InvokeResponseStreamUpdateFilterSensitiveLog,
InvokeWithResponseStreamCommand: () => InvokeWithResponseStreamCommand,
InvokeWithResponseStreamRequestFilterSensitiveLog: () => InvokeWithResponseStreamRequestFilterSensitiveLog,
InvokeWithResponseStreamResponseEvent: () => InvokeWithResponseStreamResponseEvent,
InvokeWithResponseStreamResponseEventFilterSensitiveLog: () => InvokeWithResponseStreamResponseEventFilterSensitiveLog,
InvokeWithResponseStreamResponseFilterSensitiveLog: () => InvokeWithResponseStreamResponseFilterSensitiveLog,
KMSAccessDeniedException: () => KMSAccessDeniedException,
KMSDisabledException: () => KMSDisabledException,
KMSInvalidStateException: () => KMSInvalidStateException,
KMSNotFoundException: () => KMSNotFoundException,
Lambda: () => Lambda,
LambdaClient: () => LambdaClient,
LambdaServiceException: () => LambdaServiceException,
LastUpdateStatus: () => LastUpdateStatus,
LastUpdateStatusReasonCode: () => LastUpdateStatusReasonCode,
LayerVersionContentInputFilterSensitiveLog: () => LayerVersionContentInputFilterSensitiveLog,
ListAliasesCommand: () => ListAliasesCommand,
ListCodeSigningConfigsCommand: () => ListCodeSigningConfigsCommand,
ListEventSourceMappingsCommand: () => ListEventSourceMappingsCommand,
ListFunctionEventInvokeConfigsCommand: () => ListFunctionEventInvokeConfigsCommand,
ListFunctionUrlConfigsCommand: () => ListFunctionUrlConfigsCommand,
ListFunctionsByCodeSigningConfigCommand: () => ListFunctionsByCodeSigningConfigCommand,
ListFunctionsCommand: () => ListFunctionsCommand,
ListFunctionsResponseFilterSensitiveLog: () => ListFunctionsResponseFilterSensitiveLog,
ListLayerVersionsCommand: () => ListLayerVersionsCommand,
ListLayersCommand: () => ListLayersCommand,
ListProvisionedConcurrencyConfigsCommand: () => ListProvisionedConcurrencyConfigsCommand,
ListTagsCommand: () => ListTagsCommand,
ListVersionsByFunctionCommand: () => ListVersionsByFunctionCommand,
ListVersionsByFunctionResponseFilterSensitiveLog: () => ListVersionsByFunctionResponseFilterSensitiveLog,
LogFormat: () => LogFormat,
LogType: () => LogType,
PackageType: () => PackageType,
PolicyLengthExceededException: () => PolicyLengthExceededException,
PreconditionFailedException: () => PreconditionFailedException,
ProvisionedConcurrencyConfigNotFoundException: () => ProvisionedConcurrencyConfigNotFoundException,
ProvisionedConcurrencyStatusEnum: () => ProvisionedConcurrencyStatusEnum,
PublishLayerVersionCommand: () => PublishLayerVersionCommand,
PublishLayerVersionRequestFilterSensitiveLog: () => PublishLayerVersionRequestFilterSensitiveLog,
PublishVersionCommand: () => PublishVersionCommand,
PutFunctionCodeSigningConfigCommand: () => PutFunctionCodeSigningConfigCommand,
PutFunctionConcurrencyCommand: () => PutFunctionConcurrencyCommand,
PutFunctionEventInvokeConfigCommand: () => PutFunctionEventInvokeConfigCommand,
PutFunctionRecursionConfigCommand: () => PutFunctionRecursionConfigCommand,
PutProvisionedConcurrencyConfigCommand: () => PutProvisionedConcurrencyConfigCommand,
PutRuntimeManagementConfigCommand: () => PutRuntimeManagementConfigCommand,
RecursiveInvocationException: () => RecursiveInvocationException,
RecursiveLoop: () => RecursiveLoop,
RemoveLayerVersionPermissionCommand: () => RemoveLayerVersionPermissionCommand,
RemovePermissionCommand: () => RemovePermissionCommand,
RequestTooLargeException: () => RequestTooLargeException,
ResourceConflictException: () => ResourceConflictException,
ResourceInUseException: () => ResourceInUseException,
ResourceNotFoundException: () => ResourceNotFoundException,
ResourceNotReadyException: () => ResourceNotReadyException,
ResponseStreamingInvocationType: () => ResponseStreamingInvocationType,
Runtime: () => Runtime,
RuntimeVersionConfigFilterSensitiveLog: () => RuntimeVersionConfigFilterSensitiveLog,
RuntimeVersionErrorFilterSensitiveLog: () => RuntimeVersionErrorFilterSensitiveLog,
ServiceException: () => ServiceException,
SnapStartApplyOn: () => SnapStartApplyOn,
SnapStartException: () => SnapStartException,
SnapStartNotReadyException: () => SnapStartNotReadyException,
SnapStartOptimizationStatus: () => SnapStartOptimizationStatus,
SnapStartTimeoutException: () => SnapStartTimeoutException,
SourceAccessType: () => SourceAccessType,
State: () => State,
StateReasonCode: () => StateReasonCode,
SubnetIPAddressLimitReachedException: () => SubnetIPAddressLimitReachedException,
SystemLogLevel: () => SystemLogLevel,
TagResourceCommand: () => TagResourceCommand,
ThrottleReason: () => ThrottleReason,
TooManyRequestsException: () => TooManyRequestsException,
TracingMode: () => TracingMode,
UnsupportedMediaTypeException: () => UnsupportedMediaTypeException,
UntagResourceCommand: () => UntagResourceCommand,
UpdateAliasCommand: () => UpdateAliasCommand,
UpdateCodeSigningConfigCommand: () => UpdateCodeSigningConfigCommand,
UpdateEventSourceMappingCommand: () => UpdateEventSourceMappingCommand,
UpdateFunctionCodeCommand: () => UpdateFunctionCodeCommand,
UpdateFunctionCodeRequestFilterSensitiveLog: () => UpdateFunctionCodeRequestFilterSensitiveLog,
UpdateFunctionConfigurationCommand: () => UpdateFunctionConfigurationCommand,
UpdateFunctionConfigurationRequestFilterSensitiveLog: () => UpdateFunctionConfigurationRequestFilterSensitiveLog,
UpdateFunctionEventInvokeConfigCommand: () => UpdateFunctionEventInvokeConfigCommand,
UpdateFunctionUrlConfigCommand: () => UpdateFunctionUrlConfigCommand,
UpdateRuntimeOn: () => UpdateRuntimeOn,
__Client: () => import_smithy_client.Client,
paginateListAliases: () => paginateListAliases,
paginateListCodeSigningConfigs: () => paginateListCodeSigningConfigs,
paginateListEventSourceMappings: () => paginateListEventSourceMappings,
paginateListFunctionEventInvokeConfigs: () => paginateListFunctionEventInvokeConfigs,
paginateListFunctionUrlConfigs: () => paginateListFunctionUrlConfigs,
paginateListFunctions: () => paginateListFunctions,
paginateListFunctionsByCodeSigningConfig: () => paginateListFunctionsByCodeSigningConfig,
paginateListLayerVersions: () => paginateListLayerVersions,
paginateListLayers: () => paginateListLayers,
paginateListProvisionedConcurrencyConfigs: () => paginateListProvisionedConcurrencyConfigs,
paginateListVersionsByFunction: () => paginateListVersionsByFunction,
waitForFunctionActive: () => waitForFunctionActive,
waitForFunctionActiveV2: () => waitForFunctionActiveV2,
waitForFunctionExists: () => waitForFunctionExists,
waitForFunctionUpdated: () => waitForFunctionUpdated,
waitForFunctionUpdatedV2: () => waitForFunctionUpdatedV2,
waitForPublishedVersionActive: () => waitForPublishedVersionActive,
waitUntilFunctionActive: () => waitUntilFunctionActive,
waitUntilFunctionActiveV2: () => waitUntilFunctionActiveV2,
waitUntilFunctionExists: () => waitUntilFunctionExists,
waitUntilFunctionUpdated: () => waitUntilFunctionUpdated,
waitUntilFunctionUpdatedV2: () => waitUntilFunctionUpdatedV2,
waitUntilPublishedVersionActive: () => waitUntilPublishedVersionActive
});
module.exports = __toCommonJS(src_exports);
// src/LambdaClient.ts
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
var import_middleware_logger = require("@aws-sdk/middleware-logger");
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
var import_config_resolver = require("@smithy/config-resolver");
var import_core = require("@smithy/core");
var import_eventstream_serde_config_resolver = require("@smithy/eventstream-serde-config-resolver");
var import_middleware_content_length = require("@smithy/middleware-content-length");
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
var import_middleware_retry = require("@smithy/middleware-retry");
var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
// src/endpoint/EndpointParameters.ts
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
return {
...options,
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
useFipsEndpoint: options.useFipsEndpoint ?? false,
defaultSigningName: "lambda"
};
}, "resolveClientEndpointParameters");
var commonParams = {
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
Endpoint: { type: "builtInParams", name: "endpoint" },
Region: { type: "builtInParams", name: "region" },
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
};
// src/LambdaClient.ts
var import_runtimeConfig = require("././runtimeConfig");
// src/runtimeExtensions.ts
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
var import_protocol_http = require("@smithy/protocol-http");
var import_smithy_client = require("@smithy/smithy-client");
// src/auth/httpAuthExtensionConfiguration.ts
var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
let _credentials = runtimeConfig.credentials;
return {
setHttpAuthScheme(httpAuthScheme) {
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
if (index === -1) {
_httpAuthSchemes.push(httpAuthScheme);
} else {
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
}
},
httpAuthSchemes() {
return _httpAuthSchemes;
},
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
_httpAuthSchemeProvider = httpAuthSchemeProvider;
},
httpAuthSchemeProvider() {
return _httpAuthSchemeProvider;
},
setCredentials(credentials) {
_credentials = credentials;
},
credentials() {
return _credentials;
}
};
}, "getHttpAuthExtensionConfiguration");
var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
return {
httpAuthSchemes: config.httpAuthSchemes(),
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
credentials: config.credentials()
};
}, "resolveHttpAuthRuntimeConfig");
// src/runtimeExtensions.ts
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
const extensionConfiguration = {
...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig))
};
extensions.forEach((extension) => extension.configure(extensionConfiguration));
return {
...runtimeConfig,
...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
...resolveHttpAuthRuntimeConfig(extensionConfiguration)
};
}, "resolveRuntimeExtensions");
// src/LambdaClient.ts
var _LambdaClient = class _LambdaClient extends import_smithy_client.Client {
constructor(...[configuration]) {
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
const _config_1 = resolveClientEndpointParameters(_config_0);
const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
const _config_7 = (0, import_eventstream_serde_config_resolver.resolveEventStreamSerdeConfig)(_config_6);
const _config_8 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_7);
const _config_9 = resolveRuntimeExtensions(_config_8, (configuration == null ? void 0 : configuration.extensions) || []);
super(_config_9);
this.config = _config_9;
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
this.middlewareStack.use(
(0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultLambdaHttpAuthSchemeParametersProvider,
identityProviderConfigProvider: async (config) => new import_core.DefaultIdentityProviderConfig({
"aws.auth#sigv4": config.credentials
})
})
);
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
}
/**
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
*/
destroy() {
super.destroy();
}
};
__name(_LambdaClient, "LambdaClient");
var LambdaClient = _LambdaClient;
// src/Lambda.ts
// src/commands/AddLayerVersionPermissionCommand.ts
var import_middleware_serde = require("@smithy/middleware-serde");
// src/protocols/Aws_restJson1.ts
var import_core2 = require("@aws-sdk/core");
// src/models/LambdaServiceException.ts
var _LambdaServiceException = class _LambdaServiceException extends import_smithy_client.ServiceException {
/**
* @internal
*/
constructor(options) {
super(options);
Object.setPrototypeOf(this, _LambdaServiceException.prototype);
}
};
__name(_LambdaServiceException, "LambdaServiceException");
var LambdaServiceException = _LambdaServiceException;
// src/models/models_0.ts
var _InvalidParameterValueException = class _InvalidParameterValueException extends LambdaServiceException {
/**
* @internal
*/
constructor(opts) {
super({
name: "InvalidParameterValueException",
$fault: "client",
...opts
});
this.name = "InvalidParameterValueException";
this.$fault = "client";
Object.setPrototypeOf(this, _InvalidParameterValueException.prototype);
this.Type = opts.Type;
}
};
__name(_InvalidParameterValueException, "InvalidParameterValueException");
var InvalidParameterValueException = _InvalidParameterValueException;
var _PolicyLengthExceededException = class _PolicyLengthExceededException extends LambdaServiceException {
/**
* @internal
*/
constructor(opts) {
super({
name: "PolicyLengthExceededException",
$fault: "client",
...opts
});
this.name = "PolicyLengthExceededException";
this.$fault = "client";
Object.setPrototypeOf(this, _PolicyLengthExceededException.prototype);
this.Type = opts.Type;
}
};
__name(_PolicyLengthExceededException, "PolicyLengthExceededException");
var PolicyLengthExceededException = _PolicyLengthExceededException;
var _PreconditionFailedException = class _PreconditionFailedException extends LambdaServiceException {
/**
* @internal
*/
constructor(opts) {
super({
name: "PreconditionFailedException",
$fault: "client",
...opts
});
this.name = "PreconditionFailedException";
this.$fault = "client";
Object.setPrototypeOf(this, _PreconditionFailedException.prototype);
this.Type = opts.Type;
}
};
__name(_PreconditionFailedException, "PreconditionFailedException");
var PreconditionFailedException = _PreconditionFailedException;
var _ResourceConflictException = class _ResourceConflictException extends LambdaServiceException {
/**
* @internal
*/
constructor(opts) {
super({
name: "ResourceConflictException",
$fault: "client",
...opts
});
this.name = "ResourceConflictException";
this.$fault = "client";
Object.setPrototypeOf(this, _ResourceConflictException.prototype);
this.Type = opts.Type;
}
};
__name(_ResourceConflictException, "ResourceConflictException");
var ResourceConflictException = _ResourceConflictException;
var _ResourceNotFoundException = class _ResourceNotFoundException extends LambdaServiceException {
/**
* @internal
*/
constructor(opts) {
super({
name: "ResourceNotFoundException",
$fault: "client",
...opts
});
this.name = "ResourceNotFoundException";
this.$fault = "client";
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
this.Type = opts.Type;
this.Message = opts.Message;
}
};
__name(_ResourceNotFoundException, "ResourceNotFoundException");
var ResourceNotFoundException = _ResourceNotFoundException;
var _ServiceException = class _ServiceException extends LambdaServiceException {
/**
* @internal
*/
constructor(opts) {
super({
name: "ServiceException",
$fault: "server",
...opts
});
this.name = "ServiceException";
this.$fault = "server";
Object.setPrototypeOf(this, _ServiceException.prototype);
this.Type = opts.Type;
this.Message = opts.Message;
}
};
__name(_ServiceException, "ServiceException");
var ServiceException = _ServiceException;
var ThrottleReason = {
CallerRateLimitExceeded: "CallerRateLimitExceeded",
ConcurrentInvocationLimitExceeded: "ConcurrentInvocationLimitExceeded",
ConcurrentSnapshotCreateLimitExceeded: "ConcurrentSnapshotCreateLimitExceeded",
FunctionInvocationRateLimitExceeded: "FunctionInvocationRateLimitExceeded",
ReservedFunctionConcurrentInvocationLimitExceeded: "ReservedFunctionConcurrentInvocationLimitExceeded",
ReservedFunctionInvocationRateLimitExceeded: "ReservedFunctionInvocationRateLimitExceeded"
};
var _TooManyRequestsException = class _TooManyRequestsException extends LambdaServiceException {
/**
* @internal
*/
constructor(opts) {
super({
name: "TooManyRequestsException",
$fault: "client",
...opts
});
this.name = "TooManyRequestsException";
this.$fault = "client";
Object.setPrototypeOf(this, _TooManyRequestsException.prototype);
this.retryAfterSeconds = opts.retryAfterSeconds;
this.Type = opts.Type;
this.Reason = opts.Reason;
}
};
__name(_TooManyRequestsException, "TooManyRequestsException");
var TooManyRequestsException = _TooManyRequestsException;
var FunctionUrlAuthType = {
AWS_IAM: "AWS_IAM",
NONE: "NONE"
};
var ApplicationLogLevel = {
Debug: "DEBUG",
Error: "ERROR",
Fatal: "FATAL",
Info: "INFO",
Trace: "TRACE",
Warn: "WARN"
};
var Architecture = {
arm64: "arm64",
x86_64: "x86_64"
};
var CodeSigningPolicy = {
Enforce: "Enforce",
Warn: "Warn"
};
var FullDocument = {
Default: "Default",
UpdateLookup: "UpdateLookup"
};
var FunctionResponseType = {
ReportBatchItemFailures: "ReportBatchItemFailures"
};
var EventSourceMappingMetric = {
EventCount: "EventCount"
};
var EndPointType = {
KAFKA_BOOTSTRAP_SERVERS: "KAFKA_BOOTSTRAP_SERVERS"
};
var SourceAccessType = {
BASIC_AUTH: "BASIC_AUTH",
CLIENT_CERTIFICATE_TLS_AUTH: "CLIENT_CERTIFICATE_TLS_AUTH",
SASL_SCRAM_256_AUTH: "SASL_SCRAM_256_AUTH",
SASL_SCRAM_512_AUTH: "SASL_SCRAM_512_AUTH",
SERVER_ROOT_CA_CERTIFICATE: "SERVER_ROOT_CA_CERTIFICATE",
VIRTUAL_HOST: "VIRTUAL_HOST",
VPC_SECURITY_GROUP: "VPC_SECURITY_GROUP",
VPC_SUBNET: "VPC_SUBNET"
};
var EventSourcePosition = {
AT_TIMESTAMP: "AT_TIMESTAMP",
LATEST: "LATEST",
TRIM_HORIZON: "TRIM_HORIZON"
};
var _CodeSigningConfigNotFoundException = class _CodeSigningConfigNotFoundException extends LambdaServiceException {
/**
* @internal
*/
constructor(opts) {
super({
name: "CodeSigningConfigNotFoundException",
$fault: "client",
...opts
});
this.name = "CodeSigningConfigNotFoundException";
this.$fault = "client";
Object.setPrototypeOf(this, _CodeSigningConfigNotFoundException.prototype);
this.Type = opts.Type;
this.Message = opts.Message;
}
};
__name(_CodeSigningConfigNotFoundException, "CodeSigningConfigNotFoundException");
var CodeSigningConfigNotFoundException = _CodeSigningConfigNotFoundException;
var _CodeStorageExceededException = class _CodeStorageExceededException extends LambdaServiceException {
/**
* @internal
*/
constructor(opts) {
super({
name: "CodeStorageExceededException",
$fault: "client",
...opts
});
this.name = "CodeStorageExceededException";
this.$fault = "client";
Object.setPrototypeOf(this, _CodeStorageExceededException.prototype);
this.Type = opts.Type;
}
};
__name(_CodeStorageExceededException, "CodeStorageExceededException");
var CodeStorageExceededException = _CodeStorageExceededException;
var _CodeVerificationFailedException = class _CodeVerificationFailedException extends LambdaServiceException {
/**
* @internal
*/
constructor(opts) {
super({
name: "CodeVerificationFailedException",
$fault: "client",
...opts
});
this.name = "CodeVerificationFailedException";
this.$fault = "client";
Object.setPrototypeOf(this, _CodeVerificationFailedException.prototype);
this.Type = opts.Type;
this.Message = opts.Message;
}
};
__name(_CodeVerificationFailedException, "CodeVerificationFailedException");
var CodeVerificationFailedException = _CodeVerificationFailedException;
var LogFormat = {
Json: "JSON",
Text: "Text"
};
var SystemLogLevel = {
Debug: "DEBUG",
Info: "INFO",
Warn: "WARN"
};
var PackageType = {
Image: "Image",
Zip: "Zip"
};
var Runtime = {
dotnet6: "dotnet6",
dotnet8: "dotnet8",
dotnetcore10: "dotnetcore1.0",
dotnetcore20: "dotnetcore2.0",
dotnetcore21: "dotnetcore2.1",
dotnetcore31: "dotnetcore3.1",
go1x: "go1.x",
java11: "java11",
java17: "java17",
java21: "java21",
java8: "java8",
java8al2: "java8.al2",
nodejs: "nodejs",
nodejs10x: "nodejs10.x",
nodejs12x: "nodejs12.x",
nodejs14x: "nodejs14.x",
nodejs16x: "nodejs16.x",
nodejs18x: "nodejs18.x",
nodejs20x: "nodejs20.x",
nodejs22x: "nodejs22.x",
nodejs43: "nodejs4.3",
nodejs43edge: "nodejs4.3-edge",
nodejs610: "nodejs6.10",
nodejs810: "nodejs8.10",
provided: "provided",
providedal2: "provided.al2",
providedal2023: "provided.al2023",
python27: "python2.7",
python310: "python3.10",
python311: "python3.11",
python312: "python3.12",
python313: "python3.13",
python36: "python3.6",
python37: "python3.7",
python38: "python3.8",
python39: "python3.9",
ruby25: "ruby2.5",
ruby27: "ruby2.7",
ruby32: "ruby3.2",
ruby33: "ruby3.3"
};
var SnapStartApplyOn = {
None: "None",
PublishedVersions: "PublishedVersions"
};
var TracingMode = {
Active: "Active",
PassThrough: "PassThrough"
};
var LastUpdateStatus = {
Failed: "Failed",
InProgress: "InProgress",
Successful: "Successful"
};
var LastUpdateStatusReasonCode = {
DisabledKMSKey: "DisabledKMSKey",
EFSIOError: "EFSIOError",
EFSMountConnectivityError: "EFSMountConnectivityError",
EFSMountFailure: "EFSMountFailure",
EFSMountTimeout: "EFSMountTimeout",
EniLimitExceeded: "EniLimitExceeded",
FunctionError: "FunctionError",
ImageAccessDenied: "ImageAccessDenied",
ImageDeleted: "ImageDeleted",
InsufficientRolePermissions: "InsufficientRolePermissions",
InternalError: "InternalError",
InvalidConfiguration: "InvalidConfiguration",
InvalidImage: "InvalidImage",
InvalidRuntime: "InvalidRuntime",
InvalidSecurityGroup: "InvalidSecurityGroup",
InvalidStateKMSKey: "InvalidStateKMSKey",
InvalidSubnet: "InvalidSubnet",
InvalidZipFileException: "InvalidZipFileException",
KMSKeyAccessDenied: "KMSKeyAccessDenied",
KMSKeyNotFound: "KMSKeyNotFound",
SubnetOutOfIPAddresses: "SubnetOutOfIPAddresses"
};
var SnapStartOptimizationStatus = {
Off: "Off",
On: "On"
};
var State = {
Active: "Active",
Failed: "Failed",
Inactive: "Inactive",
Pending: "Pending"
};
var StateReasonCode = {
Creating: "Creating",
DisabledKMSKey: "DisabledKMSKey",
EFSIOError: "EFSIOError",
EFSMountConnectivityError: "EFSMountConnectivityError",
EFSMountFailure: "EFSMountFailure",
EFSMountTimeout: "EFSMountTimeout",
EniLimitExceeded: "EniLimitExceeded",
FunctionError: "FunctionError",
Idle: "Idle",
ImageAccessDenied: "ImageAccessDenied",
ImageDeleted: "ImageDeleted",
InsufficientRolePermissions: "InsufficientRolePermissions",
InternalError: "InternalError",
InvalidConfiguration: "InvalidConfiguration",
InvalidImage: "InvalidImage",
InvalidRuntime: "InvalidRuntime",
InvalidSecurityGroup: "InvalidSecurityGroup",
InvalidStateKMSKey: "InvalidStateKMSKey",
InvalidSubnet: "InvalidSubnet",
InvalidZipFileException: "InvalidZipFileException",
KMSKeyAccessDenied: "KMSKeyAccessDenied",
KMSKeyNotFound: "KMSKeyNotFound",
Restoring: "Restoring",
SubnetOutOfIPAddresses: "SubnetOutOfIPAddresses"
};
var _InvalidCodeSignatureException = class _InvalidCodeSignatureException extends LambdaServiceException {
/**
* @internal
*/
constructor(opts) {
super({
name: "InvalidCodeSignatureException",
$fault: "client",
...opts
});
this.name = "InvalidCodeSignatureException";
this.$fault = "client";
Object.setPrototypeOf(this, _InvalidCodeSignatureException.prototype);
this.Type = opts.Type;
this.Message = opts.Message;
}
};
__name(_InvalidCodeSignatureException, "InvalidCodeSignatureException");
var InvalidCodeSignatureException = _InvalidCodeSignatureException;
var InvokeMode = {
BUFFERED: "BUFFERED",
RESPONSE_STREAM: "RESPONSE_STREAM"
};
var _ResourceInUseException = class _ResourceInUseException extends LambdaServiceException {
/**
* @internal
*/
constructor(opts) {
super({
name: "ResourceInUseException",
$fault: "client",
...opts
});
this.name = "ResourceInUseException";
this.$fault = "client";
Object.setPrototypeOf(this, _ResourceInUseException.prototype);
this.Type = opts.Type;
this.Message = opts.Message;
}
};
__name(_ResourceInUseException, "ResourceInUseException");
var ResourceInUseException = _ResourceInUseException;
var RecursiveLoop = {
Allow: "Allow",
Terminate: "Terminate"
};
var ProvisionedConcurrencyStatusEnum = {
FAILED: "FAILED",
IN_PROGRESS: "IN_PROGRESS",
READY: "READY"
};
var _ProvisionedConcurrencyConfigNotFoundException = class _ProvisionedConcurrencyConfigNotFoundException extends LambdaServiceException {
/**
* @internal
*/
constructor(opts) {
super({
name: "ProvisionedConcurrencyConfigNotFoundException",
$fault: "client",
...opts
});
this.name = "ProvisionedConcurrencyConfigNotFoundException";
this.$fault = "client";
Object.setPrototypeOf(this, _ProvisionedConcurrencyConfigNotFoundException.prototype);
this.Type = opts.Type;
}
};
__name(_ProvisionedConcurrencyConfigNotFoundException, "ProvisionedConcurrencyConfigNotFoundException");
var ProvisionedConcurrencyConfigNotFoundException = _ProvisionedConcurrencyConfigNotFoundException;
var UpdateRuntimeOn = {
Auto: "Auto",
FunctionUpdate: "FunctionUpdate",
Manual: "Manual"
};
var _EC2AccessDeniedException = class _EC2AccessDeniedException extends LambdaServiceException {
/**
* @internal
*/
constructor(opts) {
super({
name: "EC2AccessDeniedException",
$fault: "server",
...opts
});
this.name = "EC2AccessDeniedException";
this.$fault = "server";
Object.setPrototypeOf(this, _EC2AccessDeniedException.prototype);
this.Type = opts.Type;
this.Message = opts.Message;
}
};
__name(_EC2AccessDeniedException, "EC2AccessDeniedException");
var EC2AccessDeniedException = _EC2AccessDeniedException;
var _EC2ThrottledException = class _EC2ThrottledException extends LambdaServiceException {
/**
* @internal
*/
constructor(opts) {
super({
name: "EC2ThrottledException",
$fault: "server",
...opts
});
this.name = "EC2ThrottledException";
this.$fault = "server";
Object.setPrototypeOf(this, _EC2ThrottledException.prototype);
this.Type = opts.Type;
this.Message = opts.Message;
}
};
__name(_EC2ThrottledException, "EC2ThrottledException");
var EC2ThrottledException = _EC2ThrottledException;
var _EC2UnexpectedException = class _EC2UnexpectedException extends LambdaServiceException {
/**
* @internal
*/
constructor(opts) {
super({
name: "EC2UnexpectedException",
$fault: "server",
...opts
});
this.name = "EC2UnexpectedException";
this.$fault = "server";
Object.setPrototypeOf(this, _EC2UnexpectedException.prototype);
this.Type = opts.Type;
this.Message = opts.Message;
this.EC2ErrorCode = opts.EC2ErrorCode;
}
};
__name(_EC2UnexpectedException, "EC2UnexpectedException");
var EC2UnexpectedException = _EC2UnexpectedException;
var _EFSIOException = class _EFSIOException extends LambdaServiceException {
/**
* @internal
*/
constructor(opts) {
super({
name: "EFSIOException",
$fault: "client",
...opts
});
this.name = "EFSIOException";
this.$fault = "client";
Object.setPrototypeOf(this, _EFSIOException.prototype);
this.Type = opts.Type;
this.Message = opts.Message;
}
};
__name(_EFSIOException, "EFSIOException");
var EFSIOException = _EFSIOException;
var _EFSMountConnectivityException = class _EFSMountConnectivityException extends LambdaServiceException {
/**
* @internal
*/
constructor(opts) {
super({
name: "EFSMountConnectivityException",
$fault: "client",
...opts
});
this.name = "EFSMountConnectivityException";
this.$fault = "client";
Object.setPrototypeOf(this, _EFSMountConnectivityException.prototype);
this.Type = opts.Type;
this.Message = opts.Message;
}
};
__name(_EFSMountConnectivityException, "EFSMountConnectivityException");
var EFSMountConnectivityException = _EFSMountConnectivityException;
var _EFSMountFailureException = class _EFSMountFailureException extends LambdaServiceException {
/**
* @internal
*/
constructor(opts) {
super({
name: "EFSMountFailureException",
$fault: "client",
...opts
});
this.name = "EFSMountFailureException";
this.$fault = "client";
Object.setPrototypeOf(this, _EFSMountFailureException.prototype);
this.Type = opts.Type;
this.Message = opts.Message;
}
};
__name(_EFSMountFailureException, "EFSMountFailureException");
var EFSMountFailureException = _EFSMountFailureException;
var _EFSMountTimeoutException = class _EFSMountTimeoutException extends LambdaServiceException {
/**
* @internal
*/
constructor(opts) {
super({
name: "EFSMountTimeoutException",
$fault: "client",
...opts
});
this.name = "EFSMountTimeoutException";
this.$fault = "client";
Object.setPrototypeOf(this, _EFSMountTimeoutException.prototype);
this.Type = opts.Type;
this.Message = opts.Message;
}
};
__name(_EFSMountTimeoutException, "EFSMountTimeoutException");
var EFSMountTimeoutException = _EFSMountTimeoutException;
var _ENILimitReachedException = class _ENILimitReachedException extends LambdaServiceException {
/**
* @internal
*/
constructor(opts) {
super({
name: "ENILimitReachedException",
$fault: "server",
...opts
});
this.name = "ENILimitReachedException";
this.$fault = "server";
Object.setPrototypeOf(this, _ENILimitReachedException.prototype);
this.Type = opts.Type;
this.Message = opts.Message;
}
};
__name(_ENILimitReachedException, "ENILimitReachedException");
var ENILimitReachedException = _ENILimitReachedException;
var _InvalidRequestContentException = class _InvalidRequestContentException extends LambdaServiceException {
/**
* @internal
*/
constructor(opts) {
super({
name: "InvalidRequestContentException",
$fault: "client",
...opts
});
this.name = "InvalidRequestContentException";
this.$fault = "client";
Object.setPrototypeOf(this, _InvalidRequestContentException.prototype);
this.Type = opts.Type;
}
};
__name(_InvalidRequestContentException, "InvalidRequestContentException");
var InvalidRequestContentException = _InvalidRequestContentException;
var _InvalidRuntimeException = class _InvalidRuntimeException extends LambdaServiceException {
/**
* @internal
*/
constructor(opts) {
super({
name: "InvalidRuntimeException",
$fault: "server",
...opts
});
this.name = "InvalidRuntimeException";
this.$fault = "server";
Object.setPrototypeOf(this, _InvalidRuntimeException.prototype);
this.Type = opts.Type;
this.Message = opts.Message;
}
};
__name(_InvalidRuntimeException, "InvalidRuntimeException");
var InvalidRuntimeException = _InvalidRuntimeException;
var _InvalidSecurityGroupIDException = class _InvalidSecurityGroupIDException extends LambdaServiceException {
/**
* @internal
*/
constructor(opts) {
super({
name: "InvalidSecurityGroupIDException",
$fault: "server",
...opts
});
this.name = "InvalidSecurityGroupIDException";
this.$fault = "server";
Object.setPrototypeOf(this, _InvalidSecurityGroupIDException.prototype);
this.Type = opts.Type;
this.Message = opts.Message;
}
};
__name(_InvalidSecurityGroupIDException, "InvalidSecurityGroupIDException");
var InvalidSecurityGroupIDException = _InvalidSecurityGroupIDException;
var _InvalidSubnetIDException = class _InvalidSubnetIDException extends LambdaServiceException {
/**
* @internal
*/
constructor(opts) {
super({
name: "InvalidSubnetIDException",
$fault: "server",
...opts
});
this.name = "InvalidSubnetIDException";
this.$fault = "server";
Object.setPrototypeOf(this, _InvalidSubnetIDException.prototype);
this.Type = opts.Type;
this.Message = opts.Message;
}
};
__name(_InvalidSubnetIDException, "InvalidSubnetIDException");
var InvalidSubnetIDException = _InvalidSubnetIDException;
var _InvalidZipFileException = class _InvalidZipFileException extends LambdaServiceException {
/**
* @internal
*/
constructor(opts) {
super({
name: "InvalidZipFileException",
$fault: "server",
...opts
});
this.name = "InvalidZipFileException";
this.$fault = "server";
Object.setPrototypeOf(this, _InvalidZipFileException.prototype);
this.Type = opts.Type;
this.Message = opts.Message;
}
};
__name(_InvalidZipFileException, "InvalidZipFileException");
var InvalidZipFileException = _InvalidZipFileException;
var InvocationType = {
DryRun: "DryRun",
Event: "Event",
RequestResponse: "RequestResponse"
};
var LogType = {
None: "None",
Tail: "Tail"
};
var _KMSAccessDeniedException = class _KMSAccessDeniedException extends LambdaServiceException {
/**
* @internal
*/
constructor(opts) {
super({
name: "KMSAccessDeniedException",
$fault: "server",
...opts
});
this.name = "KMSAccessDeniedException";
this.$fault = "server";
Object.setPrototypeOf(this, _KMSAccessDeniedException.prototype);
this.Type = opts.Type;
this.Message = opts.Message;
}
};
__name(_KMSAccessDeniedException, "KMSAccessDeniedException");
var KMSAccessDeniedException = _KMSAccessDeniedException;
var _KMSDisabledException = class _KMSDisabledException extends LambdaServiceException {
/**
* @internal
*/
constructor(opts) {
super({
name: "KMSDisabledException",
$fault: "server",
...opts
});
this.name = "KMSDisabledException";
this.$fault = "server";
Object.setPrototypeOf(this, _KMSDisabledException.prototype);
this.Type = opts.Type;
this.Message = opts.Message;
}
};
__name(_KMSDisabledException, "KMSDisabledException");
var KMSDisabledException = _KMSDisabledException;
var _KMSInvalidStateException = class _KMSInvalidStateException extends LambdaServiceException {
/**
* @internal
*/
constructor(opts) {
super({
name: "KMSInvalidStateException",
$fault: "server",
...opts
});
this.name = "KMSInvalidStateException";
this.$fault = "server";
Object.setPrototypeOf(this, _KMSInvalidStateException.prototype);
this.Type = opts.Type;
this.Message = opts.Message;
}
};
__name(_KMSInvalidStateException, "KMSInvalidStateException");
var KMSInvalidStateException = _KMSInvalidStateException;
var _KMSNotFoundException = class _KMSNotFoundException extends LambdaServiceException {
/**
* @internal
*/
constructor(opts) {
super({
name: "KMSNotFoundException",
$fault: "server",
...opts
});
this.name = "KMSNotFoundException";
this.$fault = "server";
Object.setPrototypeOf(this, _KMSNotFoundException.prototype);
this.Type = opts.Type;
this.Message = opts.Message;
}
};
__name(_KMSNotFoundException, "KMSNotFoundException");
var KMSNotFoundException = _KMSNotFoundException;
var _RecursiveInvocationException = class _RecursiveInvocationException extends LambdaServiceException {
/**
* @internal
*/
constructor(opts) {
super({
name: "RecursiveInvocationException",
$fault: "client",
...opts
});
this.name = "RecursiveInvocationException";
this.$fault = "client";
Object.setPrototypeOf(this, _RecursiveInvocationException.prototype);
this.Type = opts.Type;
this.Message = opts.Message;
}
};
__name(_RecursiveInvocationException, "RecursiveInvocationException");
var RecursiveInvocationException = _RecursiveInvocationException;
var _RequestTooLargeException = class _RequestTooLargeException extends LambdaServiceException {
/**
* @internal
*/
constructor(opts) {
super({
name: "RequestTooLargeException",
$fault: "client",
...opts
});
this.name = "RequestTooLargeException";
this.$fault = "client";
Object.setPrototypeOf(this, _RequestTooLargeException.prototype);
this.Type = opts.Type;
}
};
__name(_RequestTooLargeException, "RequestTooLargeException");
var RequestTooLargeException = _RequestTooLargeException;
var _ResourceNotReadyException = class _ResourceNotReadyException extends LambdaServiceException {
/**
* @internal
*/
constructor(opts) {
super({
name: "ResourceNotReadyException",
$fault: "server",
...opts
});
this.name = "ResourceNotReadyException";
this.$fault = "server";
Object.setPrototypeOf(this, _ResourceNotReadyException.prototype);
this.Type = opts.Type;
}
};
__name(_ResourceNotReadyException, "ResourceNotReadyException");
var ResourceNotReadyException = _ResourceNotReadyException;
var _SnapStartException = class _SnapStartException extends LambdaServiceException {
/**
* @internal
*/
constructor(opts) {
super({
name: "SnapStartException",
$fault: "client",
...opts
});
this.name = "SnapStartException";
this.$fault = "client";
Object.setPrototypeOf(this, _SnapStartException.prototype);
this.Type = opts.Type;
this.Message = opts.Message;
}
};
__name(_SnapStartException, "SnapStartException");
var SnapStartException = _SnapStartException;
var _SnapStartNotReadyException = class _SnapStartNotReadyException extends LambdaServiceException {
/**
* @internal
*/
constructor(opts) {
super({
name: "SnapStartNotReadyException",
$fault: "client",
...opts
});
this.name = "SnapStartNotReadyException";
this.$fault = "client";
Object.setPrototypeOf(this, _SnapStartNotReadyException.prototype);
this.Type = opts.Type;
this.Message = opts.Message;
}
};
__name(_SnapStartNotReadyException, "SnapStartNotReadyException");
var SnapStartNotReadyException = _SnapStartNotReadyException;
var _SnapStartTimeoutException = class _SnapStartTimeoutException extends LambdaServiceException {
/**
* @internal
*/
constructor(opts) {
super({
name: "SnapStartTimeoutException",
$fault: "client",
...opts
});
this.name = "SnapStartTimeoutException";
this.$fault = "client";
Object.setPrototypeOf(this, _SnapStartTimeoutException.prototype);
this.Type = opts.Type;
this.Message = opts.Message;
}
};
__name(_SnapStartTimeoutException, "SnapStartTimeoutException");
var SnapStartTimeoutException = _SnapStartTimeoutException;
var _SubnetIPAddressLimitReachedException = class _SubnetIPAddressLimitReachedException extends LambdaServiceException {
/**
* @internal
*/
constructor(opts) {
super({
name: "SubnetIPAddressLimitReachedException",
$fault: "server",
...opts
});
this.name = "SubnetIPAddressLimitReachedException";
this.$fault = "server";
Object.setPrototypeOf(this, _SubnetIPAddressLimitReachedException.prototype);
this.Type = opts.Type;
this.Message = opts.Message;
}
};
__name(_SubnetIPAddressLimitReachedException, "SubnetIPAddressLimitReachedException");
var SubnetIPAddressLimitReachedException = _SubnetIPAddressLimitReachedException;
var _UnsupportedMediaTypeException = class _UnsupportedMediaTypeException extends LambdaServiceException {
/**
* @internal
*/
constructor(opts) {
super({
name: "UnsupportedMediaTypeException",
$fault: "client",
...opts
});
this.name = "UnsupportedMediaTypeException";
this.$fault = "client";
Object.setPrototypeOf(this, _UnsupportedMediaTypeException.prototype);
this.Type = opts.Type;
}
};
__name(_UnsupportedMediaTypeException, "UnsupportedMediaTypeException");
var UnsupportedMediaTypeException = _UnsupportedMediaTypeException;
var ResponseStreamingInvocationType = {
DryRun: "DryRun",
RequestResponse: "RequestResponse"
};
var InvokeWithResponseStreamResponseEvent;
((InvokeWithResponseStreamResponseEvent3) => {
InvokeWithResponseStreamResponseEvent3.visit = /* @__PURE__ */ __name((value, visitor) => {
if (value.PayloadChunk !== void 0)
return visitor.PayloadChunk(value.PayloadChunk);
if (value.InvokeComplete !== void 0)
return visitor.InvokeComplete(value.InvokeComplete);
return visitor._(value.$unknown[0], value.$unknown[1]);
}, "visit");
})(InvokeWithResponseStreamResponseEvent || (InvokeWithResponseStreamResponseEvent = {}));
var FunctionVersion = {
ALL: "ALL"
};
var FunctionCodeFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.ZipFile && { ZipFile: import_smithy_client.SENSITIVE_STRING }
}), "FunctionCodeFilterSensitiveLog");
var EnvironmentFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.Variables && { Variables: import_smithy_client.SENSITIVE_STRING }
}), "EnvironmentFilterSensitiveLog");
var CreateFunctionRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
...obj,
...obj.Code && { Code: FunctionCodeFilterSensitiveLog(obj.Code) },
...obj.Environment && { Environment: EnvironmentFilterSensitiveLog(obj.Environment) }
}), "CreateFunctionRequestFilterSensitiveLog");
var EnvironmentErrorFilterSensitiveLog = /* @__PURE_