@pulumiverse/sentry
Version:
A Pulumi package for creating and managing Sentry resources.
74 lines • 2.27 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.getSentryKeyOutput = exports.getSentryKey = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Sentry Key data source.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as sentry from "@pulumi/sentry";
*
* // Retrieve a project key by name
* const default = sentry.getSentryKey({
* organization: "my-organization",
* project: "web-app",
* name: "Default",
* });
* // Retrieve the first key of a project
* const first = sentry.getSentryKey({
* organization: "my-organization",
* project: "web-app",
* first: true,
* });
* ```
*/
function getSentryKey(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("sentry:index/getSentryKey:getSentryKey", {
"first": args.first,
"name": args.name,
"organization": args.organization,
"project": args.project,
}, opts);
}
exports.getSentryKey = getSentryKey;
/**
* Sentry Key data source.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as sentry from "@pulumi/sentry";
*
* // Retrieve a project key by name
* const default = sentry.getSentryKey({
* organization: "my-organization",
* project: "web-app",
* name: "Default",
* });
* // Retrieve the first key of a project
* const first = sentry.getSentryKey({
* organization: "my-organization",
* project: "web-app",
* first: true,
* });
* ```
*/
function getSentryKeyOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("sentry:index/getSentryKey:getSentryKey", {
"first": args.first,
"name": args.name,
"organization": args.organization,
"project": args.project,
}, opts);
}
exports.getSentryKeyOutput = getSentryKeyOutput;
//# sourceMappingURL=getSentryKey.js.map