@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
135 lines (134 loc) • 3.99 kB
TypeScript
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],
* });
* ```
*/
export declare function getNotifyTemplates(args?: GetNotifyTemplatesArgs, opts?: pulumi.InvokeOptions): Promise<GetNotifyTemplatesResult>;
/**
* A collection of arguments for invoking getNotifyTemplates.
*/
export interface GetNotifyTemplatesArgs {
/**
* 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 getNotifyTemplates.
*/
export interface GetNotifyTemplatesResult {
/**
* 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.GetNotifyTemplatesNotifyTemplate[];
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],
* });
* ```
*/
export declare function getNotifyTemplatesOutput(args?: GetNotifyTemplatesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetNotifyTemplatesResult>;
/**
* A collection of arguments for invoking getNotifyTemplates.
*/
export interface GetNotifyTemplatesOutputArgs {
/**
* 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>;
}