@pulumiverse/sentry
Version:
A Pulumi package for creating and managing Sentry resources.
88 lines • 4.11 kB
JavaScript
;
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getSentryIssueAlertOutput = exports.getSentryIssueAlert = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Sentry Issue Alert data source. As the object structure of `conditions`, `filters`, and `actions` are undocumented, a tip is to set up an Issue Alert via the Web UI, and use this data source to copy its object structure to your resources.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as sentry from "@pulumi/sentry";
* import * as sentry from "@pulumiverse/sentry";
*
* // Retrieve an Issue Alert
* // URL format: https://sentry.io/organizations/[organization]/alerts/rules/[project]/[internal_id]/details/
* const original = sentry.getSentryIssueAlert({
* organization: "my-organization",
* project: "my-project",
* internalId: "42",
* });
* // Create a copy of an Issue Alert
* const copy = new sentry.SentryIssueAlert("copy", {
* organization: original.then(original => original.organization),
* project: original.then(original => original.project),
* name: original.then(original => `${original.name}-copy`),
* actionMatch: original.then(original => original.actionMatch),
* filterMatch: original.then(original => original.filterMatch),
* frequency: original.then(original => original.frequency),
* conditions: original.then(original => original.conditions),
* filters: original.then(original => original.filters),
* actions: original.then(original => original.actions),
* });
* ```
*/
function getSentryIssueAlert(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("sentry:index/getSentryIssueAlert:getSentryIssueAlert", {
"internalId": args.internalId,
"organization": args.organization,
"project": args.project,
}, opts);
}
exports.getSentryIssueAlert = getSentryIssueAlert;
/**
* Sentry Issue Alert data source. As the object structure of `conditions`, `filters`, and `actions` are undocumented, a tip is to set up an Issue Alert via the Web UI, and use this data source to copy its object structure to your resources.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as sentry from "@pulumi/sentry";
* import * as sentry from "@pulumiverse/sentry";
*
* // Retrieve an Issue Alert
* // URL format: https://sentry.io/organizations/[organization]/alerts/rules/[project]/[internal_id]/details/
* const original = sentry.getSentryIssueAlert({
* organization: "my-organization",
* project: "my-project",
* internalId: "42",
* });
* // Create a copy of an Issue Alert
* const copy = new sentry.SentryIssueAlert("copy", {
* organization: original.then(original => original.organization),
* project: original.then(original => original.project),
* name: original.then(original => `${original.name}-copy`),
* actionMatch: original.then(original => original.actionMatch),
* filterMatch: original.then(original => original.filterMatch),
* frequency: original.then(original => original.frequency),
* conditions: original.then(original => original.conditions),
* filters: original.then(original => original.filters),
* actions: original.then(original => original.actions),
* });
* ```
*/
function getSentryIssueAlertOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("sentry:index/getSentryIssueAlert:getSentryIssueAlert", {
"internalId": args.internalId,
"organization": args.organization,
"project": args.project,
}, opts);
}
exports.getSentryIssueAlertOutput = getSentryIssueAlertOutput;
//# sourceMappingURL=getSentryIssueAlert.js.map