View a markdown version of this page

AWS::Lambda::MicrovmImage MicrovmHooks - Amazon CloudFormation
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).

This is the new Amazon CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the Amazon 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 Amazon 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: String ResumeTimeoutInSeconds: Integer Run: String RunTimeoutInSeconds: Integer Suspend: String SuspendTimeoutInSeconds: Integer Terminate: String TerminateTimeoutInSeconds: Integer

Properties

Resume

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

Required: No

Type: String

Allowed values: DISABLED | ENABLED

Update requires: No interruption

ResumeTimeoutInSeconds

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

Required: No

Type: Integer

Minimum: 1

Maximum: 60

Update requires: No interruption

Run

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

Required: No

Type: String

Allowed values: DISABLED | ENABLED

Update requires: No interruption

RunTimeoutInSeconds

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

Required: No

Type: Integer

Minimum: 1

Maximum: 60

Update requires: No interruption

Suspend

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

Required: No

Type: String

Allowed values: DISABLED | ENABLED

Update requires: No interruption

SuspendTimeoutInSeconds

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

Required: No

Type: Integer

Minimum: 1

Maximum: 60

Update requires: No interruption

Terminate

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

Required: No

Type: String

Allowed values: DISABLED | ENABLED

Update requires: No interruption

TerminateTimeoutInSeconds

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

Required: No

Type: Integer

Minimum: 1

Maximum: 60

Update requires: No interruption