@lbrlabs/pulumi-harness
Version:
A Pulumi package for creating and managing Harness resources.
78 lines • 2.76 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.getGitopsApplicationsOutput = exports.getGitopsApplications = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Datasource for fetching a Harness GitOps Application.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as harness from "@pulumi/harness";
*
* const example = harness.platform.getGitopsApplications({
* accountId: "account_id",
* agentId: "agent_id",
* identifier: "identifier",
* orgId: "org_id",
* projectId: "project_id",
* repoId: "repo_id",
* });
* ```
*/
function getGitopsApplications(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("harness:platform/getGitopsApplications:getGitopsApplications", {
"accountId": args.accountId,
"agentId": args.agentId,
"applications": args.applications,
"clusterId": args.clusterId,
"identifier": args.identifier,
"kind": args.kind,
"name": args.name,
"optionsRemoveExistingFinalizers": args.optionsRemoveExistingFinalizers,
"orgId": args.orgId,
"project": args.project,
"projectId": args.projectId,
"queryProject": args.queryProject,
"queryRefresh": args.queryRefresh,
"queryRepo": args.queryRepo,
"queryResourceVersion": args.queryResourceVersion,
"querySelector": args.querySelector,
"repoId": args.repoId,
"requestCascade": args.requestCascade,
"requestName": args.requestName,
"requestPropagationPolicy": args.requestPropagationPolicy,
"upsert": args.upsert,
"validate": args.validate,
}, opts);
}
exports.getGitopsApplications = getGitopsApplications;
/**
* Datasource for fetching a Harness GitOps Application.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as harness from "@pulumi/harness";
*
* const example = harness.platform.getGitopsApplications({
* accountId: "account_id",
* agentId: "agent_id",
* identifier: "identifier",
* orgId: "org_id",
* projectId: "project_id",
* repoId: "repo_id",
* });
* ```
*/
function getGitopsApplicationsOutput(args, opts) {
return pulumi.output(args).apply((a) => getGitopsApplications(a, opts));
}
exports.getGitopsApplicationsOutput = getGitopsApplicationsOutput;
//# sourceMappingURL=getGitopsApplications.js.map