@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
156 lines (155 loc) • 4.07 kB
TypeScript
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],
* });
* ```
*/
/** @deprecated volcengine.vmp.Contacts has been deprecated in favor of volcengine.vmp.getContacts */
export declare function contacts(args?: ContactsArgs, opts?: pulumi.InvokeOptions): Promise<ContactsResult>;
/**
* A collection of arguments for invoking Contacts.
*/
export interface ContactsArgs {
/**
* 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 Contacts.
*/
export interface ContactsResult {
/**
* The collection of query.
*/
readonly contacts: outputs.vmp.ContactsContact[];
/**
* 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],
* });
* ```
*/
/** @deprecated volcengine.vmp.Contacts has been deprecated in favor of volcengine.vmp.getContacts */
export declare function contactsOutput(args?: ContactsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<ContactsResult>;
/**
* A collection of arguments for invoking Contacts.
*/
export interface ContactsOutputArgs {
/**
* 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>;
}