|
Parameter |
Type |
Description |
Example |
|---|---|---|---|
|
object |
The instance lifecycle hook method configuration. |
||
| handler |
string |
The execution entry point of the hook, similar in meaning to the handler. |
index.initializer |
| timeout |
integer |
The timeout period of the hook, in seconds. |
10 |
| command |
array |
The callback command for the function lifecycle initialization phase. The handler and command parameters for the lifecycle hook execution entry point cannot be configured at the same time. Only one can take effect. Configuring both produces an error. |
|
|
string |
The callback command for the lifecycle initialization phase. |
curl -X POST 'http://localhost:9000/preWarm |