AbstractCalled once when the synthesizer is associated with a stack.
Use this to store a reference to the stack for use during synthesize().
OptionalcollectOptional. Returns the artifact IDs of stacks this stack depends on.
Called by App.synth() before writing any files so that cross-stack
cycles can be detected and reported without producing partial output.
AbstractsynthesizeCalled during app.synth() to produce the stack's output artifact.
Protectedwrite
Abstract base class for all stack synthesizers.
Provides
bind()and a sharedwriteFileTo()helper so that concrete synthesizers (e.g.JsonSynthesizer,YamlFileSynthesizer) don't duplicate the logic of creating directories and writing files.