Skip to main content

ResourceError

Thrown when a resource is used in a way its own rules forbid, e.g. an invalid resource ID.

@group

Errors/Node

@throws

When a resource is given properties, parents or changes its own rules refuse, such as updating an immutable property.

@throws

When something that is not a resource is added as one.

@throws

When a resource's class names a Terraform type in destroyLosesData that the resource renders no block of.

Hierarchy

Index

Constructors

Properties

Constructors

constructor

  • Parameters

    • message: string

      The error message.

    • resource: typeof AResource | UnknownResource

      The resource the error is about.

    Returns ResourceError

Properties

readonlyinheritednode

node: string

The context of the node.

Page Options