Interface ICdkGraphPlugin.Jsii$Default

    • Method Detail

      • getId

        @Stability(Experimental)
        @NotNull
        default String getId()
        (experimental) Unique identifier for this plugin.
        Specified by:
        getId in interface ICdkGraphPlugin
      • getVersion

        @Stability(Experimental)
        @NotNull
        default String getVersion()
        (experimental) Plugin version.
        Specified by:
        getVersion in interface ICdkGraphPlugin
      • getDependencies

        @Stability(Experimental)
        @Nullable
        default List<String> getDependencies()
        (experimental) List of plugins this plugin depends on, including optional semver version (eg: ["foo", "bar@1.2"]).
        Specified by:
        getDependencies in interface ICdkGraphPlugin
      • getBind

        @Stability(Experimental)
        @NotNull
        default IGraphPluginBindCallback getBind()
        (experimental) Binds the plugin to the CdkGraph instance.

        Enables plugins to receive base configs.

        Specified by:
        getBind in interface ICdkGraphPlugin
      • setBind

        @Stability(Experimental)
        default void setBind​(@NotNull
                             IGraphPluginBindCallback value)
        (experimental) Binds the plugin to the CdkGraph instance.

        Enables plugins to receive base configs.

        Specified by:
        setBind in interface ICdkGraphPlugin
      • getInspect

        @Stability(Experimental)
        @Nullable
        default IGraphVisitorCallback getInspect()
        (experimental) Node visitor callback for construct tree traversal.

        This follows IAspect.visit pattern, but the order of visitor traversal in managed by the CdkGraph.

        Specified by:
        getInspect in interface ICdkGraphPlugin
      • setInspect

        @Stability(Experimental)
        default void setInspect​(@Nullable
                                IGraphVisitorCallback value)
        (experimental) Node visitor callback for construct tree traversal.

        This follows IAspect.visit pattern, but the order of visitor traversal in managed by the CdkGraph.

        Specified by:
        setInspect in interface ICdkGraphPlugin
      • getReport

        @Stability(Experimental)
        @Nullable
        default IGraphReportCallback getReport()
        (experimental) Generate asynchronous reports based on the graph.

        This is not automatically called when synthesizing CDK. Developer must explicitly add await graphInstance.report() to the CDK bin or invoke this outside of the CDK synth. In either case, the plugin receives the in-memory graph interface when invoked, as the CdkGraph will deserialize the graph prior to invoking the plugin report.

        Specified by:
        getReport in interface ICdkGraphPlugin
      • setReport

        @Stability(Experimental)
        default void setReport​(@Nullable
                               IGraphReportCallback value)
        (experimental) Generate asynchronous reports based on the graph.

        This is not automatically called when synthesizing CDK. Developer must explicitly add await graphInstance.report() to the CDK bin or invoke this outside of the CDK synth. In either case, the plugin receives the in-memory graph interface when invoked, as the CdkGraph will deserialize the graph prior to invoking the plugin report.

        Specified by:
        setReport in interface ICdkGraphPlugin
      • getSynthesize

        @Stability(Experimental)
        @Nullable
        default IGraphSynthesizeCallback getSynthesize()
        (experimental) Called during CDK synthesize to generate synchronous artifacts based on the in-memory graph passed to the plugin.

        This is called in fifo order of plugins.

        Specified by:
        getSynthesize in interface ICdkGraphPlugin
      • setSynthesize

        @Stability(Experimental)
        default void setSynthesize​(@Nullable
                                   IGraphSynthesizeCallback value)
        (experimental) Called during CDK synthesize to generate synchronous artifacts based on the in-memory graph passed to the plugin.

        This is called in fifo order of plugins.

        Specified by:
        setSynthesize in interface ICdkGraphPlugin