Documentation ¶
Overview ¶
Package python implements a Python back-end for tf2pulumi's intermediate representation. It is responsible for translating the Graph IR emit by the frontend into valid Pulumi Python code that is as semantically equivalent to the original Terraform as possible.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
New creates a new Python Generator that writes to the given writer and uses the given project name.
func RewriteTrivialApplies ¶
RewriteTrivialApplies rewrites all applies within the bound node and its children to use "sugared" syntax if the apply itself is trivial. A trivial apply is an apply (a sequence of __apply and __applyArg intrinsics) that consist of simply reading a field off of an output-typed object.
The Python SDK has special syntax sugar for this pattern that alleviates the need to write this apply by hand, so this pass elides them entirely.
Types ¶
This section is empty.