Notification Policy Webhooks Args
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
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")
.secret("my-secret")
.url("https://example.com")
.build());
}
}
Content copied to clipboard
Import
$ pulumi import cloudflare:index/notificationPolicyWebhooks:NotificationPolicyWebhooks example <account_id>/<notification_webhook_id>
Content copied to clipboard
Properties
Link copied to clipboard
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.