@pulumi/yandex
Version:
A Pulumi package for creating and managing yandex cloud resources.
88 lines (87 loc) • 2.56 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import { output as outputs } from "./types";
/**
* Get information about a Yandex VPC route table. For more information, see
* [Yandex.Cloud VPC](https://cloud.yandex.com/docs/vpc/concepts/index).
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as yandex from "@pulumi/yandex";
*
* const thisVpcRouteTable = pulumi.output(yandex.getVpcRouteTable({
* routeTableId: "my-rt-id",
* }));
* ```
*
* This data source is used to define [VPC Route Table] that can be used by other resources.
*/
export declare function getVpcRouteTable(args?: GetVpcRouteTableArgs, opts?: pulumi.InvokeOptions): Promise<GetVpcRouteTableResult>;
/**
* A collection of arguments for invoking getVpcRouteTable.
*/
export interface GetVpcRouteTableArgs {
/**
* Folder that the resource belongs to. If value is omitted, the default provider folder is used.
*/
folderId?: string;
/**
* - Name of the route table.
*/
name?: string;
/**
* Route table ID.
*/
routeTableId?: string;
}
/**
* A collection of values returned by getVpcRouteTable.
*/
export interface GetVpcRouteTableResult {
/**
* Creation timestamp of this route table.
*/
readonly createdAt: string;
/**
* Description of the route table.
*/
readonly description: string;
readonly folderId: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* Labels to assign to this route table.
*/
readonly labels: {
[key: string]: string;
};
readonly name: string;
/**
* ID of the network this route table belongs to.
*/
readonly networkId: string;
readonly routeTableId: string;
/**
* List of static route records of the route table. Structure is documented below.
*/
readonly staticRoutes: outputs.GetVpcRouteTableStaticRoute[];
}
export declare function getVpcRouteTableOutput(args?: GetVpcRouteTableOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetVpcRouteTableResult>;
/**
* A collection of arguments for invoking getVpcRouteTable.
*/
export interface GetVpcRouteTableOutputArgs {
/**
* Folder that the resource belongs to. If value is omitted, the default provider folder is used.
*/
folderId?: pulumi.Input<string>;
/**
* - Name of the route table.
*/
name?: pulumi.Input<string>;
/**
* Route table ID.
*/
routeTableId?: pulumi.Input<string>;
}