UNPKG

@pulumi/harness

Version:

A Pulumi package for creating and managing Harness resources.

128 lines (127 loc) 3.17 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * DataSource for looking up resource group in harness. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * const test = harness.platform.getResourceGroup({ * identifier: "identifier", * }); * ``` */ export declare function getResourceGroup(args: GetResourceGroupArgs, opts?: pulumi.InvokeOptions): Promise<GetResourceGroupResult>; /** * A collection of arguments for invoking getResourceGroup. */ export interface GetResourceGroupArgs { /** * Unique identifier of the resource. */ identifier: string; /** * Name of the resource. */ name?: string; /** * Unique identifier of the organization. */ orgId?: string; /** * Unique identifier of the project. */ projectId?: string; } /** * A collection of values returned by getResourceGroup. */ export interface GetResourceGroupResult { /** * Account Identifier of the account */ readonly accountId: string; /** * The scope levels at which this resource group can be used */ readonly allowedScopeLevels: string[]; /** * Color of the environment. */ readonly color: string; /** * Description of the resource. */ readonly description: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * Unique identifier of the resource. */ readonly identifier: string; /** * Included scopes */ readonly includedScopes: outputs.platform.GetResourceGroupIncludedScope[]; /** * Name of the resource. */ readonly name?: string; /** * Unique identifier of the organization. */ readonly orgId?: string; /** * Unique identifier of the project. */ readonly projectId?: string; /** * Contains resource filter for a resource group */ readonly resourceFilters: outputs.platform.GetResourceGroupResourceFilter[]; /** * Tags to associate with the resource. */ readonly tags: string[]; } /** * DataSource for looking up resource group in harness. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * const test = harness.platform.getResourceGroup({ * identifier: "identifier", * }); * ``` */ export declare function getResourceGroupOutput(args: GetResourceGroupOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetResourceGroupResult>; /** * A collection of arguments for invoking getResourceGroup. */ export interface GetResourceGroupOutputArgs { /** * Unique identifier of the resource. */ identifier: pulumi.Input<string>; /** * Name of the resource. */ name?: pulumi.Input<string>; /** * Unique identifier of the organization. */ orgId?: pulumi.Input<string>; /** * Unique identifier of the project. */ projectId?: pulumi.Input<string>; }