@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
94 lines (93 loc) • 2.57 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import { output as outputs } from "../types";
/**
* Provides details about a specific VPC route table.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as huaweicloud from "@pulumi/huaweicloud";
*
* const config = new pulumi.Config();
* const vpcId = config.requireObject("vpcId");
* const default = huaweicloud.Vpc.getRouteTable({
* vpcId: vpcId,
* });
* const custom = huaweicloud.Vpc.getRouteTable({
* vpcId: vpcId,
* name: "demo",
* });
* ```
*/
export declare function getRouteTable(args: GetRouteTableArgs, opts?: pulumi.InvokeOptions): Promise<GetRouteTableResult>;
/**
* A collection of arguments for invoking getRouteTable.
*/
export interface GetRouteTableArgs {
/**
* Specifies the ID of the route table.
*/
id?: string;
/**
* Specifies the name of the route table.
*/
name?: string;
/**
* The region in which to query the vpc route table.
* If omitted, the provider-level region will be used.
*/
region?: string;
/**
* Specifies the VPC ID where the route table resides.
*/
vpcId: string;
}
/**
* A collection of values returned by getRouteTable.
*/
export interface GetRouteTableResult {
/**
* Whether the route table is default or not.
*/
readonly default: boolean;
/**
* The description about the route.
*/
readonly description: string;
readonly id: string;
readonly name: string;
readonly region: string;
/**
* The route object list. The route object is documented below.
*/
readonly routes: outputs.Vpc.GetRouteTableRoute[];
/**
* An array of one or more subnets associating with the route table.
*/
readonly subnets: string[];
readonly vpcId: string;
}
export declare function getRouteTableOutput(args: GetRouteTableOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetRouteTableResult>;
/**
* A collection of arguments for invoking getRouteTable.
*/
export interface GetRouteTableOutputArgs {
/**
* Specifies the ID of the route table.
*/
id?: pulumi.Input<string>;
/**
* Specifies the name of the route table.
*/
name?: pulumi.Input<string>;
/**
* The region in which to query the vpc route table.
* If omitted, the provider-level region will be used.
*/
region?: pulumi.Input<string>;
/**
* Specifies the VPC ID where the route table resides.
*/
vpcId: pulumi.Input<string>;
}