@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
79 lines (78 loc) • 2.75 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import { output as outputs } from "../types";
/**
* Use this data source to query the tag list of all resources of the same type within HuaweiCloud.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as huaweicloud from "@pulumi/huaweicloud";
*
* const test = pulumi.output(huaweicloud.Er.getTags());
* ```
*/
export declare function getTags(args: GetTagsArgs, opts?: pulumi.InvokeOptions): Promise<GetTagsResult>;
/**
* A collection of arguments for invoking getTags.
*/
export interface GetTagsArgs {
/**
* Specifies the region in which to query the resource tags.
* If omitted, the provider-level region will be used.
*/
region?: string;
/**
* Specifies the resource type to which the tags belong that to be queried.
* The valid values are as follows:
* + **instance**: enterprise router instance.
* + **route-table**: route table.
* + **vpc-attachment**: VPC connection.
* + **vgw-attachment**: virtual gateway connection.
* + **peering-attachment**: peering connection.
* + **vpn-attachment**: VPN gateway connection.
* + **ecn-attachment**: enterprise network connection.
* + **cfw-attachment**: cloud firewall connection.
*/
resourceType: string;
}
/**
* A collection of values returned by getTags.
*/
export interface GetTagsResult {
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly region: string;
readonly resourceType: string;
/**
* The list of all tags for resources of the same type.
* The tags structure is documented below.
*/
readonly tags: outputs.Er.GetTagsTag[];
}
export declare function getTagsOutput(args: GetTagsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetTagsResult>;
/**
* A collection of arguments for invoking getTags.
*/
export interface GetTagsOutputArgs {
/**
* Specifies the region in which to query the resource tags.
* If omitted, the provider-level region will be used.
*/
region?: pulumi.Input<string>;
/**
* Specifies the resource type to which the tags belong that to be queried.
* The valid values are as follows:
* + **instance**: enterprise router instance.
* + **route-table**: route table.
* + **vpc-attachment**: VPC connection.
* + **vgw-attachment**: virtual gateway connection.
* + **peering-attachment**: peering connection.
* + **vpn-attachment**: VPN gateway connection.
* + **ecn-attachment**: enterprise network connection.
* + **cfw-attachment**: cloud firewall connection.
*/
resourceType: pulumi.Input<string>;
}