UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

102 lines 4.36 kB
"use strict"; // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.Contact = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Provides a resource to manage vmp contact * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@volcengine/pulumi"; * * const foo = new volcengine.vmp.Contact("foo", { * dingTalkBotWebhook: { * address: "https://www.dingacctest1.com", * atMobiles: ["18046891812"], * }, * email: "acctest1@tftest.com", * larkBotWebhook: { * address: "https://www.acctest1.com", * }, * phoneNumber: { * countryCode: "+86", * number: "18310101010", * }, * webhook: { * address: "https://www.acctest1.com", * }, * }); * ``` * * ## Import * * VMP Contact can be imported using the id, e.g. * * ```sh * $ pulumi import volcengine:vmp/contact:Contact default 60dde3ca-951c-4c05-8777-e5a7caa07ad6 * ``` */ class Contact extends pulumi.CustomResource { /** * Get an existing Contact resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name, id, state, opts) { return new Contact(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Contact. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj) { if (obj === undefined || obj === null) { return false; } return obj['__pulumiType'] === Contact.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["contactGroupIds"] = state ? state.contactGroupIds : undefined; resourceInputs["createTime"] = state ? state.createTime : undefined; resourceInputs["dingTalkBotWebhook"] = state ? state.dingTalkBotWebhook : undefined; resourceInputs["email"] = state ? state.email : undefined; resourceInputs["emailActive"] = state ? state.emailActive : undefined; resourceInputs["larkBotWebhook"] = state ? state.larkBotWebhook : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["phoneNumber"] = state ? state.phoneNumber : undefined; resourceInputs["weComBotWebhook"] = state ? state.weComBotWebhook : undefined; resourceInputs["webhook"] = state ? state.webhook : undefined; } else { const args = argsOrState; resourceInputs["contactGroupIds"] = args ? args.contactGroupIds : undefined; resourceInputs["dingTalkBotWebhook"] = args ? args.dingTalkBotWebhook : undefined; resourceInputs["email"] = args ? args.email : undefined; resourceInputs["larkBotWebhook"] = args ? args.larkBotWebhook : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["phoneNumber"] = args ? args.phoneNumber : undefined; resourceInputs["weComBotWebhook"] = args ? args.weComBotWebhook : undefined; resourceInputs["webhook"] = args ? args.webhook : undefined; resourceInputs["createTime"] = undefined /*out*/; resourceInputs["emailActive"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Contact.__pulumiType, name, resourceInputs, opts); } } exports.Contact = Contact; /** @internal */ Contact.__pulumiType = 'volcengine:vmp/contact:Contact'; //# sourceMappingURL=contact.js.map