@pulumiverse/sentry
Version:
A Pulumi package for creating and managing Sentry resources.
198 lines (197 loc) • 6.17 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* > **WARNING:** This resource is deprecated and will be removed in the next major version. Use the `sentry.SentryIssueAlert` resource instead.
*/
export declare class SentryRule extends pulumi.CustomResource {
/**
* Get an existing SentryRule resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: SentryRuleState, opts?: pulumi.CustomResourceOptions): SentryRule;
/**
* Returns true if the given object is an instance of SentryRule. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj: any): obj is SentryRule;
/**
* Trigger actions when an event is captured by Sentry and `any` or `all` of the specified conditions happen.
*/
readonly actionMatch: pulumi.Output<string>;
/**
* List of actions.
*/
readonly actions: pulumi.Output<{
[key: string]: string;
}[]>;
/**
* List of conditions.
*/
readonly conditions: pulumi.Output<{
[key: string]: string;
}[]>;
/**
* Perform issue alert in a specific environment.
*/
readonly environment: pulumi.Output<string>;
/**
* Trigger actions if `all`, `any`, or `none` of the specified filters match.
*/
readonly filterMatch: pulumi.Output<string>;
/**
* List of filters.
*/
readonly filters: pulumi.Output<{
[key: string]: string;
}[] | undefined>;
/**
* Perform actions at most once every `X` minutes for this issue. Defaults to `30`.
*/
readonly frequency: pulumi.Output<number>;
/**
* The internal ID for this issue alert.
*/
readonly internalId: pulumi.Output<string>;
/**
* The issue alert name.
*/
readonly name: pulumi.Output<string>;
/**
* The slug of the organization the issue alert belongs to.
*/
readonly organization: pulumi.Output<string>;
/**
* The slug of the project to create the issue alert for.
*/
readonly project: pulumi.Output<string>;
/**
* Use `project` (singular) instead.
*
* @deprecated Use `project` (singular) instead.
*/
readonly projects: pulumi.Output<string[]>;
/**
* Create a SentryRule resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args: SentryRuleArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering SentryRule resources.
*/
export interface SentryRuleState {
/**
* Trigger actions when an event is captured by Sentry and `any` or `all` of the specified conditions happen.
*/
actionMatch?: pulumi.Input<string>;
/**
* List of actions.
*/
actions?: pulumi.Input<pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>[]>;
/**
* List of conditions.
*/
conditions?: pulumi.Input<pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>[]>;
/**
* Perform issue alert in a specific environment.
*/
environment?: pulumi.Input<string>;
/**
* Trigger actions if `all`, `any`, or `none` of the specified filters match.
*/
filterMatch?: pulumi.Input<string>;
/**
* List of filters.
*/
filters?: pulumi.Input<pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>[]>;
/**
* Perform actions at most once every `X` minutes for this issue. Defaults to `30`.
*/
frequency?: pulumi.Input<number>;
/**
* The internal ID for this issue alert.
*/
internalId?: pulumi.Input<string>;
/**
* The issue alert name.
*/
name?: pulumi.Input<string>;
/**
* The slug of the organization the issue alert belongs to.
*/
organization?: pulumi.Input<string>;
/**
* The slug of the project to create the issue alert for.
*/
project?: pulumi.Input<string>;
/**
* Use `project` (singular) instead.
*
* @deprecated Use `project` (singular) instead.
*/
projects?: pulumi.Input<pulumi.Input<string>[]>;
}
/**
* The set of arguments for constructing a SentryRule resource.
*/
export interface SentryRuleArgs {
/**
* Trigger actions when an event is captured by Sentry and `any` or `all` of the specified conditions happen.
*/
actionMatch: pulumi.Input<string>;
/**
* List of actions.
*/
actions: pulumi.Input<pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>[]>;
/**
* List of conditions.
*/
conditions: pulumi.Input<pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>[]>;
/**
* Perform issue alert in a specific environment.
*/
environment?: pulumi.Input<string>;
/**
* Trigger actions if `all`, `any`, or `none` of the specified filters match.
*/
filterMatch: pulumi.Input<string>;
/**
* List of filters.
*/
filters?: pulumi.Input<pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>[]>;
/**
* Perform actions at most once every `X` minutes for this issue. Defaults to `30`.
*/
frequency: pulumi.Input<number>;
/**
* The issue alert name.
*/
name?: pulumi.Input<string>;
/**
* The slug of the organization the issue alert belongs to.
*/
organization: pulumi.Input<string>;
/**
* The slug of the project to create the issue alert for.
*/
project: pulumi.Input<string>;
}