Creates a reference shape for the given target resource shape.
The target shape must include an Id property. This constraint is checked at runtime but not at compile time due to limitations with recursive type inference.
The target resource shape, either directly or as a lazy function to support circular and self-referential definitions
A shape for validating resource references
If shape is not a valid ResourceShape
shape
Creates a reference shape for the given target resource shape.
The target shape must include an Id property. This constraint is checked at runtime but not at compile time due to limitations with recursive type inference.