View a markdown version of this page

MicrovmHooks - AWS Lambda MicroVMs

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