View a markdown version of this page

IdlePolicy - AWS Lambda MicroVMs

IdlePolicy

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.

Contents

autoResumeEnabled

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

Type: Boolean

Required: Yes

maxIdleDurationSeconds

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

Type: Integer

Valid Range: Minimum value of 60.

Required: Yes

suspendedDurationSeconds

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

Type: Integer

Valid Range: Minimum value of 0.

Required: Yes

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: