UNPKG

@bdzscaler/pulumi-zpa

Version:

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

108 lines 5.56 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.ProvisioningKey = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * ## Import * * Zscaler offers a dedicated tool called Zscaler-Terraformer to allow the automated import of ZPA configurations into Terraform-compliant HashiCorp Configuration Language. * * Visit * * Provisioning key can be imported by using `<PROVISIONING KEY ID>` or `<PROVISIONING KEY NAME>` as the import ID. * * For example: * * ```sh * $ pulumi import zpa:index/provisioningKey:ProvisioningKey example <provisioning_key_id> * ``` * * or * * ```sh * $ pulumi import zpa:index/provisioningKey:ProvisioningKey example <provisioning_key_name> * ``` */ class ProvisioningKey extends pulumi.CustomResource { /** * Get an existing ProvisioningKey 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 ProvisioningKey(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of ProvisioningKey. 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'] === ProvisioningKey.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["ProvisioningKeyValue"] = state ? state.ProvisioningKeyValue : undefined; resourceInputs["appConnectorGroupId"] = state ? state.appConnectorGroupId : undefined; resourceInputs["appConnectorGroupName"] = state ? state.appConnectorGroupName : undefined; resourceInputs["associationType"] = state ? state.associationType : undefined; resourceInputs["enabled"] = state ? state.enabled : undefined; resourceInputs["enrollmentCertId"] = state ? state.enrollmentCertId : undefined; resourceInputs["ipAcls"] = state ? state.ipAcls : undefined; resourceInputs["maxUsage"] = state ? state.maxUsage : undefined; resourceInputs["microtenantId"] = state ? state.microtenantId : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["uiConfig"] = state ? state.uiConfig : undefined; resourceInputs["usageCount"] = state ? state.usageCount : undefined; resourceInputs["zcomponentId"] = state ? state.zcomponentId : undefined; resourceInputs["zcomponentName"] = state ? state.zcomponentName : undefined; } else { const args = argsOrState; if ((!args || args.associationType === undefined) && !opts.urn) { throw new Error("Missing required property 'associationType'"); } if ((!args || args.enrollmentCertId === undefined) && !opts.urn) { throw new Error("Missing required property 'enrollmentCertId'"); } if ((!args || args.maxUsage === undefined) && !opts.urn) { throw new Error("Missing required property 'maxUsage'"); } if ((!args || args.zcomponentId === undefined) && !opts.urn) { throw new Error("Missing required property 'zcomponentId'"); } resourceInputs["ProvisioningKeyValue"] = args ? args.ProvisioningKeyValue : undefined; resourceInputs["appConnectorGroupId"] = args ? args.appConnectorGroupId : undefined; resourceInputs["associationType"] = args ? args.associationType : undefined; resourceInputs["enabled"] = args ? args.enabled : undefined; resourceInputs["enrollmentCertId"] = args ? args.enrollmentCertId : undefined; resourceInputs["ipAcls"] = args ? args.ipAcls : undefined; resourceInputs["maxUsage"] = args ? args.maxUsage : undefined; resourceInputs["microtenantId"] = args ? args.microtenantId : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["uiConfig"] = args ? args.uiConfig : undefined; resourceInputs["usageCount"] = args ? args.usageCount : undefined; resourceInputs["zcomponentId"] = args ? args.zcomponentId : undefined; resourceInputs["zcomponentName"] = args ? args.zcomponentName : undefined; resourceInputs["appConnectorGroupName"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(ProvisioningKey.__pulumiType, name, resourceInputs, opts); } } exports.ProvisioningKey = ProvisioningKey; /** @internal */ ProvisioningKey.__pulumiType = 'zpa:index/provisioningKey:ProvisioningKey'; //# sourceMappingURL=provisioningKey.js.map