runway.cfngin.actions.graph module

CFNgin graph action.

runway.cfngin.actions.graph.each_step(graph)[source]

Yield each step and it’s direct dependencies.

Parameters

graph (runway.cfngin.plan.Graph) – Graph to iterate over.

Yields

Tuple[Step, Set(str)]

runway.cfngin.actions.graph.dot_format(out, graph, name='digraph')[source]

Output a graph using the graphviz “dot” format.

Parameters
  • out (TextIo) – Where output will be written.

  • graph (runway.cfngin.plan.Graph) – Graph to be output.

  • name (str) – Name of the graph.

runway.cfngin.actions.graph.json_format(out, graph)[source]

Output the graph in a machine readable JSON format.

Parameters
class runway.cfngin.actions.graph.Action(context, provider_builder=None, cancel=None)[source]

Bases: runway.cfngin.actions.base.BaseAction

Responsible for outputing a graph for the current CFNgin config.

Instantiate class.

Parameters
  • context (runway.cfngin.context.Context) – The context for the current run.

  • provider_builder (Optional[BaseProviderBuilder]) – An object that will build a provider that will be interacted with in order to perform the necessary actions.

  • cancel (threading.Event) – Cancel handler.

DESCRIPTION = 'Print graph'
NAME = 'graph'
run(**kwargs)[source]

Generate the underlying graph and prints it.