UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

144 lines (143 loc) 3.83 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Use this data source to query detailed information of direct connect gateway routes * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * * const foo = volcengine.direct_connect.getGatewayRoutes({ * ids: [ * "dcr-638ry33wmzggn3gd6gv****", * "dcr-20d6tkadi2k8w65sqhgbj****", * ], * }); * ``` */ /** @deprecated volcengine.direct_connect.GatewayRoutes has been deprecated in favor of volcengine.direct_connect.getGatewayRoutes */ export declare function gatewayRoutes(args?: GatewayRoutesArgs, opts?: pulumi.InvokeOptions): Promise<GatewayRoutesResult>; /** * A collection of arguments for invoking GatewayRoutes. */ export interface GatewayRoutesArgs { /** * The cidr block. */ destinationCidrBlock?: string; /** * The id of direct connect gateway. */ directConnectGatewayId?: string; /** * A list of IDs. */ ids?: string[]; /** * The id of next hop. */ nextHopId?: string; /** * The type of next hop. */ nextHopType?: string; /** * File name where to save data source results. */ outputFile?: string; /** * The type of route. The value can be BGP or CEN or Static. */ routeType?: string; } /** * A collection of values returned by GatewayRoutes. */ export interface GatewayRoutesResult { /** * The cidr block. */ readonly destinationCidrBlock?: string; /** * The id of direct connect gateway. */ readonly directConnectGatewayId?: string; /** * The collection of query. */ readonly directConnectGatewayRoutes: outputs.direct_connect.GatewayRoutesDirectConnectGatewayRoute[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly ids?: string[]; /** * The id of next hop. */ readonly nextHopId?: string; /** * The type of next hop. */ readonly nextHopType?: string; readonly outputFile?: string; /** * The type of route. */ readonly routeType?: string; /** * The total count of query. */ readonly totalCount: number; } /** * Use this data source to query detailed information of direct connect gateway routes * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * * const foo = volcengine.direct_connect.getGatewayRoutes({ * ids: [ * "dcr-638ry33wmzggn3gd6gv****", * "dcr-20d6tkadi2k8w65sqhgbj****", * ], * }); * ``` */ /** @deprecated volcengine.direct_connect.GatewayRoutes has been deprecated in favor of volcengine.direct_connect.getGatewayRoutes */ export declare function gatewayRoutesOutput(args?: GatewayRoutesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GatewayRoutesResult>; /** * A collection of arguments for invoking GatewayRoutes. */ export interface GatewayRoutesOutputArgs { /** * The cidr block. */ destinationCidrBlock?: pulumi.Input<string>; /** * The id of direct connect gateway. */ directConnectGatewayId?: pulumi.Input<string>; /** * A list of IDs. */ ids?: pulumi.Input<pulumi.Input<string>[]>; /** * The id of next hop. */ nextHopId?: pulumi.Input<string>; /** * The type of next hop. */ nextHopType?: pulumi.Input<string>; /** * File name where to save data source results. */ outputFile?: pulumi.Input<string>; /** * The type of route. The value can be BGP or CEN or Static. */ routeType?: pulumi.Input<string>; }