Skip to content

@openfabr/cdf / Exports / cdktf

Namespace: cdktf

Table of contents

For project creators

For project creators

ProjectStack<IPC, GC, NC, CC, SC, RC>: Object

Stack as top-level construct with CDKTF as IaC runtime.

Type parameters

Name Type
IPC extends InfraPlanConstructs
GC extends GeneralConfig
NC extends NetworkConfig
CC extends ComponentConfig
SC extends ServiceConfig
RC extends RelationConfig

Defined in

src/lib/bootstrap/cdktf/stack.ts:38

ProjectStackProps<IPC, GC, NC, CC, SC, RC>: Object

Properties for ProjectStack.

Type parameters

Name Type
IPC extends InfraPlanConstructs
GC extends GeneralConfig
NC extends NetworkConfig
CC extends ComponentConfig
SC extends ServiceConfig
RC extends RelationConfig

Defined in

src/lib/bootstrap/cdktf/stack.ts:21

initProjectStack

initProjectStack<IPC, GC, NC, CC, SC, RC>(scope, config, planner, modules, name?, handler?): ProjectStack<IPC, GC, NC, CC, SC, RC>

Convenient function that constructs a top-level stack with CDKTF as IaC runtime.

Type parameters

Name Type
IPC extends InfraPlanConstructs
GC extends GeneralConfig
NC extends NetworkConfig
CC extends ComponentConfig
SC extends ServiceConfig
RC extends RelationConfig

Parameters

Name Type Description
scope App Parent construct, usually an App instance in CDKTF.
config InfraConfig<GC, NC, CC, SC, RC> The project configuration.
planner Planner<IPC, GC, NC, CC, SC, RC> The planner offered by the package.
modules Custom<IPC, GC, NC, CC, SC, RC>[] Custom code modules for the project.
name? string Optionally the name of the resulting stack.
handler? ResultHandler -

Returns

ProjectStack<IPC, GC, NC, CC, SC, RC>

A top-level stack to be provisioned in a project.

Defined in

src/lib/bootstrap/cdktf/stack.ts:70