root

package
v0.0.26 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrorNameAttributeNotFound indicates that the Resource name
	// was not found in root state
	ErrorNameAttributeNotFound = errors.New("Attribute name not found")
	// ErrorResourceNotFound indicates that the searched Resource name
	// was not found in root state
	ErrorResourceNotFound = errors.New("Resource not found")
)

Functions

func NameAttribute

func NameAttribute(s *terraform.State, resourceName string) (string, error)

NameAttribute returns name attribute If Resource cannot be found by resource name it returns ErrorNameAttributeNotFound

func ResourceByName

func ResourceByName(s *terraform.State, resourceName string) (*terraform.ResourceState, error)

ResourceByName returns the found root Resource

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL