runway.cfngin.hooks.awslambda package
Hooks for AWS Lambda.
- class runway.cfngin.hooks.awslambda.PythonFunction[source]
Bases:
runway.cfngin.hooks.awslambda.base_classes.AwsLambdaHook
[runway.cfngin.hooks.awslambda.python_requirements._project.PythonProject
]Hook for creating an AWS Lambda Function using Python runtime.
- BUILD_LAYER: ClassVar[bool] = False
Flag to denote that this hook creates a Lambda Function deployment package.
- __init__(context: runway.context.CfnginContext, **kwargs: Any) None [source]
Instantiate class.
- args: PythonHookArgs
Parsed hook arguments.
- property deployment_package: DeploymentPackage[PythonProject]
AWS Lambda deployment package.
- property project: runway.cfngin.hooks.awslambda.python_requirements._project.PythonProject
Project being deployed as an AWS Lambda Function.
- __new__(**kwargs)
- build_response(stage: Literal['deploy', 'destroy', 'plan']) Optional[BaseModel]
Build response object that will be returned by this hook.
- Parameters
stage – The current stage being executed by the hook.
- plan() AwsLambdaHookDeployResponseTypedDict
Run during the plan stage.
- ctx: CfnginContext
CFNgin context object.
- class runway.cfngin.hooks.awslambda.PythonLayer[source]
Bases:
runway.cfngin.hooks.awslambda._python_hooks.PythonFunction
Hook for creating an AWS Lambda Layer using Python runtime.
- __init__(context: runway.context.CfnginContext, **kwargs: Any) None
Instantiate class.
- __new__(**kwargs)
- build_response(stage: Literal['deploy', 'destroy', 'plan']) Optional[BaseModel]
Build response object that will be returned by this hook.
- Parameters
stage – The current stage being executed by the hook.
- property deployment_package: DeploymentPackage[PythonProject]
AWS Lambda deployment package.
- plan() AwsLambdaHookDeployResponseTypedDict
Run during the plan stage.
- property project: runway.cfngin.hooks.awslambda.python_requirements._project.PythonProject
Project being deployed as an AWS Lambda Function.
- args: PythonHookArgs
Parsed hook arguments.
Subpackages
Submodules
- runway.cfngin.hooks.awslambda.base_classes module
- runway.cfngin.hooks.awslambda.constants module
- runway.cfngin.hooks.awslambda.deployment_package module
- runway.cfngin.hooks.awslambda.docker module
- runway.cfngin.hooks.awslambda.exceptions module
- runway.cfngin.hooks.awslambda.source_code module
- runway.cfngin.hooks.awslambda.type_defs module