protected override void OnTemplateSet(Template template) { base.OnTemplateSet(template); InternetGateway = new InternetGateway(); template.Resources.Add($"{this.LogicalId}InternetGateway", InternetGateway); this.VpcGatewayAttachment = new VpcGatewayAttachment(InternetGateway, this); template.Resources.Add($"{InternetGateway.LogicalId}Attachment", this.VpcGatewayAttachment); }
public Route(InternetGateway gateway, string destinationCidrBlock, object routeTable) : this(destinationCidrBlock, routeTable) { if (gateway != null) { Gateway = gateway; this.DependsOn.Add(gateway.LogicalId); } }
public VpcGatewayAttachment(InternetGateway internetGateway, Vpc vpc) : this() { InternetGateway = internetGateway; Vpc = vpc; }