Kong v4.5.4 published on Monday, Jun 24, 2024 by Pulumi
Kong
The Kong provider for Pulumi can be used to provision any of the cloud resources available in Kong. The Kong provider must be configured with credentials to deploy and update resources in Mailgun.
Example
const kong = require("@pulumi/kong")
const consumer = new kong.Consumer("my-consumer", {
username: "my-username-1",
customId: "123"
});
import * as kong from "@pulumi/kong";
const consumer = new kong.Consumer("my-consumer", {
username: "my-username-1",
customId: "123"
});
import pulumi_kong as kong
consumer = kong.Consumer("my-consumer",
username="my-username-1",
custom_id="123")
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
kong "github.com/pulumi/pulumi-kong/sdk/v4/go/kong"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
consumer, err := kong.NewConsumer(ctx, "test-route", &kong.ConsumerArgs{
CustomId: pulumi.String("123"),
Username: pulumi.String("my-username-1"),
})
if err != nil {
return err
}
return nil
})
}
using Pulumi;
using Kong = Pulumi.Kong;
await Deployment.RunAsync(() =>
{
var consumer = new Kong.Consumer("consumer", new Kong.ConsumerArgs
{
CustomId = "123",
Username = "my-username-1",
});
});