Class ComponentResource
A Resource that aggregates one or more other child resources into a higher
level abstraction.The component resource itself is a resource, but does not require custom
CRUD operations for provisioning.
Inheritance
System.Object
ComponentResource
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Pulumi.dll
Syntax
public class ComponentResource : Resource
Constructors
View Source
ComponentResource(String, String, ComponentResourceOptions)
Creates and registers a new component resource. type is the fully
qualified type token and name is the "name" part to use in creating a
stable and globally unique URN for the object. options.parent is the optional parent
for this component, and [options.dependsOn] is an optional list of other resources that
this resource depends on, controlling the order in which we perform resource operations.
Declaration
public ComponentResource(string type, string name, ComponentResourceOptions options = null)
Parameters
Methods
View Source
RegisterOutputs()
RegisterOutputs registers synthetic outputs that a component has initialized, usually by
allocating other child sub-resources and propagating their resulting property values.
ComponentResources should always call this at the end of their constructor to indicate
that they are done creating child resources. While not strictly necessary, this helps
the experience by ensuring the UI transitions the ComponentResource to the 'complete'
state as quickly as possible (instead of waiting until the entire application completes).
Declaration
protected void RegisterOutputs()
View Source
RegisterOutputs(Output<IDictionary<String, Object>>)
Declaration
protected void RegisterOutputs(Output<IDictionary<string, object>> outputs)
Parameters
| Type |
Name |
Description |
| Output<System.Collections.Generic.IDictionary<System.String, System.Object>> |
outputs |
|
View Source
RegisterOutputs(IDictionary<String, Object>)
Declaration
protected void RegisterOutputs(IDictionary<string, object> outputs)
Parameters
| Type |
Name |
Description |
| System.Collections.Generic.IDictionary<System.String, System.Object> |
outputs |
|
View Source
RegisterOutputs(Task<IDictionary<String, Object>>)
Declaration
protected void RegisterOutputs(Task<IDictionary<string, object>> outputs)
Parameters
| Type |
Name |
Description |
| System.Threading.Tasks.Task<System.Collections.Generic.IDictionary<System.String, System.Object>> |
outputs |
|