using Amazon.CDK.AWS.Lambda;
using System.Collections.Generic;
public class YourConstructClass : Construct
public YourConstructClass(Construct scope, string id) : base(scope, id)
var thundraApiKey = <your_api_key>;
var handler = new Function(this, "WidgetHandler", new FunctionProps
Runtime = Runtime.DOTNET_CORE_3_1,
Code = Code.FromAsset("path/to/function/package"),
Handler = "Thundra.Agent::Thundra.Agent.Lambda.Core.ThundraProxy::Handle",
Environment = new Dictionary<string, string>
["thundra_apiKey"] = thundraApiKey,
["thundra_agent_lambda_handler"] = "Your.Assembly::Your.Type::YourMethod"