UNPKG

@pulumi/harness

Version:

A Pulumi package for creating and managing Harness resources.

64 lines 2.07 kB
"use strict"; // *** 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.getDelegateOutput = exports.getDelegate = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Data source for retrieving a Harness delegate. If more than one delegate matches the query the first one will be returned. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * const example = harness.getDelegate({ * name: "harness-delegate", * type: "KUBERNETES", * status: "ENABLED", * }); * ``` */ function getDelegate(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("harness:index/getDelegate:getDelegate", { "hostname": args.hostname, "id": args.id, "name": args.name, "status": args.status, "type": args.type, }, opts); } exports.getDelegate = getDelegate; /** * Data source for retrieving a Harness delegate. If more than one delegate matches the query the first one will be returned. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * const example = harness.getDelegate({ * name: "harness-delegate", * type: "KUBERNETES", * status: "ENABLED", * }); * ``` */ function getDelegateOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("harness:index/getDelegate:getDelegate", { "hostname": args.hostname, "id": args.id, "name": args.name, "status": args.status, "type": args.type, }, opts); } exports.getDelegateOutput = getDelegateOutput; //# sourceMappingURL=getDelegate.js.map