Package org.cdk8s

Class DependencyGraph

  • All Implemented Interfaces:
    software.amazon.jsii.JsiiSerializable

    @Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)",
               date="2023-01-13T00:10:07.504Z")
    @Stability(Stable)
    public class DependencyGraph
    extends software.amazon.jsii.JsiiObject
    Represents the dependency graph for a given Node.

    This graph includes the dependency relationships between all nodes in the node (construct) sub-tree who's root is this Node.

    Note that this means that lonely nodes (no dependencies and no dependants) are also included in this graph as childless children of the root node of the graph.

    The graph does not include cross-scope dependencies. That is, if a child on the current scope depends on a node from a different scope, that relationship is not represented in this graph.

    • Nested Class Summary

      • Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

        software.amazon.jsii.JsiiObject.InitializationMode
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected DependencyGraph​(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)  
      protected DependencyGraph​(software.amazon.jsii.JsiiObjectRef objRef)  
        DependencyGraph​(software.constructs.Node node)  
    • Constructor Detail

      • DependencyGraph

        protected DependencyGraph​(software.amazon.jsii.JsiiObjectRef objRef)
      • DependencyGraph

        protected DependencyGraph​(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
      • DependencyGraph

        @Stability(Stable)
        public DependencyGraph​(@NotNull
                               software.constructs.Node node)
        Parameters:
        node - This parameter is required.
    • Method Detail

      • topology

        @Stability(Stable)
        @NotNull
        public List<software.constructs.IConstruct> topology()
        See Also:
        Vertex.topology()
      • getRoot

        @Stability(Stable)
        @NotNull
        public DependencyVertex getRoot()
        Returns the root of the graph.

        Note that this vertex will always have null as its .value since it is an artifical root that binds all the connected spaces of the graph.