Example#

{{< chooser language "typescript,python,go,csharp" >}}

{{% choosable language typescript %}}

import * as ngrok from "@pierskarsenbarg/ngrok";
 
const apikey = new ngrok.ApiKey("apikey");

{{% /choosable %}} {{% choosable language python %}}

import pierskarsenbarg_pulumi_ngrok as ngrok
 
api_key = ngrok.ApiKey("apikey")

{{% /choosable %}} {{% choosable language go %}}

import (
	"github.com/pierskarsenbarg/pulumi-ngrok/ngrok/go/ngrok"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
 
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := ngrok.NewApiKey(ctx, "apikey")
		if err != nil {
			return err
		}
		return nil
	})
}
 

{{% /choosable %}} {{% choosable language csharp %}}

using Pulumi;
using PiersKarsenbarg.Ngrok;
using PiersKarsenbarg.Ngrok.Inputs;
 
return await Deployment.RunAsync(() =>
{
   var apiKey = new ApiKey("apikey");
});

{{% /choosable %}}

{{< /chooser >}}

Was this page helpful?