1. Packages
  2. Sentry
  3. API Docs
  4. SentryRule
Sentry v0.0.9 published on Friday, Nov 15, 2024 by Pulumiverse

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 This property is required. string
The unique name of the resource.
args This property is required. SentryRuleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. SentryRuleArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. SentryRuleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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",
});
Copy
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"),
})
Copy
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());
Copy
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")
Copy
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",
});
Copy
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
Copy

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:

ActionMatch This property is required. string
Trigger actions when an event is captured by Sentry and any or all of the specified conditions happen.
Actions This property is required. List<ImmutableDictionary<string, string>>
List of actions.
Conditions This property is required. List<ImmutableDictionary<string, string>>
List of conditions.
FilterMatch This property is required. string
Trigger actions if all, any, or none of the specified filters match.
Frequency This property is required. int
Perform actions at most once every X minutes for this issue. Defaults to 30.
Organization This property is required. string
The slug of the organization the issue alert belongs to.
Project This property is required. string
The slug of the project to create the issue alert for.
Environment string
Perform issue alert in a specific environment.
Filters List<ImmutableDictionary<string, string>>
List of filters.
Name string
The issue alert name.
ActionMatch This property is required. string
Trigger actions when an event is captured by Sentry and any or all of the specified conditions happen.
Actions This property is required. []map[string]string
List of actions.
Conditions This property is required. []map[string]string
List of conditions.
FilterMatch This property is required. string
Trigger actions if all, any, or none of the specified filters match.
Frequency This property is required. int
Perform actions at most once every X minutes for this issue. Defaults to 30.
Organization This property is required. string
The slug of the organization the issue alert belongs to.
Project This property is required. 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.
actionMatch This property is required. String
Trigger actions when an event is captured by Sentry and any or all of the specified conditions happen.
actions This property is required. List<Map<String,String>>
List of actions.
conditions This property is required. List<Map<String,String>>
List of conditions.
filterMatch This property is required. String
Trigger actions if all, any, or none of the specified filters match.
frequency This property is required. Integer
Perform actions at most once every X minutes for this issue. Defaults to 30.
organization This property is required. String
The slug of the organization the issue alert belongs to.
project This property is required. 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.
actionMatch This property is required. string
Trigger actions when an event is captured by Sentry and any or all of the specified conditions happen.
actions This property is required. {[key: string]: string}[]
List of actions.
conditions This property is required. {[key: string]: string}[]
List of conditions.
filterMatch This property is required. string
Trigger actions if all, any, or none of the specified filters match.
frequency This property is required. number
Perform actions at most once every X minutes for this issue. Defaults to 30.
organization This property is required. string
The slug of the organization the issue alert belongs to.
project This property is required. 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 This property is required. str
Trigger actions when an event is captured by Sentry and any or all of the specified conditions happen.
actions This property is required. Sequence[Mapping[str, str]]
List of actions.
conditions This property is required. Sequence[Mapping[str, str]]
List of conditions.
filter_match This property is required. str
Trigger actions if all, any, or none of the specified filters match.
frequency This property is required. int
Perform actions at most once every X minutes for this issue. Defaults to 30.
organization This property is required. str
The slug of the organization the issue alert belongs to.
project This property is required. 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.
actionMatch This property is required. String
Trigger actions when an event is captured by Sentry and any or all of the specified conditions happen.
actions This property is required. List<Map<String>>
List of actions.
conditions This property is required. List<Map<String>>
List of conditions.
filterMatch This property is required. String
Trigger actions if all, any, or none of the specified filters match.
frequency This property is required. Number
Perform actions at most once every X minutes for this issue. Defaults to 30.
organization This property is required. String
The slug of the organization the issue alert belongs to.
project This property is required. 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.
InternalId string
The internal ID for this issue alert.
Projects List<string>
Use project (singular) instead.

Deprecated: Use project (singular) instead.

Id string
The provider-assigned unique ID for this managed resource.
InternalId string
The internal ID for this issue alert.
Projects []string
Use project (singular) instead.

Deprecated: Use project (singular) instead.

id String
The provider-assigned unique ID for this managed resource.
internalId String
The internal ID for this issue alert.
projects List<String>
Use project (singular) instead.

Deprecated: Use project (singular) instead.

id string
The provider-assigned unique ID for this managed resource.
internalId string
The internal ID for this issue alert.
projects string[]
Use project (singular) instead.

Deprecated: 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.

Deprecated: Use project (singular) instead.

id String
The provider-assigned unique ID for this managed resource.
internalId String
The internal ID for this issue alert.
projects List<String>
Use project (singular) instead.

Deprecated: 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)
resources:  _:    type: sentry:SentryRule    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
ActionMatch string
Trigger actions when an event is captured by Sentry and any or all of the specified conditions happen.
Actions List<ImmutableDictionary<string, string>>
List of actions.
Conditions List<ImmutableDictionary<string, string>>
List of conditions.
Environment string
Perform issue alert in a specific environment.
FilterMatch string
Trigger actions if all, any, or none of the specified filters match.
Filters List<ImmutableDictionary<string, string>>
List of filters.
Frequency int
Perform actions at most once every X minutes for this issue. Defaults to 30.
InternalId 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.

Deprecated: Use project (singular) instead.

ActionMatch string
Trigger actions when an event is captured by Sentry and any or all 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.
FilterMatch string
Trigger actions if all, any, or none 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 to 30.
InternalId 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.

Deprecated: Use project (singular) instead.

actionMatch String
Trigger actions when an event is captured by Sentry and any or all 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.
filterMatch String
Trigger actions if all, any, or none 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 to 30.
internalId 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.

Deprecated: Use project (singular) instead.

actionMatch string
Trigger actions when an event is captured by Sentry and any or all 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.
filterMatch string
Trigger actions if all, any, or none 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 to 30.
internalId 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.

Deprecated: Use project (singular) instead.

action_match str
Trigger actions when an event is captured by Sentry and any or all 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, or none 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 to 30.
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.

Deprecated: Use project (singular) instead.

actionMatch String
Trigger actions when an event is captured by Sentry and any or all 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.
filterMatch String
Trigger actions if all, any, or none 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 to 30.
internalId 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.

Deprecated: 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.