DependableTrait
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.
Example
// Example automatically generated from non-compiling source. May contain errors.
// Usage
roots := dependableTrait_Get(construct).dependencyRoots
// Definition
dependableTrait_Implement(construct, map[string]interface{}{
get dependencyRoots() { return []; },
})
Initializers
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore"
alicloudroscdkcore.NewDependableTrait() DependableTrait
| Name | Type | Description |
|---|---|---|
Static Functions
| Name | Description |
|---|---|
Get |
Return the matching DependableTrait for the given class instance. |
Implement |
Register instance to have the given DependableTrait. |
Get
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore"
alicloudroscdkcore.DependableTrait_Get(instance IDependable) DependableTrait
Return the matching DependableTrait for the given class instance.
- Type: IDependable
Implement
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore"
alicloudroscdkcore.DependableTrait_Implement(instance IDependable, trait DependableTrait)
Register instance to have the given DependableTrait.
Should be called in the class constructor.
- Type: IDependable
- Type: DependableTrait
Properties
| Name | Type | Description |
|---|---|---|
DependencyRoots |
*[]IConstruct |
The set of constructs that form the root of this dependable. |
DependencyRootsRequired
func DependencyRoots() *[]IConstruct
- Type: *[]IConstruct
The set of constructs that form the root of this dependable.
All resources under all returned constructs are included in the ordering dependency.