Enum aws_sdk_lambda::Error [−][src]
#[non_exhaustive]
pub enum Error {
Show 35 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),
RequestTooLargeException(RequestTooLargeException),
ResourceConflictException(ResourceConflictException),
ResourceInUseException(ResourceInUseException),
ResourceNotFoundException(ResourceNotFoundException),
ResourceNotReadyException(ResourceNotReadyException),
ServiceException(ServiceException),
SubnetIpAddressLimitReachedException(SubnetIpAddressLimitReachedException),
TooManyRequestsException(TooManyRequestsException),
UnsupportedMediaTypeException(UnsupportedMediaTypeException),
Unhandled(Box<dyn Error + Send + Sync + 'static>),
}
Expand description
All possible error types for this service.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
CodeSigningConfigNotFoundException(CodeSigningConfigNotFoundException)
Tuple Fields
The specified code signing configuration does not exist.
CodeStorageExceededException(CodeStorageExceededException)
Tuple Fields
You have exceeded your maximum total code size per account. Learn more
CodeVerificationFailedException(CodeVerificationFailedException)
Tuple Fields
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)
Tuple Fields
Need additional permissions to configure VPC settings.
Ec2ThrottledException(Ec2ThrottledException)
Tuple Fields
Lambda was throttled by Amazon EC2 during Lambda function initialization using the execution role provided for the Lambda function.
Ec2UnexpectedException(Ec2UnexpectedException)
Tuple Fields
Lambda received an unexpected EC2 client exception while setting up for the Lambda function.
EfsioException(EfsioException)
Tuple Fields
An error occurred when reading from or writing to a connected file system.
EfsMountConnectivityException(EfsMountConnectivityException)
Tuple Fields
The function couldn't make a network connection to the configured file system.
EfsMountFailureException(EfsMountFailureException)
Tuple Fields
The function couldn't mount the configured file system due to a permission or configuration issue.
EfsMountTimeoutException(EfsMountTimeoutException)
Tuple Fields
The function was able to make a network connection to the configured file system, but the mount operation timed out.
EniLimitReachedException(EniLimitReachedException)
Tuple Fields
Lambda was not able to create an elastic network interface in the VPC, specified as part of Lambda function configuration, because the limit for network interfaces has been reached.
InvalidCodeSignatureException(InvalidCodeSignatureException)
Tuple Fields
The code signature failed the integrity check. Lambda always blocks deployment if the integrity check fails, even if code signing policy is set to WARN.
InvalidParameterValueException(InvalidParameterValueException)
Tuple Fields
One of the parameters in the request is invalid.
InvalidRequestContentException(InvalidRequestContentException)
Tuple Fields
The request body could not be parsed as JSON.
InvalidRuntimeException(InvalidRuntimeException)
Tuple Fields
The runtime or runtime version specified is not supported.
InvalidSecurityGroupIdException(InvalidSecurityGroupIdException)
Tuple Fields
The Security Group ID provided in the Lambda function VPC configuration is invalid.
InvalidSubnetIdException(InvalidSubnetIdException)
Tuple Fields
The Subnet ID provided in the Lambda function VPC configuration is invalid.
InvalidZipFileException(InvalidZipFileException)
Tuple Fields
Lambda could not unzip the deployment package.
KmsAccessDeniedException(KmsAccessDeniedException)
Tuple Fields
Lambda was unable to decrypt the environment variables because KMS access was denied. Check the Lambda function's KMS permissions.
KmsDisabledException(KmsDisabledException)
Tuple Fields
Lambda was unable to decrypt the environment variables because the KMS key used is disabled. Check the Lambda function's KMS key settings.
KmsInvalidStateException(KmsInvalidStateException)
Tuple Fields
Lambda was unable to decrypt the environment variables because the KMS key used is in an invalid state for Decrypt. Check the function's KMS key settings.
KmsNotFoundException(KmsNotFoundException)
Tuple Fields
Lambda was unable to decrypt the environment variables because the KMS key was not found. Check the function's KMS key settings.
PolicyLengthExceededException(PolicyLengthExceededException)
Tuple Fields
The permissions policy for the resource is too large. Learn more
PreconditionFailedException(PreconditionFailedException)
Tuple Fields
The RevisionId provided does not match the latest RevisionId for the Lambda function or alias. Call the
GetFunction
or the GetAlias
API to retrieve the latest RevisionId for your
resource.
ProvisionedConcurrencyConfigNotFoundException(ProvisionedConcurrencyConfigNotFoundException)
Tuple Fields
The specified configuration does not exist.
RequestTooLargeException(RequestTooLargeException)
Tuple Fields
The request payload exceeded the Invoke
request body JSON input limit. For more information, see
Limits.
ResourceConflictException(ResourceConflictException)
Tuple Fields
The resource already exists, or another operation is in progress.
ResourceInUseException(ResourceInUseException)
Tuple Fields
The operation conflicts with the resource's availability. For example, you attempted to update an EventSource Mapping in CREATING, or tried to delete a EventSource mapping currently in the UPDATING state.
ResourceNotFoundException(ResourceNotFoundException)
Tuple Fields
The resource specified in the request does not exist.
ResourceNotReadyException(ResourceNotReadyException)
Tuple Fields
The function is inactive and its VPC connection is no longer available. Wait for the VPC connection to reestablish and try again.
ServiceException(ServiceException)
Tuple Fields
The Lambda service encountered an internal error.
SubnetIpAddressLimitReachedException(SubnetIpAddressLimitReachedException)
Tuple Fields
Lambda was not able to set up VPC access for the Lambda function because one or more configured subnets has no available IP addresses.
TooManyRequestsException(TooManyRequestsException)
Tuple Fields
The request throughput limit was exceeded.
UnsupportedMediaTypeException(UnsupportedMediaTypeException)
Tuple Fields
The content type of the Invoke
request body is not JSON.
Unhandled(Box<dyn Error + Send + Sync + 'static>)
An unhandled error occurred.
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more