@cdk-x/core
    Preparing search index...

    Interface IStackSynthesizer

    Interface that all stack synthesizers must implement.

    A synthesizer is responsible for:

    1. Collecting all ProviderResource descendants from a stack
    2. Calling resource.toJson() on each to obtain resolved plain objects
    3. Serializing those objects to a file in the output directory
    4. Registering the output file as an artifact in the CloudAssemblyBuilder
    interface IStackSynthesizer {
        bind(stack: IStackRef): void;
        collectDependencies?(): string[];
        synthesize(session: ISynthesisSession): void;
    }

    Implemented by

    Index

    Methods

    • Optional. 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.

      Returns string[]