UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

134 lines (133 loc) 4.37 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Use this data source to query detailed information of transit router route tables * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * import * as volcengine from "@volcengine/pulumi"; * * const fooTransitRouter = new volcengine.transit_router.TransitRouter("fooTransitRouter", { * transitRouterName: "test-tf-acc", * description: "test-tf-acc", * }); * const fooRouteTable = new volcengine.transit_router.RouteTable("fooRouteTable", { * description: "tf-test-acc-description", * transitRouterRouteTableName: "tf-table-test-acc", * transitRouterId: fooTransitRouter.id, * }); * const default = volcengine.transit_router.getRouteTablesOutput({ * transitRouterId: fooTransitRouter.id, * ids: [fooRouteTable.transitRouterRouteTableId], * }); * ``` */ /** @deprecated volcengine.transit_router.RouteTables has been deprecated in favor of volcengine.transit_router.getRouteTables */ export declare function routeTables(args: RouteTablesArgs, opts?: pulumi.InvokeOptions): Promise<RouteTablesResult>; /** * A collection of arguments for invoking RouteTables. */ export interface RouteTablesArgs { /** * The ids of the transit router route table. */ ids?: string[]; /** * File name where to save data source results. */ outputFile?: string; /** * Tags. */ tags?: inputs.transit_router.RouteTablesTag[]; /** * The id of the transit router. */ transitRouterId: string; /** * The type of the route table. The value can be System or Custom. */ transitRouterRouteTableType?: string; } /** * A collection of values returned by RouteTables. */ export interface RouteTablesResult { /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly ids?: string[]; readonly outputFile?: string; /** * The list of route tables query. */ readonly routeTables: outputs.transit_router.RouteTablesRouteTable[]; /** * Tags. */ readonly tags?: outputs.transit_router.RouteTablesTag[]; /** * The total count of data query. */ readonly totalCount: number; readonly transitRouterId: string; /** * The type of route table. */ readonly transitRouterRouteTableType?: string; } /** * Use this data source to query detailed information of transit router route tables * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * import * as volcengine from "@volcengine/pulumi"; * * const fooTransitRouter = new volcengine.transit_router.TransitRouter("fooTransitRouter", { * transitRouterName: "test-tf-acc", * description: "test-tf-acc", * }); * const fooRouteTable = new volcengine.transit_router.RouteTable("fooRouteTable", { * description: "tf-test-acc-description", * transitRouterRouteTableName: "tf-table-test-acc", * transitRouterId: fooTransitRouter.id, * }); * const default = volcengine.transit_router.getRouteTablesOutput({ * transitRouterId: fooTransitRouter.id, * ids: [fooRouteTable.transitRouterRouteTableId], * }); * ``` */ /** @deprecated volcengine.transit_router.RouteTables has been deprecated in favor of volcengine.transit_router.getRouteTables */ export declare function routeTablesOutput(args: RouteTablesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<RouteTablesResult>; /** * A collection of arguments for invoking RouteTables. */ export interface RouteTablesOutputArgs { /** * The ids of the transit router route table. */ ids?: pulumi.Input<pulumi.Input<string>[]>; /** * File name where to save data source results. */ outputFile?: pulumi.Input<string>; /** * Tags. */ tags?: pulumi.Input<pulumi.Input<inputs.transit_router.RouteTablesTagArgs>[]>; /** * The id of the transit router. */ transitRouterId: pulumi.Input<string>; /** * The type of the route table. The value can be System or Custom. */ transitRouterRouteTableType?: pulumi.Input<string>; }