Documentation ¶
Overview ¶
Package graph provides functionality to build a graph of connected nodes with a cfn.Template
Example (Get) ¶
Output: [] [Parameters/AWS::AccountId Parameters/Name Resources/LogBucket] [Resources/Bucket]
Example (Nodes) ¶
Output: Parameters/AWS::AccountId Parameters/Name Resources/LogBucket Resources/Bucket Outputs/BucketArn Outputs/BucketName
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Graph ¶
type Graph struct {
// contains filtered or unexported fields
}
Graph represents a directed, acyclic graph with ordered nodes
func New ¶
New returns a Graph representing the connections between elements in the provided template. The type of each item in the graph is Node
func (Graph) GetReverse ¶
GetReverse returns all nodes that connect to the item that you pass in.
type Node ¶
type Node struct { // Type is the name of the top-level part of a template // that contains this Node (e.g. Resources, Parameters) Type string // Name is the name of the Node Name string }
Node represents a top-level entry in a CloudFormation template for example a resource, parameter, or output
Click to show internal directories.
Click to hide internal directories.