View a markdown version of this page

MicrovmHooks - 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).

MicrovmHooks

Configuration for lifecycle hooks invoked during MicroVM events such as run, resume, suspend, and terminate.

Contents

resume

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

Type: String

Valid Values: DISABLED | ENABLED

Required: No

resumeTimeoutInSeconds

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

Type: Integer

Valid Range: Minimum value of 1. Maximum value of 60.

Required: No

run

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

Type: String

Valid Values: DISABLED | ENABLED

Required: No

runTimeoutInSeconds

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

Type: Integer

Valid Range: Minimum value of 1. Maximum value of 60.

Required: No

suspend

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

Type: String

Valid Values: DISABLED | ENABLED

Required: No

suspendTimeoutInSeconds

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

Type: Integer

Valid Range: Minimum value of 1. Maximum value of 60.

Required: No

terminate

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

Type: String

Valid Values: DISABLED | ENABLED

Required: No

terminateTimeoutInSeconds

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

Type: Integer

Valid Range: Minimum value of 1. Maximum value of 60.

Required: No

See Also

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