Ruleset
Rulesets allow you to route events to an endpoint and create collections of event rules, which define sets of actions to take based on event content.
Example Usage
using Pulumi;
using Pagerduty = Pulumi.Pagerduty;
class MyStack : Stack
{
public MyStack()
{
var fooTeam = new Pagerduty.Team("fooTeam", new Pagerduty.TeamArgs
{
});
var fooRuleset = new Pagerduty.Ruleset("fooRuleset", new Pagerduty.RulesetArgs
{
Team = new Pagerduty.Inputs.RulesetTeamArgs
{
Id = fooTeam.Id,
},
});
}
}
Coming soon!
import pulumi
import pulumi_pagerduty as pagerduty
foo_team = pagerduty.Team("fooTeam")
foo_ruleset = pagerduty.Ruleset("fooRuleset", team={
"id": foo_team.id,
})import * as pulumi from "@pulumi/pulumi";
import * as pagerduty from "@pulumi/pagerduty";
const fooTeam = new pagerduty.Team("fooTeam", {});
const fooRuleset = new pagerduty.Ruleset("fooRuleset", {team: {
id: fooTeam.id,
}});Create a Ruleset Resource
new Ruleset(name: string, args?: RulesetArgs, opts?: CustomResourceOptions);def Ruleset(resource_name, opts=None, name=None, team=None, __props__=None);func NewRuleset(ctx *Context, name string, args *RulesetArgs, opts ...ResourceOption) (*Ruleset, error)public Ruleset(string name, RulesetArgs? args = null, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args RulesetArgs
- 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 RulesetArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RulesetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Ruleset Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Ruleset resource accepts the following input properties:
- Name string
Name of the ruleset.
- Team
Ruleset
Team Args Reference to the team that owns the ruleset. If none is specified, only admins have access.
- Name string
Name of the ruleset.
- Team
Ruleset
Team Reference to the team that owns the ruleset. If none is specified, only admins have access.
- name string
Name of the ruleset.
- team
Ruleset
Team Reference to the team that owns the ruleset. If none is specified, only admins have access.
- name str
Name of the ruleset.
- team
Dict[Ruleset
Team] Reference to the team that owns the ruleset. If none is specified, only admins have access.
Outputs
All input properties are implicitly available as output properties. Additionally, the Ruleset resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Routing
Keys List<string> Routing keys routed to this ruleset.
- Type string
Type of ruleset. Currently only sets to
global.
Look up an Existing Ruleset Resource
Get an existing Ruleset 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?: RulesetState, opts?: CustomResourceOptions): Rulesetstatic get(resource_name, id, opts=None, name=None, routing_keys=None, team=None, type=None, __props__=None);func GetRuleset(ctx *Context, name string, id IDInput, state *RulesetState, opts ...ResourceOption) (*Ruleset, error)public static Ruleset Get(string name, Input<string> id, RulesetState? 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:
- Name string
Name of the ruleset.
- Routing
Keys List<string> Routing keys routed to this ruleset.
- Team
Ruleset
Team Args Reference to the team that owns the ruleset. If none is specified, only admins have access.
- Type string
Type of ruleset. Currently only sets to
global.
- Name string
Name of the ruleset.
- Routing
Keys []string Routing keys routed to this ruleset.
- Team
Ruleset
Team Reference to the team that owns the ruleset. If none is specified, only admins have access.
- Type string
Type of ruleset. Currently only sets to
global.
- name string
Name of the ruleset.
- routing
Keys string[] Routing keys routed to this ruleset.
- team
Ruleset
Team Reference to the team that owns the ruleset. If none is specified, only admins have access.
- type string
Type of ruleset. Currently only sets to
global.
- name str
Name of the ruleset.
- routing_
keys List[str] Routing keys routed to this ruleset.
- team
Dict[Ruleset
Team] Reference to the team that owns the ruleset. If none is specified, only admins have access.
- type str
Type of ruleset. Currently only sets to
global.
Supporting Types
RulesetTeam
Package Details
- Repository
- https://github.com/pulumi/pulumi-pagerduty
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
pagerdutyTerraform Provider.