Class 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,
},
});
}
}
Inheritance
Inherited Members
Namespace: Pulumi.Pagerduty
Assembly: Pulumi.Pagerduty.dll
Syntax
public class Ruleset : CustomResource
Constructors
View SourceRuleset(String, RulesetArgs, CustomResourceOptions)
Create a Ruleset resource with the given unique name, arguments, and options.
Declaration
public Ruleset(string name, RulesetArgs args = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| RulesetArgs | 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 SourceName
Name of the ruleset.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Pulumi.Output<System.String> |
RoutingKeys
Routing keys routed to this ruleset.
Declaration
public Output<ImmutableArray<string>> RoutingKeys { get; }
Property Value
| Type | Description |
|---|---|
| Pulumi.Output<System.Collections.Immutable.ImmutableArray<System.String>> |
Team
Reference to the team that owns the ruleset. If none is specified, only admins have access.
Declaration
public Output<RulesetTeam> Team { get; }
Property Value
| Type | Description |
|---|---|
| Pulumi.Output<RulesetTeam> |
Type
Type of ruleset. Currently only sets to global.
Declaration
public Output<string> Type { get; }
Property Value
| Type | Description |
|---|---|
| Pulumi.Output<System.String> |
Methods
View SourceGet(String, Input<String>, RulesetState, CustomResourceOptions)
Get an existing Ruleset resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static Ruleset Get(string name, Input<string> id, RulesetState 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. |
| RulesetState | state | Any extra arguments used during the lookup. |
| Pulumi.CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| Ruleset |