NotificationPolicyWebhooks

class NotificationPolicyWebhooks : KotlinCustomResource

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());
}
}

Import

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

Properties

Link copied to clipboard
val accountId: Output<String>

The account identifier to target for the resource.

Link copied to clipboard
val createdAt: Output<String>

Timestamp of when the notification webhook was created.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val lastFailure: Output<String>

Timestamp of when the notification webhook last faiuled.

Link copied to clipboard
val lastSuccess: Output<String>

Timestamp of when the notification webhook was last successful.

Link copied to clipboard
val name: Output<String>

The name of the webhook destination.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val secret: Output<String>?

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 type: Output<String>
Link copied to clipboard
val url: Output<String>?

The URL of the webhook destinations.

Link copied to clipboard
val urn: Output<String>