Skip to content

IdlePolicy

Source code in docs_src/capo_lambda_microvms/types/idle_policy.py
class IdlePolicy(TypedDict, closed=True):
    max_idle_duration_seconds: "int"
    """<p>The maximum time in seconds that a MicroVM can remain idle before it is automatically suspended.</p>"""
    suspended_duration_seconds: "int"
    """<p>The maximum time in seconds that a MicroVM can remain suspended before it is automatically terminated.</p>"""
    auto_resume_enabled: "bool"
    """<p>Indicates whether the MicroVM automatically resumes when it receives a request while suspended.</p>"""

auto_resume_enabled instance-attribute

auto_resume_enabled: bool

Indicates whether the MicroVM automatically resumes when it receives a request while suspended.

max_idle_duration_seconds instance-attribute

max_idle_duration_seconds: int

The maximum time in seconds that a MicroVM can remain idle before it is automatically suspended.

suspended_duration_seconds instance-attribute

suspended_duration_seconds: int

The maximum time in seconds that a MicroVM can remain suspended before it is automatically terminated.