예제 #1
0
 public ComponentSixParent(string name, ComponentResourceOptions options = null)
     : base("my:module:ComponentSixParent-v0", name, options)
 {
     this.child = new ComponentSix("child", new ComponentResourceOptions {
         Parent = this
     });
 }
예제 #2
0
파일: Program.cs 프로젝트: jaxxstorm/pulumi
 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
     });
 }