UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

156 lines (155 loc) 5.04 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Provides a resource to manage tls alarm webhook integration * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@volcengine/pulumi"; * * const foo = new volcengine.tls.AlarmWebhookIntegration("foo", { * webhookHeaders: [{ * key: "Content-Type", * value: "application/json", * }], * webhookMethod: "PUT", * webhookName: "terraform-tf-webhook", * webhookSecret: "your secret", * webhookType: "lark", * webhookUrl: "http://zijie.com", * }); * ``` * * ## Import * * tls alarm webhook integration can be imported using the alarm_webhook_integration_id, e.g. * * ```sh * $ pulumi import volcengine:tls/alarmWebhookIntegration:AlarmWebhookIntegration default alarm-webhook-integration-123456 * ``` */ export declare class AlarmWebhookIntegration extends pulumi.CustomResource { /** * Get an existing AlarmWebhookIntegration 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<pulumi.ID>, state?: AlarmWebhookIntegrationState, opts?: pulumi.CustomResourceOptions): AlarmWebhookIntegration; /** * Returns true if the given object is an instance of AlarmWebhookIntegration. 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 AlarmWebhookIntegration; /** * The creation time of the webhook integration. */ readonly createTime: pulumi.Output<string>; /** * The update time of the webhook integration. */ readonly modifyTime: pulumi.Output<string>; /** * The headers of the webhook. */ readonly webhookHeaders: pulumi.Output<outputs.tls.AlarmWebhookIntegrationWebhookHeader[] | undefined>; /** * The method of the webhook. */ readonly webhookMethod: pulumi.Output<string | undefined>; /** * The name of the webhook integration. */ readonly webhookName: pulumi.Output<string>; /** * The secret of the webhook. */ readonly webhookSecret: pulumi.Output<string | undefined>; /** * The type of the webhook integration. */ readonly webhookType: pulumi.Output<string>; /** * The URL of the webhook. */ readonly webhookUrl: pulumi.Output<string>; /** * Create a AlarmWebhookIntegration 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: AlarmWebhookIntegrationArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering AlarmWebhookIntegration resources. */ export interface AlarmWebhookIntegrationState { /** * The creation time of the webhook integration. */ createTime?: pulumi.Input<string>; /** * The update time of the webhook integration. */ modifyTime?: pulumi.Input<string>; /** * The headers of the webhook. */ webhookHeaders?: pulumi.Input<pulumi.Input<inputs.tls.AlarmWebhookIntegrationWebhookHeader>[]>; /** * The method of the webhook. */ webhookMethod?: pulumi.Input<string>; /** * The name of the webhook integration. */ webhookName?: pulumi.Input<string>; /** * The secret of the webhook. */ webhookSecret?: pulumi.Input<string>; /** * The type of the webhook integration. */ webhookType?: pulumi.Input<string>; /** * The URL of the webhook. */ webhookUrl?: pulumi.Input<string>; } /** * The set of arguments for constructing a AlarmWebhookIntegration resource. */ export interface AlarmWebhookIntegrationArgs { /** * The headers of the webhook. */ webhookHeaders?: pulumi.Input<pulumi.Input<inputs.tls.AlarmWebhookIntegrationWebhookHeader>[]>; /** * The method of the webhook. */ webhookMethod?: pulumi.Input<string>; /** * The name of the webhook integration. */ webhookName: pulumi.Input<string>; /** * The secret of the webhook. */ webhookSecret?: pulumi.Input<string>; /** * The type of the webhook integration. */ webhookType: pulumi.Input<string>; /** * The URL of the webhook. */ webhookUrl: pulumi.Input<string>; }