@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
168 lines (167 loc) • 4.88 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Use this data source to query detailed information of vmp contact groups
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
* import * as volcengine from "@volcengine/pulumi";
*
* const fooContact = new volcengine.vmp.Contact("fooContact", {
* email: "acctest1@tftest.com",
* webhook: {
* address: "https://www.acctest1.com",
* },
* larkBotWebhook: {
* address: "https://www.acctest1.com",
* },
* dingTalkBotWebhook: {
* address: "https://www.dingacctest1.com",
* atMobiles: ["18046891812"],
* },
* phoneNumber: {
* countryCode: "+86",
* number: "18310101010",
* },
* });
* const foo1 = new volcengine.vmp.Contact("foo1", {
* email: "acctest2@tftest.com",
* webhook: {
* address: "https://www.acctest2.com",
* },
* larkBotWebhook: {
* address: "https://www.acctest2.com",
* },
* dingTalkBotWebhook: {
* address: "https://www.dingacctest2.com",
* atMobiles: ["18046891813"],
* },
* phoneNumber: {
* countryCode: "+86",
* number: "18310101011",
* },
* });
* const fooContactGroup = new volcengine.vmp.ContactGroup("fooContactGroup", {contactIds: [
* fooContact.id,
* foo1.id,
* ]});
* const fooContactGroups = volcengine.vmp.getContactGroupsOutput({
* ids: [fooContactGroup.id],
* });
* ```
*/
/** @deprecated volcengine.vmp.ContactGroups has been deprecated in favor of volcengine.vmp.getContactGroups */
export declare function contactGroups(args?: ContactGroupsArgs, opts?: pulumi.InvokeOptions): Promise<ContactGroupsResult>;
/**
* A collection of arguments for invoking ContactGroups.
*/
export interface ContactGroupsArgs {
/**
* A list of contact group ids.
*/
ids?: string[];
/**
* The name of contact group.
*/
name?: string;
/**
* File name where to save data source results.
*/
outputFile?: string;
}
/**
* A collection of values returned by ContactGroups.
*/
export interface ContactGroupsResult {
/**
* The collection of query.
*/
readonly contactGroups: outputs.vmp.ContactGroupsContactGroup[];
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly ids?: string[];
/**
* The name of contact group.
*/
readonly name?: string;
readonly outputFile?: string;
/**
* The total count of query.
*/
readonly totalCount: number;
}
/**
* Use this data source to query detailed information of vmp contact groups
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
* import * as volcengine from "@volcengine/pulumi";
*
* const fooContact = new volcengine.vmp.Contact("fooContact", {
* email: "acctest1@tftest.com",
* webhook: {
* address: "https://www.acctest1.com",
* },
* larkBotWebhook: {
* address: "https://www.acctest1.com",
* },
* dingTalkBotWebhook: {
* address: "https://www.dingacctest1.com",
* atMobiles: ["18046891812"],
* },
* phoneNumber: {
* countryCode: "+86",
* number: "18310101010",
* },
* });
* const foo1 = new volcengine.vmp.Contact("foo1", {
* email: "acctest2@tftest.com",
* webhook: {
* address: "https://www.acctest2.com",
* },
* larkBotWebhook: {
* address: "https://www.acctest2.com",
* },
* dingTalkBotWebhook: {
* address: "https://www.dingacctest2.com",
* atMobiles: ["18046891813"],
* },
* phoneNumber: {
* countryCode: "+86",
* number: "18310101011",
* },
* });
* const fooContactGroup = new volcengine.vmp.ContactGroup("fooContactGroup", {contactIds: [
* fooContact.id,
* foo1.id,
* ]});
* const fooContactGroups = volcengine.vmp.getContactGroupsOutput({
* ids: [fooContactGroup.id],
* });
* ```
*/
/** @deprecated volcengine.vmp.ContactGroups has been deprecated in favor of volcengine.vmp.getContactGroups */
export declare function contactGroupsOutput(args?: ContactGroupsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<ContactGroupsResult>;
/**
* A collection of arguments for invoking ContactGroups.
*/
export interface ContactGroupsOutputArgs {
/**
* A list of contact group ids.
*/
ids?: pulumi.Input<pulumi.Input<string>[]>;
/**
* The name of contact group.
*/
name?: pulumi.Input<string>;
/**
* File name where to save data source results.
*/
outputFile?: pulumi.Input<string>;
}