1. Packages
  2. Packages
  3. Volcenginecc Provider
  4. API Docs
  5. cloudmonitor
  6. Contact
Viewing docs for volcenginecc v0.0.55
published on Thursday, Aug 13, 2026 by Volcengine
volcenginecc logo
Viewing docs for volcenginecc v0.0.55
published on Thursday, Aug 13, 2026 by Volcengine

    Cloud Monitoring alert contact. Used to configure recipients for alert notifications. You can add a contact to one or more contact groups.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as volcenginecc from "@volcengine/pulumi-volcenginecc";
    
    const example = new volcenginecc.cloudmonitor.Contact("Example", {
        email: "test_contact2@example.com",
        contactGroupIds: ["20493********741184"],
        phone: "138*****000",
        name: "Test_Contact2",
    });
    
    import pulumi
    import pulumi_volcenginecc as volcenginecc
    
    example = volcenginecc.cloudmonitor.Contact("Example",
        email="test_contact2@example.com",
        contact_group_ids=["20493********741184"],
        phone="138*****000",
        name="Test_Contact2")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcenginecc/sdk/go/volcenginecc/cloudmonitor"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloudmonitor.NewContact(ctx, "Example", &cloudmonitor.ContactArgs{
    			Email: pulumi.String("test_contact2@example.com"),
    			ContactGroupIds: pulumi.StringArray{
    				pulumi.String("20493********741184"),
    			},
    			Phone: pulumi.String("138*****000"),
    			Name:  pulumi.String("Test_Contact2"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcenginecc = Volcengine.Pulumi.Volcenginecc;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Volcenginecc.Cloudmonitor.Contact("Example", new()
        {
            Email = "test_contact2@example.com",
            ContactGroupIds = new[]
            {
                "20493********741184",
            },
            Phone = "138*****000",
            Name = "Test_Contact2",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.volcengine.volcenginecc.cloudmonitor.Contact;
    import com.volcengine.volcenginecc.cloudmonitor.ContactArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 example = new Contact("example", ContactArgs.builder()
                .email("test_contact2@example.com")
                .contactGroupIds("20493********741184")
                .phone("138*****000")
                .name("Test_Contact2")
                .build());
    
        }
    }
    
    resources:
      example:
        type: volcenginecc:cloudmonitor:Contact
        name: Example
        properties:
          email: test_contact2@example.com
          contactGroupIds:
            - 20493********741184
          phone: 138*****000
          name: Test_Contact2
    
    pulumi {
      required_providers {
        volcenginecc = {
          source = "pulumi/volcenginecc"
        }
      }
    }
    
    resource "volcenginecc_cloudmonitor_contact" "Example" {
      email             = "test_contact2@example.com"
      contact_group_ids = ["20493********741184"]
      phone             = "138*****000"
      name              = "Test_Contact2"
    }
    

    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: ContactArgs,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def Contact(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                email: Optional[str] = None,
                name: Optional[str] = None,
                contact_group_ids: Optional[Sequence[str]] = None,
                phone: Optional[str] = None)
    func NewContact(ctx *Context, name string, args ContactArgs, opts ...ResourceOption) (*Contact, error)
    public Contact(string name, ContactArgs args, CustomResourceOptions? opts = null)
    public Contact(String name, ContactArgs args)
    public Contact(String name, ContactArgs args, CustomResourceOptions options)
    
    type: volcenginecc:cloudmonitor:Contact
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "volcenginecc_cloudmonitor_contact" "name" {
        # resource properties
    }

    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 contactResource = new Volcenginecc.Cloudmonitor.Contact("contactResource", new()
    {
        Email = "string",
        Name = "string",
        ContactGroupIds = new[]
        {
            "string",
        },
        Phone = "string",
    });
    
    example, err := cloudmonitor.NewContact(ctx, "contactResource", &cloudmonitor.ContactArgs{
    	Email: pulumi.String("string"),
    	Name:  pulumi.String("string"),
    	ContactGroupIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Phone: pulumi.String("string"),
    })
    
    resource "volcenginecc_cloudmonitor_contact" "contactResource" {
      lifecycle {
        create_before_destroy = true
      }
      email             = "string"
      name              = "string"
      contact_group_ids = ["string"]
      phone             = "string"
    }
    
    var contactResource = new Contact("contactResource", ContactArgs.builder()
        .email("string")
        .name("string")
        .contactGroupIds("string")
        .phone("string")
        .build());
    
    contact_resource = volcenginecc.cloudmonitor.Contact("contactResource",
        email="string",
        name="string",
        contact_group_ids=["string"],
        phone="string")
    
    const contactResource = new volcenginecc.cloudmonitor.Contact("contactResource", {
        email: "string",
        name: "string",
        contactGroupIds: ["string"],
        phone: "string",
    });
    
    type: volcenginecc:cloudmonitor:Contact
    properties:
        contactGroupIds:
            - string
        email: string
        name: string
        phone: 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:

    Email string
    Required when updating. Alert email address. Cloud Monitoring will send a verification email to the provided address. You must open the verification link in the email to complete verification. Only after the email address is verified can it receive alert notifications.
    Name string
    Contact name. Cannot start with a digit or hyphen. Can only contain Chinese characters, letters, digits, underscores (_), and hyphens (-). Length must be between 1 and 128 characters.
    ContactGroupIds List<string>
    List of contact group IDs the contact has joined. A single contact can be added to up to 10 contact groups. The value will replace the contact's existing associated groups.
    Phone string
    Alert phone number. If not provided during update, the original value remains. Cloud Monitoring will send a verification SMS to the provided phone number. You must open the verification link in the SMS to complete verification. Only after the phone number is verified can it receive alert messages.
    Email string
    Required when updating. Alert email address. Cloud Monitoring will send a verification email to the provided address. You must open the verification link in the email to complete verification. Only after the email address is verified can it receive alert notifications.
    Name string
    Contact name. Cannot start with a digit or hyphen. Can only contain Chinese characters, letters, digits, underscores (_), and hyphens (-). Length must be between 1 and 128 characters.
    ContactGroupIds []string
    List of contact group IDs the contact has joined. A single contact can be added to up to 10 contact groups. The value will replace the contact's existing associated groups.
    Phone string
    Alert phone number. If not provided during update, the original value remains. Cloud Monitoring will send a verification SMS to the provided phone number. You must open the verification link in the SMS to complete verification. Only after the phone number is verified can it receive alert messages.
    email string
    Required when updating. Alert email address. Cloud Monitoring will send a verification email to the provided address. You must open the verification link in the email to complete verification. Only after the email address is verified can it receive alert notifications.
    name string
    Contact name. Cannot start with a digit or hyphen. Can only contain Chinese characters, letters, digits, underscores (_), and hyphens (-). Length must be between 1 and 128 characters.
    contact_group_ids list(string)
    List of contact group IDs the contact has joined. A single contact can be added to up to 10 contact groups. The value will replace the contact's existing associated groups.
    phone string
    Alert phone number. If not provided during update, the original value remains. Cloud Monitoring will send a verification SMS to the provided phone number. You must open the verification link in the SMS to complete verification. Only after the phone number is verified can it receive alert messages.
    email String
    Required when updating. Alert email address. Cloud Monitoring will send a verification email to the provided address. You must open the verification link in the email to complete verification. Only after the email address is verified can it receive alert notifications.
    name String
    Contact name. Cannot start with a digit or hyphen. Can only contain Chinese characters, letters, digits, underscores (_), and hyphens (-). Length must be between 1 and 128 characters.
    contactGroupIds List<String>
    List of contact group IDs the contact has joined. A single contact can be added to up to 10 contact groups. The value will replace the contact's existing associated groups.
    phone String
    Alert phone number. If not provided during update, the original value remains. Cloud Monitoring will send a verification SMS to the provided phone number. You must open the verification link in the SMS to complete verification. Only after the phone number is verified can it receive alert messages.
    email string
    Required when updating. Alert email address. Cloud Monitoring will send a verification email to the provided address. You must open the verification link in the email to complete verification. Only after the email address is verified can it receive alert notifications.
    name string
    Contact name. Cannot start with a digit or hyphen. Can only contain Chinese characters, letters, digits, underscores (_), and hyphens (-). Length must be between 1 and 128 characters.
    contactGroupIds string[]
    List of contact group IDs the contact has joined. A single contact can be added to up to 10 contact groups. The value will replace the contact's existing associated groups.
    phone string
    Alert phone number. If not provided during update, the original value remains. Cloud Monitoring will send a verification SMS to the provided phone number. You must open the verification link in the SMS to complete verification. Only after the phone number is verified can it receive alert messages.
    email str
    Required when updating. Alert email address. Cloud Monitoring will send a verification email to the provided address. You must open the verification link in the email to complete verification. Only after the email address is verified can it receive alert notifications.
    name str
    Contact name. Cannot start with a digit or hyphen. Can only contain Chinese characters, letters, digits, underscores (_), and hyphens (-). Length must be between 1 and 128 characters.
    contact_group_ids Sequence[str]
    List of contact group IDs the contact has joined. A single contact can be added to up to 10 contact groups. The value will replace the contact's existing associated groups.
    phone str
    Alert phone number. If not provided during update, the original value remains. Cloud Monitoring will send a verification SMS to the provided phone number. You must open the verification link in the SMS to complete verification. Only after the phone number is verified can it receive alert messages.
    email String
    Required when updating. Alert email address. Cloud Monitoring will send a verification email to the provided address. You must open the verification link in the email to complete verification. Only after the email address is verified can it receive alert notifications.
    name String
    Contact name. Cannot start with a digit or hyphen. Can only contain Chinese characters, letters, digits, underscores (_), and hyphens (-). Length must be between 1 and 128 characters.
    contactGroupIds List<String>
    List of contact group IDs the contact has joined. A single contact can be added to up to 10 contact groups. The value will replace the contact's existing associated groups.
    phone String
    Alert phone number. If not provided during update, the original value remains. Cloud Monitoring will send a verification SMS to the provided phone number. You must open the verification link in the SMS to complete verification. Only after the phone number is verified can it receive alert messages.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Contact resource produces the following output properties:

    ContactId string
    Alert contact ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    ContactId string
    Alert contact ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    contact_id string
    Alert contact ID.
    id string
    The provider-assigned unique ID for this managed resource.
    contactId String
    Alert contact ID.
    id String
    The provider-assigned unique ID for this managed resource.
    contactId string
    Alert contact ID.
    id string
    The provider-assigned unique ID for this managed resource.
    contact_id str
    Alert contact ID.
    id str
    The provider-assigned unique ID for this managed resource.
    contactId String
    Alert contact ID.
    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,
            contact_id: Optional[str] = None,
            email: Optional[str] = None,
            name: Optional[str] = None,
            phone: Optional[str] = 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: volcenginecc:cloudmonitor:Contact    get:      id: ${id}
    import {
      to = volcenginecc_cloudmonitor_contact.example
      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.
    The following state arguments are supported:
    ContactGroupIds List<string>
    List of contact group IDs the contact has joined. A single contact can be added to up to 10 contact groups. The value will replace the contact's existing associated groups.
    ContactId string
    Alert contact ID.
    Email string
    Required when updating. Alert email address. Cloud Monitoring will send a verification email to the provided address. You must open the verification link in the email to complete verification. Only after the email address is verified can it receive alert notifications.
    Name string
    Contact name. Cannot start with a digit or hyphen. Can only contain Chinese characters, letters, digits, underscores (_), and hyphens (-). Length must be between 1 and 128 characters.
    Phone string
    Alert phone number. If not provided during update, the original value remains. Cloud Monitoring will send a verification SMS to the provided phone number. You must open the verification link in the SMS to complete verification. Only after the phone number is verified can it receive alert messages.
    ContactGroupIds []string
    List of contact group IDs the contact has joined. A single contact can be added to up to 10 contact groups. The value will replace the contact's existing associated groups.
    ContactId string
    Alert contact ID.
    Email string
    Required when updating. Alert email address. Cloud Monitoring will send a verification email to the provided address. You must open the verification link in the email to complete verification. Only after the email address is verified can it receive alert notifications.
    Name string
    Contact name. Cannot start with a digit or hyphen. Can only contain Chinese characters, letters, digits, underscores (_), and hyphens (-). Length must be between 1 and 128 characters.
    Phone string
    Alert phone number. If not provided during update, the original value remains. Cloud Monitoring will send a verification SMS to the provided phone number. You must open the verification link in the SMS to complete verification. Only after the phone number is verified can it receive alert messages.
    contact_group_ids list(string)
    List of contact group IDs the contact has joined. A single contact can be added to up to 10 contact groups. The value will replace the contact's existing associated groups.
    contact_id string
    Alert contact ID.
    email string
    Required when updating. Alert email address. Cloud Monitoring will send a verification email to the provided address. You must open the verification link in the email to complete verification. Only after the email address is verified can it receive alert notifications.
    name string
    Contact name. Cannot start with a digit or hyphen. Can only contain Chinese characters, letters, digits, underscores (_), and hyphens (-). Length must be between 1 and 128 characters.
    phone string
    Alert phone number. If not provided during update, the original value remains. Cloud Monitoring will send a verification SMS to the provided phone number. You must open the verification link in the SMS to complete verification. Only after the phone number is verified can it receive alert messages.
    contactGroupIds List<String>
    List of contact group IDs the contact has joined. A single contact can be added to up to 10 contact groups. The value will replace the contact's existing associated groups.
    contactId String
    Alert contact ID.
    email String
    Required when updating. Alert email address. Cloud Monitoring will send a verification email to the provided address. You must open the verification link in the email to complete verification. Only after the email address is verified can it receive alert notifications.
    name String
    Contact name. Cannot start with a digit or hyphen. Can only contain Chinese characters, letters, digits, underscores (_), and hyphens (-). Length must be between 1 and 128 characters.
    phone String
    Alert phone number. If not provided during update, the original value remains. Cloud Monitoring will send a verification SMS to the provided phone number. You must open the verification link in the SMS to complete verification. Only after the phone number is verified can it receive alert messages.
    contactGroupIds string[]
    List of contact group IDs the contact has joined. A single contact can be added to up to 10 contact groups. The value will replace the contact's existing associated groups.
    contactId string
    Alert contact ID.
    email string
    Required when updating. Alert email address. Cloud Monitoring will send a verification email to the provided address. You must open the verification link in the email to complete verification. Only after the email address is verified can it receive alert notifications.
    name string
    Contact name. Cannot start with a digit or hyphen. Can only contain Chinese characters, letters, digits, underscores (_), and hyphens (-). Length must be between 1 and 128 characters.
    phone string
    Alert phone number. If not provided during update, the original value remains. Cloud Monitoring will send a verification SMS to the provided phone number. You must open the verification link in the SMS to complete verification. Only after the phone number is verified can it receive alert messages.
    contact_group_ids Sequence[str]
    List of contact group IDs the contact has joined. A single contact can be added to up to 10 contact groups. The value will replace the contact's existing associated groups.
    contact_id str
    Alert contact ID.
    email str
    Required when updating. Alert email address. Cloud Monitoring will send a verification email to the provided address. You must open the verification link in the email to complete verification. Only after the email address is verified can it receive alert notifications.
    name str
    Contact name. Cannot start with a digit or hyphen. Can only contain Chinese characters, letters, digits, underscores (_), and hyphens (-). Length must be between 1 and 128 characters.
    phone str
    Alert phone number. If not provided during update, the original value remains. Cloud Monitoring will send a verification SMS to the provided phone number. You must open the verification link in the SMS to complete verification. Only after the phone number is verified can it receive alert messages.
    contactGroupIds List<String>
    List of contact group IDs the contact has joined. A single contact can be added to up to 10 contact groups. The value will replace the contact's existing associated groups.
    contactId String
    Alert contact ID.
    email String
    Required when updating. Alert email address. Cloud Monitoring will send a verification email to the provided address. You must open the verification link in the email to complete verification. Only after the email address is verified can it receive alert notifications.
    name String
    Contact name. Cannot start with a digit or hyphen. Can only contain Chinese characters, letters, digits, underscores (_), and hyphens (-). Length must be between 1 and 128 characters.
    phone String
    Alert phone number. If not provided during update, the original value remains. Cloud Monitoring will send a verification SMS to the provided phone number. You must open the verification link in the SMS to complete verification. Only after the phone number is verified can it receive alert messages.

    Import

    $ pulumi import volcenginecc:cloudmonitor/contact:Contact example "contact_id"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    volcenginecc volcengine/pulumi-volcenginecc
    License
    MPL-2.0
    Notes
    This Pulumi package is based on the volcenginecc Terraform Provider.
    volcenginecc logo
    Viewing docs for volcenginecc v0.0.55
    published on Thursday, Aug 13, 2026 by Volcengine

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial