@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
89 lines (88 loc) • 2.27 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import { output as outputs } from "../types";
/**
* Use this data source to get the list of VPC routes.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as huaweicloud from "@pulumi/huaweicloud";
*
* const test = pulumi.output(huaweicloud.Vpc.getRoutes({
* type: "peering",
* }));
* ```
*/
export declare function getRoutes(args?: GetRoutesArgs, opts?: pulumi.InvokeOptions): Promise<GetRoutesResult>;
/**
* A collection of arguments for invoking getRoutes.
*/
export interface GetRoutesArgs {
/**
* Specifies the route destination.
*/
destination?: string;
/**
* Specifies the region in which to query the resource.
* If omitted, the provider-level region will be used.
*/
region?: string;
/**
* Specifies the route type.
*/
type?: string;
/**
* Specifies the ID of the VPC to which the route belongs.
*/
vpcId?: string;
}
/**
* A collection of values returned by getRoutes.
*/
export interface GetRoutesResult {
/**
* The route destination.
*/
readonly destination?: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly region: string;
/**
* The list of routes.
*/
readonly routes: outputs.Vpc.GetRoutesRoute[];
/**
* The route type.
*/
readonly type?: string;
/**
* The ID of the VPC to which the route belongs.
*/
readonly vpcId?: string;
}
export declare function getRoutesOutput(args?: GetRoutesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetRoutesResult>;
/**
* A collection of arguments for invoking getRoutes.
*/
export interface GetRoutesOutputArgs {
/**
* Specifies the route destination.
*/
destination?: pulumi.Input<string>;
/**
* Specifies the region in which to query the resource.
* If omitted, the provider-level region will be used.
*/
region?: pulumi.Input<string>;
/**
* Specifies the route type.
*/
type?: pulumi.Input<string>;
/**
* Specifies the ID of the VPC to which the route belongs.
*/
vpcId?: pulumi.Input<string>;
}