/AWS1/CL_LMVIDLEPOLICY¶
Configuration that controls MicroVM auto-suspend and auto-resume behavior. Idle time is measured by inbound traffic through the MicroVM proxy endpoint — if no requests arrive within the configured duration, the MicroVM is suspended.
CONSTRUCTOR¶
IMPORTING¶
Required arguments:¶
iv_maxidledurationseconds TYPE /AWS1/LMVINTEGER /AWS1/LMVINTEGER¶
The maximum time in seconds that a MicroVM can remain idle before it is automatically suspended.
iv_suspendeddurationseconds TYPE /AWS1/LMVINTEGER /AWS1/LMVINTEGER¶
The maximum time in seconds that a MicroVM can remain suspended before it is automatically terminated.
iv_autoresumeenabled TYPE /AWS1/LMVBOOLEAN /AWS1/LMVBOOLEAN¶
Indicates whether the MicroVM automatically resumes when it receives a request while suspended.
Queryable Attributes¶
maxIdleDurationSeconds¶
The maximum time in seconds that a MicroVM can remain idle before it is automatically suspended.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_MAXIDLEDURATIONSECONDS() |
Getter for MAXIDLEDURATIONSECONDS, with configurable default |
ASK_MAXIDLEDURATIONSECONDS() |
Getter for MAXIDLEDURATIONSECONDS w/ exceptions if field has |
HAS_MAXIDLEDURATIONSECONDS() |
Determine if MAXIDLEDURATIONSECONDS has a value |
suspendedDurationSeconds¶
The maximum time in seconds that a MicroVM can remain suspended before it is automatically terminated.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_SUSPENDEDDURATIONSECONDS() |
Getter for SUSPENDEDDURATIONSECONDS, with configurable defau |
ASK_SUSPENDEDDURATIONSECONDS() |
Getter for SUSPENDEDDURATIONSECONDS w/ exceptions if field h |
HAS_SUSPENDEDDURATIONSECONDS() |
Determine if SUSPENDEDDURATIONSECONDS has a value |
autoResumeEnabled¶
Indicates whether the MicroVM automatically resumes when it receives a request while suspended.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_AUTORESUMEENABLED() |
Getter for AUTORESUMEENABLED, with configurable default |
ASK_AUTORESUMEENABLED() |
Getter for AUTORESUMEENABLED w/ exceptions if field has no v |
HAS_AUTORESUMEENABLED() |
Determine if AUTORESUMEENABLED has a value |