1. Packages
  2. Volcengine
  3. API Docs
  4. cloud_monitor
  5. ContactGroup
Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine

volcengine.cloud_monitor.ContactGroup

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine

    Provides a resource to manage cloud monitor contact group

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = new Volcengine.Cloud_monitor.ContactGroup("foo", new()
        {
            ContactsIdLists = new[]
            {
                "1737376113733353472",
                "1737375997680111616",
            },
            Description = "tftest",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/cloud_monitor"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloud_monitor.NewContactGroup(ctx, "foo", &cloud_monitor.ContactGroupArgs{
    			ContactsIdLists: pulumi.StringArray{
    				pulumi.String("1737376113733353472"),
    				pulumi.String("1737375997680111616"),
    			},
    			Description: pulumi.String("tftest"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.volcengine.cloud_monitor.ContactGroup;
    import com.pulumi.volcengine.cloud_monitor.ContactGroupArgs;
    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 ContactGroup("foo", ContactGroupArgs.builder()        
                .contactsIdLists(            
                    "1737376113733353472",
                    "1737375997680111616")
                .description("tftest")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo = volcengine.cloud_monitor.ContactGroup("foo",
        contacts_id_lists=[
            "1737376113733353472",
            "1737375997680111616",
        ],
        description="tftest")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@volcengine/pulumi";
    
    const foo = new volcengine.cloud_monitor.ContactGroup("foo", {
        contactsIdLists: [
            "1737376113733353472",
            "1737375997680111616",
        ],
        description: "tftest",
    });
    
    resources:
      foo:
        type: volcengine:cloud_monitor:ContactGroup
        properties:
          contactsIdLists:
            - '1737376113733353472'
            - '1737375997680111616'
          description: tftest
    

    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: Optional[ContactGroupArgs] = None,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def ContactGroup(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     contacts_id_lists: Optional[Sequence[str]] = None,
                     description: Optional[str] = None,
                     name: Optional[str] = None)
    func NewContactGroup(ctx *Context, name string, args *ContactGroupArgs, opts ...ResourceOption) (*ContactGroup, error)
    public ContactGroup(string name, ContactGroupArgs? args = null, CustomResourceOptions? opts = null)
    public ContactGroup(String name, ContactGroupArgs args)
    public ContactGroup(String name, ContactGroupArgs args, CustomResourceOptions options)
    
    type: volcengine:cloud_monitor:ContactGroup
    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 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 Volcengine.Cloud_monitor.ContactGroup("contactGroupResource", new()
    {
        ContactsIdLists = new[]
        {
            "string",
        },
        Description = "string",
        Name = "string",
    });
    
    example, err := cloud_monitor.NewContactGroup(ctx, "contactGroupResource", &cloud_monitor.ContactGroupArgs{
    	ContactsIdLists: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Description: pulumi.String("string"),
    	Name:        pulumi.String("string"),
    })
    
    var contactGroupResource = new ContactGroup("contactGroupResource", ContactGroupArgs.builder()
        .contactsIdLists("string")
        .description("string")
        .name("string")
        .build());
    
    contact_group_resource = volcengine.cloud_monitor.ContactGroup("contactGroupResource",
        contacts_id_lists=["string"],
        description="string",
        name="string")
    
    const contactGroupResource = new volcengine.cloud_monitor.ContactGroup("contactGroupResource", {
        contactsIdLists: ["string"],
        description: "string",
        name: "string",
    });
    
    type: volcengine:cloud_monitor:ContactGroup
    properties:
        contactsIdLists:
            - 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

    The ContactGroup resource accepts the following input properties:

    ContactsIdLists List<string>
    When creating a contact group, contacts should be added with their contact ID. The maximum number of IDs allowed is 10, meaning that the maximum number of members in a single contact group is 10.
    Description string
    The description of the contact group.
    Name string
    The name of the contact group.
    ContactsIdLists []string
    When creating a contact group, contacts should be added with their contact ID. The maximum number of IDs allowed is 10, meaning that the maximum number of members in a single contact group is 10.
    Description string
    The description of the contact group.
    Name string
    The name of the contact group.
    contactsIdLists List<String>
    When creating a contact group, contacts should be added with their contact ID. The maximum number of IDs allowed is 10, meaning that the maximum number of members in a single contact group is 10.
    description String
    The description of the contact group.
    name String
    The name of the contact group.
    contactsIdLists string[]
    When creating a contact group, contacts should be added with their contact ID. The maximum number of IDs allowed is 10, meaning that the maximum number of members in a single contact group is 10.
    description string
    The description of the contact group.
    name string
    The name of the contact group.
    contacts_id_lists Sequence[str]
    When creating a contact group, contacts should be added with their contact ID. The maximum number of IDs allowed is 10, meaning that the maximum number of members in a single contact group is 10.
    description str
    The description of the contact group.
    name str
    The name of the contact group.
    contactsIdLists List<String>
    When creating a contact group, contacts should be added with their contact ID. The maximum number of IDs allowed is 10, meaning that the maximum number of members in a single contact group is 10.
    description String
    The description of the contact group.
    name String
    The name of the contact group.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    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,
            contacts_id_lists: Optional[Sequence[str]] = None,
            description: Optional[str] = None,
            name: Optional[str] = None) -> ContactGroup
    func 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)
    Resource lookup is not supported in YAML
    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:
    ContactsIdLists List<string>
    When creating a contact group, contacts should be added with their contact ID. The maximum number of IDs allowed is 10, meaning that the maximum number of members in a single contact group is 10.
    Description string
    The description of the contact group.
    Name string
    The name of the contact group.
    ContactsIdLists []string
    When creating a contact group, contacts should be added with their contact ID. The maximum number of IDs allowed is 10, meaning that the maximum number of members in a single contact group is 10.
    Description string
    The description of the contact group.
    Name string
    The name of the contact group.
    contactsIdLists List<String>
    When creating a contact group, contacts should be added with their contact ID. The maximum number of IDs allowed is 10, meaning that the maximum number of members in a single contact group is 10.
    description String
    The description of the contact group.
    name String
    The name of the contact group.
    contactsIdLists string[]
    When creating a contact group, contacts should be added with their contact ID. The maximum number of IDs allowed is 10, meaning that the maximum number of members in a single contact group is 10.
    description string
    The description of the contact group.
    name string
    The name of the contact group.
    contacts_id_lists Sequence[str]
    When creating a contact group, contacts should be added with their contact ID. The maximum number of IDs allowed is 10, meaning that the maximum number of members in a single contact group is 10.
    description str
    The description of the contact group.
    name str
    The name of the contact group.
    contactsIdLists List<String>
    When creating a contact group, contacts should be added with their contact ID. The maximum number of IDs allowed is 10, meaning that the maximum number of members in a single contact group is 10.
    description String
    The description of the contact group.
    name String
    The name of the contact group.

    Import

    CloudMonitorContactGroup can be imported using the id, e.g.

     $ pulumi import volcengine:cloud_monitor/contactGroup:ContactGroup default resource_id
    

    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.
    volcengine logo
    Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine