@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
166 lines (165 loc) • 4.7 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],
* });
* ```
*/
export declare function getContactGroups(args?: GetContactGroupsArgs, opts?: pulumi.InvokeOptions): Promise<GetContactGroupsResult>;
/**
* A collection of arguments for invoking getContactGroups.
*/
export interface GetContactGroupsArgs {
/**
* 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 getContactGroups.
*/
export interface GetContactGroupsResult {
/**
* The collection of query.
*/
readonly contactGroups: outputs.vmp.GetContactGroupsContactGroup[];
/**
* 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],
* });
* ```
*/
export declare function getContactGroupsOutput(args?: GetContactGroupsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetContactGroupsResult>;
/**
* A collection of arguments for invoking getContactGroups.
*/
export interface GetContactGroupsOutputArgs {
/**
* 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>;
}