UNPKG

@lbrlabs/pulumi-harness

Version:

A Pulumi package for creating and managing Harness resources.

164 lines (163 loc) 4.55 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Resource for creating a Harness Variables. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@lbrlabs/pulumi-harness"; * * const test = new harness.platform.Variables("test", { * identifier: "identifier", * orgId: "org_id", * projectId: "project_id", * spec: { * fixedValue: "fixedValue", * valueType: "FIXED", * }, * type: "String", * }); * ``` * * ## Import * * Import account level variables * * ```sh * $ pulumi import harness:platform/variables:Variables example <variable_id> * ``` * * Import org level variables * * ```sh * $ pulumi import harness:platform/variables:Variables example <ord_id>/<variable_id> * ``` * * Import project level variables * * ```sh * $ pulumi import harness:platform/variables:Variables example <org_id>/<project_id>/<variable_id> * ``` */ export declare class Variables extends pulumi.CustomResource { /** * Get an existing Variables resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: VariablesState, opts?: pulumi.CustomResourceOptions): Variables; /** * Returns true if the given object is an instance of Variables. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Variables; /** * Description of the entity */ readonly description: pulumi.Output<string | undefined>; /** * Unique identifier of the resource */ readonly identifier: pulumi.Output<string>; /** * Name of the Variable */ readonly name: pulumi.Output<string>; /** * Organization Identifier for the Entity */ readonly orgId: pulumi.Output<string | undefined>; /** * Project Identifier for the Entity */ readonly projectId: pulumi.Output<string | undefined>; /** * List of Spec Fields. */ readonly spec: pulumi.Output<outputs.platform.VariablesSpec>; /** * Type of Variable */ readonly type: pulumi.Output<string>; /** * Create a Variables resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: VariablesArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Variables resources. */ export interface VariablesState { /** * Description of the entity */ description?: pulumi.Input<string>; /** * Unique identifier of the resource */ identifier?: pulumi.Input<string>; /** * Name of the Variable */ name?: pulumi.Input<string>; /** * Organization Identifier for the Entity */ orgId?: pulumi.Input<string>; /** * Project Identifier for the Entity */ projectId?: pulumi.Input<string>; /** * List of Spec Fields. */ spec?: pulumi.Input<inputs.platform.VariablesSpec>; /** * Type of Variable */ type?: pulumi.Input<string>; } /** * The set of arguments for constructing a Variables resource. */ export interface VariablesArgs { /** * Description of the entity */ description?: pulumi.Input<string>; /** * Unique identifier of the resource */ identifier: pulumi.Input<string>; /** * Name of the Variable */ name?: pulumi.Input<string>; /** * Organization Identifier for the Entity */ orgId?: pulumi.Input<string>; /** * Project Identifier for the Entity */ projectId?: pulumi.Input<string>; /** * List of Spec Fields. */ spec: pulumi.Input<inputs.platform.VariablesSpec>; /** * Type of Variable */ type: pulumi.Input<string>; }