import * as pulumi from "@pulumi/pulumi"; /** * Provides a resource, that manages a webhook destination. These destinations can be tied to the notification policies created for Cloudflare's products. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as cloudflare from "@pulumi/cloudflare"; * * const example = new cloudflare.NotificationPolicyWebhooks("example", { * accountId: "c4a7362d577a6c3019a474fd6f485821", * name: "Webhooks destination", * secret: "my-secret", * url: "https://example.com", * }); * ``` * * ## Import * * An existing notification policy can be imported using the account ID and the webhook ID * * ```sh * $ pulumi import cloudflare:index/notificationPolicyWebhooks:NotificationPolicyWebhooks example 72c379d136459405d964d27aa0f18605/c4a7362d577a6c3019a474fd6f485821 * ``` */ export declare class NotificationPolicyWebhooks extends pulumi.CustomResource { /** * Get an existing NotificationPolicyWebhooks resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: NotificationPolicyWebhooksState, opts?: pulumi.CustomResourceOptions): NotificationPolicyWebhooks; /** * Returns true if the given object is an instance of NotificationPolicyWebhooks. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is NotificationPolicyWebhooks; /** * The ID of the account for which the webhook destination has to be connected. */ readonly accountId: pulumi.Output; readonly createdAt: pulumi.Output; readonly lastFailure: pulumi.Output; readonly lastSuccess: pulumi.Output; /** * The name of the webhook destination. */ readonly name: pulumi.Output; /** * 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 - https://api.cloudflare.com/#notification-webhooks-create-webhook. */ readonly secret: pulumi.Output; readonly type: pulumi.Output; /** * The URL of the webhook destinations. */ readonly url: pulumi.Output; /** * Create a NotificationPolicyWebhooks resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: NotificationPolicyWebhooksArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering NotificationPolicyWebhooks resources. */ export interface NotificationPolicyWebhooksState { /** * The ID of the account for which the webhook destination has to be connected. */ accountId?: pulumi.Input; createdAt?: pulumi.Input; lastFailure?: pulumi.Input; lastSuccess?: pulumi.Input; /** * The name of the webhook destination. */ name?: pulumi.Input; /** * 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 - https://api.cloudflare.com/#notification-webhooks-create-webhook. */ secret?: pulumi.Input; type?: pulumi.Input; /** * The URL of the webhook destinations. */ url?: pulumi.Input; } /** * The set of arguments for constructing a NotificationPolicyWebhooks resource. */ export interface NotificationPolicyWebhooksArgs { /** * The ID of the account for which the webhook destination has to be connected. */ accountId: pulumi.Input; /** * The name of the webhook destination. */ name: pulumi.Input; /** * 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 - https://api.cloudflare.com/#notification-webhooks-create-webhook. */ secret?: pulumi.Input; /** * The URL of the webhook destinations. */ url?: pulumi.Input; }