@kubricate/core / helper / defineStackTemplate
Function: defineStackTemplate()
ts
function defineStackTemplate<TInput, TResourceMap>(name, factory): StackTemplate<TInput, TResourceMap>;
Defines a stack factory that creates a stack of resources based on the provided input.
Type Parameters
TInput
TInput
TResourceMap
TResourceMap
extends Record
<string
, unknown
>
Parameters
name
string
The name of the stack.
factory
(input
) => TResourceMap
A function that takes an input and returns a map of resources.
Returns
StackTemplate
<TInput
, TResourceMap
>
A stack factory function.