zenduty.NotificationRules
Explore with Pulumi AI
Create NotificationRules Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new NotificationRules(name: string, args: NotificationRulesArgs, opts?: CustomResourceOptions);
@overload
def NotificationRules(resource_name: str,
args: NotificationRulesArgs,
opts: Optional[ResourceOptions] = None)
@overload
def NotificationRules(resource_name: str,
opts: Optional[ResourceOptions] = None,
contact: Optional[str] = None,
delay: Optional[float] = None,
urgency: Optional[float] = None,
username: Optional[str] = None,
notification_rules_id: Optional[str] = None)
func NewNotificationRules(ctx *Context, name string, args NotificationRulesArgs, opts ...ResourceOption) (*NotificationRules, error)
public NotificationRules(string name, NotificationRulesArgs args, CustomResourceOptions? opts = null)
public NotificationRules(String name, NotificationRulesArgs args)
public NotificationRules(String name, NotificationRulesArgs args, CustomResourceOptions options)
type: zenduty:NotificationRules
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name
This property is required. string - The unique name of the resource.
- args
This property is required. NotificationRulesArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. NotificationRulesArgs - The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. NotificationRulesArgs - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. NotificationRulesArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. NotificationRulesArgs - 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 notificationRulesResource = new Zenduty.NotificationRules("notificationRulesResource", new()
{
Contact = "string",
Delay = 0,
Urgency = 0,
Username = "string",
NotificationRulesId = "string",
});
example, err := zenduty.NewNotificationRules(ctx, "notificationRulesResource", &zenduty.NotificationRulesArgs{
Contact: pulumi.String("string"),
Delay: pulumi.Float64(0),
Urgency: pulumi.Float64(0),
Username: pulumi.String("string"),
NotificationRulesId: pulumi.String("string"),
})
var notificationRulesResource = new NotificationRules("notificationRulesResource", NotificationRulesArgs.builder()
.contact("string")
.delay(0)
.urgency(0)
.username("string")
.notificationRulesId("string")
.build());
notification_rules_resource = zenduty.NotificationRules("notificationRulesResource",
contact="string",
delay=0,
urgency=0,
username="string",
notification_rules_id="string")
const notificationRulesResource = new zenduty.NotificationRules("notificationRulesResource", {
contact: "string",
delay: 0,
urgency: 0,
username: "string",
notificationRulesId: "string",
});
type: zenduty:NotificationRules
properties:
contact: string
delay: 0
notificationRulesId: string
urgency: 0
username: string
NotificationRules 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 NotificationRules resource accepts the following input properties:
- Contact
This property is required. string - Delay
This property is required. double - Urgency
This property is required. double - Username
This property is required. string - Notification
Rules stringId
- Contact
This property is required. string - Delay
This property is required. float64 - Urgency
This property is required. float64 - Username
This property is required. string - Notification
Rules stringId
- contact
This property is required. String - delay
This property is required. Double - urgency
This property is required. Double - username
This property is required. String - notification
Rules StringId
- contact
This property is required. string - delay
This property is required. number - urgency
This property is required. number - username
This property is required. string - notification
Rules stringId
- contact
This property is required. str - delay
This property is required. float - urgency
This property is required. float - username
This property is required. str - notification_
rules_ strid
- contact
This property is required. String - delay
This property is required. Number - urgency
This property is required. Number - username
This property is required. String - notification
Rules StringId
Outputs
All input properties are implicitly available as output properties. Additionally, the NotificationRules 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 NotificationRules Resource
Get an existing NotificationRules 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?: NotificationRulesState, opts?: CustomResourceOptions): NotificationRules
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
contact: Optional[str] = None,
delay: Optional[float] = None,
notification_rules_id: Optional[str] = None,
urgency: Optional[float] = None,
username: Optional[str] = None) -> NotificationRules
func GetNotificationRules(ctx *Context, name string, id IDInput, state *NotificationRulesState, opts ...ResourceOption) (*NotificationRules, error)
public static NotificationRules Get(string name, Input<string> id, NotificationRulesState? state, CustomResourceOptions? opts = null)
public static NotificationRules get(String name, Output<String> id, NotificationRulesState state, CustomResourceOptions options)
resources: _: type: zenduty:NotificationRules get: id: ${id}
- name
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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
This property is required. - The unique name of the resulting resource.
- id
This property is required. - The unique provider ID of the resource to lookup.
- name
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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.
- Contact string
- Delay double
- Notification
Rules stringId - Urgency double
- Username string
- Contact string
- Delay float64
- Notification
Rules stringId - Urgency float64
- Username string
- contact String
- delay Double
- notification
Rules StringId - urgency Double
- username String
- contact string
- delay number
- notification
Rules stringId - urgency number
- username string
- contact str
- delay float
- notification_
rules_ strid - urgency float
- username str
- contact String
- delay Number
- notification
Rules StringId - urgency Number
- username String
Package Details
- Repository
- zenduty zenduty/terraform-provider-zenduty
- License
- Notes
- This Pulumi package is based on the
zenduty
Terraform Provider.