@lbrlabs/pulumi-harness
Version:
A Pulumi package for creating and managing Harness resources.
59 lines • 1.71 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.getTriggerOutput = exports.getTrigger = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Data source for retrieving a Harness trigger.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as harness from "@pulumi/harness";
*
* const exampleByName = harness.getTrigger({
* appId: "app_id",
* name: "name",
* });
* const exampleById = harness.getTrigger({
* id: "trigger_id",
* });
* ```
*/
function getTrigger(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("harness:index/getTrigger:getTrigger", {
"appId": args.appId,
"description": args.description,
"id": args.id,
"name": args.name,
}, opts);
}
exports.getTrigger = getTrigger;
/**
* Data source for retrieving a Harness trigger.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as harness from "@pulumi/harness";
*
* const exampleByName = harness.getTrigger({
* appId: "app_id",
* name: "name",
* });
* const exampleById = harness.getTrigger({
* id: "trigger_id",
* });
* ```
*/
function getTriggerOutput(args, opts) {
return pulumi.output(args).apply((a) => getTrigger(a, opts));
}
exports.getTriggerOutput = getTriggerOutput;
//# sourceMappingURL=getTrigger.js.map