UNPKG

@pulumi/gcp

Version:

A Pulumi package for creating and managing Google Cloud Platform resources.

81 lines (80 loc) 2.29 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Get tag keys by org or project `parent`. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const environmentTagKey = gcp.tags.getTagKeys({ * parent: "organizations/12345", * }); * ``` * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const environmentTagKey = gcp.tags.getTagKeys({ * parent: "projects/abc", * }); * ``` */ export declare function getTagKeys(args: GetTagKeysArgs, opts?: pulumi.InvokeOptions): Promise<GetTagKeysResult>; /** * A collection of arguments for invoking getTagKeys. */ export interface GetTagKeysArgs { /** * The resource name of the parent organization or project. It can be in format `organizations/{org_id}` or `projects/{project_id_or_number}`. */ parent: string; } /** * A collection of values returned by getTagKeys. */ export interface GetTagKeysResult { /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly keys: outputs.tags.GetTagKeysKey[]; /** * The resource name of the TagKey's parent. A TagKey can be parented by an Orgination or a Project. */ readonly parent: string; } /** * Get tag keys by org or project `parent`. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const environmentTagKey = gcp.tags.getTagKeys({ * parent: "organizations/12345", * }); * ``` * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const environmentTagKey = gcp.tags.getTagKeys({ * parent: "projects/abc", * }); * ``` */ export declare function getTagKeysOutput(args: GetTagKeysOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetTagKeysResult>; /** * A collection of arguments for invoking getTagKeys. */ export interface GetTagKeysOutputArgs { /** * The resource name of the parent organization or project. It can be in format `organizations/{org_id}` or `projects/{project_id_or_number}`. */ parent: pulumi.Input<string>; }