@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
147 lines (146 loc) • 3.83 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Use this data source to query detailed information of route entries
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
*
* const default = volcengine.vpc.getRouteEntries({
* ids: [],
* routeTableId: "vtb-274e19skkuhog7fap8u4i8ird",
* });
* ```
*/
export declare function getRouteEntries(args: GetRouteEntriesArgs, opts?: pulumi.InvokeOptions): Promise<GetRouteEntriesResult>;
/**
* A collection of arguments for invoking getRouteEntries.
*/
export interface GetRouteEntriesArgs {
/**
* A destination CIDR block of route entry.
*/
destinationCidrBlock?: string;
/**
* A list of route entry ids.
*/
ids?: string[];
/**
* An id of next hop.
*/
nextHopId?: string;
/**
* A type of next hop, Optional choice contains `Instance`, `NetworkInterface`, `NatGW`, `VpnGW`.
*/
nextHopType?: string;
/**
* File name where to save data source results.
*/
outputFile?: string;
/**
* A name of route entry.
*/
routeEntryName?: string;
/**
* A type of route entry.
*/
routeEntryType?: string;
/**
* An id of route table.
*/
routeTableId: string;
}
/**
* A collection of values returned by getRouteEntries.
*/
export interface GetRouteEntriesResult {
/**
* The destination CIDR block of the route entry.
*/
readonly destinationCidrBlock?: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly ids?: string[];
/**
* The id of the next hop.
*/
readonly nextHopId?: string;
/**
* The type of the next hop.
*/
readonly nextHopType?: string;
readonly outputFile?: string;
/**
* The collection of route tables.
*/
readonly routeEntries: outputs.vpc.GetRouteEntriesRouteEntry[];
/**
* The name of the route entry.
*/
readonly routeEntryName?: string;
readonly routeEntryType?: string;
/**
* The id of the route table to which the route entry belongs.
*/
readonly routeTableId: string;
/**
* The total count of route entry query.
*/
readonly totalCount: number;
}
/**
* Use this data source to query detailed information of route entries
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
*
* const default = volcengine.vpc.getRouteEntries({
* ids: [],
* routeTableId: "vtb-274e19skkuhog7fap8u4i8ird",
* });
* ```
*/
export declare function getRouteEntriesOutput(args: GetRouteEntriesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetRouteEntriesResult>;
/**
* A collection of arguments for invoking getRouteEntries.
*/
export interface GetRouteEntriesOutputArgs {
/**
* A destination CIDR block of route entry.
*/
destinationCidrBlock?: pulumi.Input<string>;
/**
* A list of route entry ids.
*/
ids?: pulumi.Input<pulumi.Input<string>[]>;
/**
* An id of next hop.
*/
nextHopId?: pulumi.Input<string>;
/**
* A type of next hop, Optional choice contains `Instance`, `NetworkInterface`, `NatGW`, `VpnGW`.
*/
nextHopType?: pulumi.Input<string>;
/**
* File name where to save data source results.
*/
outputFile?: pulumi.Input<string>;
/**
* A name of route entry.
*/
routeEntryName?: pulumi.Input<string>;
/**
* A type of route entry.
*/
routeEntryType?: pulumi.Input<string>;
/**
* An id of route table.
*/
routeTableId: pulumi.Input<string>;
}