private static FunctionProps CreateProps(IVpc vpc, RustlambProps props) { return(new FunctionProps { Vpc = vpc, Runtime = Runtime.PROVIDED, Code = Code.FromAsset("./rustlamb_hello_world/target", new AssetOptions { }), Handler = "bootstrap", VpcSubnets = new SubnetSelection { SubnetType = SubnetType.PRIVATE }, }); }
internal RustlambVpc(Construct scope, string id, RustlambProps props) : base(scope, id, CreateProps()) { this.AddEndpoints(); }
internal RustlambStack(Construct scope, string id, RustlambProps props) : base(scope, id, props) { var rustlambVpc = new RustlambVpc(this, "RustlambVpc", props); var helloWorld = new HelloWorldHandler(this, "HelloWorld", rustlambVpc, props); }