Variable rootStackResourceConst

rootStackResource: Resource = ...

Constant to represent the 'root stack' resource for a Pulumi application. The purpose of this is solely to make it easy to write an [Alias] like so:

aliases: [{ parent: rootStackResource }].

This indicates that the prior name for a resource was created based on it being parented directly by the stack itself and no other resources. Note: this is equivalent to:

aliases: [{ parent: undefined }]

However, the former form is preferable as it is more self-descriptive, while the latter may look a bit confusing and may incorrectly look like something that could be removed without changing semantics.

Generated using TypeDoc