1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. cloudfirewall
  5. UserAlarmConfig
Alibaba Cloud v3.95.0 published on Thursday, Feb 12, 2026 by Pulumi
alicloud logo
Alibaba Cloud v3.95.0 published on Thursday, Feb 12, 2026 by Pulumi

    Import

    Cloud Firewall User Alarm Config can be imported using the Account ID, e.g.

    $ pulumi import alicloud:cloudfirewall/userAlarmConfig:UserAlarmConfig example <Alibaba Cloud Account ID>
    

    Create UserAlarmConfig Resource

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

    Constructor syntax

    new UserAlarmConfig(name: string, args: UserAlarmConfigArgs, opts?: CustomResourceOptions);
    @overload
    def UserAlarmConfig(resource_name: str,
                        args: UserAlarmConfigArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def UserAlarmConfig(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        alarm_configs: Optional[Sequence[UserAlarmConfigAlarmConfigArgs]] = None,
                        alarm_lang: Optional[str] = None,
                        contact_configs: Optional[Sequence[UserAlarmConfigContactConfigArgs]] = None,
                        lang: Optional[str] = None,
                        notify_configs: Optional[Sequence[UserAlarmConfigNotifyConfigArgs]] = None,
                        use_default_contact: Optional[str] = None)
    func NewUserAlarmConfig(ctx *Context, name string, args UserAlarmConfigArgs, opts ...ResourceOption) (*UserAlarmConfig, error)
    public UserAlarmConfig(string name, UserAlarmConfigArgs args, CustomResourceOptions? opts = null)
    public UserAlarmConfig(String name, UserAlarmConfigArgs args)
    public UserAlarmConfig(String name, UserAlarmConfigArgs args, CustomResourceOptions options)
    
    type: alicloud:cloudfirewall:UserAlarmConfig
    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 UserAlarmConfigArgs
    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 UserAlarmConfigArgs
    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 UserAlarmConfigArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args UserAlarmConfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args UserAlarmConfigArgs
    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 userAlarmConfigResource = new AliCloud.CloudFirewall.UserAlarmConfig("userAlarmConfigResource", new()
    {
        AlarmConfigs = new[]
        {
            new AliCloud.CloudFirewall.Inputs.UserAlarmConfigAlarmConfigArgs
            {
                AlarmHour = "string",
                AlarmNotify = "string",
                AlarmPeriod = "string",
                AlarmType = "string",
                AlarmValue = "string",
                AlarmWeekDay = "string",
            },
        },
        AlarmLang = "string",
        ContactConfigs = new[]
        {
            new AliCloud.CloudFirewall.Inputs.UserAlarmConfigContactConfigArgs
            {
                Email = "string",
                MobilePhone = "string",
                Name = "string",
                Status = "string",
            },
        },
        Lang = "string",
        NotifyConfigs = new[]
        {
            new AliCloud.CloudFirewall.Inputs.UserAlarmConfigNotifyConfigArgs
            {
                NotifyType = "string",
                NotifyValue = "string",
            },
        },
        UseDefaultContact = "string",
    });
    
    example, err := cloudfirewall.NewUserAlarmConfig(ctx, "userAlarmConfigResource", &cloudfirewall.UserAlarmConfigArgs{
    	AlarmConfigs: cloudfirewall.UserAlarmConfigAlarmConfigArray{
    		&cloudfirewall.UserAlarmConfigAlarmConfigArgs{
    			AlarmHour:    pulumi.String("string"),
    			AlarmNotify:  pulumi.String("string"),
    			AlarmPeriod:  pulumi.String("string"),
    			AlarmType:    pulumi.String("string"),
    			AlarmValue:   pulumi.String("string"),
    			AlarmWeekDay: pulumi.String("string"),
    		},
    	},
    	AlarmLang: pulumi.String("string"),
    	ContactConfigs: cloudfirewall.UserAlarmConfigContactConfigArray{
    		&cloudfirewall.UserAlarmConfigContactConfigArgs{
    			Email:       pulumi.String("string"),
    			MobilePhone: pulumi.String("string"),
    			Name:        pulumi.String("string"),
    			Status:      pulumi.String("string"),
    		},
    	},
    	Lang: pulumi.String("string"),
    	NotifyConfigs: cloudfirewall.UserAlarmConfigNotifyConfigArray{
    		&cloudfirewall.UserAlarmConfigNotifyConfigArgs{
    			NotifyType:  pulumi.String("string"),
    			NotifyValue: pulumi.String("string"),
    		},
    	},
    	UseDefaultContact: pulumi.String("string"),
    })
    
    var userAlarmConfigResource = new UserAlarmConfig("userAlarmConfigResource", UserAlarmConfigArgs.builder()
        .alarmConfigs(UserAlarmConfigAlarmConfigArgs.builder()
            .alarmHour("string")
            .alarmNotify("string")
            .alarmPeriod("string")
            .alarmType("string")
            .alarmValue("string")
            .alarmWeekDay("string")
            .build())
        .alarmLang("string")
        .contactConfigs(UserAlarmConfigContactConfigArgs.builder()
            .email("string")
            .mobilePhone("string")
            .name("string")
            .status("string")
            .build())
        .lang("string")
        .notifyConfigs(UserAlarmConfigNotifyConfigArgs.builder()
            .notifyType("string")
            .notifyValue("string")
            .build())
        .useDefaultContact("string")
        .build());
    
    user_alarm_config_resource = alicloud.cloudfirewall.UserAlarmConfig("userAlarmConfigResource",
        alarm_configs=[{
            "alarm_hour": "string",
            "alarm_notify": "string",
            "alarm_period": "string",
            "alarm_type": "string",
            "alarm_value": "string",
            "alarm_week_day": "string",
        }],
        alarm_lang="string",
        contact_configs=[{
            "email": "string",
            "mobile_phone": "string",
            "name": "string",
            "status": "string",
        }],
        lang="string",
        notify_configs=[{
            "notify_type": "string",
            "notify_value": "string",
        }],
        use_default_contact="string")
    
    const userAlarmConfigResource = new alicloud.cloudfirewall.UserAlarmConfig("userAlarmConfigResource", {
        alarmConfigs: [{
            alarmHour: "string",
            alarmNotify: "string",
            alarmPeriod: "string",
            alarmType: "string",
            alarmValue: "string",
            alarmWeekDay: "string",
        }],
        alarmLang: "string",
        contactConfigs: [{
            email: "string",
            mobilePhone: "string",
            name: "string",
            status: "string",
        }],
        lang: "string",
        notifyConfigs: [{
            notifyType: "string",
            notifyValue: "string",
        }],
        useDefaultContact: "string",
    });
    
    type: alicloud:cloudfirewall:UserAlarmConfig
    properties:
        alarmConfigs:
            - alarmHour: string
              alarmNotify: string
              alarmPeriod: string
              alarmType: string
              alarmValue: string
              alarmWeekDay: string
        alarmLang: string
        contactConfigs:
            - email: string
              mobilePhone: string
              name: string
              status: string
        lang: string
        notifyConfigs:
            - notifyType: string
              notifyValue: string
        useDefaultContact: string
    

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

    AlarmConfigs List<Pulumi.AliCloud.CloudFirewall.Inputs.UserAlarmConfigAlarmConfig>
    The alarm configuration. More details see alarm_config below.
    AlarmLang string
    The alarm language. Possible values are zh, en.
    ContactConfigs List<Pulumi.AliCloud.CloudFirewall.Inputs.UserAlarmConfigContactConfig>
    Conflict with notify_config. The contact configuration. More details see contact_config below.
    Lang string
    NotifyConfigs List<Pulumi.AliCloud.CloudFirewall.Inputs.UserAlarmConfigNotifyConfig>
    Conflict with contact_config. The notification configuration. More details see notify_config below.
    UseDefaultContact string
    AlarmConfigs []UserAlarmConfigAlarmConfigArgs
    The alarm configuration. More details see alarm_config below.
    AlarmLang string
    The alarm language. Possible values are zh, en.
    ContactConfigs []UserAlarmConfigContactConfigArgs
    Conflict with notify_config. The contact configuration. More details see contact_config below.
    Lang string
    NotifyConfigs []UserAlarmConfigNotifyConfigArgs
    Conflict with contact_config. The notification configuration. More details see notify_config below.
    UseDefaultContact string
    alarmConfigs List<UserAlarmConfigAlarmConfig>
    The alarm configuration. More details see alarm_config below.
    alarmLang String
    The alarm language. Possible values are zh, en.
    contactConfigs List<UserAlarmConfigContactConfig>
    Conflict with notify_config. The contact configuration. More details see contact_config below.
    lang String
    notifyConfigs List<UserAlarmConfigNotifyConfig>
    Conflict with contact_config. The notification configuration. More details see notify_config below.
    useDefaultContact String
    alarmConfigs UserAlarmConfigAlarmConfig[]
    The alarm configuration. More details see alarm_config below.
    alarmLang string
    The alarm language. Possible values are zh, en.
    contactConfigs UserAlarmConfigContactConfig[]
    Conflict with notify_config. The contact configuration. More details see contact_config below.
    lang string
    notifyConfigs UserAlarmConfigNotifyConfig[]
    Conflict with contact_config. The notification configuration. More details see notify_config below.
    useDefaultContact string
    alarm_configs Sequence[UserAlarmConfigAlarmConfigArgs]
    The alarm configuration. More details see alarm_config below.
    alarm_lang str
    The alarm language. Possible values are zh, en.
    contact_configs Sequence[UserAlarmConfigContactConfigArgs]
    Conflict with notify_config. The contact configuration. More details see contact_config below.
    lang str
    notify_configs Sequence[UserAlarmConfigNotifyConfigArgs]
    Conflict with contact_config. The notification configuration. More details see notify_config below.
    use_default_contact str
    alarmConfigs List<Property Map>
    The alarm configuration. More details see alarm_config below.
    alarmLang String
    The alarm language. Possible values are zh, en.
    contactConfigs List<Property Map>
    Conflict with notify_config. The contact configuration. More details see contact_config below.
    lang String
    notifyConfigs List<Property Map>
    Conflict with contact_config. The notification configuration. More details see notify_config below.
    useDefaultContact String

    Outputs

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

    Get an existing UserAlarmConfig 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?: UserAlarmConfigState, opts?: CustomResourceOptions): UserAlarmConfig
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            alarm_configs: Optional[Sequence[UserAlarmConfigAlarmConfigArgs]] = None,
            alarm_lang: Optional[str] = None,
            contact_configs: Optional[Sequence[UserAlarmConfigContactConfigArgs]] = None,
            lang: Optional[str] = None,
            notify_configs: Optional[Sequence[UserAlarmConfigNotifyConfigArgs]] = None,
            use_default_contact: Optional[str] = None) -> UserAlarmConfig
    func GetUserAlarmConfig(ctx *Context, name string, id IDInput, state *UserAlarmConfigState, opts ...ResourceOption) (*UserAlarmConfig, error)
    public static UserAlarmConfig Get(string name, Input<string> id, UserAlarmConfigState? state, CustomResourceOptions? opts = null)
    public static UserAlarmConfig get(String name, Output<String> id, UserAlarmConfigState state, CustomResourceOptions options)
    resources:  _:    type: alicloud:cloudfirewall:UserAlarmConfig    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:
    AlarmConfigs List<Pulumi.AliCloud.CloudFirewall.Inputs.UserAlarmConfigAlarmConfig>
    The alarm configuration. More details see alarm_config below.
    AlarmLang string
    The alarm language. Possible values are zh, en.
    ContactConfigs List<Pulumi.AliCloud.CloudFirewall.Inputs.UserAlarmConfigContactConfig>
    Conflict with notify_config. The contact configuration. More details see contact_config below.
    Lang string
    NotifyConfigs List<Pulumi.AliCloud.CloudFirewall.Inputs.UserAlarmConfigNotifyConfig>
    Conflict with contact_config. The notification configuration. More details see notify_config below.
    UseDefaultContact string
    AlarmConfigs []UserAlarmConfigAlarmConfigArgs
    The alarm configuration. More details see alarm_config below.
    AlarmLang string
    The alarm language. Possible values are zh, en.
    ContactConfigs []UserAlarmConfigContactConfigArgs
    Conflict with notify_config. The contact configuration. More details see contact_config below.
    Lang string
    NotifyConfigs []UserAlarmConfigNotifyConfigArgs
    Conflict with contact_config. The notification configuration. More details see notify_config below.
    UseDefaultContact string
    alarmConfigs List<UserAlarmConfigAlarmConfig>
    The alarm configuration. More details see alarm_config below.
    alarmLang String
    The alarm language. Possible values are zh, en.
    contactConfigs List<UserAlarmConfigContactConfig>
    Conflict with notify_config. The contact configuration. More details see contact_config below.
    lang String
    notifyConfigs List<UserAlarmConfigNotifyConfig>
    Conflict with contact_config. The notification configuration. More details see notify_config below.
    useDefaultContact String
    alarmConfigs UserAlarmConfigAlarmConfig[]
    The alarm configuration. More details see alarm_config below.
    alarmLang string
    The alarm language. Possible values are zh, en.
    contactConfigs UserAlarmConfigContactConfig[]
    Conflict with notify_config. The contact configuration. More details see contact_config below.
    lang string
    notifyConfigs UserAlarmConfigNotifyConfig[]
    Conflict with contact_config. The notification configuration. More details see notify_config below.
    useDefaultContact string
    alarm_configs Sequence[UserAlarmConfigAlarmConfigArgs]
    The alarm configuration. More details see alarm_config below.
    alarm_lang str
    The alarm language. Possible values are zh, en.
    contact_configs Sequence[UserAlarmConfigContactConfigArgs]
    Conflict with notify_config. The contact configuration. More details see contact_config below.
    lang str
    notify_configs Sequence[UserAlarmConfigNotifyConfigArgs]
    Conflict with contact_config. The notification configuration. More details see notify_config below.
    use_default_contact str
    alarmConfigs List<Property Map>
    The alarm configuration. More details see alarm_config below.
    alarmLang String
    The alarm language. Possible values are zh, en.
    contactConfigs List<Property Map>
    Conflict with notify_config. The contact configuration. More details see contact_config below.
    lang String
    notifyConfigs List<Property Map>
    Conflict with contact_config. The notification configuration. More details see notify_config below.
    useDefaultContact String

    Supporting Types

    UserAlarmConfigAlarmConfig, UserAlarmConfigAlarmConfigArgs

    AlarmHour string
    The time of the day when the alarm is triggered. The range is 0 ~ 24.
    AlarmNotify string
    The alarm notification type. Possible values are: 0(sms/email), 1(sms), 2(email), 3(none)
    AlarmPeriod string
    The alarm period. Possible values are: 0 (8:00 ~ 20:00), 1 24 hours.
    AlarmType string
    The alarm type. Possible values are: weeklyReport, trafficPreAlert, outgoingRiskAll, ipsMiddlethreat, bandwidth, ipsHighthreat, outgoingRiskNonWhite, ipsIgnoreResolved etc.
    AlarmValue string
    The alarm notification message.
    AlarmWeekDay string
    The day of the week when the alarm is triggered. The range is 1 ~ 7.
    AlarmHour string
    The time of the day when the alarm is triggered. The range is 0 ~ 24.
    AlarmNotify string
    The alarm notification type. Possible values are: 0(sms/email), 1(sms), 2(email), 3(none)
    AlarmPeriod string
    The alarm period. Possible values are: 0 (8:00 ~ 20:00), 1 24 hours.
    AlarmType string
    The alarm type. Possible values are: weeklyReport, trafficPreAlert, outgoingRiskAll, ipsMiddlethreat, bandwidth, ipsHighthreat, outgoingRiskNonWhite, ipsIgnoreResolved etc.
    AlarmValue string
    The alarm notification message.
    AlarmWeekDay string
    The day of the week when the alarm is triggered. The range is 1 ~ 7.
    alarmHour String
    The time of the day when the alarm is triggered. The range is 0 ~ 24.
    alarmNotify String
    The alarm notification type. Possible values are: 0(sms/email), 1(sms), 2(email), 3(none)
    alarmPeriod String
    The alarm period. Possible values are: 0 (8:00 ~ 20:00), 1 24 hours.
    alarmType String
    The alarm type. Possible values are: weeklyReport, trafficPreAlert, outgoingRiskAll, ipsMiddlethreat, bandwidth, ipsHighthreat, outgoingRiskNonWhite, ipsIgnoreResolved etc.
    alarmValue String
    The alarm notification message.
    alarmWeekDay String
    The day of the week when the alarm is triggered. The range is 1 ~ 7.
    alarmHour string
    The time of the day when the alarm is triggered. The range is 0 ~ 24.
    alarmNotify string
    The alarm notification type. Possible values are: 0(sms/email), 1(sms), 2(email), 3(none)
    alarmPeriod string
    The alarm period. Possible values are: 0 (8:00 ~ 20:00), 1 24 hours.
    alarmType string
    The alarm type. Possible values are: weeklyReport, trafficPreAlert, outgoingRiskAll, ipsMiddlethreat, bandwidth, ipsHighthreat, outgoingRiskNonWhite, ipsIgnoreResolved etc.
    alarmValue string
    The alarm notification message.
    alarmWeekDay string
    The day of the week when the alarm is triggered. The range is 1 ~ 7.
    alarm_hour str
    The time of the day when the alarm is triggered. The range is 0 ~ 24.
    alarm_notify str
    The alarm notification type. Possible values are: 0(sms/email), 1(sms), 2(email), 3(none)
    alarm_period str
    The alarm period. Possible values are: 0 (8:00 ~ 20:00), 1 24 hours.
    alarm_type str
    The alarm type. Possible values are: weeklyReport, trafficPreAlert, outgoingRiskAll, ipsMiddlethreat, bandwidth, ipsHighthreat, outgoingRiskNonWhite, ipsIgnoreResolved etc.
    alarm_value str
    The alarm notification message.
    alarm_week_day str
    The day of the week when the alarm is triggered. The range is 1 ~ 7.
    alarmHour String
    The time of the day when the alarm is triggered. The range is 0 ~ 24.
    alarmNotify String
    The alarm notification type. Possible values are: 0(sms/email), 1(sms), 2(email), 3(none)
    alarmPeriod String
    The alarm period. Possible values are: 0 (8:00 ~ 20:00), 1 24 hours.
    alarmType String
    The alarm type. Possible values are: weeklyReport, trafficPreAlert, outgoingRiskAll, ipsMiddlethreat, bandwidth, ipsHighthreat, outgoingRiskNonWhite, ipsIgnoreResolved etc.
    alarmValue String
    The alarm notification message.
    alarmWeekDay String
    The day of the week when the alarm is triggered. The range is 1 ~ 7.

    UserAlarmConfigContactConfig, UserAlarmConfigContactConfigArgs

    Email string
    The email address of the contact.
    MobilePhone string
    The mobile phone number of the contact.
    Name string
    The name of the contact.
    Status string
    The status of the contact configuration. Possible values are: 0 disable, 1 enable.
    Email string
    The email address of the contact.
    MobilePhone string
    The mobile phone number of the contact.
    Name string
    The name of the contact.
    Status string
    The status of the contact configuration. Possible values are: 0 disable, 1 enable.
    email String
    The email address of the contact.
    mobilePhone String
    The mobile phone number of the contact.
    name String
    The name of the contact.
    status String
    The status of the contact configuration. Possible values are: 0 disable, 1 enable.
    email string
    The email address of the contact.
    mobilePhone string
    The mobile phone number of the contact.
    name string
    The name of the contact.
    status string
    The status of the contact configuration. Possible values are: 0 disable, 1 enable.
    email str
    The email address of the contact.
    mobile_phone str
    The mobile phone number of the contact.
    name str
    The name of the contact.
    status str
    The status of the contact configuration. Possible values are: 0 disable, 1 enable.
    email String
    The email address of the contact.
    mobilePhone String
    The mobile phone number of the contact.
    name String
    The name of the contact.
    status String
    The status of the contact configuration. Possible values are: 0 disable, 1 enable.

    UserAlarmConfigNotifyConfig, UserAlarmConfigNotifyConfigArgs

    NotifyType string
    The notification type. Possible values are sms, mail.
    NotifyValue string
    The notification value. Depending on the value of notify_type, it can be a mobile phone number or an email address.
    NotifyType string
    The notification type. Possible values are sms, mail.
    NotifyValue string
    The notification value. Depending on the value of notify_type, it can be a mobile phone number or an email address.
    notifyType String
    The notification type. Possible values are sms, mail.
    notifyValue String
    The notification value. Depending on the value of notify_type, it can be a mobile phone number or an email address.
    notifyType string
    The notification type. Possible values are sms, mail.
    notifyValue string
    The notification value. Depending on the value of notify_type, it can be a mobile phone number or an email address.
    notify_type str
    The notification type. Possible values are sms, mail.
    notify_value str
    The notification value. Depending on the value of notify_type, it can be a mobile phone number or an email address.
    notifyType String
    The notification type. Possible values are sms, mail.
    notifyValue String
    The notification value. Depending on the value of notify_type, it can be a mobile phone number or an email address.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.95.0 published on Thursday, Feb 12, 2026 by Pulumi
      Meet Neo: Your AI Platform Teammate