This is the new CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the AWS CloudFormation User Guide.
AWS::Lambda::MicrovmImage MicrovmHooks
Configuration for lifecycle hooks invoked during MicroVM events such as run, resume, suspend, and terminate.
Syntax
To declare this entity in your CloudFormation template, use the following syntax:
JSON
{ "Resume" :String, "ResumeTimeoutInSeconds" :Integer, "Run" :String, "RunTimeoutInSeconds" :Integer, "Suspend" :String, "SuspendTimeoutInSeconds" :Integer, "Terminate" :String, "TerminateTimeoutInSeconds" :Integer}
YAML
Resume:StringResumeTimeoutInSeconds:IntegerRun:StringRunTimeoutInSeconds:IntegerSuspend:StringSuspendTimeoutInSeconds:IntegerTerminate:StringTerminateTimeoutInSeconds:Integer
Properties
Resume-
The path of the hook invoked when the MicroVM resumes from a suspended state.
Required: No
Type: String
Allowed values:
DISABLED | ENABLEDUpdate requires: No interruption
ResumeTimeoutInSeconds-
The maximum time in seconds for the resume hook to complete.
Required: No
Type: Integer
Minimum:
1Maximum:
60Update requires: No interruption
Run-
The path of the hook invoked when the MicroVM starts running.
Required: No
Type: String
Allowed values:
DISABLED | ENABLEDUpdate requires: No interruption
RunTimeoutInSeconds-
The maximum time in seconds for the run hook to complete.
Required: No
Type: Integer
Minimum:
1Maximum:
60Update requires: No interruption
Suspend-
The path of the hook invoked when the MicroVM is suspended.
Required: No
Type: String
Allowed values:
DISABLED | ENABLEDUpdate requires: No interruption
SuspendTimeoutInSeconds-
The maximum time in seconds for the suspend hook to complete.
Required: No
Type: Integer
Minimum:
1Maximum:
60Update requires: No interruption
Terminate-
The path of the hook invoked when the MicroVM is terminated.
Required: No
Type: String
Allowed values:
DISABLED | ENABLEDUpdate requires: No interruption
TerminateTimeoutInSeconds-
The maximum time in seconds for the terminate hook to complete.
Required: No
Type: Integer
Minimum:
1Maximum:
60Update requires: No interruption