Enum aws_sdk_lambda::Error
source · #[non_exhaustive]pub enum Error {
Show 39 variants
CodeSigningConfigNotFoundException(CodeSigningConfigNotFoundException),
CodeStorageExceededException(CodeStorageExceededException),
CodeVerificationFailedException(CodeVerificationFailedException),
Ec2AccessDeniedException(Ec2AccessDeniedException),
Ec2ThrottledException(Ec2ThrottledException),
Ec2UnexpectedException(Ec2UnexpectedException),
EfsioException(EfsioException),
EfsMountConnectivityException(EfsMountConnectivityException),
EfsMountFailureException(EfsMountFailureException),
EfsMountTimeoutException(EfsMountTimeoutException),
EniLimitReachedException(EniLimitReachedException),
InvalidCodeSignatureException(InvalidCodeSignatureException),
InvalidParameterValueException(InvalidParameterValueException),
InvalidRequestContentException(InvalidRequestContentException),
InvalidRuntimeException(InvalidRuntimeException),
InvalidSecurityGroupIdException(InvalidSecurityGroupIdException),
InvalidSubnetIdException(InvalidSubnetIdException),
InvalidZipFileException(InvalidZipFileException),
KmsAccessDeniedException(KmsAccessDeniedException),
KmsDisabledException(KmsDisabledException),
KmsInvalidStateException(KmsInvalidStateException),
KmsNotFoundException(KmsNotFoundException),
PolicyLengthExceededException(PolicyLengthExceededException),
PreconditionFailedException(PreconditionFailedException),
ProvisionedConcurrencyConfigNotFoundException(ProvisionedConcurrencyConfigNotFoundException),
RecursiveInvocationException(RecursiveInvocationException),
RequestTooLargeException(RequestTooLargeException),
ResourceConflictException(ResourceConflictException),
ResourceInUseException(ResourceInUseException),
ResourceNotFoundException(ResourceNotFoundException),
ResourceNotReadyException(ResourceNotReadyException),
ServiceException(ServiceException),
SnapStartException(SnapStartException),
SnapStartNotReadyException(SnapStartNotReadyException),
SnapStartTimeoutException(SnapStartTimeoutException),
SubnetIpAddressLimitReachedException(SubnetIpAddressLimitReachedException),
TooManyRequestsException(TooManyRequestsException),
UnsupportedMediaTypeException(UnsupportedMediaTypeException),
Unhandled(Unhandled),
}
Expand description
All possible error types for this service.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
CodeSigningConfigNotFoundException(CodeSigningConfigNotFoundException)
The specified code signing configuration does not exist.
CodeStorageExceededException(CodeStorageExceededException)
Your Amazon Web Services account has exceeded its maximum total code size. For more information, see Lambda quotas.
CodeVerificationFailedException(CodeVerificationFailedException)
The code signature failed one or more of the validation checks for signature mismatch or expiry, and the code signing policy is set to ENFORCE. Lambda blocks the deployment.
Ec2AccessDeniedException(Ec2AccessDeniedException)
Need additional permissions to configure VPC settings.
Ec2ThrottledException(Ec2ThrottledException)
Amazon EC2 throttled Lambda during Lambda function initialization using the execution role provided for the function.
Ec2UnexpectedException(Ec2UnexpectedException)
Lambda received an unexpected Amazon EC2 client exception while setting up for the Lambda function.
EfsioException(EfsioException)
An error occurred when reading from or writing to a connected file system.
EfsMountConnectivityException(EfsMountConnectivityException)
The Lambda function couldn't make a network connection to the configured file system.
EfsMountFailureException(EfsMountFailureException)
The Lambda function couldn't mount the configured file system due to a permission or configuration issue.
EfsMountTimeoutException(EfsMountTimeoutException)
The Lambda function made a network connection to the configured file system, but the mount operation timed out.
EniLimitReachedException(EniLimitReachedException)
Lambda couldn't create an elastic network interface in the VPC, specified as part of Lambda function configuration, because the limit for network interfaces has been reached. For more information, see Lambda quotas.
InvalidCodeSignatureException(InvalidCodeSignatureException)
The code signature failed the integrity check. If the integrity check fails, then Lambda blocks deployment, even if the code signing policy is set to WARN.
InvalidParameterValueException(InvalidParameterValueException)
One of the parameters in the request is not valid.
InvalidRequestContentException(InvalidRequestContentException)
The request body could not be parsed as JSON.
InvalidRuntimeException(InvalidRuntimeException)
The runtime or runtime version specified is not supported.
InvalidSecurityGroupIdException(InvalidSecurityGroupIdException)
The security group ID provided in the Lambda function VPC configuration is not valid.
InvalidSubnetIdException(InvalidSubnetIdException)
The subnet ID provided in the Lambda function VPC configuration is not valid.
InvalidZipFileException(InvalidZipFileException)
Lambda could not unzip the deployment package.
KmsAccessDeniedException(KmsAccessDeniedException)
Lambda couldn't decrypt the environment variables because KMS access was denied. Check the Lambda function's KMS permissions.
KmsDisabledException(KmsDisabledException)
Lambda couldn't decrypt the environment variables because the KMS key used is disabled. Check the Lambda function's KMS key settings.
KmsInvalidStateException(KmsInvalidStateException)
Lambda couldn't decrypt the environment variables because the state of the KMS key used is not valid for Decrypt. Check the function's KMS key settings.
KmsNotFoundException(KmsNotFoundException)
Lambda couldn't decrypt the environment variables because the KMS key was not found. Check the function's KMS key settings.
PolicyLengthExceededException(PolicyLengthExceededException)
The permissions policy for the resource is too large. For more information, see Lambda quotas.
PreconditionFailedException(PreconditionFailedException)
The RevisionId provided does not match the latest RevisionId for the Lambda function or alias. Call the GetFunction
or the GetAlias
API operation to retrieve the latest RevisionId for your resource.
ProvisionedConcurrencyConfigNotFoundException(ProvisionedConcurrencyConfigNotFoundException)
The specified configuration does not exist.
RecursiveInvocationException(RecursiveInvocationException)
Lambda has detected your function being invoked in a recursive loop with other Amazon Web Services resources and stopped your function's invocation.
RequestTooLargeException(RequestTooLargeException)
The request payload exceeded the Invoke
request body JSON input quota. For more information, see Lambda quotas.
ResourceConflictException(ResourceConflictException)
The resource already exists, or another operation is in progress.
ResourceInUseException(ResourceInUseException)
The operation conflicts with the resource's availability. For example, you tried to update an event source mapping in the CREATING state, or you tried to delete an event source mapping currently UPDATING.
ResourceNotFoundException(ResourceNotFoundException)
The resource specified in the request does not exist.
ResourceNotReadyException(ResourceNotReadyException)
The function is inactive and its VPC connection is no longer available. Wait for the VPC connection to reestablish and try again.
ServiceException(ServiceException)
The Lambda service encountered an internal error.
SnapStartException(SnapStartException)
The afterRestore()
runtime hook encountered an error. For more information, check the Amazon CloudWatch logs.
SnapStartNotReadyException(SnapStartNotReadyException)
Lambda is initializing your function. You can invoke the function when the function state becomes Active
.
SnapStartTimeoutException(SnapStartTimeoutException)
Lambda couldn't restore the snapshot within the timeout limit.
SubnetIpAddressLimitReachedException(SubnetIpAddressLimitReachedException)
Lambda couldn't set up VPC access for the Lambda function because one or more configured subnets has no available IP addresses.
TooManyRequestsException(TooManyRequestsException)
The request throughput limit was exceeded. For more information, see Lambda quotas.
UnsupportedMediaTypeException(UnsupportedMediaTypeException)
The content type of the Invoke
request body is not JSON.
Unhandled(Unhandled)
Unhandled
directly is not forwards compatible. Instead, match using a variable wildcard pattern and check .code()
:
err if err.code() == Some("SpecificExceptionCode") => { /* handle the error */ }
See ProvideErrorMetadata
for what information is available for the error.An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).