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:
- Alarm
Configs List<Pulumi.Ali Cloud. Cloud Firewall. Inputs. User Alarm Config Alarm Config> - The alarm configuration. More details see
alarm_configbelow. - Alarm
Lang string - The alarm language. Possible values are
zh,en. - Contact
Configs List<Pulumi.Ali Cloud. Cloud Firewall. Inputs. User Alarm Config Contact Config> - Conflict with
notify_config. The contact configuration. More details seecontact_configbelow. - Lang string
- Notify
Configs List<Pulumi.Ali Cloud. Cloud Firewall. Inputs. User Alarm Config Notify Config> - Conflict with
contact_config. The notification configuration. More details seenotify_configbelow. - Use
Default stringContact
- Alarm
Configs []UserAlarm Config Alarm Config Args - The alarm configuration. More details see
alarm_configbelow. - Alarm
Lang string - The alarm language. Possible values are
zh,en. - Contact
Configs []UserAlarm Config Contact Config Args - Conflict with
notify_config. The contact configuration. More details seecontact_configbelow. - Lang string
- Notify
Configs []UserAlarm Config Notify Config Args - Conflict with
contact_config. The notification configuration. More details seenotify_configbelow. - Use
Default stringContact
- alarm
Configs List<UserAlarm Config Alarm Config> - The alarm configuration. More details see
alarm_configbelow. - alarm
Lang String - The alarm language. Possible values are
zh,en. - contact
Configs List<UserAlarm Config Contact Config> - Conflict with
notify_config. The contact configuration. More details seecontact_configbelow. - lang String
- notify
Configs List<UserAlarm Config Notify Config> - Conflict with
contact_config. The notification configuration. More details seenotify_configbelow. - use
Default StringContact
- alarm
Configs UserAlarm Config Alarm Config[] - The alarm configuration. More details see
alarm_configbelow. - alarm
Lang string - The alarm language. Possible values are
zh,en. - contact
Configs UserAlarm Config Contact Config[] - Conflict with
notify_config. The contact configuration. More details seecontact_configbelow. - lang string
- notify
Configs UserAlarm Config Notify Config[] - Conflict with
contact_config. The notification configuration. More details seenotify_configbelow. - use
Default stringContact
- alarm_
configs Sequence[UserAlarm Config Alarm Config Args] - The alarm configuration. More details see
alarm_configbelow. - alarm_
lang str - The alarm language. Possible values are
zh,en. - contact_
configs Sequence[UserAlarm Config Contact Config Args] - Conflict with
notify_config. The contact configuration. More details seecontact_configbelow. - lang str
- notify_
configs Sequence[UserAlarm Config Notify Config Args] - Conflict with
contact_config. The notification configuration. More details seenotify_configbelow. - use_
default_ strcontact
- alarm
Configs List<Property Map> - The alarm configuration. More details see
alarm_configbelow. - alarm
Lang String - The alarm language. Possible values are
zh,en. - contact
Configs List<Property Map> - Conflict with
notify_config. The contact configuration. More details seecontact_configbelow. - lang String
- notify
Configs List<Property Map> - Conflict with
contact_config. The notification configuration. More details seenotify_configbelow. - use
Default StringContact
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) -> UserAlarmConfigfunc 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.
- Alarm
Configs List<Pulumi.Ali Cloud. Cloud Firewall. Inputs. User Alarm Config Alarm Config> - The alarm configuration. More details see
alarm_configbelow. - Alarm
Lang string - The alarm language. Possible values are
zh,en. - Contact
Configs List<Pulumi.Ali Cloud. Cloud Firewall. Inputs. User Alarm Config Contact Config> - Conflict with
notify_config. The contact configuration. More details seecontact_configbelow. - Lang string
- Notify
Configs List<Pulumi.Ali Cloud. Cloud Firewall. Inputs. User Alarm Config Notify Config> - Conflict with
contact_config. The notification configuration. More details seenotify_configbelow. - Use
Default stringContact
- Alarm
Configs []UserAlarm Config Alarm Config Args - The alarm configuration. More details see
alarm_configbelow. - Alarm
Lang string - The alarm language. Possible values are
zh,en. - Contact
Configs []UserAlarm Config Contact Config Args - Conflict with
notify_config. The contact configuration. More details seecontact_configbelow. - Lang string
- Notify
Configs []UserAlarm Config Notify Config Args - Conflict with
contact_config. The notification configuration. More details seenotify_configbelow. - Use
Default stringContact
- alarm
Configs List<UserAlarm Config Alarm Config> - The alarm configuration. More details see
alarm_configbelow. - alarm
Lang String - The alarm language. Possible values are
zh,en. - contact
Configs List<UserAlarm Config Contact Config> - Conflict with
notify_config. The contact configuration. More details seecontact_configbelow. - lang String
- notify
Configs List<UserAlarm Config Notify Config> - Conflict with
contact_config. The notification configuration. More details seenotify_configbelow. - use
Default StringContact
- alarm
Configs UserAlarm Config Alarm Config[] - The alarm configuration. More details see
alarm_configbelow. - alarm
Lang string - The alarm language. Possible values are
zh,en. - contact
Configs UserAlarm Config Contact Config[] - Conflict with
notify_config. The contact configuration. More details seecontact_configbelow. - lang string
- notify
Configs UserAlarm Config Notify Config[] - Conflict with
contact_config. The notification configuration. More details seenotify_configbelow. - use
Default stringContact
- alarm_
configs Sequence[UserAlarm Config Alarm Config Args] - The alarm configuration. More details see
alarm_configbelow. - alarm_
lang str - The alarm language. Possible values are
zh,en. - contact_
configs Sequence[UserAlarm Config Contact Config Args] - Conflict with
notify_config. The contact configuration. More details seecontact_configbelow. - lang str
- notify_
configs Sequence[UserAlarm Config Notify Config Args] - Conflict with
contact_config. The notification configuration. More details seenotify_configbelow. - use_
default_ strcontact
- alarm
Configs List<Property Map> - The alarm configuration. More details see
alarm_configbelow. - alarm
Lang String - The alarm language. Possible values are
zh,en. - contact
Configs List<Property Map> - Conflict with
notify_config. The contact configuration. More details seecontact_configbelow. - lang String
- notify
Configs List<Property Map> - Conflict with
contact_config. The notification configuration. More details seenotify_configbelow. - use
Default StringContact
Supporting Types
UserAlarmConfigAlarmConfig, UserAlarmConfigAlarmConfigArgs
- Alarm
Hour string - The time of the day when the alarm is triggered. The range is
0 ~ 24. - Alarm
Notify string - The alarm notification type. Possible values are:
0(sms/email),1(sms),2(email),3(none) - Alarm
Period string - The alarm period. Possible values are:
0(8:00 ~ 20:00),124 hours. - Alarm
Type string - The alarm type. Possible values are:
weeklyReport,trafficPreAlert,outgoingRiskAll,ipsMiddlethreat,bandwidth,ipsHighthreat,outgoingRiskNonWhite,ipsIgnoreResolvedetc. - Alarm
Value string - The alarm notification message.
- Alarm
Week stringDay - The day of the week when the alarm is triggered. The range is
1 ~ 7.
- Alarm
Hour string - The time of the day when the alarm is triggered. The range is
0 ~ 24. - Alarm
Notify string - The alarm notification type. Possible values are:
0(sms/email),1(sms),2(email),3(none) - Alarm
Period string - The alarm period. Possible values are:
0(8:00 ~ 20:00),124 hours. - Alarm
Type string - The alarm type. Possible values are:
weeklyReport,trafficPreAlert,outgoingRiskAll,ipsMiddlethreat,bandwidth,ipsHighthreat,outgoingRiskNonWhite,ipsIgnoreResolvedetc. - Alarm
Value string - The alarm notification message.
- Alarm
Week stringDay - The day of the week when the alarm is triggered. The range is
1 ~ 7.
- alarm
Hour String - The time of the day when the alarm is triggered. The range is
0 ~ 24. - alarm
Notify String - The alarm notification type. Possible values are:
0(sms/email),1(sms),2(email),3(none) - alarm
Period String - The alarm period. Possible values are:
0(8:00 ~ 20:00),124 hours. - alarm
Type String - The alarm type. Possible values are:
weeklyReport,trafficPreAlert,outgoingRiskAll,ipsMiddlethreat,bandwidth,ipsHighthreat,outgoingRiskNonWhite,ipsIgnoreResolvedetc. - alarm
Value String - The alarm notification message.
- alarm
Week StringDay - The day of the week when the alarm is triggered. The range is
1 ~ 7.
- alarm
Hour string - The time of the day when the alarm is triggered. The range is
0 ~ 24. - alarm
Notify string - The alarm notification type. Possible values are:
0(sms/email),1(sms),2(email),3(none) - alarm
Period string - The alarm period. Possible values are:
0(8:00 ~ 20:00),124 hours. - alarm
Type string - The alarm type. Possible values are:
weeklyReport,trafficPreAlert,outgoingRiskAll,ipsMiddlethreat,bandwidth,ipsHighthreat,outgoingRiskNonWhite,ipsIgnoreResolvedetc. - alarm
Value string - The alarm notification message.
- alarm
Week stringDay - 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),124 hours. - alarm_
type str - The alarm type. Possible values are:
weeklyReport,trafficPreAlert,outgoingRiskAll,ipsMiddlethreat,bandwidth,ipsHighthreat,outgoingRiskNonWhite,ipsIgnoreResolvedetc. - alarm_
value str - The alarm notification message.
- alarm_
week_ strday - The day of the week when the alarm is triggered. The range is
1 ~ 7.
- alarm
Hour String - The time of the day when the alarm is triggered. The range is
0 ~ 24. - alarm
Notify String - The alarm notification type. Possible values are:
0(sms/email),1(sms),2(email),3(none) - alarm
Period String - The alarm period. Possible values are:
0(8:00 ~ 20:00),124 hours. - alarm
Type String - The alarm type. Possible values are:
weeklyReport,trafficPreAlert,outgoingRiskAll,ipsMiddlethreat,bandwidth,ipsHighthreat,outgoingRiskNonWhite,ipsIgnoreResolvedetc. - alarm
Value String - The alarm notification message.
- alarm
Week StringDay - 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.
- Mobile
Phone 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:
0disable,1enable.
- Email string
- The email address of the contact.
- Mobile
Phone 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:
0disable,1enable.
- email String
- The email address of the contact.
- mobile
Phone 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:
0disable,1enable.
- email string
- The email address of the contact.
- mobile
Phone 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:
0disable,1enable.
- 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:
0disable,1enable.
- email String
- The email address of the contact.
- mobile
Phone 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:
0disable,1enable.
UserAlarmConfigNotifyConfig, UserAlarmConfigNotifyConfigArgs
- Notify
Type string - The notification type. Possible values are
sms,mail. - Notify
Value string - The notification value. Depending on the value of
notify_type, it can be a mobile phone number or an email address.
- Notify
Type string - The notification type. Possible values are
sms,mail. - Notify
Value string - The notification value. Depending on the value of
notify_type, it can be a mobile phone number or an email address.
- notify
Type String - The notification type. Possible values are
sms,mail. - notify
Value String - The notification value. Depending on the value of
notify_type, it can be a mobile phone number or an email address.
- notify
Type string - The notification type. Possible values are
sms,mail. - notify
Value 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.
- notify
Type String - The notification type. Possible values are
sms,mail. - notify
Value 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
alicloudTerraform Provider.
