@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
65 lines (64 loc) • 1.76 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Get tag values from a `parent` key.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const environmentTagValues = gcp.tags.getTagValues({
* parent: "tagKeys/56789",
* });
* ```
*/
export declare function getTagValues(args: GetTagValuesArgs, opts?: pulumi.InvokeOptions): Promise<GetTagValuesResult>;
/**
* A collection of arguments for invoking getTagValues.
*/
export interface GetTagValuesArgs {
/**
* The resource name of the parent tagKey in format `tagKey/{name}`.
*/
parent: string;
}
/**
* A collection of values returned by getTagValues.
*/
export interface GetTagValuesResult {
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* The resource name of the new TagValue's parent TagKey. Must be of the form tagKeys/{tag_key_id}.
*/
readonly parent: string;
readonly values: outputs.tags.GetTagValuesValue[];
}
/**
* Get tag values from a `parent` key.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const environmentTagValues = gcp.tags.getTagValues({
* parent: "tagKeys/56789",
* });
* ```
*/
export declare function getTagValuesOutput(args: GetTagValuesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetTagValuesResult>;
/**
* A collection of arguments for invoking getTagValues.
*/
export interface GetTagValuesOutputArgs {
/**
* The resource name of the parent tagKey in format `tagKey/{name}`.
*/
parent: pulumi.Input<string>;
}