1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. MonitorAlarmPolicySetDefault
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.MonitorAlarmPolicySetDefault

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provides a resource to create a monitor policy_set_default

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const policySetDefault = new tencentcloud.MonitorAlarmPolicySetDefault("policySetDefault", {
        module: "monitor",
        policyId: "policy-u4iykjkt",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    policy_set_default = tencentcloud.MonitorAlarmPolicySetDefault("policySetDefault",
        module="monitor",
        policy_id="policy-u4iykjkt")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.NewMonitorAlarmPolicySetDefault(ctx, "policySetDefault", &tencentcloud.MonitorAlarmPolicySetDefaultArgs{
    			Module:   pulumi.String("monitor"),
    			PolicyId: pulumi.String("policy-u4iykjkt"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var policySetDefault = new Tencentcloud.MonitorAlarmPolicySetDefault("policySetDefault", new()
        {
            Module = "monitor",
            PolicyId = "policy-u4iykjkt",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.MonitorAlarmPolicySetDefault;
    import com.pulumi.tencentcloud.MonitorAlarmPolicySetDefaultArgs;
    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 policySetDefault = new MonitorAlarmPolicySetDefault("policySetDefault", MonitorAlarmPolicySetDefaultArgs.builder()
                .module("monitor")
                .policyId("policy-u4iykjkt")
                .build());
    
        }
    }
    
    resources:
      policySetDefault:
        type: tencentcloud:MonitorAlarmPolicySetDefault
        properties:
          module: monitor
          policyId: policy-u4iykjkt
    

    Create MonitorAlarmPolicySetDefault Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new MonitorAlarmPolicySetDefault(name: string, args: MonitorAlarmPolicySetDefaultArgs, opts?: CustomResourceOptions);
    @overload
    def MonitorAlarmPolicySetDefault(resource_name: str,
                                     args: MonitorAlarmPolicySetDefaultArgs,
                                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def MonitorAlarmPolicySetDefault(resource_name: str,
                                     opts: Optional[ResourceOptions] = None,
                                     module: Optional[str] = None,
                                     policy_id: Optional[str] = None,
                                     monitor_alarm_policy_set_default_id: Optional[str] = None)
    func NewMonitorAlarmPolicySetDefault(ctx *Context, name string, args MonitorAlarmPolicySetDefaultArgs, opts ...ResourceOption) (*MonitorAlarmPolicySetDefault, error)
    public MonitorAlarmPolicySetDefault(string name, MonitorAlarmPolicySetDefaultArgs args, CustomResourceOptions? opts = null)
    public MonitorAlarmPolicySetDefault(String name, MonitorAlarmPolicySetDefaultArgs args)
    public MonitorAlarmPolicySetDefault(String name, MonitorAlarmPolicySetDefaultArgs args, CustomResourceOptions options)
    
    type: tencentcloud:MonitorAlarmPolicySetDefault
    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 MonitorAlarmPolicySetDefaultArgs
    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 MonitorAlarmPolicySetDefaultArgs
    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 MonitorAlarmPolicySetDefaultArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args MonitorAlarmPolicySetDefaultArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args MonitorAlarmPolicySetDefaultArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    MonitorAlarmPolicySetDefault 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 MonitorAlarmPolicySetDefault resource accepts the following input properties:

    Module string
    Fixed value, as monitor.
    PolicyId string
    Policy id.
    MonitorAlarmPolicySetDefaultId string
    ID of the resource.
    Module string
    Fixed value, as monitor.
    PolicyId string
    Policy id.
    MonitorAlarmPolicySetDefaultId string
    ID of the resource.
    module String
    Fixed value, as monitor.
    policyId String
    Policy id.
    monitorAlarmPolicySetDefaultId String
    ID of the resource.
    module string
    Fixed value, as monitor.
    policyId string
    Policy id.
    monitorAlarmPolicySetDefaultId string
    ID of the resource.
    module str
    Fixed value, as monitor.
    policy_id str
    Policy id.
    monitor_alarm_policy_set_default_id str
    ID of the resource.
    module String
    Fixed value, as monitor.
    policyId String
    Policy id.
    monitorAlarmPolicySetDefaultId String
    ID of the resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the MonitorAlarmPolicySetDefault 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 MonitorAlarmPolicySetDefault Resource

    Get an existing MonitorAlarmPolicySetDefault 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?: MonitorAlarmPolicySetDefaultState, opts?: CustomResourceOptions): MonitorAlarmPolicySetDefault
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            module: Optional[str] = None,
            monitor_alarm_policy_set_default_id: Optional[str] = None,
            policy_id: Optional[str] = None) -> MonitorAlarmPolicySetDefault
    func GetMonitorAlarmPolicySetDefault(ctx *Context, name string, id IDInput, state *MonitorAlarmPolicySetDefaultState, opts ...ResourceOption) (*MonitorAlarmPolicySetDefault, error)
    public static MonitorAlarmPolicySetDefault Get(string name, Input<string> id, MonitorAlarmPolicySetDefaultState? state, CustomResourceOptions? opts = null)
    public static MonitorAlarmPolicySetDefault get(String name, Output<String> id, MonitorAlarmPolicySetDefaultState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:MonitorAlarmPolicySetDefault    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.
    The following state arguments are supported:
    Module string
    Fixed value, as monitor.
    MonitorAlarmPolicySetDefaultId string
    ID of the resource.
    PolicyId string
    Policy id.
    Module string
    Fixed value, as monitor.
    MonitorAlarmPolicySetDefaultId string
    ID of the resource.
    PolicyId string
    Policy id.
    module String
    Fixed value, as monitor.
    monitorAlarmPolicySetDefaultId String
    ID of the resource.
    policyId String
    Policy id.
    module string
    Fixed value, as monitor.
    monitorAlarmPolicySetDefaultId string
    ID of the resource.
    policyId string
    Policy id.
    module str
    Fixed value, as monitor.
    monitor_alarm_policy_set_default_id str
    ID of the resource.
    policy_id str
    Policy id.
    module String
    Fixed value, as monitor.
    monitorAlarmPolicySetDefaultId String
    ID of the resource.
    policyId String
    Policy id.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack