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
         },
     });
 }
Beispiel #2
0
 internal RustlambVpc(Construct scope, string id, RustlambProps props) : base(scope, id, CreateProps())
 {
     this.AddEndpoints();
 }
Beispiel #3
0
 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);
 }