1. Packages
  2. Packages
  3. Tencentcloud Provider
  4. API Docs
  5. ConfigAlarmPolicy
Viewing docs for tencentcloud 1.82.93
published on Monday, May 11, 2026 by tencentcloudstack
Viewing docs for tencentcloud 1.82.93
published on Monday, May 11, 2026 by tencentcloudstack

    Create ConfigAlarmPolicy Resource

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

    Constructor syntax

    new ConfigAlarmPolicy(name: string, args: ConfigAlarmPolicyArgs, opts?: CustomResourceOptions);
    @overload
    def ConfigAlarmPolicy(resource_name: str,
                          args: ConfigAlarmPolicyArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def ConfigAlarmPolicy(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          event_scopes: Optional[Sequence[float]] = None,
                          notice_periods: Optional[Sequence[float]] = None,
                          notice_time: Optional[str] = None,
                          notification_mechanism: Optional[str] = None,
                          risk_levels: Optional[Sequence[float]] = None,
                          status: Optional[float] = None,
                          type: Optional[float] = None,
                          config_alarm_policy_id: Optional[str] = None,
                          description: Optional[str] = None,
                          name: Optional[str] = None)
    func NewConfigAlarmPolicy(ctx *Context, name string, args ConfigAlarmPolicyArgs, opts ...ResourceOption) (*ConfigAlarmPolicy, error)
    public ConfigAlarmPolicy(string name, ConfigAlarmPolicyArgs args, CustomResourceOptions? opts = null)
    public ConfigAlarmPolicy(String name, ConfigAlarmPolicyArgs args)
    public ConfigAlarmPolicy(String name, ConfigAlarmPolicyArgs args, CustomResourceOptions options)
    
    type: tencentcloud:ConfigAlarmPolicy
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "tencentcloud_configalarmpolicy" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args ConfigAlarmPolicyArgs
    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 ConfigAlarmPolicyArgs
    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 ConfigAlarmPolicyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ConfigAlarmPolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ConfigAlarmPolicyArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    EventScopes List<double>
    Event scope. Valid values: 1 (current account), 2 (multi-account).
    NoticePeriods List<double>
    Notification weekday list, 1-7 represent Monday to Sunday.
    NoticeTime string
    Notification time range, format: HH:mm:ss~HH:mm:ss (e.g. 09:30:00~23:30:00).
    NotificationMechanism string
    Notification mechanism.
    RiskLevels List<double>
    Risk level list. Valid values: 1 (high risk), 2 (medium risk), 3 (low risk).
    Status double
    Policy status. Valid values: 1 (enabled), 2 (disabled).
    Type double
    Event Type 1: Resource Non Compliance Event.
    ConfigAlarmPolicyId string
    Description string
    Policy description.
    Name string
    Alarm policy name.
    EventScopes []float64
    Event scope. Valid values: 1 (current account), 2 (multi-account).
    NoticePeriods []float64
    Notification weekday list, 1-7 represent Monday to Sunday.
    NoticeTime string
    Notification time range, format: HH:mm:ss~HH:mm:ss (e.g. 09:30:00~23:30:00).
    NotificationMechanism string
    Notification mechanism.
    RiskLevels []float64
    Risk level list. Valid values: 1 (high risk), 2 (medium risk), 3 (low risk).
    Status float64
    Policy status. Valid values: 1 (enabled), 2 (disabled).
    Type float64
    Event Type 1: Resource Non Compliance Event.
    ConfigAlarmPolicyId string
    Description string
    Policy description.
    Name string
    Alarm policy name.
    event_scopes list(number)
    Event scope. Valid values: 1 (current account), 2 (multi-account).
    notice_periods list(number)
    Notification weekday list, 1-7 represent Monday to Sunday.
    notice_time string
    Notification time range, format: HH:mm:ss~HH:mm:ss (e.g. 09:30:00~23:30:00).
    notification_mechanism string
    Notification mechanism.
    risk_levels list(number)
    Risk level list. Valid values: 1 (high risk), 2 (medium risk), 3 (low risk).
    status number
    Policy status. Valid values: 1 (enabled), 2 (disabled).
    type number
    Event Type 1: Resource Non Compliance Event.
    config_alarm_policy_id string
    description string
    Policy description.
    name string
    Alarm policy name.
    eventScopes List<Double>
    Event scope. Valid values: 1 (current account), 2 (multi-account).
    noticePeriods List<Double>
    Notification weekday list, 1-7 represent Monday to Sunday.
    noticeTime String
    Notification time range, format: HH:mm:ss~HH:mm:ss (e.g. 09:30:00~23:30:00).
    notificationMechanism String
    Notification mechanism.
    riskLevels List<Double>
    Risk level list. Valid values: 1 (high risk), 2 (medium risk), 3 (low risk).
    status Double
    Policy status. Valid values: 1 (enabled), 2 (disabled).
    type Double
    Event Type 1: Resource Non Compliance Event.
    configAlarmPolicyId String
    description String
    Policy description.
    name String
    Alarm policy name.
    eventScopes number[]
    Event scope. Valid values: 1 (current account), 2 (multi-account).
    noticePeriods number[]
    Notification weekday list, 1-7 represent Monday to Sunday.
    noticeTime string
    Notification time range, format: HH:mm:ss~HH:mm:ss (e.g. 09:30:00~23:30:00).
    notificationMechanism string
    Notification mechanism.
    riskLevels number[]
    Risk level list. Valid values: 1 (high risk), 2 (medium risk), 3 (low risk).
    status number
    Policy status. Valid values: 1 (enabled), 2 (disabled).
    type number
    Event Type 1: Resource Non Compliance Event.
    configAlarmPolicyId string
    description string
    Policy description.
    name string
    Alarm policy name.
    event_scopes Sequence[float]
    Event scope. Valid values: 1 (current account), 2 (multi-account).
    notice_periods Sequence[float]
    Notification weekday list, 1-7 represent Monday to Sunday.
    notice_time str
    Notification time range, format: HH:mm:ss~HH:mm:ss (e.g. 09:30:00~23:30:00).
    notification_mechanism str
    Notification mechanism.
    risk_levels Sequence[float]
    Risk level list. Valid values: 1 (high risk), 2 (medium risk), 3 (low risk).
    status float
    Policy status. Valid values: 1 (enabled), 2 (disabled).
    type float
    Event Type 1: Resource Non Compliance Event.
    config_alarm_policy_id str
    description str
    Policy description.
    name str
    Alarm policy name.
    eventScopes List<Number>
    Event scope. Valid values: 1 (current account), 2 (multi-account).
    noticePeriods List<Number>
    Notification weekday list, 1-7 represent Monday to Sunday.
    noticeTime String
    Notification time range, format: HH:mm:ss~HH:mm:ss (e.g. 09:30:00~23:30:00).
    notificationMechanism String
    Notification mechanism.
    riskLevels List<Number>
    Risk level list. Valid values: 1 (high risk), 2 (medium risk), 3 (low risk).
    status Number
    Policy status. Valid values: 1 (enabled), 2 (disabled).
    type Number
    Event Type 1: Resource Non Compliance Event.
    configAlarmPolicyId String
    description String
    Policy description.
    name String
    Alarm policy name.

    Outputs

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

    AlarmPolicyId string
    Alarm policy unique ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    AlarmPolicyId string
    Alarm policy unique ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    alarm_policy_id string
    Alarm policy unique ID.
    id string
    The provider-assigned unique ID for this managed resource.
    alarmPolicyId String
    Alarm policy unique ID.
    id String
    The provider-assigned unique ID for this managed resource.
    alarmPolicyId string
    Alarm policy unique ID.
    id string
    The provider-assigned unique ID for this managed resource.
    alarm_policy_id str
    Alarm policy unique ID.
    id str
    The provider-assigned unique ID for this managed resource.
    alarmPolicyId String
    Alarm policy unique ID.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing ConfigAlarmPolicy Resource

    Get an existing ConfigAlarmPolicy 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?: ConfigAlarmPolicyState, opts?: CustomResourceOptions): ConfigAlarmPolicy
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            alarm_policy_id: Optional[str] = None,
            config_alarm_policy_id: Optional[str] = None,
            description: Optional[str] = None,
            event_scopes: Optional[Sequence[float]] = None,
            name: Optional[str] = None,
            notice_periods: Optional[Sequence[float]] = None,
            notice_time: Optional[str] = None,
            notification_mechanism: Optional[str] = None,
            risk_levels: Optional[Sequence[float]] = None,
            status: Optional[float] = None,
            type: Optional[float] = None) -> ConfigAlarmPolicy
    func GetConfigAlarmPolicy(ctx *Context, name string, id IDInput, state *ConfigAlarmPolicyState, opts ...ResourceOption) (*ConfigAlarmPolicy, error)
    public static ConfigAlarmPolicy Get(string name, Input<string> id, ConfigAlarmPolicyState? state, CustomResourceOptions? opts = null)
    public static ConfigAlarmPolicy get(String name, Output<String> id, ConfigAlarmPolicyState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:ConfigAlarmPolicy    get:      id: ${id}
    import {
      to = tencentcloud_configalarmpolicy.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:
    AlarmPolicyId string
    Alarm policy unique ID.
    ConfigAlarmPolicyId string
    Description string
    Policy description.
    EventScopes List<double>
    Event scope. Valid values: 1 (current account), 2 (multi-account).
    Name string
    Alarm policy name.
    NoticePeriods List<double>
    Notification weekday list, 1-7 represent Monday to Sunday.
    NoticeTime string
    Notification time range, format: HH:mm:ss~HH:mm:ss (e.g. 09:30:00~23:30:00).
    NotificationMechanism string
    Notification mechanism.
    RiskLevels List<double>
    Risk level list. Valid values: 1 (high risk), 2 (medium risk), 3 (low risk).
    Status double
    Policy status. Valid values: 1 (enabled), 2 (disabled).
    Type double
    Event Type 1: Resource Non Compliance Event.
    AlarmPolicyId string
    Alarm policy unique ID.
    ConfigAlarmPolicyId string
    Description string
    Policy description.
    EventScopes []float64
    Event scope. Valid values: 1 (current account), 2 (multi-account).
    Name string
    Alarm policy name.
    NoticePeriods []float64
    Notification weekday list, 1-7 represent Monday to Sunday.
    NoticeTime string
    Notification time range, format: HH:mm:ss~HH:mm:ss (e.g. 09:30:00~23:30:00).
    NotificationMechanism string
    Notification mechanism.
    RiskLevels []float64
    Risk level list. Valid values: 1 (high risk), 2 (medium risk), 3 (low risk).
    Status float64
    Policy status. Valid values: 1 (enabled), 2 (disabled).
    Type float64
    Event Type 1: Resource Non Compliance Event.
    alarm_policy_id string
    Alarm policy unique ID.
    config_alarm_policy_id string
    description string
    Policy description.
    event_scopes list(number)
    Event scope. Valid values: 1 (current account), 2 (multi-account).
    name string
    Alarm policy name.
    notice_periods list(number)
    Notification weekday list, 1-7 represent Monday to Sunday.
    notice_time string
    Notification time range, format: HH:mm:ss~HH:mm:ss (e.g. 09:30:00~23:30:00).
    notification_mechanism string
    Notification mechanism.
    risk_levels list(number)
    Risk level list. Valid values: 1 (high risk), 2 (medium risk), 3 (low risk).
    status number
    Policy status. Valid values: 1 (enabled), 2 (disabled).
    type number
    Event Type 1: Resource Non Compliance Event.
    alarmPolicyId String
    Alarm policy unique ID.
    configAlarmPolicyId String
    description String
    Policy description.
    eventScopes List<Double>
    Event scope. Valid values: 1 (current account), 2 (multi-account).
    name String
    Alarm policy name.
    noticePeriods List<Double>
    Notification weekday list, 1-7 represent Monday to Sunday.
    noticeTime String
    Notification time range, format: HH:mm:ss~HH:mm:ss (e.g. 09:30:00~23:30:00).
    notificationMechanism String
    Notification mechanism.
    riskLevels List<Double>
    Risk level list. Valid values: 1 (high risk), 2 (medium risk), 3 (low risk).
    status Double
    Policy status. Valid values: 1 (enabled), 2 (disabled).
    type Double
    Event Type 1: Resource Non Compliance Event.
    alarmPolicyId string
    Alarm policy unique ID.
    configAlarmPolicyId string
    description string
    Policy description.
    eventScopes number[]
    Event scope. Valid values: 1 (current account), 2 (multi-account).
    name string
    Alarm policy name.
    noticePeriods number[]
    Notification weekday list, 1-7 represent Monday to Sunday.
    noticeTime string
    Notification time range, format: HH:mm:ss~HH:mm:ss (e.g. 09:30:00~23:30:00).
    notificationMechanism string
    Notification mechanism.
    riskLevels number[]
    Risk level list. Valid values: 1 (high risk), 2 (medium risk), 3 (low risk).
    status number
    Policy status. Valid values: 1 (enabled), 2 (disabled).
    type number
    Event Type 1: Resource Non Compliance Event.
    alarm_policy_id str
    Alarm policy unique ID.
    config_alarm_policy_id str
    description str
    Policy description.
    event_scopes Sequence[float]
    Event scope. Valid values: 1 (current account), 2 (multi-account).
    name str
    Alarm policy name.
    notice_periods Sequence[float]
    Notification weekday list, 1-7 represent Monday to Sunday.
    notice_time str
    Notification time range, format: HH:mm:ss~HH:mm:ss (e.g. 09:30:00~23:30:00).
    notification_mechanism str
    Notification mechanism.
    risk_levels Sequence[float]
    Risk level list. Valid values: 1 (high risk), 2 (medium risk), 3 (low risk).
    status float
    Policy status. Valid values: 1 (enabled), 2 (disabled).
    type float
    Event Type 1: Resource Non Compliance Event.
    alarmPolicyId String
    Alarm policy unique ID.
    configAlarmPolicyId String
    description String
    Policy description.
    eventScopes List<Number>
    Event scope. Valid values: 1 (current account), 2 (multi-account).
    name String
    Alarm policy name.
    noticePeriods List<Number>
    Notification weekday list, 1-7 represent Monday to Sunday.
    noticeTime String
    Notification time range, format: HH:mm:ss~HH:mm:ss (e.g. 09:30:00~23:30:00).
    notificationMechanism String
    Notification mechanism.
    riskLevels List<Number>
    Risk level list. Valid values: 1 (high risk), 2 (medium risk), 3 (low risk).
    status Number
    Policy status. Valid values: 1 (enabled), 2 (disabled).
    type Number
    Event Type 1: Resource Non Compliance Event.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    Viewing docs for tencentcloud 1.82.93
    published on Monday, May 11, 2026 by tencentcloudstack
      Try Pulumi Cloud free. Your team will thank you.