UNPKG

@lbrlabs/pulumi-harness

Version:

A Pulumi package for creating and managing Harness resources.

123 lines (122 loc) 2.86 kB
import * as pulumi from "@pulumi/pulumi"; /** * Data source for retrieving a Harness environment. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * const example = harness.platform.getEnvironment({ * identifier: "identifier", * orgId: "org_id", * projectId: "project_id", * }); * ``` */ export declare function getEnvironment(args: GetEnvironmentArgs, opts?: pulumi.InvokeOptions): Promise<GetEnvironmentResult>; /** * A collection of arguments for invoking getEnvironment. */ export interface GetEnvironmentArgs { /** * Unique identifier of the resource. */ identifier: string; /** * Name of the resource. */ name?: string; /** * Unique identifier of the organization. */ orgId?: string; /** * Unique identifier of the project. */ projectId?: string; } /** * A collection of values returned by getEnvironment. */ export interface GetEnvironmentResult { /** * Color of the environment. */ 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; /** * Name of the resource. */ readonly name?: string; /** * Unique identifier of the organization. */ readonly orgId?: string; /** * Unique identifier of the project. */ readonly projectId?: string; /** * Tags to associate with the resource. */ readonly tags: string[]; /** * The type of environment. */ readonly type: string; /** * Input Set YAML */ readonly yaml: string; } /** * Data source for retrieving a Harness environment. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * const example = harness.platform.getEnvironment({ * identifier: "identifier", * orgId: "org_id", * projectId: "project_id", * }); * ``` */ export declare function getEnvironmentOutput(args: GetEnvironmentOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetEnvironmentResult>; /** * A collection of arguments for invoking getEnvironment. */ export interface GetEnvironmentOutputArgs { /** * 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>; /** * Unique identifier of the project. */ projectId?: pulumi.Input<string>; }