UNPKG

@lbrlabs/pulumi-harness

Version:

A Pulumi package for creating and managing Harness resources.

137 lines (136 loc) 3.6 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Data source for fetching a Harness GitOps Cluster. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * const example = harness.platform.getGitopsCluster({ * accountId: "account_id", * agentId: "agent_id", * identifier: "identifier", * orgId: "org_id", * projectId: "project_id", * }); * ``` */ export declare function getGitopsCluster(args: GetGitopsClusterArgs, opts?: pulumi.InvokeOptions): Promise<GetGitopsClusterResult>; /** * A collection of arguments for invoking getGitopsCluster. */ export interface GetGitopsClusterArgs { /** * Account identifier of the GitOps cluster. */ accountId: string; /** * Agent identifier of the GitOps cluster. */ agentId: string; /** * Identifier of the GitOps cluster. */ identifier: string; /** * Organization identifier of the cluster. */ orgId?: string; /** * Project identifier of the GitOps cluster. */ projectId?: string; /** * Query for the GitOps cluster resources. */ queries?: inputs.platform.GetGitopsClusterQuery[]; } /** * A collection of values returned by getGitopsCluster. */ export interface GetGitopsClusterResult { /** * Account identifier of the GitOps cluster. */ readonly accountId: string; /** * Agent identifier of the GitOps cluster. */ readonly agentId: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * Identifier of the GitOps cluster. */ readonly identifier: string; /** * Organization identifier of the cluster. */ readonly orgId?: string; /** * Project identifier of the GitOps cluster. */ readonly projectId?: string; /** * Query for the GitOps cluster resources. */ readonly queries?: outputs.platform.GetGitopsClusterQuery[]; /** * Cluster create or update request. */ readonly requests: outputs.platform.GetGitopsClusterRequest[]; } /** * Data source for fetching a Harness GitOps Cluster. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * const example = harness.platform.getGitopsCluster({ * accountId: "account_id", * agentId: "agent_id", * identifier: "identifier", * orgId: "org_id", * projectId: "project_id", * }); * ``` */ export declare function getGitopsClusterOutput(args: GetGitopsClusterOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetGitopsClusterResult>; /** * A collection of arguments for invoking getGitopsCluster. */ export interface GetGitopsClusterOutputArgs { /** * Account identifier of the GitOps cluster. */ accountId: pulumi.Input<string>; /** * Agent identifier of the GitOps cluster. */ agentId: pulumi.Input<string>; /** * Identifier of the GitOps cluster. */ identifier: pulumi.Input<string>; /** * Organization identifier of the cluster. */ orgId?: pulumi.Input<string>; /** * Project identifier of the GitOps cluster. */ projectId?: pulumi.Input<string>; /** * Query for the GitOps cluster resources. */ queries?: pulumi.Input<pulumi.Input<inputs.platform.GetGitopsClusterQueryArgs>[]>; }