@emailbob/twingate
Version:
A Pulumi package for creating and managing Twingate cloud resources.
52 lines • 2.48 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.getTwingateResourceOutput = exports.getTwingateResource = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Resources in Twingate represent any network destination address that you wish to provide private access to for users authorized via the Twingate Client application. Resources can be defined by either IP or DNS address, and all private DNS addresses will be automatically resolved with no client configuration changes. For more information, see the Twingate [documentation](https://docs.twingate.com/docs/resources-and-access-nodes).
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as twingate from "@pulumi/twingate";
*
* const foo = twingate.getTwingateResource({
* id: "<your resource's id>",
* });
* ```
* <!--End PulumiCodeChooser -->
*/
function getTwingateResource(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("twingate:index/getTwingateResource:getTwingateResource", {
"id": args.id,
"protocols": args.protocols,
}, opts);
}
exports.getTwingateResource = getTwingateResource;
/**
* Resources in Twingate represent any network destination address that you wish to provide private access to for users authorized via the Twingate Client application. Resources can be defined by either IP or DNS address, and all private DNS addresses will be automatically resolved with no client configuration changes. For more information, see the Twingate [documentation](https://docs.twingate.com/docs/resources-and-access-nodes).
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as twingate from "@pulumi/twingate";
*
* const foo = twingate.getTwingateResource({
* id: "<your resource's id>",
* });
* ```
* <!--End PulumiCodeChooser -->
*/
function getTwingateResourceOutput(args, opts) {
return pulumi.output(args).apply((a) => getTwingateResource(a, opts));
}
exports.getTwingateResourceOutput = getTwingateResourceOutput;
//# sourceMappingURL=getTwingateResource.js.map