UNPKG

@pulumi/gcp

Version:

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

90 lines (89 loc) 2.54 kB
import * as pulumi from "@pulumi/pulumi"; /** * Get a tag value by `parent` key and `shortName`. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const environmentProdTagValue = gcp.tags.getTagValue({ * parent: "tagKeys/56789", * shortName: "production", * }); * ``` */ export declare function getTagValue(args: GetTagValueArgs, opts?: pulumi.InvokeOptions): Promise<GetTagValueResult>; /** * A collection of arguments for invoking getTagValue. */ export interface GetTagValueArgs { /** * The resource name of the parent tagKey in format `tagKey/{name}`. */ parent: string; /** * The tag value's short_name. */ shortName: string; } /** * A collection of values returned by getTagValue. */ export interface GetTagValueResult { /** * Creation time. * A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z". */ readonly createTime: string; readonly description: string; /** * an identifier for the resource with format `tagValues/{{name}}` */ readonly id: string; /** * The generated numeric id for the TagValue. */ readonly name: string; /** * Namespaced name of the TagValue. */ readonly namespacedName: string; readonly parent: string; readonly shortName: string; /** * Update time. * A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z". */ readonly updateTime: string; } /** * Get a tag value by `parent` key and `shortName`. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const environmentProdTagValue = gcp.tags.getTagValue({ * parent: "tagKeys/56789", * shortName: "production", * }); * ``` */ export declare function getTagValueOutput(args: GetTagValueOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetTagValueResult>; /** * A collection of arguments for invoking getTagValue. */ export interface GetTagValueOutputArgs { /** * The resource name of the parent tagKey in format `tagKey/{name}`. */ parent: pulumi.Input<string>; /** * The tag value's short_name. */ shortName: pulumi.Input<string>; }