sentry.SentryRule
Explore with Pulumi AI
WARNING: This resource is deprecated and will be removed in the next major version. Use the
sentry.SentryIssueAlert
resource instead.
Create SentryRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SentryRule(name: string, args: SentryRuleArgs, opts?: CustomResourceOptions);
@overload
def SentryRule(resource_name: str,
args: SentryRuleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SentryRule(resource_name: str,
opts: Optional[ResourceOptions] = None,
action_match: Optional[str] = None,
actions: Optional[Sequence[Mapping[str, str]]] = None,
conditions: Optional[Sequence[Mapping[str, str]]] = None,
filter_match: Optional[str] = None,
frequency: Optional[int] = None,
organization: Optional[str] = None,
project: Optional[str] = None,
environment: Optional[str] = None,
filters: Optional[Sequence[Mapping[str, str]]] = None,
name: Optional[str] = None)
func NewSentryRule(ctx *Context, name string, args SentryRuleArgs, opts ...ResourceOption) (*SentryRule, error)
public SentryRule(string name, SentryRuleArgs args, CustomResourceOptions? opts = null)
public SentryRule(String name, SentryRuleArgs args)
public SentryRule(String name, SentryRuleArgs args, CustomResourceOptions options)
type: sentry:SentryRule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args SentryRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args SentryRuleArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SentryRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SentryRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SentryRuleArgs
- 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 sentryRuleResource = new Sentry.SentryRule("sentryRuleResource", new()
{
ActionMatch = "string",
Actions = new[]
{
{
{ "string", "string" },
},
},
Conditions = new[]
{
{
{ "string", "string" },
},
},
FilterMatch = "string",
Frequency = 0,
Organization = "string",
Project = "string",
Environment = "string",
Filters = new[]
{
{
{ "string", "string" },
},
},
Name = "string",
});
example, err := sentry.NewSentryRule(ctx, "sentryRuleResource", &sentry.SentryRuleArgs{
ActionMatch: pulumi.String("string"),
Actions: pulumi.StringMapArray{
pulumi.StringMap{
"string": pulumi.String("string"),
},
},
Conditions: pulumi.StringMapArray{
pulumi.StringMap{
"string": pulumi.String("string"),
},
},
FilterMatch: pulumi.String("string"),
Frequency: pulumi.Int(0),
Organization: pulumi.String("string"),
Project: pulumi.String("string"),
Environment: pulumi.String("string"),
Filters: pulumi.StringMapArray{
pulumi.StringMap{
"string": pulumi.String("string"),
},
},
Name: pulumi.String("string"),
})
var sentryRuleResource = new SentryRule("sentryRuleResource", SentryRuleArgs.builder()
.actionMatch("string")
.actions(Map.of("string", "string"))
.conditions(Map.of("string", "string"))
.filterMatch("string")
.frequency(0)
.organization("string")
.project("string")
.environment("string")
.filters(Map.of("string", "string"))
.name("string")
.build());
sentry_rule_resource = sentry.SentryRule("sentryRuleResource",
action_match="string",
actions=[{
"string": "string",
}],
conditions=[{
"string": "string",
}],
filter_match="string",
frequency=0,
organization="string",
project="string",
environment="string",
filters=[{
"string": "string",
}],
name="string")
const sentryRuleResource = new sentry.SentryRule("sentryRuleResource", {
actionMatch: "string",
actions: [{
string: "string",
}],
conditions: [{
string: "string",
}],
filterMatch: "string",
frequency: 0,
organization: "string",
project: "string",
environment: "string",
filters: [{
string: "string",
}],
name: "string",
});
type: sentry:SentryRule
properties:
actionMatch: string
actions:
- string: string
conditions:
- string: string
environment: string
filterMatch: string
filters:
- string: string
frequency: 0
name: string
organization: string
project: string
SentryRule 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 SentryRule resource accepts the following input properties:
- Action
Match string - Trigger actions when an event is captured by Sentry and
any
orall
of the specified conditions happen. - Actions
List<Immutable
Dictionary<string, string>> - List of actions.
- Conditions
List<Immutable
Dictionary<string, string>> - List of conditions.
- Filter
Match string - Trigger actions if
all
,any
, ornone
of the specified filters match. - Frequency int
- Perform actions at most once every
X
minutes for this issue. Defaults to30
. - Organization string
- The slug of the organization the issue alert belongs to.
- Project string
- The slug of the project to create the issue alert for.
- Environment string
- Perform issue alert in a specific environment.
- Filters
List<Immutable
Dictionary<string, string>> - List of filters.
- Name string
- The issue alert name.
- Action
Match string - Trigger actions when an event is captured by Sentry and
any
orall
of the specified conditions happen. - Actions []map[string]string
- List of actions.
- Conditions []map[string]string
- List of conditions.
- Filter
Match string - Trigger actions if
all
,any
, ornone
of the specified filters match. - Frequency int
- Perform actions at most once every
X
minutes for this issue. Defaults to30
. - Organization string
- The slug of the organization the issue alert belongs to.
- Project string
- The slug of the project to create the issue alert for.
- Environment string
- Perform issue alert in a specific environment.
- Filters []map[string]string
- List of filters.
- Name string
- The issue alert name.
- action
Match String - Trigger actions when an event is captured by Sentry and
any
orall
of the specified conditions happen. - actions List<Map<String,String>>
- List of actions.
- conditions List<Map<String,String>>
- List of conditions.
- filter
Match String - Trigger actions if
all
,any
, ornone
of the specified filters match. - frequency Integer
- Perform actions at most once every
X
minutes for this issue. Defaults to30
. - organization String
- The slug of the organization the issue alert belongs to.
- project String
- The slug of the project to create the issue alert for.
- environment String
- Perform issue alert in a specific environment.
- filters List<Map<String,String>>
- List of filters.
- name String
- The issue alert name.
- action
Match string - Trigger actions when an event is captured by Sentry and
any
orall
of the specified conditions happen. - actions {[key: string]: string}[]
- List of actions.
- conditions {[key: string]: string}[]
- List of conditions.
- filter
Match string - Trigger actions if
all
,any
, ornone
of the specified filters match. - frequency number
- Perform actions at most once every
X
minutes for this issue. Defaults to30
. - organization string
- The slug of the organization the issue alert belongs to.
- project string
- The slug of the project to create the issue alert for.
- environment string
- Perform issue alert in a specific environment.
- filters {[key: string]: string}[]
- List of filters.
- name string
- The issue alert name.
- action_
match str - Trigger actions when an event is captured by Sentry and
any
orall
of the specified conditions happen. - actions Sequence[Mapping[str, str]]
- List of actions.
- conditions Sequence[Mapping[str, str]]
- List of conditions.
- filter_
match str - Trigger actions if
all
,any
, ornone
of the specified filters match. - frequency int
- Perform actions at most once every
X
minutes for this issue. Defaults to30
. - organization str
- The slug of the organization the issue alert belongs to.
- project str
- The slug of the project to create the issue alert for.
- environment str
- Perform issue alert in a specific environment.
- filters Sequence[Mapping[str, str]]
- List of filters.
- name str
- The issue alert name.
- action
Match String - Trigger actions when an event is captured by Sentry and
any
orall
of the specified conditions happen. - actions List<Map<String>>
- List of actions.
- conditions List<Map<String>>
- List of conditions.
- filter
Match String - Trigger actions if
all
,any
, ornone
of the specified filters match. - frequency Number
- Perform actions at most once every
X
minutes for this issue. Defaults to30
. - organization String
- The slug of the organization the issue alert belongs to.
- project String
- The slug of the project to create the issue alert for.
- environment String
- Perform issue alert in a specific environment.
- filters List<Map<String>>
- List of filters.
- name String
- The issue alert name.
Outputs
All input properties are implicitly available as output properties. Additionally, the SentryRule resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Internal
Id string - The internal ID for this issue alert.
- Projects List<string>
- Use
project
(singular) instead.
- Id string
- The provider-assigned unique ID for this managed resource.
- Internal
Id string - The internal ID for this issue alert.
- Projects []string
- Use
project
(singular) instead.
- id String
- The provider-assigned unique ID for this managed resource.
- internal
Id String - The internal ID for this issue alert.
- projects List<String>
- Use
project
(singular) instead.
- id string
- The provider-assigned unique ID for this managed resource.
- internal
Id string - The internal ID for this issue alert.
- projects string[]
- Use
project
(singular) instead.
- id str
- The provider-assigned unique ID for this managed resource.
- internal_
id str - The internal ID for this issue alert.
- projects Sequence[str]
- Use
project
(singular) instead.
- id String
- The provider-assigned unique ID for this managed resource.
- internal
Id String - The internal ID for this issue alert.
- projects List<String>
- Use
project
(singular) instead.
Look up Existing SentryRule Resource
Get an existing SentryRule 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?: SentryRuleState, opts?: CustomResourceOptions): SentryRule
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
action_match: Optional[str] = None,
actions: Optional[Sequence[Mapping[str, str]]] = None,
conditions: Optional[Sequence[Mapping[str, str]]] = None,
environment: Optional[str] = None,
filter_match: Optional[str] = None,
filters: Optional[Sequence[Mapping[str, str]]] = None,
frequency: Optional[int] = None,
internal_id: Optional[str] = None,
name: Optional[str] = None,
organization: Optional[str] = None,
project: Optional[str] = None,
projects: Optional[Sequence[str]] = None) -> SentryRule
func GetSentryRule(ctx *Context, name string, id IDInput, state *SentryRuleState, opts ...ResourceOption) (*SentryRule, error)
public static SentryRule Get(string name, Input<string> id, SentryRuleState? state, CustomResourceOptions? opts = null)
public static SentryRule get(String name, Output<String> id, SentryRuleState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- 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.
- Action
Match string - Trigger actions when an event is captured by Sentry and
any
orall
of the specified conditions happen. - Actions
List<Immutable
Dictionary<string, string>> - List of actions.
- Conditions
List<Immutable
Dictionary<string, string>> - List of conditions.
- Environment string
- Perform issue alert in a specific environment.
- Filter
Match string - Trigger actions if
all
,any
, ornone
of the specified filters match. - Filters
List<Immutable
Dictionary<string, string>> - List of filters.
- Frequency int
- Perform actions at most once every
X
minutes for this issue. Defaults to30
. - Internal
Id string - The internal ID for this issue alert.
- Name string
- The issue alert name.
- Organization string
- The slug of the organization the issue alert belongs to.
- Project string
- The slug of the project to create the issue alert for.
- Projects List<string>
- Use
project
(singular) instead.
- Action
Match string - Trigger actions when an event is captured by Sentry and
any
orall
of the specified conditions happen. - Actions []map[string]string
- List of actions.
- Conditions []map[string]string
- List of conditions.
- Environment string
- Perform issue alert in a specific environment.
- Filter
Match string - Trigger actions if
all
,any
, ornone
of the specified filters match. - Filters []map[string]string
- List of filters.
- Frequency int
- Perform actions at most once every
X
minutes for this issue. Defaults to30
. - Internal
Id string - The internal ID for this issue alert.
- Name string
- The issue alert name.
- Organization string
- The slug of the organization the issue alert belongs to.
- Project string
- The slug of the project to create the issue alert for.
- Projects []string
- Use
project
(singular) instead.
- action
Match String - Trigger actions when an event is captured by Sentry and
any
orall
of the specified conditions happen. - actions List<Map<String,String>>
- List of actions.
- conditions List<Map<String,String>>
- List of conditions.
- environment String
- Perform issue alert in a specific environment.
- filter
Match String - Trigger actions if
all
,any
, ornone
of the specified filters match. - filters List<Map<String,String>>
- List of filters.
- frequency Integer
- Perform actions at most once every
X
minutes for this issue. Defaults to30
. - internal
Id String - The internal ID for this issue alert.
- name String
- The issue alert name.
- organization String
- The slug of the organization the issue alert belongs to.
- project String
- The slug of the project to create the issue alert for.
- projects List<String>
- Use
project
(singular) instead.
- action
Match string - Trigger actions when an event is captured by Sentry and
any
orall
of the specified conditions happen. - actions {[key: string]: string}[]
- List of actions.
- conditions {[key: string]: string}[]
- List of conditions.
- environment string
- Perform issue alert in a specific environment.
- filter
Match string - Trigger actions if
all
,any
, ornone
of the specified filters match. - filters {[key: string]: string}[]
- List of filters.
- frequency number
- Perform actions at most once every
X
minutes for this issue. Defaults to30
. - internal
Id string - The internal ID for this issue alert.
- name string
- The issue alert name.
- organization string
- The slug of the organization the issue alert belongs to.
- project string
- The slug of the project to create the issue alert for.
- projects string[]
- Use
project
(singular) instead.
- action_
match str - Trigger actions when an event is captured by Sentry and
any
orall
of the specified conditions happen. - actions Sequence[Mapping[str, str]]
- List of actions.
- conditions Sequence[Mapping[str, str]]
- List of conditions.
- environment str
- Perform issue alert in a specific environment.
- filter_
match str - Trigger actions if
all
,any
, ornone
of the specified filters match. - filters Sequence[Mapping[str, str]]
- List of filters.
- frequency int
- Perform actions at most once every
X
minutes for this issue. Defaults to30
. - internal_
id str - The internal ID for this issue alert.
- name str
- The issue alert name.
- organization str
- The slug of the organization the issue alert belongs to.
- project str
- The slug of the project to create the issue alert for.
- projects Sequence[str]
- Use
project
(singular) instead.
- action
Match String - Trigger actions when an event is captured by Sentry and
any
orall
of the specified conditions happen. - actions List<Map<String>>
- List of actions.
- conditions List<Map<String>>
- List of conditions.
- environment String
- Perform issue alert in a specific environment.
- filter
Match String - Trigger actions if
all
,any
, ornone
of the specified filters match. - filters List<Map<String>>
- List of filters.
- frequency Number
- Perform actions at most once every
X
minutes for this issue. Defaults to30
. - internal
Id String - The internal ID for this issue alert.
- name String
- The issue alert name.
- organization String
- The slug of the organization the issue alert belongs to.
- project String
- The slug of the project to create the issue alert for.
- projects List<String>
- Use
project
(singular) instead.
Package Details
- Repository
- sentry pulumiverse/pulumi-sentry
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
sentry
Terraform Provider.