runway.cfngin.actions.graph module

CFNgin graph action.

class runway.cfngin.actions.graph.Action[source]

Bases: BaseAction

Responsible for outputting a graph for the current CFNgin config.

run(*, concurrency: int = 0, dump: bool | str = False, force: bool = False, outline: bool = False, tail: bool = False, upload_disabled: bool = False, **kwargs: Any) None[source]

Generate the underlying graph and prints it.

runway.cfngin.actions.graph.dot_format(out: TextIO, graph: Graph, name: str = 'digraph') None[source]

Output a graph using the graphviz “dot” format.

Parameters:
  • out – Where output will be written.

  • graph – Graph to be output.

  • name – Name of the graph.

runway.cfngin.actions.graph.each_step(graph: Graph) Iterable[tuple[Step, list[Step]]][source]

Yield each step and it’s direct dependencies.

Parameters:

graph – Graph to iterate over.

runway.cfngin.actions.graph.json_format(out: TextIO, graph: Graph) None[source]

Output the graph in a machine readable JSON format.

Parameters:
  • out – Where output will be written.

  • graph – Graph to be output.