UNPKG

@bdzscaler/pulumi-zpa

Version:

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

113 lines 5.35 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.LSSConfigController = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * * [Official documentation](https://help.zscaler.com/zpa/about-log-streaming-service) * * [API documentation](https://help.zscaler.com/zpa/configuring-log-streaming-service-configurations-using-api) * * The **zpa_lss_config_controller** resource creates and manages Log Streaming Service (LSS) in the Zscaler Private Access cloud for App Connector Metrics `zpnAstComprehensiveStats`. * * ## Example 1 - LSS App Connector Metrics - Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as zpa from "@bdzscaler/pulumi-zpa"; * * const zpnAstComprehensiveStats = zpa.getLSSLogTypeFormats({ * logType: "zpn_ast_comprehensive_stats", * }); * const lssSiemPolicy = zpa.getPolicyType({ * policyType: "SIEM_POLICY", * }); * const _this = zpa.getAppConnectorGroup({ * name: "Example100", * }); * const lssAppConnectorMetrics = new zpa.LSSConfigController("lssAppConnectorMetrics", { * config: { * name: "LSS App Connector Metrics", * description: "LSS App Connector Metrics", * enabled: true, * format: zpnAstComprehensiveStats.then(zpnAstComprehensiveStats => zpnAstComprehensiveStats.json), * lssHost: "splunk1.acme.com", * lssPort: "5001", * sourceLogType: "zpn_ast_comprehensive_stats", * useTls: true, * }, * connectorGroups: [{ * ids: [_this.then(_this => _this.id)], * }], * }); * ``` * * ## LSS Source Log Type Table * * | Source Log Type | Description | * |-------------------------------------------|----------------------------------------| * | `zpnTransLog` | `User Activity` | * | `zpnAuthLog` | `User Status` | * | `zpnAstAuthLog` | `App Connector Status` | * | `zpnHttpTransLog` | `Web Browser` | * | `zpnAuditLog` | `Audit Logs` | * | `zpnSysAuthLog` | `Private Service Edge Status` | * | `zpnAstComprehensiveStats` | `App Connector Metrics` | * | `zpnPbrokerComprehensiveStats` | `Private Service Edge Metrics` | * | `zpnWafHttpExchangesLog` | `ZPA App Protection` | * * ## Import * * Zscaler offers a dedicated tool called Zscaler-Terraformer to allow the automated import of ZPA configurations into Terraform-compliant HashiCorp Configuration Language. * * Visit */ class LSSConfigController extends pulumi.CustomResource { /** * Get an existing LSSConfigController 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 LSSConfigController(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of LSSConfigController. 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'] === LSSConfigController.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["config"] = state ? state.config : undefined; resourceInputs["connectorGroups"] = state ? state.connectorGroups : undefined; resourceInputs["policyRuleId"] = state ? state.policyRuleId : undefined; resourceInputs["policyRuleResource"] = state ? state.policyRuleResource : undefined; } else { const args = argsOrState; resourceInputs["config"] = args ? args.config : undefined; resourceInputs["connectorGroups"] = args ? args.connectorGroups : undefined; resourceInputs["policyRuleResource"] = args ? args.policyRuleResource : undefined; resourceInputs["policyRuleId"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(LSSConfigController.__pulumiType, name, resourceInputs, opts); } } exports.LSSConfigController = LSSConfigController; /** @internal */ LSSConfigController.__pulumiType = 'zpa:index/lSSConfigController:LSSConfigController'; //# sourceMappingURL=lssconfigController.js.map