Pulumi Cloud v0.26.3 published on Thursday, Oct 10, 2024 by Pulumi
Pulumi Cloud (Pulumi Service provider)
The Pulumi Service provider for Pulumi can be used to provision resources available in Pulumi Cloud. This provider must be configured with credentials to deploy and update resources in Pulumi Cloud.
Example
import * as pulumi from "@pulumi/pulumi";
import * as pulumiservice from "@pulumi/pulumiservice";
const webhook = new pulumiservice.Webhook("example-webhook", {
active: true,
displayName: "webhook example",
organizationName: "example",
payloadUrl: "https://example.com/webhook",
});
import pulumi
import pulumi_pulumiservice
webhook = pulumi_pulumiservice.Webhook("example-webhook",
active: True,
display_name: "webhook example",
organization_name: "example",
payload_url: "https://example.com/webhook",
)
import (
"fmt"
"github.com/pulumi/pulumi-pulumiservice/sdk/go/pulumiservice"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
webhook, err := pulumiservice.NewWebhook(ctx, "example-webhook", &pulumiservice.WebhookArgs{
Active: pulumi.Bool(true),
DisplayName: pulumi.String("example webhook"),
OrganizationName: pulumi.String("example"),
PayloadURL: pulumi.String("https://example.com/webhook"),
}, nil)
if err != nil {
return fmt.Errorf("error creating webhook: %v", err)
}
return nil
})
}
using Pulumi;
using Pulumi.PulumiService;
class PulumiServiceWebhook: Stack
{
public PulumiServiceWebhook()
{
var webhook = new Webhook("example-webhook", new WebhookArgs{
Active = true,
DisplayName = "example webhook",
OrganizationName = "example",
PayloadUrl = "https://example.com/webhook"
})
}
}