UNPKG

@bdzscaler/pulumi-zpa

Version:

A Pulumi package for creating and managing Zscaler Private Access (ZPA) cloud resources.

110 lines 4.95 kB
"use strict"; // *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.Microtenant = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * * [Official documentation](https://help.zscaler.com/zpa/about-microtenants) * * [API documentation](https://help.zscaler.com/zpa/configuring-microtenants-using-api) * * The **zpa_microtenant_controller** resource creates a microtenant controller in the Zscaler Private Access cloud. This resource allows organizations to delegate responsibilities of admins directly to the acquired or merged company admins so that they can manage their configurations independently * * ⚠️ **WARNING:**: This feature is in limited availability and requires additional license. To learn more, contact Zscaler Support or your local account team. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as zpa from "@bdzscaler/pulumi-zpa"; * * // ZPA Microtenant Controller resource * const _this = new zpa.Microtenant("this", { * description: "Microtenant_A", * enabled: true, * criteriaAttribute: "AuthDomain", * criteriaAttributeValues: ["acme.com"], * privilegedApprovalsEnabled: true, * }); * export const zpaMicrotenantController1 = _this.users.apply(users => users.map(u => ({ * microtenant_id: u.microtenantId, * username: u.username, * password: u.password, * }))); * ``` * * ## Import * * Zscaler offers a dedicated tool called Zscaler-Terraformer to allow the automated import of ZPA configurations into Terraform-compliant HashiCorp Configuration Language. * * Visit * * **microtenant_controller** can be imported by using `<MICROTENANT ID>` or `<MICROTENANT NAME>` as the import ID. * * For example: * * ```sh * $ pulumi import zpa:index/microtenant:Microtenant example <microtenant_id> * ``` * * or * * ```sh * $ pulumi import zpa:index/microtenant:Microtenant example <microtenant_name> * ``` */ class Microtenant extends pulumi.CustomResource { /** * Get an existing Microtenant resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name, id, state, opts) { return new Microtenant(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Microtenant. 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'] === Microtenant.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["criteriaAttribute"] = state ? state.criteriaAttribute : undefined; resourceInputs["criteriaAttributeValues"] = state ? state.criteriaAttributeValues : undefined; resourceInputs["description"] = state ? state.description : undefined; resourceInputs["enabled"] = state ? state.enabled : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["privilegedApprovalsEnabled"] = state ? state.privilegedApprovalsEnabled : undefined; resourceInputs["users"] = state ? state.users : undefined; } else { const args = argsOrState; resourceInputs["criteriaAttribute"] = args ? args.criteriaAttribute : undefined; resourceInputs["criteriaAttributeValues"] = args ? args.criteriaAttributeValues : undefined; resourceInputs["description"] = args ? args.description : undefined; resourceInputs["enabled"] = args ? args.enabled : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["privilegedApprovalsEnabled"] = args ? args.privilegedApprovalsEnabled : undefined; resourceInputs["users"] = args ? args.users : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Microtenant.__pulumiType, name, resourceInputs, opts); } } exports.Microtenant = Microtenant; /** @internal */ Microtenant.__pulumiType = 'zpa:index/microtenant:Microtenant'; //# sourceMappingURL=microtenant.js.map