public ComponentSixParent(string name, ComponentResourceOptions options = null) : base("my:module:ComponentSixParent-v0", name, options) { this.child = new ComponentSix("child", new ComponentResourceOptions { Parent = this }); }
public ComponentSixParent(string name, ComponentResourceOptions options = null) : base("my:module:ComponentSixParent-v10", name, ComponentResourceOptions.Merge(options, new ComponentResourceOptions { // Add an alias that references the old type of this resource // and then make the base() call with the new type of this resource and the added alias. Aliases = GenerateAliases() })) { this.child = new ComponentSix("child", new ComponentResourceOptions { Parent = this }); }