UNPKG

@huaweicloudos/pulumi

Version:

A Pulumi package for creating and managing Huaweicloud cloud resources.

64 lines (63 loc) 1.88 kB
import * as pulumi from "@pulumi/pulumi"; import { output as outputs } from "../types"; /** * Use this data source to get the list of tags of a specified firewall instance. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as huaweicloud from "@pulumi/huaweicloud"; * * const config = new pulumi.Config(); * const fwInstanceId = config.requireObject("fwInstanceId"); * const test = huaweicloud.Cfw.getResourceTags({ * fwInstanceId: fwInstanceId, * }); * ``` */ export declare function getResourceTags(args: GetResourceTagsArgs, opts?: pulumi.InvokeOptions): Promise<GetResourceTagsResult>; /** * A collection of arguments for invoking getResourceTags. */ export interface GetResourceTagsArgs { /** * Specifies the firewall ID. */ fwInstanceId: string; /** * Specifies the region in which to query the resource. * If omitted, the provider-level region will be used. */ region?: string; } /** * A collection of values returned by getResourceTags. */ export interface GetResourceTagsResult { readonly fwInstanceId: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly region: string; /** * The tag list. */ readonly tags: outputs.Cfw.GetResourceTagsTag[]; } export declare function getResourceTagsOutput(args: GetResourceTagsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetResourceTagsResult>; /** * A collection of arguments for invoking getResourceTags. */ export interface GetResourceTagsOutputArgs { /** * Specifies the firewall ID. */ fwInstanceId: pulumi.Input<string>; /** * Specifies the region in which to query the resource. * If omitted, the provider-level region will be used. */ region?: pulumi.Input<string>; }