EventRule
Create a EventRule Resource
new EventRule(name: string, args: EventRuleArgs, opts?: CustomResourceOptions);def EventRule(resource_name, opts=None, action_json=None, advanced_condition_json=None, condition_json=None, __props__=None);func NewEventRule(ctx *Context, name string, args EventRuleArgs, opts ...ResourceOption) (*EventRule, error)public EventRule(string name, EventRuleArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args EventRuleArgs
- 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 EventRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EventRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
EventRule Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The EventRule resource accepts the following input properties:
- Action
Json string A list of one or more actions for each rule. Each action within the list is itself a list.
- Condition
Json string Contains a list of conditions. The first field in the list is
andoror, followed by a list of operators and values.- Advanced
Condition stringJson Contains a list of specific conditions including
active-between,scheduled-weekly, andfrequency-over. The first element in the list is the label for the condition, followed by a list of values for the specific condition. For more details on these conditions see Advanced Condition in the PagerDuty API documentation.
- Action
Json string A list of one or more actions for each rule. Each action within the list is itself a list.
- Condition
Json string Contains a list of conditions. The first field in the list is
andoror, followed by a list of operators and values.- Advanced
Condition stringJson Contains a list of specific conditions including
active-between,scheduled-weekly, andfrequency-over. The first element in the list is the label for the condition, followed by a list of values for the specific condition. For more details on these conditions see Advanced Condition in the PagerDuty API documentation.
- action
Json string A list of one or more actions for each rule. Each action within the list is itself a list.
- condition
Json string Contains a list of conditions. The first field in the list is
andoror, followed by a list of operators and values.- advanced
Condition stringJson Contains a list of specific conditions including
active-between,scheduled-weekly, andfrequency-over. The first element in the list is the label for the condition, followed by a list of values for the specific condition. For more details on these conditions see Advanced Condition in the PagerDuty API documentation.
- action_
json str A list of one or more actions for each rule. Each action within the list is itself a list.
- condition_
json str Contains a list of conditions. The first field in the list is
andoror, followed by a list of operators and values.- advanced_
condition_ strjson Contains a list of specific conditions including
active-between,scheduled-weekly, andfrequency-over. The first element in the list is the label for the condition, followed by a list of values for the specific condition. For more details on these conditions see Advanced Condition in the PagerDuty API documentation.
Outputs
All input properties are implicitly available as output properties. Additionally, the EventRule resource produces the following output properties:
Look up an Existing EventRule Resource
Get an existing EventRule 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?: EventRuleState, opts?: CustomResourceOptions): EventRulestatic get(resource_name, id, opts=None, action_json=None, advanced_condition_json=None, catch_all=None, condition_json=None, __props__=None);func GetEventRule(ctx *Context, name string, id IDInput, state *EventRuleState, opts ...ResourceOption) (*EventRule, error)public static EventRule Get(string name, Input<string> id, EventRuleState? 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:
- Action
Json string A list of one or more actions for each rule. Each action within the list is itself a list.
- Advanced
Condition stringJson Contains a list of specific conditions including
active-between,scheduled-weekly, andfrequency-over. The first element in the list is the label for the condition, followed by a list of values for the specific condition. For more details on these conditions see Advanced Condition in the PagerDuty API documentation.- Catch
All bool A boolean that indicates whether the rule is a catch all for the account. This field is read-only through the PagerDuty API.
- Condition
Json string Contains a list of conditions. The first field in the list is
andoror, followed by a list of operators and values.
- Action
Json string A list of one or more actions for each rule. Each action within the list is itself a list.
- Advanced
Condition stringJson Contains a list of specific conditions including
active-between,scheduled-weekly, andfrequency-over. The first element in the list is the label for the condition, followed by a list of values for the specific condition. For more details on these conditions see Advanced Condition in the PagerDuty API documentation.- Catch
All bool A boolean that indicates whether the rule is a catch all for the account. This field is read-only through the PagerDuty API.
- Condition
Json string Contains a list of conditions. The first field in the list is
andoror, followed by a list of operators and values.
- action
Json string A list of one or more actions for each rule. Each action within the list is itself a list.
- advanced
Condition stringJson Contains a list of specific conditions including
active-between,scheduled-weekly, andfrequency-over. The first element in the list is the label for the condition, followed by a list of values for the specific condition. For more details on these conditions see Advanced Condition in the PagerDuty API documentation.- catch
All boolean A boolean that indicates whether the rule is a catch all for the account. This field is read-only through the PagerDuty API.
- condition
Json string Contains a list of conditions. The first field in the list is
andoror, followed by a list of operators and values.
- action_
json str A list of one or more actions for each rule. Each action within the list is itself a list.
- advanced_
condition_ strjson Contains a list of specific conditions including
active-between,scheduled-weekly, andfrequency-over. The first element in the list is the label for the condition, followed by a list of values for the specific condition. For more details on these conditions see Advanced Condition in the PagerDuty API documentation.- catch_
all bool A boolean that indicates whether the rule is a catch all for the account. This field is read-only through the PagerDuty API.
- condition_
json str Contains a list of conditions. The first field in the list is
andoror, followed by a list of operators and values.
Package Details
- Repository
- https://github.com/pulumi/pulumi-pagerduty
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
pagerdutyTerraform Provider.