@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
65 lines • 2.45 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.getCustomerGatewaysOutput = exports.getCustomerGateways = 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],
* });
* ```
*/
function getCustomerGateways(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("volcengine:vpn/getCustomerGateways:getCustomerGateways", {
"customerGatewayNames": args.customerGatewayNames,
"ids": args.ids,
"ipAddress": args.ipAddress,
"nameRegex": args.nameRegex,
"outputFile": args.outputFile,
"projectName": args.projectName,
}, opts);
}
exports.getCustomerGateways = getCustomerGateways;
/**
* 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],
* });
* ```
*/
function getCustomerGatewaysOutput(args, opts) {
return pulumi.output(args).apply((a) => getCustomerGateways(a, opts));
}
exports.getCustomerGatewaysOutput = getCustomerGatewaysOutput;
//# sourceMappingURL=getCustomerGateways.js.map