UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

61 lines 2.46 kB
"use strict"; // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.gatewayRoutesOutput = exports.gatewayRoutes = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * 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 */ function gatewayRoutes(args, opts) { pulumi.log.warn("gatewayRoutes is deprecated: volcengine.direct_connect.GatewayRoutes has been deprecated in favor of volcengine.direct_connect.getGatewayRoutes"); args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("volcengine:direct_connect/gatewayRoutes:GatewayRoutes", { "destinationCidrBlock": args.destinationCidrBlock, "directConnectGatewayId": args.directConnectGatewayId, "ids": args.ids, "nextHopId": args.nextHopId, "nextHopType": args.nextHopType, "outputFile": args.outputFile, "routeType": args.routeType, }, opts); } exports.gatewayRoutes = gatewayRoutes; /** * 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 */ function gatewayRoutesOutput(args, opts) { return pulumi.output(args).apply((a) => gatewayRoutes(a, opts)); } exports.gatewayRoutesOutput = gatewayRoutesOutput; //# sourceMappingURL=gatewayRoutes.js.map