UNPKG

@pulumi/scm

Version:

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

135 lines (134 loc) 4.57 kB
import * as pulumi from "@pulumi/pulumi"; /** * ApplicationGroup data source * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scm from "@pulumi/scm"; * * // Look up the application group by its ID from the terraform.tfstate file. * const scmApplicationGroupDs = scm.getApplicationGroup({ * id: "91616221-ddeb-4b49-866d-48d64dedc056", * }); * export const applicationGroupOutputs = { * groupId: scmApplicationGroupDs.then(scmApplicationGroupDs => scmApplicationGroupDs.id), * folder: scmApplicationGroupDs.then(scmApplicationGroupDs => scmApplicationGroupDs.folder), * name: scmApplicationGroupDs.then(scmApplicationGroupDs => scmApplicationGroupDs.name), * members: scmApplicationGroupDs.then(scmApplicationGroupDs => scmApplicationGroupDs.members), * }; * ``` */ export declare function getApplicationGroup(args: GetApplicationGroupArgs, opts?: pulumi.InvokeOptions): Promise<GetApplicationGroupResult>; /** * A collection of arguments for invoking getApplicationGroup. */ export interface GetApplicationGroupArgs { /** * The device in which the resource is defined * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ device?: string; /** * The folder in which the resource is defined * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ folder?: string; /** * UUID of the resource */ id: string; /** * Alphanumeric string [ 0-9a-zA-Z._-] */ name?: string; /** * The snippet in which the resource is defined * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ snippet?: string; } /** * A collection of values returned by getApplicationGroup. */ export interface GetApplicationGroupResult { /** * The device in which the resource is defined * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ readonly device: string; /** * The folder in which the resource is defined * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ readonly folder: string; /** * UUID of the resource */ readonly id: string; /** * Members */ readonly members: string[]; /** * Alphanumeric string [ 0-9a-zA-Z._-] */ readonly name: string; /** * The snippet in which the resource is defined * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ readonly snippet: string; readonly tfid: string; } /** * ApplicationGroup data source * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scm from "@pulumi/scm"; * * // Look up the application group by its ID from the terraform.tfstate file. * const scmApplicationGroupDs = scm.getApplicationGroup({ * id: "91616221-ddeb-4b49-866d-48d64dedc056", * }); * export const applicationGroupOutputs = { * groupId: scmApplicationGroupDs.then(scmApplicationGroupDs => scmApplicationGroupDs.id), * folder: scmApplicationGroupDs.then(scmApplicationGroupDs => scmApplicationGroupDs.folder), * name: scmApplicationGroupDs.then(scmApplicationGroupDs => scmApplicationGroupDs.name), * members: scmApplicationGroupDs.then(scmApplicationGroupDs => scmApplicationGroupDs.members), * }; * ``` */ export declare function getApplicationGroupOutput(args: GetApplicationGroupOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetApplicationGroupResult>; /** * A collection of arguments for invoking getApplicationGroup. */ export interface GetApplicationGroupOutputArgs { /** * The device in which the resource is defined * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ device?: pulumi.Input<string>; /** * The folder in which the resource is defined * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ folder?: pulumi.Input<string>; /** * UUID of the resource */ id: pulumi.Input<string>; /** * Alphanumeric string [ 0-9a-zA-Z._-] */ name?: pulumi.Input<string>; /** * The snippet in which the resource is defined * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ snippet?: pulumi.Input<string>; }