UNPKG

@pulumi/scm

Version:

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

131 lines (130 loc) 3.91 kB
import * as pulumi from "@pulumi/pulumi"; /** * ServiceGroup data source * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scm from "@pulumi/scm"; * * // Look up a single service group object by its ID. * // The ID used here is from the terraform.tfstate file. * const scmServiceGroupDs = scm.getServiceGroup({ * id: "dc430d61-52ca-44bc-a797-e65123a94134", * }); * export const serviceGroupDsResult = scmServiceGroupDs; * ``` */ export declare function getServiceGroup(args: GetServiceGroupArgs, opts?: pulumi.InvokeOptions): Promise<GetServiceGroupResult>; /** * A collection of arguments for invoking getServiceGroup. */ export interface GetServiceGroupArgs { /** * 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; /** * The UUID of the service group */ id: string; /** * The name of the service group */ 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 getServiceGroup. */ export interface GetServiceGroupResult { /** * 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; /** * The UUID of the service group */ readonly id: string; /** * Members */ readonly members: string[]; /** * The name of the service group */ 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; /** * Tags associated with the service group */ readonly tags: string[]; readonly tfid: string; } /** * ServiceGroup data source * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scm from "@pulumi/scm"; * * // Look up a single service group object by its ID. * // The ID used here is from the terraform.tfstate file. * const scmServiceGroupDs = scm.getServiceGroup({ * id: "dc430d61-52ca-44bc-a797-e65123a94134", * }); * export const serviceGroupDsResult = scmServiceGroupDs; * ``` */ export declare function getServiceGroupOutput(args: GetServiceGroupOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetServiceGroupResult>; /** * A collection of arguments for invoking getServiceGroup. */ export interface GetServiceGroupOutputArgs { /** * 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>; /** * The UUID of the service group */ id: pulumi.Input<string>; /** * The name of the service group */ 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>; }