UNPKG

@pulumi/harness

Version:

A Pulumi package for creating and managing Harness resources.

113 lines (112 loc) 2.63 kB
import * as pulumi from "@pulumi/pulumi"; /** * Data source for retrieving a Harness project. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * const exampleById = harness.platform.getProject({ * identifier: "identifier", * orgId: "org_id", * }); * const exampleByName = harness.platform.getProject({ * name: "name", * orgId: "org_id", * }); * ``` */ export declare function getProject(args: GetProjectArgs, opts?: pulumi.InvokeOptions): Promise<GetProjectResult>; /** * A collection of arguments for invoking getProject. */ export interface GetProjectArgs { /** * Unique identifier of the resource. */ identifier?: string; /** * Name of the resource. */ name?: string; /** * Unique identifier of the organization. */ orgId: string; } /** * A collection of values returned by getProject. */ export interface GetProjectResult { /** * Color of the project. */ readonly color: string; /** * Description of the resource. */ readonly description: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * Unique identifier of the resource. */ readonly identifier?: string; /** * Modules in the project. */ readonly modules: string[]; /** * Name of the resource. */ readonly name?: string; /** * Unique identifier of the organization. */ readonly orgId: string; /** * Tags to associate with the resource. */ readonly tags: string[]; } /** * Data source for retrieving a Harness project. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * const exampleById = harness.platform.getProject({ * identifier: "identifier", * orgId: "org_id", * }); * const exampleByName = harness.platform.getProject({ * name: "name", * orgId: "org_id", * }); * ``` */ export declare function getProjectOutput(args: GetProjectOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetProjectResult>; /** * A collection of arguments for invoking getProject. */ export interface GetProjectOutputArgs { /** * Unique identifier of the resource. */ identifier?: pulumi.Input<string>; /** * Name of the resource. */ name?: pulumi.Input<string>; /** * Unique identifier of the organization. */ orgId: pulumi.Input<string>; }