UNPKG

@lbrlabs/pulumi-tailscalebastion

Version:

This repo provides a [multi-language](https://www.pulumi.com/blog/pulumiup-pulumi-packages-multi-language-components/) component that creates a [Tailscale](https://tailscale.com/) [Subnet Router](https://tailscale.com/kb/1019/subnets/) in your chosen clou

72 lines 3.67 kB
"use strict"; // *** WARNING: this file was generated by Pulumi SDK Generator. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.Bastion = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); class Bastion extends pulumi.ComponentResource { /** * Create a Bastion resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name, args, opts) { var _a, _b, _c; let resourceInputs = {}; opts = opts || {}; if (!opts.id) { if ((!args || args.highAvailability === undefined) && !opts.urn) { throw new Error("Missing required property 'highAvailability'"); } if ((!args || args.location === undefined) && !opts.urn) { throw new Error("Missing required property 'location'"); } if ((!args || args.resourceGroupName === undefined) && !opts.urn) { throw new Error("Missing required property 'resourceGroupName'"); } if ((!args || args.routes === undefined) && !opts.urn) { throw new Error("Missing required property 'routes'"); } if ((!args || args.subnetId === undefined) && !opts.urn) { throw new Error("Missing required property 'subnetId'"); } if ((!args || args.tailscaleTags === undefined) && !opts.urn) { throw new Error("Missing required property 'tailscaleTags'"); } resourceInputs["enableSSH"] = (_a = (args ? args.enableSSH : undefined)) !== null && _a !== void 0 ? _a : true; resourceInputs["highAvailability"] = (_b = (args ? args.highAvailability : undefined)) !== null && _b !== void 0 ? _b : false; resourceInputs["instanceSku"] = args ? args.instanceSku : undefined; resourceInputs["location"] = args ? args.location : undefined; resourceInputs["public"] = (_c = (args ? args.public : undefined)) !== null && _c !== void 0 ? _c : false; resourceInputs["resourceGroupName"] = args ? args.resourceGroupName : undefined; resourceInputs["routes"] = args ? args.routes : undefined; resourceInputs["subnetId"] = args ? args.subnetId : undefined; resourceInputs["tailscaleTags"] = args ? args.tailscaleTags : undefined; resourceInputs["privateKey"] = undefined /*out*/; resourceInputs["scaleSetName"] = undefined /*out*/; } else { resourceInputs["privateKey"] = undefined /*out*/; resourceInputs["scaleSetName"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Bastion.__pulumiType, name, resourceInputs, opts, true /*remote*/); } /** * Returns true if the given object is an instance of Bastion. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj) { if (obj === undefined || obj === null) { return false; } return obj['__pulumiType'] === Bastion.__pulumiType; } } exports.Bastion = Bastion; /** @internal */ Bastion.__pulumiType = 'tailscale-bastion:azure:Bastion'; //# sourceMappingURL=bastion.js.map