volcengine.vmp.Contact
Explore with Pulumi AI
Provides a resource to manage vmp contact
Example Usage
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 pulumi
import pulumi_volcengine as volcengine
foo = volcengine.vmp.Contact("foo",
ding_talk_bot_webhook=volcengine.vmp.ContactDingTalkBotWebhookArgs(
address="https://www.dingacctest1.com",
at_mobiles=["18046891812"],
),
email="acctest1@tftest.com",
lark_bot_webhook=volcengine.vmp.ContactLarkBotWebhookArgs(
address="https://www.acctest1.com",
),
phone_number=volcengine.vmp.ContactPhoneNumberArgs(
country_code="+86",
number="18310101010",
),
webhook=volcengine.vmp.ContactWebhookArgs(
address="https://www.acctest1.com",
))
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vmp"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vmp.NewContact(ctx, "foo", &vmp.ContactArgs{
DingTalkBotWebhook: &vmp.ContactDingTalkBotWebhookArgs{
Address: pulumi.String("https://www.dingacctest1.com"),
AtMobiles: pulumi.StringArray{
pulumi.String("18046891812"),
},
},
Email: pulumi.String("acctest1@tftest.com"),
LarkBotWebhook: &vmp.ContactLarkBotWebhookArgs{
Address: pulumi.String("https://www.acctest1.com"),
},
PhoneNumber: &vmp.ContactPhoneNumberArgs{
CountryCode: pulumi.String("+86"),
Number: pulumi.String("18310101010"),
},
Webhook: &vmp.ContactWebhookArgs{
Address: pulumi.String("https://www.acctest1.com"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var foo = new Volcengine.Vmp.Contact("foo", new()
{
DingTalkBotWebhook = new Volcengine.Vmp.Inputs.ContactDingTalkBotWebhookArgs
{
Address = "https://www.dingacctest1.com",
AtMobiles = new[]
{
"18046891812",
},
},
Email = "acctest1@tftest.com",
LarkBotWebhook = new Volcengine.Vmp.Inputs.ContactLarkBotWebhookArgs
{
Address = "https://www.acctest1.com",
},
PhoneNumber = new Volcengine.Vmp.Inputs.ContactPhoneNumberArgs
{
CountryCode = "+86",
Number = "18310101010",
},
Webhook = new Volcengine.Vmp.Inputs.ContactWebhookArgs
{
Address = "https://www.acctest1.com",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.vmp.Contact;
import com.pulumi.volcengine.vmp.ContactArgs;
import com.pulumi.volcengine.vmp.inputs.ContactDingTalkBotWebhookArgs;
import com.pulumi.volcengine.vmp.inputs.ContactLarkBotWebhookArgs;
import com.pulumi.volcengine.vmp.inputs.ContactPhoneNumberArgs;
import com.pulumi.volcengine.vmp.inputs.ContactWebhookArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var foo = new Contact("foo", ContactArgs.builder()
.dingTalkBotWebhook(ContactDingTalkBotWebhookArgs.builder()
.address("https://www.dingacctest1.com")
.atMobiles("18046891812")
.build())
.email("acctest1@tftest.com")
.larkBotWebhook(ContactLarkBotWebhookArgs.builder()
.address("https://www.acctest1.com")
.build())
.phoneNumber(ContactPhoneNumberArgs.builder()
.countryCode("+86")
.number("18310101010")
.build())
.webhook(ContactWebhookArgs.builder()
.address("https://www.acctest1.com")
.build())
.build());
}
}
resources:
foo:
type: volcengine:vmp:Contact
properties:
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
Create Contact Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Contact(name: string, args?: ContactArgs, opts?: CustomResourceOptions);
@overload
def Contact(resource_name: str,
args: Optional[ContactArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Contact(resource_name: str,
opts: Optional[ResourceOptions] = None,
ding_talk_bot_webhook: Optional[ContactDingTalkBotWebhookArgs] = None,
email: Optional[str] = None,
lark_bot_webhook: Optional[ContactLarkBotWebhookArgs] = None,
name: Optional[str] = None,
phone_number: Optional[ContactPhoneNumberArgs] = None,
we_com_bot_webhook: Optional[ContactWeComBotWebhookArgs] = None,
webhook: Optional[ContactWebhookArgs] = None)
func NewContact(ctx *Context, name string, args *ContactArgs, opts ...ResourceOption) (*Contact, error)
public Contact(string name, ContactArgs? args = null, CustomResourceOptions? opts = null)
public Contact(String name, ContactArgs args)
public Contact(String name, ContactArgs args, CustomResourceOptions options)
type: volcengine:vmp:Contact
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ContactArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ContactArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ContactArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ContactArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ContactArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var volcengineContactResource = new Volcengine.Vmp.Contact("volcengineContactResource", new()
{
DingTalkBotWebhook = new Volcengine.Vmp.Inputs.ContactDingTalkBotWebhookArgs
{
Address = "string",
AtMobiles = new[]
{
"string",
},
AtUserIds = new[]
{
"string",
},
SecretKey = "string",
},
Email = "string",
LarkBotWebhook = new Volcengine.Vmp.Inputs.ContactLarkBotWebhookArgs
{
Address = "string",
SecretKey = "string",
},
Name = "string",
PhoneNumber = new Volcengine.Vmp.Inputs.ContactPhoneNumberArgs
{
CountryCode = "string",
Number = "string",
},
WeComBotWebhook = new Volcengine.Vmp.Inputs.ContactWeComBotWebhookArgs
{
Address = "string",
AtUserIds = new[]
{
"string",
},
},
Webhook = new Volcengine.Vmp.Inputs.ContactWebhookArgs
{
Address = "string",
Token = "string",
},
});
example, err := vmp.NewContact(ctx, "volcengineContactResource", &vmp.ContactArgs{
DingTalkBotWebhook: &vmp.ContactDingTalkBotWebhookArgs{
Address: pulumi.String("string"),
AtMobiles: pulumi.StringArray{
pulumi.String("string"),
},
AtUserIds: pulumi.StringArray{
pulumi.String("string"),
},
SecretKey: pulumi.String("string"),
},
Email: pulumi.String("string"),
LarkBotWebhook: &vmp.ContactLarkBotWebhookArgs{
Address: pulumi.String("string"),
SecretKey: pulumi.String("string"),
},
Name: pulumi.String("string"),
PhoneNumber: &vmp.ContactPhoneNumberArgs{
CountryCode: pulumi.String("string"),
Number: pulumi.String("string"),
},
WeComBotWebhook: &vmp.ContactWeComBotWebhookArgs{
Address: pulumi.String("string"),
AtUserIds: pulumi.StringArray{
pulumi.String("string"),
},
},
Webhook: &vmp.ContactWebhookArgs{
Address: pulumi.String("string"),
Token: pulumi.String("string"),
},
})
var volcengineContactResource = new com.pulumi.volcengine.vmp.Contact("volcengineContactResource", com.pulumi.volcengine.vmp.ContactArgs.builder()
.dingTalkBotWebhook(ContactDingTalkBotWebhookArgs.builder()
.address("string")
.atMobiles("string")
.atUserIds("string")
.secretKey("string")
.build())
.email("string")
.larkBotWebhook(ContactLarkBotWebhookArgs.builder()
.address("string")
.secretKey("string")
.build())
.name("string")
.phoneNumber(ContactPhoneNumberArgs.builder()
.countryCode("string")
.number("string")
.build())
.weComBotWebhook(ContactWeComBotWebhookArgs.builder()
.address("string")
.atUserIds("string")
.build())
.webhook(ContactWebhookArgs.builder()
.address("string")
.token("string")
.build())
.build());
volcengine_contact_resource = volcengine.vmp.Contact("volcengineContactResource",
ding_talk_bot_webhook={
"address": "string",
"at_mobiles": ["string"],
"at_user_ids": ["string"],
"secret_key": "string",
},
email="string",
lark_bot_webhook={
"address": "string",
"secret_key": "string",
},
name="string",
phone_number={
"country_code": "string",
"number": "string",
},
we_com_bot_webhook={
"address": "string",
"at_user_ids": ["string"],
},
webhook={
"address": "string",
"token": "string",
})
const volcengineContactResource = new volcengine.vmp.Contact("volcengineContactResource", {
dingTalkBotWebhook: {
address: "string",
atMobiles: ["string"],
atUserIds: ["string"],
secretKey: "string",
},
email: "string",
larkBotWebhook: {
address: "string",
secretKey: "string",
},
name: "string",
phoneNumber: {
countryCode: "string",
number: "string",
},
weComBotWebhook: {
address: "string",
atUserIds: ["string"],
},
webhook: {
address: "string",
token: "string",
},
});
type: volcengine:vmp:Contact
properties:
dingTalkBotWebhook:
address: string
atMobiles:
- string
atUserIds:
- string
secretKey: string
email: string
larkBotWebhook:
address: string
secretKey: string
name: string
phoneNumber:
countryCode: string
number: string
weComBotWebhook:
address: string
atUserIds:
- string
webhook:
address: string
token: string
Contact Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Contact resource accepts the following input properties:
- Ding
Talk ContactBot Webhook Ding Talk Bot Webhook - The ding talk bot webhook of contact.
- Email string
- The email of the contact.
- Lark
Bot ContactWebhook Lark Bot Webhook - The lark bot webhook of contact.
- Name string
- The name of the contact.
- Phone
Number ContactPhone Number - The phone number of contact.
- We
Com ContactBot Webhook We Com Bot Webhook - The we com bot webhook of contact.
- Webhook
Contact
Webhook - The webhook of contact.
- Ding
Talk ContactBot Webhook Ding Talk Bot Webhook Args - The ding talk bot webhook of contact.
- Email string
- The email of the contact.
- Lark
Bot ContactWebhook Lark Bot Webhook Args - The lark bot webhook of contact.
- Name string
- The name of the contact.
- Phone
Number ContactPhone Number Args - The phone number of contact.
- We
Com ContactBot Webhook We Com Bot Webhook Args - The we com bot webhook of contact.
- Webhook
Contact
Webhook Args - The webhook of contact.
- ding
Talk ContactBot Webhook Ding Talk Bot Webhook - The ding talk bot webhook of contact.
- email String
- The email of the contact.
- lark
Bot ContactWebhook Lark Bot Webhook - The lark bot webhook of contact.
- name String
- The name of the contact.
- phone
Number ContactPhone Number - The phone number of contact.
- we
Com ContactBot Webhook We Com Bot Webhook - The we com bot webhook of contact.
- webhook
Contact
Webhook - The webhook of contact.
- ding
Talk ContactBot Webhook Ding Talk Bot Webhook - The ding talk bot webhook of contact.
- email string
- The email of the contact.
- lark
Bot ContactWebhook Lark Bot Webhook - The lark bot webhook of contact.
- name string
- The name of the contact.
- phone
Number ContactPhone Number - The phone number of contact.
- we
Com ContactBot Webhook We Com Bot Webhook - The we com bot webhook of contact.
- webhook
Contact
Webhook - The webhook of contact.
- ding_
talk_ Contactbot_ webhook Ding Talk Bot Webhook Args - The ding talk bot webhook of contact.
- email str
- The email of the contact.
- lark_
bot_ Contactwebhook Lark Bot Webhook Args - The lark bot webhook of contact.
- name str
- The name of the contact.
- phone_
number ContactPhone Number Args - The phone number of contact.
- we_
com_ Contactbot_ webhook We Com Bot Webhook Args - The we com bot webhook of contact.
- webhook
Contact
Webhook Args - The webhook of contact.
- ding
Talk Property MapBot Webhook - The ding talk bot webhook of contact.
- email String
- The email of the contact.
- lark
Bot Property MapWebhook - The lark bot webhook of contact.
- name String
- The name of the contact.
- phone
Number Property Map - The phone number of contact.
- we
Com Property MapBot Webhook - The we com bot webhook of contact.
- webhook Property Map
- The webhook of contact.
Outputs
All input properties are implicitly available as output properties. Additionally, the Contact resource produces the following output properties:
- Contact
Group List<string>Ids - A list of contact group ids.
- Create
Time string - The create time of contact.
- Email
Active bool - Whether the email of contact active.
- Id string
- The provider-assigned unique ID for this managed resource.
- Contact
Group []stringIds - A list of contact group ids.
- Create
Time string - The create time of contact.
- Email
Active bool - Whether the email of contact active.
- Id string
- The provider-assigned unique ID for this managed resource.
- contact
Group List<String>Ids - A list of contact group ids.
- create
Time String - The create time of contact.
- email
Active Boolean - Whether the email of contact active.
- id String
- The provider-assigned unique ID for this managed resource.
- contact
Group string[]Ids - A list of contact group ids.
- create
Time string - The create time of contact.
- email
Active boolean - Whether the email of contact active.
- id string
- The provider-assigned unique ID for this managed resource.
- contact_
group_ Sequence[str]ids - A list of contact group ids.
- create_
time str - The create time of contact.
- email_
active bool - Whether the email of contact active.
- id str
- The provider-assigned unique ID for this managed resource.
- contact
Group List<String>Ids - A list of contact group ids.
- create
Time String - The create time of contact.
- email
Active Boolean - Whether the email of contact active.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Contact Resource
Get an existing Contact resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ContactState, opts?: CustomResourceOptions): Contact
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
contact_group_ids: Optional[Sequence[str]] = None,
create_time: Optional[str] = None,
ding_talk_bot_webhook: Optional[ContactDingTalkBotWebhookArgs] = None,
email: Optional[str] = None,
email_active: Optional[bool] = None,
lark_bot_webhook: Optional[ContactLarkBotWebhookArgs] = None,
name: Optional[str] = None,
phone_number: Optional[ContactPhoneNumberArgs] = None,
we_com_bot_webhook: Optional[ContactWeComBotWebhookArgs] = None,
webhook: Optional[ContactWebhookArgs] = None) -> Contact
func GetContact(ctx *Context, name string, id IDInput, state *ContactState, opts ...ResourceOption) (*Contact, error)
public static Contact Get(string name, Input<string> id, ContactState? state, CustomResourceOptions? opts = null)
public static Contact get(String name, Output<String> id, ContactState state, CustomResourceOptions options)
resources: _: type: volcengine:vmp:Contact get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Contact
Group List<string>Ids - A list of contact group ids.
- Create
Time string - The create time of contact.
- Ding
Talk ContactBot Webhook Ding Talk Bot Webhook - The ding talk bot webhook of contact.
- Email string
- The email of the contact.
- Email
Active bool - Whether the email of contact active.
- Lark
Bot ContactWebhook Lark Bot Webhook - The lark bot webhook of contact.
- Name string
- The name of the contact.
- Phone
Number ContactPhone Number - The phone number of contact.
- We
Com ContactBot Webhook We Com Bot Webhook - The we com bot webhook of contact.
- Webhook
Contact
Webhook - The webhook of contact.
- Contact
Group []stringIds - A list of contact group ids.
- Create
Time string - The create time of contact.
- Ding
Talk ContactBot Webhook Ding Talk Bot Webhook Args - The ding talk bot webhook of contact.
- Email string
- The email of the contact.
- Email
Active bool - Whether the email of contact active.
- Lark
Bot ContactWebhook Lark Bot Webhook Args - The lark bot webhook of contact.
- Name string
- The name of the contact.
- Phone
Number ContactPhone Number Args - The phone number of contact.
- We
Com ContactBot Webhook We Com Bot Webhook Args - The we com bot webhook of contact.
- Webhook
Contact
Webhook Args - The webhook of contact.
- contact
Group List<String>Ids - A list of contact group ids.
- create
Time String - The create time of contact.
- ding
Talk ContactBot Webhook Ding Talk Bot Webhook - The ding talk bot webhook of contact.
- email String
- The email of the contact.
- email
Active Boolean - Whether the email of contact active.
- lark
Bot ContactWebhook Lark Bot Webhook - The lark bot webhook of contact.
- name String
- The name of the contact.
- phone
Number ContactPhone Number - The phone number of contact.
- we
Com ContactBot Webhook We Com Bot Webhook - The we com bot webhook of contact.
- webhook
Contact
Webhook - The webhook of contact.
- contact
Group string[]Ids - A list of contact group ids.
- create
Time string - The create time of contact.
- ding
Talk ContactBot Webhook Ding Talk Bot Webhook - The ding talk bot webhook of contact.
- email string
- The email of the contact.
- email
Active boolean - Whether the email of contact active.
- lark
Bot ContactWebhook Lark Bot Webhook - The lark bot webhook of contact.
- name string
- The name of the contact.
- phone
Number ContactPhone Number - The phone number of contact.
- we
Com ContactBot Webhook We Com Bot Webhook - The we com bot webhook of contact.
- webhook
Contact
Webhook - The webhook of contact.
- contact_
group_ Sequence[str]ids - A list of contact group ids.
- create_
time str - The create time of contact.
- ding_
talk_ Contactbot_ webhook Ding Talk Bot Webhook Args - The ding talk bot webhook of contact.
- email str
- The email of the contact.
- email_
active bool - Whether the email of contact active.
- lark_
bot_ Contactwebhook Lark Bot Webhook Args - The lark bot webhook of contact.
- name str
- The name of the contact.
- phone_
number ContactPhone Number Args - The phone number of contact.
- we_
com_ Contactbot_ webhook We Com Bot Webhook Args - The we com bot webhook of contact.
- webhook
Contact
Webhook Args - The webhook of contact.
- contact
Group List<String>Ids - A list of contact group ids.
- create
Time String - The create time of contact.
- ding
Talk Property MapBot Webhook - The ding talk bot webhook of contact.
- email String
- The email of the contact.
- email
Active Boolean - Whether the email of contact active.
- lark
Bot Property MapWebhook - The lark bot webhook of contact.
- name String
- The name of the contact.
- phone
Number Property Map - The phone number of contact.
- we
Com Property MapBot Webhook - The we com bot webhook of contact.
- webhook Property Map
- The webhook of contact.
Supporting Types
ContactDingTalkBotWebhook, ContactDingTalkBotWebhookArgs
- address str
- The address of webhook.
- at_
mobiles Sequence[str] - The mobiles of user.
- at_
user_ Sequence[str]ids - The ids of user.
- secret_
key str - The secret key of webhook.
ContactLarkBotWebhook, ContactLarkBotWebhookArgs
- address str
- The address of webhook.
- secret_
key str - The secret key of webhook.
ContactPhoneNumber, ContactPhoneNumberArgs
- Country
Code string - The country code of phone number. The value is
+86
. - Number string
- The number of phone number.
- Country
Code string - The country code of phone number. The value is
+86
. - Number string
- The number of phone number.
- country
Code String - The country code of phone number. The value is
+86
. - number String
- The number of phone number.
- country
Code string - The country code of phone number. The value is
+86
. - number string
- The number of phone number.
- country_
code str - The country code of phone number. The value is
+86
. - number str
- The number of phone number.
- country
Code String - The country code of phone number. The value is
+86
. - number String
- The number of phone number.
ContactWeComBotWebhook, ContactWeComBotWebhookArgs
- address str
- The address of webhook.
- at_
user_ Sequence[str]ids - The ids of user.
ContactWebhook, ContactWebhookArgs
Import
VMP Contact can be imported using the id, e.g.
$ pulumi import volcengine:vmp/contact:Contact default 60dde3ca-951c-4c05-8777-e5a7caa07ad6
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengine
Terraform Provider.