Exemplo n.º 1
0
        internal ApiGatewayStack(Construct scope, string id, IStackProps props = null) : base(scope, id, props)
        {
            var appConfig = new AppConfiguration
            {
                AppId   = "hello",
                AppName = "Hello",
                Lambdas = new List <LambdaConfiguration> {
                    new LambdaConfiguration {
                        ApiPath      = "/api/{proxy+}",
                        FunctionName = "LambdaFunctionOne"
                    }
                }
            };

            var apiGatewayProxy = new HttpApiProxy(this);

            apiGatewayProxy.Construct(appConfig);
        }