@pulumi/harness
Version:
A Pulumi package for creating and managing Harness resources.
66 lines • 2.1 kB
JavaScript
;
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getTriggersOutput = exports.getTriggers = 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 example = harness.platform.getTriggers({
* identifier: "identifier",
* orgId: "org_id",
* projectId: "project_id",
* targetId: "pipeline_id",
* });
* ```
*/
function getTriggers(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("harness:platform/getTriggers:getTriggers", {
"identifier": args.identifier,
"ignoreError": args.ignoreError,
"name": args.name,
"orgId": args.orgId,
"projectId": args.projectId,
"targetId": args.targetId,
}, opts);
}
exports.getTriggers = getTriggers;
/**
* Data source for retrieving a Harness trigger.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as harness from "@pulumi/harness";
*
* const example = harness.platform.getTriggers({
* identifier: "identifier",
* orgId: "org_id",
* projectId: "project_id",
* targetId: "pipeline_id",
* });
* ```
*/
function getTriggersOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("harness:platform/getTriggers:getTriggers", {
"identifier": args.identifier,
"ignoreError": args.ignoreError,
"name": args.name,
"orgId": args.orgId,
"projectId": args.projectId,
"targetId": args.targetId,
}, opts);
}
exports.getTriggersOutput = getTriggersOutput;
//# sourceMappingURL=getTriggers.js.map