@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
68 lines • 2.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.customerGatewaysOutput = exports.customerGateways = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Use this data source to query detailed information of customer gateways
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
* import * as volcengine from "@volcengine/pulumi";
*
* const fooCustomerGateway = new volcengine.vpn.CustomerGateway("fooCustomerGateway", {
* ipAddress: "192.0.1.3",
* customerGatewayName: "acc-test",
* description: "acc-test",
* projectName: "default",
* });
* const fooCustomerGateways = volcengine.vpn.getCustomerGatewaysOutput({
* ids: [fooCustomerGateway.id],
* });
* ```
*/
/** @deprecated volcengine.vpn.CustomerGateways has been deprecated in favor of volcengine.vpn.getCustomerGateways */
function customerGateways(args, opts) {
pulumi.log.warn("customerGateways is deprecated: volcengine.vpn.CustomerGateways has been deprecated in favor of volcengine.vpn.getCustomerGateways");
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("volcengine:vpn/customerGateways:CustomerGateways", {
"customerGatewayNames": args.customerGatewayNames,
"ids": args.ids,
"ipAddress": args.ipAddress,
"nameRegex": args.nameRegex,
"outputFile": args.outputFile,
"projectName": args.projectName,
}, opts);
}
exports.customerGateways = customerGateways;
/**
* Use this data source to query detailed information of customer gateways
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
* import * as volcengine from "@volcengine/pulumi";
*
* const fooCustomerGateway = new volcengine.vpn.CustomerGateway("fooCustomerGateway", {
* ipAddress: "192.0.1.3",
* customerGatewayName: "acc-test",
* description: "acc-test",
* projectName: "default",
* });
* const fooCustomerGateways = volcengine.vpn.getCustomerGatewaysOutput({
* ids: [fooCustomerGateway.id],
* });
* ```
*/
/** @deprecated volcengine.vpn.CustomerGateways has been deprecated in favor of volcengine.vpn.getCustomerGateways */
function customerGatewaysOutput(args, opts) {
return pulumi.output(args).apply((a) => customerGateways(a, opts));
}
exports.customerGatewaysOutput = customerGatewaysOutput;
//# sourceMappingURL=customerGateways.js.map