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
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
CodeSigningConfigNotFoundException(CodeSigningConfigNotFoundException)

The specified code signing configuration does not exist.

Tuple Fields of CodeSigningConfigNotFoundException

0: CodeSigningConfigNotFoundException
CodeStorageExceededException(CodeStorageExceededException)

You have exceeded your maximum total code size per account. Learn more

Tuple Fields of CodeStorageExceededException

0: CodeStorageExceededException
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.

Tuple Fields of CodeVerificationFailedException

0: CodeVerificationFailedException
Ec2AccessDeniedException(Ec2AccessDeniedException)

Need additional permissions to configure VPC settings.

Tuple Fields of Ec2AccessDeniedException

0: Ec2AccessDeniedException
Ec2ThrottledException(Ec2ThrottledException)

Lambda was throttled by Amazon EC2 during Lambda function initialization using the execution role provided for the Lambda function.

Tuple Fields of Ec2ThrottledException

0: Ec2ThrottledException
Ec2UnexpectedException(Ec2UnexpectedException)

Lambda received an unexpected EC2 client exception while setting up for the Lambda function.

Tuple Fields of Ec2UnexpectedException

0: Ec2UnexpectedException
EfsioException(EfsioException)

An error occurred when reading from or writing to a connected file system.

Tuple Fields of EfsioException

0: EfsioException
EfsMountConnectivityException(EfsMountConnectivityException)

The function couldn't make a network connection to the configured file system.

Tuple Fields of EfsMountConnectivityException

0: EfsMountConnectivityException
EfsMountFailureException(EfsMountFailureException)

The function couldn't mount the configured file system due to a permission or configuration issue.

Tuple Fields of EfsMountFailureException

0: EfsMountFailureException
EfsMountTimeoutException(EfsMountTimeoutException)

The function was able to make a network connection to the configured file system, but the mount operation timed out.

Tuple Fields of EfsMountTimeoutException

0: EfsMountTimeoutException
EniLimitReachedException(EniLimitReachedException)

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.

Tuple Fields of EniLimitReachedException

0: EniLimitReachedException
InvalidCodeSignatureException(InvalidCodeSignatureException)

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.

Tuple Fields of InvalidCodeSignatureException

0: InvalidCodeSignatureException
InvalidParameterValueException(InvalidParameterValueException)

One of the parameters in the request is invalid.

Tuple Fields of InvalidParameterValueException

0: InvalidParameterValueException
InvalidRequestContentException(InvalidRequestContentException)

The request body could not be parsed as JSON.

Tuple Fields of InvalidRequestContentException

0: InvalidRequestContentException
InvalidRuntimeException(InvalidRuntimeException)

The runtime or runtime version specified is not supported.

Tuple Fields of InvalidRuntimeException

0: InvalidRuntimeException
InvalidSecurityGroupIdException(InvalidSecurityGroupIdException)

The Security Group ID provided in the Lambda function VPC configuration is invalid.

Tuple Fields of InvalidSecurityGroupIdException

0: InvalidSecurityGroupIdException
InvalidSubnetIdException(InvalidSubnetIdException)

The Subnet ID provided in the Lambda function VPC configuration is invalid.

Tuple Fields of InvalidSubnetIdException

0: InvalidSubnetIdException
InvalidZipFileException(InvalidZipFileException)

Lambda could not unzip the deployment package.

Tuple Fields of InvalidZipFileException

0: InvalidZipFileException
KmsAccessDeniedException(KmsAccessDeniedException)

Lambda was unable to decrypt the environment variables because KMS access was denied. Check the Lambda function's KMS permissions.

Tuple Fields of KmsAccessDeniedException

0: KmsAccessDeniedException
KmsDisabledException(KmsDisabledException)

Lambda was unable to decrypt the environment variables because the KMS key used is disabled. Check the Lambda function's KMS key settings.

Tuple Fields of KmsDisabledException

0: KmsDisabledException
KmsInvalidStateException(KmsInvalidStateException)

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.

Tuple Fields of KmsInvalidStateException

0: KmsInvalidStateException
KmsNotFoundException(KmsNotFoundException)

Lambda was unable to decrypt the environment variables because the KMS key was not found. Check the function's KMS key settings.

Tuple Fields of KmsNotFoundException

0: KmsNotFoundException
PolicyLengthExceededException(PolicyLengthExceededException)

The permissions policy for the resource is too large. Learn more

Tuple Fields of PolicyLengthExceededException

0: PolicyLengthExceededException
PreconditionFailedException(PreconditionFailedException)

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.

Tuple Fields of PreconditionFailedException

0: PreconditionFailedException
ProvisionedConcurrencyConfigNotFoundException(ProvisionedConcurrencyConfigNotFoundException)

The specified configuration does not exist.

Tuple Fields of ProvisionedConcurrencyConfigNotFoundException

0: ProvisionedConcurrencyConfigNotFoundException
RequestTooLargeException(RequestTooLargeException)

The request payload exceeded the Invoke request body JSON input limit. For more information, see Limits.

Tuple Fields of RequestTooLargeException

0: RequestTooLargeException
ResourceConflictException(ResourceConflictException)

The resource already exists, or another operation is in progress.

Tuple Fields of ResourceConflictException

0: ResourceConflictException
ResourceInUseException(ResourceInUseException)

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.

Tuple Fields of ResourceInUseException

0: ResourceInUseException
ResourceNotFoundException(ResourceNotFoundException)

The resource specified in the request does not exist.

Tuple Fields of ResourceNotFoundException

0: ResourceNotFoundException
ResourceNotReadyException(ResourceNotReadyException)

The function is inactive and its VPC connection is no longer available. Wait for the VPC connection to reestablish and try again.

Tuple Fields of ResourceNotReadyException

0: ResourceNotReadyException
ServiceException(ServiceException)

The Lambda service encountered an internal error.

Tuple Fields of ServiceException

0: ServiceException
SubnetIpAddressLimitReachedException(SubnetIpAddressLimitReachedException)

Lambda was not able to set up VPC access for the Lambda function because one or more configured subnets has no available IP addresses.

Tuple Fields of SubnetIpAddressLimitReachedException

0: SubnetIpAddressLimitReachedException
TooManyRequestsException(TooManyRequestsException)

The request throughput limit was exceeded.

Tuple Fields of TooManyRequestsException

0: TooManyRequestsException
UnsupportedMediaTypeException(UnsupportedMediaTypeException)

The content type of the Invoke request body is not JSON.

Tuple Fields of UnsupportedMediaTypeException

0: UnsupportedMediaTypeException
Unhandled(Box<dyn Error + Send + Sync + 'static>)

An unhandled error occurred.

Tuple Fields of Unhandled

0: Box<dyn Error + Send + Sync + 'static>

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

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.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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