Dependable

class constructs.Dependable

Bases: object

(experimental) Trait for IDependable.

Traits are interfaces that are privately implemented by objects. Instead of showing up in the public interface of a class, they need to be queried explicitly. This is used to implement certain framework features that are not intended to be used by Construct consumers, and so should be hidden from accidental use.

Stability:

experimental

Example:

// Usage
const roots = Dependable.of(construct).dependencyRoots;

// Definition
Dependable.implement(construct, {
      dependencyRoots: [construct],
});

Attributes

dependency_roots

(experimental) The set of constructs that form the root of this dependable.

All resources under all returned constructs are included in the ordering dependency.

Stability:

experimental

Static Methods

classmethod get(instance)

(deprecated) Return the matching Dependable for the given class instance.

Parameters:

instance (IDependable) –

Deprecated:

use of

Stability:

deprecated

Return type:

Dependable

classmethod implement(instance, trait)

(experimental) Turn any object into an IDependable.

Parameters:
Stability:

experimental

Return type:

None

classmethod of(instance)

(experimental) Return the matching Dependable for the given class instance.

Parameters:

instance (IDependable) –

Stability:

experimental

Return type:

Dependable