@emailbob/twingate
Version:
A Pulumi package for creating and managing Twingate cloud resources.
57 lines • 2.55 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.getTwingateRemoteNetworksOutput = exports.getTwingateRemoteNetworks = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* A Remote Network represents a single private network in Twingate that can have one or more Connectors and Resources assigned to it. You must create a Remote Network before creating Resources and Connectors that belong to it. For more information, see Twingate's [documentation](https://docs.twingate.com/docs/remote-networks).
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as twingate from "@pulumi/twingate";
*
* const all = twingate.getTwingateRemoteNetworks({
* name: "<your network's name>",
* });
* ```
* <!--End PulumiCodeChooser -->
*/
function getTwingateRemoteNetworks(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("twingate:index/getTwingateRemoteNetworks:getTwingateRemoteNetworks", {
"name": args.name,
"nameContains": args.nameContains,
"nameExclude": args.nameExclude,
"namePrefix": args.namePrefix,
"nameRegexp": args.nameRegexp,
"nameSuffix": args.nameSuffix,
}, opts);
}
exports.getTwingateRemoteNetworks = getTwingateRemoteNetworks;
/**
* A Remote Network represents a single private network in Twingate that can have one or more Connectors and Resources assigned to it. You must create a Remote Network before creating Resources and Connectors that belong to it. For more information, see Twingate's [documentation](https://docs.twingate.com/docs/remote-networks).
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as twingate from "@pulumi/twingate";
*
* const all = twingate.getTwingateRemoteNetworks({
* name: "<your network's name>",
* });
* ```
* <!--End PulumiCodeChooser -->
*/
function getTwingateRemoteNetworksOutput(args, opts) {
return pulumi.output(args).apply((a) => getTwingateRemoteNetworks(a, opts));
}
exports.getTwingateRemoteNetworksOutput = getTwingateRemoteNetworksOutput;
//# sourceMappingURL=getTwingateRemoteNetworks.js.map