UNPKG

@pulumi/scm

Version:

A Pulumi package for managing resources on Strata Cloud Manager.. Based on terraform-provider-scm: version v0.2.1

99 lines (98 loc) 2.73 kB
import * as pulumi from "@pulumi/pulumi"; /** * Variable data source * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scm from "@pulumi/scm"; * * // Look up the "$example" variable by its name. * const scmVariableDs = scm.getVariable({ * id: "66cbe56c-0300-4905-8455-d384978a0081", * }); * export const variableOutputs = { * exampleId: scmVariableDs.then(scmVariableDs => scmVariableDs.id), * exampleName: scmVariableDs.then(scmVariableDs => scmVariableDs.name), * exampleType: scmVariableDs.then(scmVariableDs => scmVariableDs.type), * exampleValue: scmVariableDs.then(scmVariableDs => scmVariableDs.value), * }; * ``` */ export declare function getVariable(args: GetVariableArgs, opts?: pulumi.InvokeOptions): Promise<GetVariableResult>; /** * A collection of arguments for invoking getVariable. */ export interface GetVariableArgs { /** * UUID of the variable */ id: string; /** * The name of the variable */ name?: string; } /** * A collection of values returned by getVariable. */ export interface GetVariableResult { /** * The description of the variable */ readonly description: string; /** * The device in which the resource is defined */ readonly device: string; readonly folder: string; /** * UUID of the variable */ readonly id: string; /** * The name of the variable */ readonly name: string; readonly overridden: boolean; readonly snippet: string; readonly tfid: string; readonly type: string; readonly value: string; } /** * Variable data source * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scm from "@pulumi/scm"; * * // Look up the "$example" variable by its name. * const scmVariableDs = scm.getVariable({ * id: "66cbe56c-0300-4905-8455-d384978a0081", * }); * export const variableOutputs = { * exampleId: scmVariableDs.then(scmVariableDs => scmVariableDs.id), * exampleName: scmVariableDs.then(scmVariableDs => scmVariableDs.name), * exampleType: scmVariableDs.then(scmVariableDs => scmVariableDs.type), * exampleValue: scmVariableDs.then(scmVariableDs => scmVariableDs.value), * }; * ``` */ export declare function getVariableOutput(args: GetVariableOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetVariableResult>; /** * A collection of arguments for invoking getVariable. */ export interface GetVariableOutputArgs { /** * UUID of the variable */ id: pulumi.Input<string>; /** * The name of the variable */ name?: pulumi.Input<string>; }