Notifier
Create a Notifier Resource
new Notifier(name: string, args: NotifierArgs, opts?: CustomResourceOptions);def Notifier(resource_name, opts=None, annotations=None, cluster_id=None, description=None, labels=None, name=None, pagerduty_config=None, send_resolved=None, slack_config=None, smtp_config=None, webhook_config=None, wechat_config=None, __props__=None);func NewNotifier(ctx *Context, name string, args NotifierArgs, opts ...ResourceOption) (*Notifier, error)public Notifier(string name, NotifierArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args NotifierArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args NotifierArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NotifierArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Notifier Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Notifier resource accepts the following input properties:
- Cluster
Id string The cluster id where create notifier (string)
- Annotations Dictionary<string, object>
Annotations for notifier object (map)
- Description string
The notifier description (string)
- Labels Dictionary<string, object>
Labels for notifier object (map)
- Name string
The name of the notifier (string)
- Pagerduty
Config NotifierPagerduty Config Args Pagerduty config for notifier (list maxitems:1)
- Send
Resolved bool = (Optional) Enable the notifier to send resolved notifications. Default
false(bool)- Slack
Config NotifierSlack Config Args Slack config for notifier (list maxitems:1)
- Smtp
Config NotifierSmtp Config Args SMTP config for notifier (list maxitems:1)
- Webhook
Config NotifierWebhook Config Args Webhook config for notifier (list maxitems:1)
- Wechat
Config NotifierWechat Config Args Wechat config for notifier (list maxitems:1)
- Cluster
Id string The cluster id where create notifier (string)
- Annotations map[string]interface{}
Annotations for notifier object (map)
- Description string
The notifier description (string)
- Labels map[string]interface{}
Labels for notifier object (map)
- Name string
The name of the notifier (string)
- Pagerduty
Config NotifierPagerduty Config Pagerduty config for notifier (list maxitems:1)
- Send
Resolved bool = (Optional) Enable the notifier to send resolved notifications. Default
false(bool)- Slack
Config NotifierSlack Config Slack config for notifier (list maxitems:1)
- Smtp
Config NotifierSmtp Config SMTP config for notifier (list maxitems:1)
- Webhook
Config NotifierWebhook Config Webhook config for notifier (list maxitems:1)
- Wechat
Config NotifierWechat Config Wechat config for notifier (list maxitems:1)
- cluster
Id string The cluster id where create notifier (string)
- annotations {[key: string]: any}
Annotations for notifier object (map)
- description string
The notifier description (string)
- labels {[key: string]: any}
Labels for notifier object (map)
- name string
The name of the notifier (string)
- pagerduty
Config NotifierPagerduty Config Pagerduty config for notifier (list maxitems:1)
- send
Resolved boolean = (Optional) Enable the notifier to send resolved notifications. Default
false(bool)- slack
Config NotifierSlack Config Slack config for notifier (list maxitems:1)
- smtp
Config NotifierSmtp Config SMTP config for notifier (list maxitems:1)
- webhook
Config NotifierWebhook Config Webhook config for notifier (list maxitems:1)
- wechat
Config NotifierWechat Config Wechat config for notifier (list maxitems:1)
- cluster_
id str The cluster id where create notifier (string)
- annotations Dict[str, Any]
Annotations for notifier object (map)
- description str
The notifier description (string)
- labels Dict[str, Any]
Labels for notifier object (map)
- name str
The name of the notifier (string)
- pagerduty_
config Dict[NotifierPagerduty Config] Pagerduty config for notifier (list maxitems:1)
- send_
resolved bool = (Optional) Enable the notifier to send resolved notifications. Default
false(bool)- slack_
config Dict[NotifierSlack Config] Slack config for notifier (list maxitems:1)
- smtp_
config Dict[NotifierSmtp Config] SMTP config for notifier (list maxitems:1)
- webhook_
config Dict[NotifierWebhook Config] Webhook config for notifier (list maxitems:1)
- wechat_
config Dict[NotifierWechat Config] Wechat config for notifier (list maxitems:1)
Outputs
All input properties are implicitly available as output properties. Additionally, the Notifier resource produces the following output properties:
Look up an Existing Notifier Resource
Get an existing Notifier 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?: NotifierState, opts?: CustomResourceOptions): Notifierstatic get(resource_name, id, opts=None, annotations=None, cluster_id=None, description=None, labels=None, name=None, pagerduty_config=None, send_resolved=None, slack_config=None, smtp_config=None, webhook_config=None, wechat_config=None, __props__=None);func GetNotifier(ctx *Context, name string, id IDInput, state *NotifierState, opts ...ResourceOption) (*Notifier, error)public static Notifier Get(string name, Input<string> id, NotifierState? state, CustomResourceOptions? opts = null)- 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.
The following state arguments are supported:
- Annotations Dictionary<string, object>
Annotations for notifier object (map)
- Cluster
Id string The cluster id where create notifier (string)
- Description string
The notifier description (string)
- Labels Dictionary<string, object>
Labels for notifier object (map)
- Name string
The name of the notifier (string)
- Pagerduty
Config NotifierPagerduty Config Args Pagerduty config for notifier (list maxitems:1)
- Send
Resolved bool = (Optional) Enable the notifier to send resolved notifications. Default
false(bool)- Slack
Config NotifierSlack Config Args Slack config for notifier (list maxitems:1)
- Smtp
Config NotifierSmtp Config Args SMTP config for notifier (list maxitems:1)
- Webhook
Config NotifierWebhook Config Args Webhook config for notifier (list maxitems:1)
- Wechat
Config NotifierWechat Config Args Wechat config for notifier (list maxitems:1)
- Annotations map[string]interface{}
Annotations for notifier object (map)
- Cluster
Id string The cluster id where create notifier (string)
- Description string
The notifier description (string)
- Labels map[string]interface{}
Labels for notifier object (map)
- Name string
The name of the notifier (string)
- Pagerduty
Config NotifierPagerduty Config Pagerduty config for notifier (list maxitems:1)
- Send
Resolved bool = (Optional) Enable the notifier to send resolved notifications. Default
false(bool)- Slack
Config NotifierSlack Config Slack config for notifier (list maxitems:1)
- Smtp
Config NotifierSmtp Config SMTP config for notifier (list maxitems:1)
- Webhook
Config NotifierWebhook Config Webhook config for notifier (list maxitems:1)
- Wechat
Config NotifierWechat Config Wechat config for notifier (list maxitems:1)
- annotations {[key: string]: any}
Annotations for notifier object (map)
- cluster
Id string The cluster id where create notifier (string)
- description string
The notifier description (string)
- labels {[key: string]: any}
Labels for notifier object (map)
- name string
The name of the notifier (string)
- pagerduty
Config NotifierPagerduty Config Pagerduty config for notifier (list maxitems:1)
- send
Resolved boolean = (Optional) Enable the notifier to send resolved notifications. Default
false(bool)- slack
Config NotifierSlack Config Slack config for notifier (list maxitems:1)
- smtp
Config NotifierSmtp Config SMTP config for notifier (list maxitems:1)
- webhook
Config NotifierWebhook Config Webhook config for notifier (list maxitems:1)
- wechat
Config NotifierWechat Config Wechat config for notifier (list maxitems:1)
- annotations Dict[str, Any]
Annotations for notifier object (map)
- cluster_
id str The cluster id where create notifier (string)
- description str
The notifier description (string)
- labels Dict[str, Any]
Labels for notifier object (map)
- name str
The name of the notifier (string)
- pagerduty_
config Dict[NotifierPagerduty Config] Pagerduty config for notifier (list maxitems:1)
- send_
resolved bool = (Optional) Enable the notifier to send resolved notifications. Default
false(bool)- slack_
config Dict[NotifierSlack Config] Slack config for notifier (list maxitems:1)
- smtp_
config Dict[NotifierSmtp Config] SMTP config for notifier (list maxitems:1)
- webhook_
config Dict[NotifierWebhook Config] Webhook config for notifier (list maxitems:1)
- wechat_
config Dict[NotifierWechat Config] Wechat config for notifier (list maxitems:1)
Supporting Types
NotifierPagerdutyConfig
- Service
Key string Pagerduty service key (string)
- Proxy
Url string Wechat proxy url (string)
- Service
Key string Pagerduty service key (string)
- Proxy
Url string Wechat proxy url (string)
- service
Key string Pagerduty service key (string)
- proxy
Url string Wechat proxy url (string)
- service
Key str Pagerduty service key (string)
- proxy
Url str Wechat proxy url (string)
NotifierSlackConfig
NotifierSmtpConfig
NotifierWebhookConfig
NotifierWechatConfig
Package Details
- Repository
- https://github.com/pulumi/pulumi-rancher2
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
rancher2Terraform Provider.