UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

154 lines (153 loc) 3.9 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Use this data source to query detailed information of vmp contacts * ## 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 fooContacts = volcengine.vmp.getContactsOutput({ * ids: [fooContact.id], * }); * ``` */ export declare function getContacts(args?: GetContactsArgs, opts?: pulumi.InvokeOptions): Promise<GetContactsResult>; /** * A collection of arguments for invoking getContacts. */ export interface GetContactsArgs { /** * The email of contact. */ email?: string; /** * A list of contact ids. */ ids?: string[]; /** * The name of contact. */ name?: string; /** * File name where to save data source results. */ outputFile?: string; /** * The sort field of query. */ sortBy?: string; /** * The sort order of query. */ sortOrder?: string; } /** * A collection of values returned by getContacts. */ export interface GetContactsResult { /** * The collection of query. */ readonly contacts: outputs.vmp.GetContactsContact[]; /** * The email of contact. */ readonly email?: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly ids?: string[]; /** * The name of contact. */ readonly name?: string; readonly outputFile?: string; readonly sortBy?: string; readonly sortOrder?: string; /** * The total count of query. */ readonly totalCount: number; } /** * Use this data source to query detailed information of vmp contacts * ## 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 fooContacts = volcengine.vmp.getContactsOutput({ * ids: [fooContact.id], * }); * ``` */ export declare function getContactsOutput(args?: GetContactsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetContactsResult>; /** * A collection of arguments for invoking getContacts. */ export interface GetContactsOutputArgs { /** * The email of contact. */ email?: pulumi.Input<string>; /** * A list of contact ids. */ ids?: pulumi.Input<pulumi.Input<string>[]>; /** * The name of contact. */ name?: pulumi.Input<string>; /** * File name where to save data source results. */ outputFile?: pulumi.Input<string>; /** * The sort field of query. */ sortBy?: pulumi.Input<string>; /** * The sort order of query. */ sortOrder?: pulumi.Input<string>; }