Class RulesetRule
An event rule allows you to set actions that should be taken on events that meet your designated rule criteria.
Inheritance
Inherited Members
Namespace: Pulumi.Pagerduty
Assembly: Pulumi.Pagerduty.dll
Syntax
public class RulesetRule : CustomResource
Constructors
View SourceRulesetRule(String, RulesetRuleArgs, CustomResourceOptions)
Create a RulesetRule resource with the given unique name, arguments, and options.
Declaration
public RulesetRule(string name, RulesetRuleArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| RulesetRuleArgs | args | The arguments used to populate this resource's properties |
| Pulumi.CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceActions
Actions to apply to an event if the conditions match.
Declaration
public Output<RulesetRuleActions> Actions { get; }
Property Value
| Type | Description |
|---|---|
| Pulumi.Output<RulesetRuleActions> |
Conditions
Conditions evaluated to check if an event matches this event rule. Is always empty for the catch all rule, though.
Declaration
public Output<RulesetRuleConditions> Conditions { get; }
Property Value
| Type | Description |
|---|---|
| Pulumi.Output<RulesetRuleConditions> |
Disabled
Indicates whether the rule is disabled and would therefore not be evaluated.
Declaration
public Output<bool?> Disabled { get; }
Property Value
| Type | Description |
|---|---|
| Pulumi.Output<System.Nullable<System.Boolean>> |
Position
Position/index of the rule within the ruleset.
Declaration
public Output<int?> Position { get; }
Property Value
| Type | Description |
|---|---|
| Pulumi.Output<System.Nullable<System.Int32>> |
Ruleset
The ID of the ruleset that the rule belongs to.
Declaration
public Output<string> Ruleset { get; }
Property Value
| Type | Description |
|---|---|
| Pulumi.Output<System.String> |
TimeFrame
Settings for scheduling the rule.
Declaration
public Output<RulesetRuleTimeFrame> TimeFrame { get; }
Property Value
| Type | Description |
|---|---|
| Pulumi.Output<RulesetRuleTimeFrame> |
Methods
View SourceGet(String, Input<String>, RulesetRuleState, CustomResourceOptions)
Get an existing RulesetRule resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static RulesetRule Get(string name, Input<string> id, RulesetRuleState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Pulumi.Input<System.String> | id | The unique provider ID of the resource to lookup. |
| RulesetRuleState | state | Any extra arguments used during the lookup. |
| Pulumi.CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| RulesetRule |