import * as pulumi from "@pulumi/pulumi"; /** * The webhook resource allows you to configure webhook endpoints for your Tailscale network. See https://tailscale.com/kb/1213/webhooks for more information. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as tailscale from "@pulumi/tailscale"; * * const sampleWebhook = new tailscale.Webhook("sample_webhook", { * endpointUrl: "https://example.com/webhook/endpoint", * providerType: "slack", * subscriptions: [ * "nodeCreated", * "userDeleted", * ], * }); * ``` * * ## Import * * The `pulumi import` command can be used, for example: * * Webhooks can be imported using the endpoint id, e.g., * * ```sh * $ pulumi import tailscale:index/webhook:Webhook sample_webhook 123456789 * ``` */ export declare class Webhook extends pulumi.CustomResource { /** * Get an existing Webhook 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?: WebhookState, opts?: pulumi.CustomResourceOptions): Webhook; /** * Returns true if the given object is an instance of Webhook. 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 Webhook; /** * The endpoint to send webhook events to. */ readonly endpointUrl: pulumi.Output; /** * The provider type of the endpoint URL. This determines the payload format sent to the destination. Valid values are `slack`, `mattermost`, `googlechat`, and `discord`. */ readonly providerType: pulumi.Output; /** * The secret used for signing webhook payloads. Only set on resource creation. See https://tailscale.com/kb/1213/webhooks#webhook-secret for more information. */ readonly secret: pulumi.Output; /** * The set of events that trigger this webhook. For a full list of event types, see the [webhooks documentation](https://tailscale.com/kb/1213/webhooks#events). */ readonly subscriptions: pulumi.Output; /** * Create a Webhook 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: WebhookArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Webhook resources. */ export interface WebhookState { /** * The endpoint to send webhook events to. */ endpointUrl?: pulumi.Input; /** * The provider type of the endpoint URL. This determines the payload format sent to the destination. Valid values are `slack`, `mattermost`, `googlechat`, and `discord`. */ providerType?: pulumi.Input; /** * The secret used for signing webhook payloads. Only set on resource creation. See https://tailscale.com/kb/1213/webhooks#webhook-secret for more information. */ secret?: pulumi.Input; /** * The set of events that trigger this webhook. For a full list of event types, see the [webhooks documentation](https://tailscale.com/kb/1213/webhooks#events). */ subscriptions?: pulumi.Input[]>; } /** * The set of arguments for constructing a Webhook resource. */ export interface WebhookArgs { /** * The endpoint to send webhook events to. */ endpointUrl: pulumi.Input; /** * The provider type of the endpoint URL. This determines the payload format sent to the destination. Valid values are `slack`, `mattermost`, `googlechat`, and `discord`. */ providerType?: pulumi.Input; /** * The set of events that trigger this webhook. For a full list of event types, see the [webhooks documentation](https://tailscale.com/kb/1213/webhooks#events). */ subscriptions: pulumi.Input[]>; }