Skip to content

MicrovmHooks

Source code in docs_src/capo_lambda_microvms/types/microvm_hooks.py
class MicrovmHooks(TypedDict, closed=True):
    run: "capo_lambda_microvms.types.hook_state.HookState"
    """<p>The path of the hook invoked when the MicroVM starts running.</p>"""
    run_timeout_in_seconds: "int"
    """<p>The maximum time in seconds for the run hook to complete.</p>"""
    resume: "capo_lambda_microvms.types.hook_state.HookState"
    """<p>The path of the hook invoked when the MicroVM resumes from a suspended state.</p>"""
    resume_timeout_in_seconds: "int"
    """<p>The maximum time in seconds for the resume hook to complete.</p>"""
    suspend: "capo_lambda_microvms.types.hook_state.HookState"
    """<p>The path of the hook invoked when the MicroVM is suspended.</p>"""
    suspend_timeout_in_seconds: "int"
    """<p>The maximum time in seconds for the suspend hook to complete.</p>"""
    terminate: "capo_lambda_microvms.types.hook_state.HookState"
    """<p>The path of the hook invoked when the MicroVM is terminated.</p>"""
    terminate_timeout_in_seconds: "int"
    """<p>The maximum time in seconds for the terminate hook to complete.</p>"""

resume instance-attribute

resume: HookState

The path of the hook invoked when the MicroVM resumes from a suspended state.

resume_timeout_in_seconds instance-attribute

resume_timeout_in_seconds: int

The maximum time in seconds for the resume hook to complete.

run instance-attribute

run: HookState

The path of the hook invoked when the MicroVM starts running.

run_timeout_in_seconds instance-attribute

run_timeout_in_seconds: int

The maximum time in seconds for the run hook to complete.

suspend instance-attribute

suspend: HookState

The path of the hook invoked when the MicroVM is suspended.

suspend_timeout_in_seconds instance-attribute

suspend_timeout_in_seconds: int

The maximum time in seconds for the suspend hook to complete.

terminate instance-attribute

terminate: HookState

The path of the hook invoked when the MicroVM is terminated.

terminate_timeout_in_seconds instance-attribute

terminate_timeout_in_seconds: int

The maximum time in seconds for the terminate hook to complete.