UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

137 lines (136 loc) 4.19 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Use this data source to query detailed information of vmp notify templates * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * import * as volcengine from "@volcengine/pulumi"; * * const foo = new volcengine.vmp.NotifyTemplate("foo", { * description: "acc-test-vmp", * channel: "WeComBotWebhook", * active: { * title: "acc-test-active-template-title", * content: "acc-test-active-template-content", * }, * resolved: { * title: "acc-test-resolved-template-title", * content: "acc-test-resolved-template-content", * }, * }); * const default = volcengine.vmp.getNotifyTemplatesOutput({ * ids: [foo.id], * }); * ``` */ /** @deprecated volcengine.vmp.NotifyTemplates has been deprecated in favor of volcengine.vmp.getNotifyTemplates */ export declare function notifyTemplates(args?: NotifyTemplatesArgs, opts?: pulumi.InvokeOptions): Promise<NotifyTemplatesResult>; /** * A collection of arguments for invoking NotifyTemplates. */ export interface NotifyTemplatesArgs { /** * The channel of notify template. Valid values: `LarkBotWebhook`, `DingTalkBotWebhook`, `WeComBotWebhook`. */ channel?: string; /** * A list of IDs. */ ids?: string[]; /** * The name of notify template. This field support fuzzy query. */ name?: string; /** * A Name Regex of Resource. */ nameRegex?: string; /** * File name where to save data source results. */ outputFile?: string; } /** * A collection of values returned by NotifyTemplates. */ export interface NotifyTemplatesResult { /** * The channel of notify template. Valid values: `LarkBotWebhook`, `DingTalkBotWebhook`, `WeComBotWebhook`. */ readonly channel?: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly ids?: string[]; /** * The name of notify template. */ readonly name?: string; readonly nameRegex?: string; /** * The collection of query. */ readonly notifyTemplates: outputs.vmp.NotifyTemplatesNotifyTemplate[]; readonly outputFile?: string; /** * The total count of query. */ readonly totalCount: number; } /** * Use this data source to query detailed information of vmp notify templates * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * import * as volcengine from "@volcengine/pulumi"; * * const foo = new volcengine.vmp.NotifyTemplate("foo", { * description: "acc-test-vmp", * channel: "WeComBotWebhook", * active: { * title: "acc-test-active-template-title", * content: "acc-test-active-template-content", * }, * resolved: { * title: "acc-test-resolved-template-title", * content: "acc-test-resolved-template-content", * }, * }); * const default = volcengine.vmp.getNotifyTemplatesOutput({ * ids: [foo.id], * }); * ``` */ /** @deprecated volcengine.vmp.NotifyTemplates has been deprecated in favor of volcengine.vmp.getNotifyTemplates */ export declare function notifyTemplatesOutput(args?: NotifyTemplatesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<NotifyTemplatesResult>; /** * A collection of arguments for invoking NotifyTemplates. */ export interface NotifyTemplatesOutputArgs { /** * The channel of notify template. Valid values: `LarkBotWebhook`, `DingTalkBotWebhook`, `WeComBotWebhook`. */ channel?: pulumi.Input<string>; /** * A list of IDs. */ ids?: pulumi.Input<pulumi.Input<string>[]>; /** * The name of notify template. This field support fuzzy query. */ name?: pulumi.Input<string>; /** * A Name Regex of Resource. */ nameRegex?: pulumi.Input<string>; /** * File name where to save data source results. */ outputFile?: pulumi.Input<string>; }