@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
113 lines • 4.18 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.gatewaysOutput = exports.gateways = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Use this data source to query detailed information of nat gateways
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
* import * as volcengine from "@volcengine/pulumi";
*
* const fooZones = volcengine.ecs.getZones({});
* const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
* vpcName: "acc-test-vpc",
* cidrBlock: "172.16.0.0/16",
* });
* const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
* subnetName: "acc-test-subnet",
* cidrBlock: "172.16.0.0/24",
* zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
* vpcId: fooVpc.id,
* });
* const fooGateway: volcengine.nat.Gateway[] = [];
* for (const range = {value: 0}; range.value < 3; range.value++) {
* fooGateway.push(new volcengine.nat.Gateway(`fooGateway-${range.value}`, {
* vpcId: fooVpc.id,
* subnetId: fooSubnet.id,
* spec: "Small",
* natGatewayName: `acc-test-ng-${range.value}`,
* description: "acc-test",
* billingType: "PostPaid",
* projectName: "default",
* tags: [{
* key: "k1",
* value: "v1",
* }],
* }));
* }
* const fooGateways = volcengine.nat.getGatewaysOutput({
* ids: fooGateway.map(__item => __item.id),
* });
* ```
*/
/** @deprecated volcengine.nat.Gateways has been deprecated in favor of volcengine.nat.getGateways */
function gateways(args, opts) {
pulumi.log.warn("gateways is deprecated: volcengine.nat.Gateways has been deprecated in favor of volcengine.nat.getGateways");
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("volcengine:nat/gateways:Gateways", {
"description": args.description,
"ids": args.ids,
"nameRegex": args.nameRegex,
"natGatewayName": args.natGatewayName,
"outputFile": args.outputFile,
"spec": args.spec,
"subnetId": args.subnetId,
"tags": args.tags,
"vpcId": args.vpcId,
}, opts);
}
exports.gateways = gateways;
/**
* Use this data source to query detailed information of nat gateways
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
* import * as volcengine from "@volcengine/pulumi";
*
* const fooZones = volcengine.ecs.getZones({});
* const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
* vpcName: "acc-test-vpc",
* cidrBlock: "172.16.0.0/16",
* });
* const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
* subnetName: "acc-test-subnet",
* cidrBlock: "172.16.0.0/24",
* zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
* vpcId: fooVpc.id,
* });
* const fooGateway: volcengine.nat.Gateway[] = [];
* for (const range = {value: 0}; range.value < 3; range.value++) {
* fooGateway.push(new volcengine.nat.Gateway(`fooGateway-${range.value}`, {
* vpcId: fooVpc.id,
* subnetId: fooSubnet.id,
* spec: "Small",
* natGatewayName: `acc-test-ng-${range.value}`,
* description: "acc-test",
* billingType: "PostPaid",
* projectName: "default",
* tags: [{
* key: "k1",
* value: "v1",
* }],
* }));
* }
* const fooGateways = volcengine.nat.getGatewaysOutput({
* ids: fooGateway.map(__item => __item.id),
* });
* ```
*/
/** @deprecated volcengine.nat.Gateways has been deprecated in favor of volcengine.nat.getGateways */
function gatewaysOutput(args, opts) {
return pulumi.output(args).apply((a) => gateways(a, opts));
}
exports.gatewaysOutput = gatewaysOutput;
//# sourceMappingURL=gateways.js.map