runway.cfngin.hooks.awslambda.exceptions module¶
Exceptions for awslambda hooks.
- exception runway.cfngin.hooks.awslambda.exceptions.DeploymentPackageEmptyError[source]¶
Bases:
CfnginError
Deployment package is empty.
This can be caused by an incorrect source code directory or a gitignore rule unintentionally ignoring all source code.
Any empty deployment package is determined by checking the size of the archive file. If the size is <=22 (the size a zip file End of Central Directory Record) it has no contents.
- __init__(archive_file: Path) None [source]¶
Instantiate class.
- Parameters:
archive_file – The empty archive file.
- archive_file: Path¶
The deployment package archive file.
- exception runway.cfngin.hooks.awslambda.exceptions.RuntimeMismatchError[source]¶
Bases:
CfnginError
Required runtime does not match the detected runtime.