published on Thursday, Jul 16, 2026 by Byteplus
published on Thursday, Jul 16, 2026 by Byteplus
Details of contact groups that meet the criteria
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as bytepluscc from "@byteplus/pulumi-bytepluscc";
const cloudMonitorContactGroupDemo = new bytepluscc.cloudmonitor.ContactGroup("CloudMonitorContactGroupDemo", {
name: "TestContactGroup",
description: "TestContactGroup Description",
contacts: [
{
contact_id: "20562729774143xxxx",
},
{
contact_id: "20562729184541xxxx",
},
{
contact_id: "20562728672541xxxx",
},
],
});
import pulumi
import pulumi_bytepluscc as bytepluscc
cloud_monitor_contact_group_demo = bytepluscc.cloudmonitor.ContactGroup("CloudMonitorContactGroupDemo",
name="TestContactGroup",
description="TestContactGroup Description",
contacts=[
{
"contact_id": "20562729774143xxxx",
},
{
"contact_id": "20562729184541xxxx",
},
{
"contact_id": "20562728672541xxxx",
},
])
package main
import (
"github.com/byteplus-sdk/pulumi-bytepluscc/sdk/go/bytepluscc/cloudmonitor"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudmonitor.NewContactGroup(ctx, "CloudMonitorContactGroupDemo", &cloudmonitor.ContactGroupArgs{
Name: pulumi.String("TestContactGroup"),
Description: pulumi.String("TestContactGroup Description"),
Contacts: cloudmonitor.ContactGroupContactArray{
&cloudmonitor.ContactGroupContactArgs{
Contact_id: "20562729774143xxxx",
},
&cloudmonitor.ContactGroupContactArgs{
Contact_id: "20562729184541xxxx",
},
&cloudmonitor.ContactGroupContactArgs{
Contact_id: "20562728672541xxxx",
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Bytepluscc = Byteplus.Pulumi.Bytepluscc;
return await Deployment.RunAsync(() =>
{
var cloudMonitorContactGroupDemo = new Bytepluscc.Cloudmonitor.ContactGroup("CloudMonitorContactGroupDemo", new()
{
Name = "TestContactGroup",
Description = "TestContactGroup Description",
Contacts = new[]
{
new Bytepluscc.Cloudmonitor.Inputs.ContactGroupContactArgs
{
Contact_id = "20562729774143xxxx",
},
new Bytepluscc.Cloudmonitor.Inputs.ContactGroupContactArgs
{
Contact_id = "20562729184541xxxx",
},
new Bytepluscc.Cloudmonitor.Inputs.ContactGroupContactArgs
{
Contact_id = "20562728672541xxxx",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.byteplus.bytepluscc.cloudmonitor.ContactGroup;
import com.byteplus.bytepluscc.cloudmonitor.ContactGroupArgs;
import com.pulumi.bytepluscc.cloudmonitor.inputs.ContactGroupContactArgs;
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 cloudMonitorContactGroupDemo = new ContactGroup("cloudMonitorContactGroupDemo", ContactGroupArgs.builder()
.name("TestContactGroup")
.description("TestContactGroup Description")
.contacts(
ContactGroupContactArgs.builder()
.contact_id("20562729774143xxxx")
.build(),
ContactGroupContactArgs.builder()
.contact_id("20562729184541xxxx")
.build(),
ContactGroupContactArgs.builder()
.contact_id("20562728672541xxxx")
.build())
.build());
}
}
resources:
cloudMonitorContactGroupDemo:
type: bytepluscc:cloudmonitor:ContactGroup
name: CloudMonitorContactGroupDemo
properties:
name: TestContactGroup
description: TestContactGroup Description
contacts:
- contact_id: 20562729774143xxxx
- contact_id: 20562729184541xxxx
- contact_id: 20562728672541xxxx
pulumi {
required_providers {
bytepluscc = {
source = "pulumi/bytepluscc"
}
}
}
resource "bytepluscc_cloudmonitor_contactgroup" "CloudMonitorContactGroupDemo" {
name = "TestContactGroup"
description = "TestContactGroup Description"
contacts {
contact_id = "20562729774143xxxx"
}
contacts {
contact_id = "20562729184541xxxx"
}
contacts {
contact_id = "20562728672541xxxx"
}
}
Create ContactGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ContactGroup(name: string, args: ContactGroupArgs, opts?: CustomResourceOptions);@overload
def ContactGroup(resource_name: str,
args: ContactGroupArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ContactGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
name: Optional[str] = None,
contacts: Optional[Sequence[ContactGroupContactArgs]] = None,
description: Optional[str] = None)func NewContactGroup(ctx *Context, name string, args ContactGroupArgs, opts ...ResourceOption) (*ContactGroup, error)public ContactGroup(string name, ContactGroupArgs args, CustomResourceOptions? opts = null)
public ContactGroup(String name, ContactGroupArgs args)
public ContactGroup(String name, ContactGroupArgs args, CustomResourceOptions options)
type: bytepluscc:cloudmonitor:ContactGroup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "bytepluscc_cloudmonitor_contactgroup" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args ContactGroupArgs
- 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 ContactGroupArgs
- 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 ContactGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ContactGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ContactGroupArgs
- 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 contactGroupResource = new Bytepluscc.Cloudmonitor.ContactGroup("contactGroupResource", new()
{
Name = "string",
Contacts = new[]
{
new Bytepluscc.Cloudmonitor.Inputs.ContactGroupContactArgs
{
ContactId = "string",
},
},
Description = "string",
});
example, err := cloudmonitor.NewContactGroup(ctx, "contactGroupResource", &cloudmonitor.ContactGroupArgs{
Name: pulumi.String("string"),
Contacts: cloudmonitor.ContactGroupContactArray{
&cloudmonitor.ContactGroupContactArgs{
ContactId: pulumi.String("string"),
},
},
Description: pulumi.String("string"),
})
resource "bytepluscc_cloudmonitor_contactgroup" "contactGroupResource" {
name = "string"
contacts {
contact_id = "string"
}
description = "string"
}
var contactGroupResource = new ContactGroup("contactGroupResource", ContactGroupArgs.builder()
.name("string")
.contacts(ContactGroupContactArgs.builder()
.contactId("string")
.build())
.description("string")
.build());
contact_group_resource = bytepluscc.cloudmonitor.ContactGroup("contactGroupResource",
name="string",
contacts=[{
"contact_id": "string",
}],
description="string")
const contactGroupResource = new bytepluscc.cloudmonitor.ContactGroup("contactGroupResource", {
name: "string",
contacts: [{
contactId: "string",
}],
description: "string",
});
type: bytepluscc:cloudmonitor:ContactGroup
properties:
contacts:
- contactId: string
description: string
name: string
ContactGroup 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 ContactGroup resource accepts the following input properties:
- Name string
- Contact group 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
- Contacts
List<Byteplus.
Contact Group Contact> - Contact information in the contact group Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- Description string
- Contact group description. If left blank, defaults to an empty string. Length must be between 1 and 255 characters. Chinese, English, underscores, and other special characters are allowed
- Name string
- Contact group 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
- Contacts
[]Contact
Group Contact Args - Contact information in the contact group Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- Description string
- Contact group description. If left blank, defaults to an empty string. Length must be between 1 and 255 characters. Chinese, English, underscores, and other special characters are allowed
- name string
- Contact group 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
- contacts list(object)
- Contact information in the contact group Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- description string
- Contact group description. If left blank, defaults to an empty string. Length must be between 1 and 255 characters. Chinese, English, underscores, and other special characters are allowed
- name String
- Contact group 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
- contacts
List<Contact
Group Contact> - Contact information in the contact group Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- description String
- Contact group description. If left blank, defaults to an empty string. Length must be between 1 and 255 characters. Chinese, English, underscores, and other special characters are allowed
- name string
- Contact group 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
- contacts
Contact
Group Contact[] - Contact information in the contact group Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- description string
- Contact group description. If left blank, defaults to an empty string. Length must be between 1 and 255 characters. Chinese, English, underscores, and other special characters are allowed
- name str
- Contact group 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
- contacts
Sequence[Contact
Group Contact Args] - Contact information in the contact group Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- description str
- Contact group description. If left blank, defaults to an empty string. Length must be between 1 and 255 characters. Chinese, English, underscores, and other special characters are allowed
- name String
- Contact group 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
- contacts List<Property Map>
- Contact information in the contact group Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- description String
- Contact group description. If left blank, defaults to an empty string. Length must be between 1 and 255 characters. Chinese, English, underscores, and other special characters are allowed
Outputs
All input properties are implicitly available as output properties. Additionally, the ContactGroup resource produces the following output properties:
- Account
Id string - Account ID that created this contact group
- Contact
Group stringId - Contact group ID
- Created
At string - Contact group creation time
- Id string
- The provider-assigned unique ID for this managed resource.
- Updated
At string - Contact group update time
- Account
Id string - Account ID that created this contact group
- Contact
Group stringId - Contact group ID
- Created
At string - Contact group creation time
- Id string
- The provider-assigned unique ID for this managed resource.
- Updated
At string - Contact group update time
- account_
id string - Account ID that created this contact group
- contact_
group_ stringid - Contact group ID
- created_
at string - Contact group creation time
- id string
- The provider-assigned unique ID for this managed resource.
- updated_
at string - Contact group update time
- account
Id String - Account ID that created this contact group
- contact
Group StringId - Contact group ID
- created
At String - Contact group creation time
- id String
- The provider-assigned unique ID for this managed resource.
- updated
At String - Contact group update time
- account
Id string - Account ID that created this contact group
- contact
Group stringId - Contact group ID
- created
At string - Contact group creation time
- id string
- The provider-assigned unique ID for this managed resource.
- updated
At string - Contact group update time
- account_
id str - Account ID that created this contact group
- contact_
group_ strid - Contact group ID
- created_
at str - Contact group creation time
- id str
- The provider-assigned unique ID for this managed resource.
- updated_
at str - Contact group update time
- account
Id String - Account ID that created this contact group
- contact
Group StringId - Contact group ID
- created
At String - Contact group creation time
- id String
- The provider-assigned unique ID for this managed resource.
- updated
At String - Contact group update time
Look up Existing ContactGroup Resource
Get an existing ContactGroup 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?: ContactGroupState, opts?: CustomResourceOptions): ContactGroup@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
contact_group_id: Optional[str] = None,
contacts: Optional[Sequence[ContactGroupContactArgs]] = None,
created_at: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
updated_at: Optional[str] = None) -> ContactGroupfunc GetContactGroup(ctx *Context, name string, id IDInput, state *ContactGroupState, opts ...ResourceOption) (*ContactGroup, error)public static ContactGroup Get(string name, Input<string> id, ContactGroupState? state, CustomResourceOptions? opts = null)public static ContactGroup get(String name, Output<String> id, ContactGroupState state, CustomResourceOptions options)resources: _: type: bytepluscc:cloudmonitor:ContactGroup get: id: ${id}import {
to = bytepluscc_cloudmonitor_contactgroup.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.
- Account
Id string - Account ID that created this contact group
- Contact
Group stringId - Contact group ID
- Contacts
List<Byteplus.
Contact Group Contact> - Contact information in the contact group Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- Created
At string - Contact group creation time
- Description string
- Contact group description. If left blank, defaults to an empty string. Length must be between 1 and 255 characters. Chinese, English, underscores, and other special characters are allowed
- Name string
- Contact group 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
- Updated
At string - Contact group update time
- Account
Id string - Account ID that created this contact group
- Contact
Group stringId - Contact group ID
- Contacts
[]Contact
Group Contact Args - Contact information in the contact group Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- Created
At string - Contact group creation time
- Description string
- Contact group description. If left blank, defaults to an empty string. Length must be between 1 and 255 characters. Chinese, English, underscores, and other special characters are allowed
- Name string
- Contact group 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
- Updated
At string - Contact group update time
- account_
id string - Account ID that created this contact group
- contact_
group_ stringid - Contact group ID
- contacts list(object)
- Contact information in the contact group Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- created_
at string - Contact group creation time
- description string
- Contact group description. If left blank, defaults to an empty string. Length must be between 1 and 255 characters. Chinese, English, underscores, and other special characters are allowed
- name string
- Contact group 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
- updated_
at string - Contact group update time
- account
Id String - Account ID that created this contact group
- contact
Group StringId - Contact group ID
- contacts
List<Contact
Group Contact> - Contact information in the contact group Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- created
At String - Contact group creation time
- description String
- Contact group description. If left blank, defaults to an empty string. Length must be between 1 and 255 characters. Chinese, English, underscores, and other special characters are allowed
- name String
- Contact group 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
- updated
At String - Contact group update time
- account
Id string - Account ID that created this contact group
- contact
Group stringId - Contact group ID
- contacts
Contact
Group Contact[] - Contact information in the contact group Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- created
At string - Contact group creation time
- description string
- Contact group description. If left blank, defaults to an empty string. Length must be between 1 and 255 characters. Chinese, English, underscores, and other special characters are allowed
- name string
- Contact group 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
- updated
At string - Contact group update time
- account_
id str - Account ID that created this contact group
- contact_
group_ strid - Contact group ID
- contacts
Sequence[Contact
Group Contact Args] - Contact information in the contact group Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- created_
at str - Contact group creation time
- description str
- Contact group description. If left blank, defaults to an empty string. Length must be between 1 and 255 characters. Chinese, English, underscores, and other special characters are allowed
- name str
- Contact group 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
- updated_
at str - Contact group update time
- account
Id String - Account ID that created this contact group
- contact
Group StringId - Contact group ID
- contacts List<Property Map>
- Contact information in the contact group Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- created
At String - Contact group creation time
- description String
- Contact group description. If left blank, defaults to an empty string. Length must be between 1 and 255 characters. Chinese, English, underscores, and other special characters are allowed
- name String
- Contact group 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
- updated
At String - Contact group update time
Supporting Types
ContactGroupContact, ContactGroupContactArgs
- Contact
Id string - Contact ID
- Contact
Id string - Contact ID
- contact_
id string - Contact ID
- contact
Id String - Contact ID
- contact
Id string - Contact ID
- contact_
id str - Contact ID
- contact
Id String - Contact ID
Import
$ pulumi import bytepluscc:cloudmonitor/contactGroup:ContactGroup example "contact_group_id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- bytepluscc byteplus-sdk/pulumi-bytepluscc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
byteplusccTerraform Provider.
published on Thursday, Jul 16, 2026 by Byteplus