UNPKG

@huaweicloudos/pulumi

Version:

A Pulumi package for creating and managing Huaweicloud cloud resources.

123 lines (122 loc) 3.92 kB
import * as pulumi from "@pulumi/pulumi"; import { output as outputs } from "../types"; /** * Use this data source to query the route tables under the ER instance within HuaweiCloud. * * ## Example Usage * ### Querying specified route tables under ER instance using name * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as huaweicloud from "@pulumi/huaweicloud"; * * const config = new pulumi.Config(); * const instanceId = config.requireObject("instanceId"); * const routeTableName = config.requireObject("routeTableName"); * const test = huaweicloud.Er.getRouteTables({ * instanceId: instanceId, * name: routeTableName, * }); * ``` * ### Querying specified route tables under ER instance using tags * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as huaweicloud from "@pulumi/huaweicloud"; * * const config = new pulumi.Config(); * const instanceId = config.requireObject("instanceId"); * const test = huaweicloud.Er.getRouteTables({ * instanceId: instanceId, * tags: { * foo: "bar", * }, * }); * ``` */ export declare function getRouteTables(args: GetRouteTablesArgs, opts?: pulumi.InvokeOptions): Promise<GetRouteTablesResult>; /** * A collection of arguments for invoking getRouteTables. */ export interface GetRouteTablesArgs { /** * Specifies the ID of the ER instance to which the route tables belongs. */ instanceId: string; /** * Specifies the name used to filter the route tables. * The name can contain `1` to `64` characters, only English letters, Chinese characters, digits, underscore (_), * hyphens (-) and dots (.) allowed. */ name?: string; /** * Specifies the region where the ER instance and route table are located. * If omitted, the provider-level region will be used. */ region?: string; /** * Specifies the route table ID used to query specified route table. */ routeTableId?: string; /** * Specifies the key/value pairs used to filter the route tables. */ tags?: { [key: string]: string; }; } /** * A collection of values returned by getRouteTables. */ export interface GetRouteTablesResult { /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly instanceId: string; /** * The name of the route table. */ readonly name?: string; readonly region: string; readonly routeTableId?: string; /** * All route tables that match the filter parameters. * The object structure is documented below. */ readonly routeTables: outputs.Er.GetRouteTablesRouteTable[]; readonly tags?: { [key: string]: string; }; } export declare function getRouteTablesOutput(args: GetRouteTablesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetRouteTablesResult>; /** * A collection of arguments for invoking getRouteTables. */ export interface GetRouteTablesOutputArgs { /** * Specifies the ID of the ER instance to which the route tables belongs. */ instanceId: pulumi.Input<string>; /** * Specifies the name used to filter the route tables. * The name can contain `1` to `64` characters, only English letters, Chinese characters, digits, underscore (_), * hyphens (-) and dots (.) allowed. */ name?: pulumi.Input<string>; /** * Specifies the region where the ER instance and route table are located. * If omitted, the provider-level region will be used. */ region?: pulumi.Input<string>; /** * Specifies the route table ID used to query specified route table. */ routeTableId?: pulumi.Input<string>; /** * Specifies the key/value pairs used to filter the route tables. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input<string>; }>; }