@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
54 lines • 1.8 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.getSubnetsOutput = exports.getSubnets = 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"],
* });
* ```
*/
function getSubnets(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("volcengine:vpc/getSubnets:getSubnets", {
"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.getSubnets = getSubnets;
/**
* 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"],
* });
* ```
*/
function getSubnetsOutput(args, opts) {
return pulumi.output(args).apply((a) => getSubnets(a, opts));
}
exports.getSubnetsOutput = getSubnetsOutput;
//# sourceMappingURL=getSubnets.js.map