@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
57 lines • 2.1 kB
JavaScript
;
// *** 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.subnetsOutput = exports.subnets = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Use this data source to query detailed information of subnets
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
*
* const default = volcengine.vpc.getSubnets({
* ids: ["subnet-274zsa5kfmj287fap8soo5e19"],
* });
* ```
*/
/** @deprecated volcengine.vpc.Subnets has been deprecated in favor of volcengine.vpc.getSubnets */
function subnets(args, opts) {
pulumi.log.warn("subnets is deprecated: volcengine.vpc.Subnets has been deprecated in favor of volcengine.vpc.getSubnets");
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("volcengine:vpc/subnets:Subnets", {
"ids": args.ids,
"nameRegex": args.nameRegex,
"outputFile": args.outputFile,
"routeTableId": args.routeTableId,
"subnetName": args.subnetName,
"subnetOwnerId": args.subnetOwnerId,
"tags": args.tags,
"vpcId": args.vpcId,
"zoneId": args.zoneId,
}, opts);
}
exports.subnets = subnets;
/**
* Use this data source to query detailed information of subnets
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
*
* const default = volcengine.vpc.getSubnets({
* ids: ["subnet-274zsa5kfmj287fap8soo5e19"],
* });
* ```
*/
/** @deprecated volcengine.vpc.Subnets has been deprecated in favor of volcengine.vpc.getSubnets */
function subnetsOutput(args, opts) {
return pulumi.output(args).apply((a) => subnets(a, opts));
}
exports.subnetsOutput = subnetsOutput;
//# sourceMappingURL=subnets.js.map