Viewing docs for tencentcloud 1.82.93
published on Monday, May 11, 2026 by tencentcloudstack
published on Monday, May 11, 2026 by tencentcloudstack
Viewing docs for tencentcloud 1.82.93
published on Monday, May 11, 2026 by tencentcloudstack
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:
- Event
Scopes List<double> - Event scope. Valid values: 1 (current account), 2 (multi-account).
- Notice
Periods List<double> - 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<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.
- Config
Alarm stringPolicy Id - Description string
- Policy description.
- Name string
- Alarm policy name.
- Event
Scopes []float64 - Event scope. Valid values: 1 (current account), 2 (multi-account).
- Notice
Periods []float64 - 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 []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.
- Config
Alarm stringPolicy Id - 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_ stringpolicy_ id - description string
- Policy description.
- name string
- Alarm policy name.
- event
Scopes List<Double> - Event scope. Valid values: 1 (current account), 2 (multi-account).
- notice
Periods List<Double> - 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<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.
- config
Alarm StringPolicy Id - description String
- Policy description.
- name String
- Alarm policy name.
- event
Scopes number[] - Event scope. Valid values: 1 (current account), 2 (multi-account).
- notice
Periods 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 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 stringPolicy Id - 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_ strpolicy_ id - description str
- Policy description.
- name str
- 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 StringPolicy Id - 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:
- Alarm
Policy stringId - Alarm policy unique ID.
- Id string
- The provider-assigned unique ID for this managed resource.
- Alarm
Policy stringId - Alarm policy unique ID.
- Id string
- The provider-assigned unique ID for this managed resource.
- alarm_
policy_ stringid - Alarm policy unique ID.
- id string
- The provider-assigned unique ID for this managed resource.
- alarm
Policy StringId - Alarm policy unique ID.
- id String
- The provider-assigned unique ID for this managed resource.
- alarm
Policy stringId - Alarm policy unique ID.
- id string
- The provider-assigned unique ID for this managed resource.
- alarm_
policy_ strid - Alarm policy unique ID.
- id str
- The provider-assigned unique ID for this managed resource.
- alarm
Policy StringId - 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) -> ConfigAlarmPolicyfunc 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.
- Alarm
Policy stringId - Alarm policy unique ID.
- Config
Alarm stringPolicy Id - Description string
- Policy description.
- Event
Scopes List<double> - Event scope. Valid values: 1 (current account), 2 (multi-account).
- Name string
- Alarm policy name.
- Notice
Periods List<double> - 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<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.
- Alarm
Policy stringId - Alarm policy unique ID.
- Config
Alarm stringPolicy Id - Description string
- Policy description.
- Event
Scopes []float64 - Event scope. Valid values: 1 (current account), 2 (multi-account).
- Name string
- Alarm policy name.
- Notice
Periods []float64 - 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 []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_ stringid - Alarm policy unique ID.
- config_
alarm_ stringpolicy_ id - 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.
- alarm
Policy StringId - Alarm policy unique ID.
- config
Alarm StringPolicy Id - description String
- Policy description.
- event
Scopes List<Double> - Event scope. Valid values: 1 (current account), 2 (multi-account).
- name String
- Alarm policy name.
- notice
Periods List<Double> - 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<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.
- alarm
Policy stringId - Alarm policy unique ID.
- config
Alarm stringPolicy Id - description string
- Policy description.
- event
Scopes number[] - Event scope. Valid values: 1 (current account), 2 (multi-account).
- name string
- Alarm policy name.
- notice
Periods 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 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_ strid - Alarm policy unique ID.
- config_
alarm_ strpolicy_ id - 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.
- alarm
Policy StringId - Alarm policy unique ID.
- config
Alarm StringPolicy Id - 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.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
Viewing docs for tencentcloud 1.82.93
published on Monday, May 11, 2026 by tencentcloudstack
published on Monday, May 11, 2026 by tencentcloudstack
