UNPKG

@pulumi/scm

Version:

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

98 lines (97 loc) 2.82 kB
import * as pulumi from "@pulumi/pulumi"; /** * Snippet data source * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scm from "@pulumi/scm"; * * // Look up the "scm_snippet" tag by its id * const scmSnippetOutputsDs = scm.getSnippet({ * id: "b4811c43-e5f9-4b28-8316-7f18f97ba244", * }); * export const snippetOutputs = { * productionId: scmSnippetOutputsDs.then(scmSnippetOutputsDs => scmSnippetOutputsDs.id), * productionName: scmSnippetOutputsDs.then(scmSnippetOutputsDs => scmSnippetOutputsDs.name), * productionDescription: scmSnippetOutputsDs.then(scmSnippetOutputsDs => scmSnippetOutputsDs.description), * productionLabels: scmSnippetOutputsDs.then(scmSnippetOutputsDs => scmSnippetOutputsDs.labels), * }; * ``` */ export declare function getSnippet(args: GetSnippetArgs, opts?: pulumi.InvokeOptions): Promise<GetSnippetResult>; /** * A collection of arguments for invoking getSnippet. */ export interface GetSnippetArgs { /** * The UUID of the snippet */ id: string; /** * The name of the snippet */ name?: string; } /** * A collection of values returned by getSnippet. */ export interface GetSnippetResult { /** * The description of the snippet */ readonly description: string; /** * The UUID of the snippet */ readonly id: string; /** * Labels applied to the snippet */ readonly labels: string[]; /** * The name of the snippet */ readonly name: string; readonly tfid: string; /** * The snippet type */ readonly type: string; } /** * Snippet data source * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scm from "@pulumi/scm"; * * // Look up the "scm_snippet" tag by its id * const scmSnippetOutputsDs = scm.getSnippet({ * id: "b4811c43-e5f9-4b28-8316-7f18f97ba244", * }); * export const snippetOutputs = { * productionId: scmSnippetOutputsDs.then(scmSnippetOutputsDs => scmSnippetOutputsDs.id), * productionName: scmSnippetOutputsDs.then(scmSnippetOutputsDs => scmSnippetOutputsDs.name), * productionDescription: scmSnippetOutputsDs.then(scmSnippetOutputsDs => scmSnippetOutputsDs.description), * productionLabels: scmSnippetOutputsDs.then(scmSnippetOutputsDs => scmSnippetOutputsDs.labels), * }; * ``` */ export declare function getSnippetOutput(args: GetSnippetOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetSnippetResult>; /** * A collection of arguments for invoking getSnippet. */ export interface GetSnippetOutputArgs { /** * The UUID of the snippet */ id: pulumi.Input<string>; /** * The name of the snippet */ name?: pulumi.Input<string>; }