NotificationPolicyWebhooksArgs

data class NotificationPolicyWebhooksArgs(val accountId: Output<String>? = null, val name: Output<String>? = null, val secret: Output<String>? = null, val url: Output<String>? = null) : ConvertibleToJava<NotificationPolicyWebhooksArgs>

Provides a resource, that manages a webhook destination. These destinations can be tied to the notification policies created for Cloudflare's products.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const example = new cloudflare.NotificationPolicyWebhooks("example", {
accountId: "f037e56e89293a057740de681ac9abbe",
name: "Webhooks destination",
url: "https://example.com",
secret: "my-secret",
});
import pulumi
import pulumi_cloudflare as cloudflare
example = cloudflare.NotificationPolicyWebhooks("example",
account_id="f037e56e89293a057740de681ac9abbe",
name="Webhooks destination",
url="https://example.com",
secret="my-secret")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var example = new Cloudflare.NotificationPolicyWebhooks("example", new()
{
AccountId = "f037e56e89293a057740de681ac9abbe",
Name = "Webhooks destination",
Url = "https://example.com",
Secret = "my-secret",
});
});
package main
import (
"github.com/pulumi/pulumi-cloudflare/sdk/v5/go/cloudflare"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudflare.NewNotificationPolicyWebhooks(ctx, "example", &cloudflare.NotificationPolicyWebhooksArgs{
AccountId: pulumi.String("f037e56e89293a057740de681ac9abbe"),
Name: pulumi.String("Webhooks destination"),
Url: pulumi.String("https://example.com"),
Secret: pulumi.String("my-secret"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.NotificationPolicyWebhooks;
import com.pulumi.cloudflare.NotificationPolicyWebhooksArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new NotificationPolicyWebhooks("example", NotificationPolicyWebhooksArgs.builder()
.accountId("f037e56e89293a057740de681ac9abbe")
.name("Webhooks destination")
.url("https://example.com")
.secret("my-secret")
.build());
}
}
resources:
example:
type: cloudflare:NotificationPolicyWebhooks
properties:
accountId: f037e56e89293a057740de681ac9abbe
name: Webhooks destination
url: https://example.com
secret: my-secret

Import

$ pulumi import cloudflare:index/notificationPolicyWebhooks:NotificationPolicyWebhooks example <account_id>/<notification_webhook_id>

Constructors

Link copied to clipboard
constructor(accountId: Output<String>? = null, name: Output<String>? = null, secret: Output<String>? = null, url: Output<String>? = null)

Properties

Link copied to clipboard
val accountId: Output<String>? = null

The account identifier to target for the resource.

Link copied to clipboard
val name: Output<String>? = null

The name of the webhook destination.

Link copied to clipboard
val secret: Output<String>? = null

An optional secret can be provided that will be passed in the cf-webhook-auth header when dispatching a webhook notification. Secrets are not returned in any API response body. Refer to the documentation for more details.

Link copied to clipboard
val url: Output<String>? = null

The URL of the webhook destinations. Modifying this attribute will force creation of a new resource.

Functions

Link copied to clipboard
open override fun toJava(): NotificationPolicyWebhooksArgs