@pulumi/scm
Version:
A Pulumi package for managing resources on Strata Cloud Manager.. Based on terraform-provider-scm: version v0.2.1
102 lines (101 loc) • 2.64 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Tag data source
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scm from "@pulumi/scm";
*
* // Look up the "production" tag by its name.
* const scmTagDs = scm.getTag({
* id: "66cbe56c-0300-4905-8455-d384978a0082",
* });
* export const tagOutputs = {
* productionId: scmTagDs.then(scmTagDs => scmTagDs.id),
* productionColor: scmTagDs.then(scmTagDs => scmTagDs.color),
* productionFolder: scmTagDs.then(scmTagDs => scmTagDs.folder),
* productionSnippet: scmTagDs.then(scmTagDs => scmTagDs.snippet),
* productionDevice: scmTagDs.then(scmTagDs => scmTagDs.device),
* };
* ```
*/
export declare function getTag(args: GetTagArgs, opts?: pulumi.InvokeOptions): Promise<GetTagResult>;
/**
* A collection of arguments for invoking getTag.
*/
export interface GetTagArgs {
/**
* The UUID of the tag
*/
id: string;
/**
* The name of the tag
*/
name?: string;
}
/**
* A collection of values returned by getTag.
*/
export interface GetTagResult {
/**
* The color of the tag
*/
readonly color: string;
/**
* The description of the tag
*/
readonly comments: string;
/**
* The device in which the resource is defined
*/
readonly device: string;
readonly folder: string;
/**
* The UUID of the tag
*/
readonly id: string;
/**
* The name of the tag
*/
readonly name: string;
readonly snippet: string;
readonly tfid: string;
}
/**
* Tag data source
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scm from "@pulumi/scm";
*
* // Look up the "production" tag by its name.
* const scmTagDs = scm.getTag({
* id: "66cbe56c-0300-4905-8455-d384978a0082",
* });
* export const tagOutputs = {
* productionId: scmTagDs.then(scmTagDs => scmTagDs.id),
* productionColor: scmTagDs.then(scmTagDs => scmTagDs.color),
* productionFolder: scmTagDs.then(scmTagDs => scmTagDs.folder),
* productionSnippet: scmTagDs.then(scmTagDs => scmTagDs.snippet),
* productionDevice: scmTagDs.then(scmTagDs => scmTagDs.device),
* };
* ```
*/
export declare function getTagOutput(args: GetTagOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetTagResult>;
/**
* A collection of arguments for invoking getTag.
*/
export interface GetTagOutputArgs {
/**
* The UUID of the tag
*/
id: pulumi.Input<string>;
/**
* The name of the tag
*/
name?: pulumi.Input<string>;
}