View a markdown version of this page

IdlePolicy - Amazon Lambda MicroVMs
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

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 Amazon SDKs, see the following: