@bdzscaler/pulumi-zia
Version:
A Pulumi package for creating and managing zia cloud resources.
133 lines • 8.92 kB
JavaScript
// *** 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.EndUserNotification = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* * [Official documentation](https://help.zscaler.com/zia/understanding-browser-based-end-user-notifications)
* * [API documentation](https://help.zscaler.com/zia/end-user-notifications#/eun-get)
*
* The **zia_end_user_notification** resource allows you to update the browser-based end user notification (EUN) configuration details. To learn more see [Understanding Browser-Based End User Notifications](https://help.zscaler.com/unified/understanding-browser-based-end-user-notifications)
*
* ## Example Usage
*
* ### NOTIFICATION TYPE - DEFAULT
*
* ### NOTIFICATION TYPE - CUSTOM
*
* ## Import
*
* Zscaler offers a dedicated tool called Zscaler-Terraformer to allow the automated import of ZIA configurations into Terraform-compliant HashiCorp Configuration Language.
*
* Visit
*
* **zia_end_user_notification** can be imported by using `enduser_notification` as the import ID.
*
* For example:
*
* ```sh
* $ pulumi import zia:index/endUserNotification:EndUserNotification this "enduser_notification"
* ```
*/
class EndUserNotification extends pulumi.CustomResource {
/**
* Get an existing EndUserNotification 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 EndUserNotification(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of EndUserNotification. 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'] === EndUserNotification.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["aupCustomFrequency"] = state ? state.aupCustomFrequency : undefined;
resourceInputs["aupDayOffset"] = state ? state.aupDayOffset : undefined;
resourceInputs["aupFrequency"] = state ? state.aupFrequency : undefined;
resourceInputs["aupMessage"] = state ? state.aupMessage : undefined;
resourceInputs["cautionAgainAfter"] = state ? state.cautionAgainAfter : undefined;
resourceInputs["cautionCustomText"] = state ? state.cautionCustomText : undefined;
resourceInputs["cautionPerDomain"] = state ? state.cautionPerDomain : undefined;
resourceInputs["customText"] = state ? state.customText : undefined;
resourceInputs["displayCompLogo"] = state ? state.displayCompLogo : undefined;
resourceInputs["displayCompName"] = state ? state.displayCompName : undefined;
resourceInputs["displayReason"] = state ? state.displayReason : undefined;
resourceInputs["idpProxyNotificationText"] = state ? state.idpProxyNotificationText : undefined;
resourceInputs["notificationType"] = state ? state.notificationType : undefined;
resourceInputs["orgPolicyLink"] = state ? state.orgPolicyLink : undefined;
resourceInputs["quarantineCustomNotificationText"] = state ? state.quarantineCustomNotificationText : undefined;
resourceInputs["redirectUrl"] = state ? state.redirectUrl : undefined;
resourceInputs["securityReviewCustomLocation"] = state ? state.securityReviewCustomLocation : undefined;
resourceInputs["securityReviewEnabled"] = state ? state.securityReviewEnabled : undefined;
resourceInputs["securityReviewSubmitToSecurityCloud"] = state ? state.securityReviewSubmitToSecurityCloud : undefined;
resourceInputs["securityReviewText"] = state ? state.securityReviewText : undefined;
resourceInputs["supportEmail"] = state ? state.supportEmail : undefined;
resourceInputs["supportPhone"] = state ? state.supportPhone : undefined;
resourceInputs["urlCatReviewCustomLocation"] = state ? state.urlCatReviewCustomLocation : undefined;
resourceInputs["urlCatReviewEnabled"] = state ? state.urlCatReviewEnabled : undefined;
resourceInputs["urlCatReviewSubmitToSecurityCloud"] = state ? state.urlCatReviewSubmitToSecurityCloud : undefined;
resourceInputs["urlCatReviewText"] = state ? state.urlCatReviewText : undefined;
resourceInputs["webDlpReviewCustomLocation"] = state ? state.webDlpReviewCustomLocation : undefined;
resourceInputs["webDlpReviewEnabled"] = state ? state.webDlpReviewEnabled : undefined;
resourceInputs["webDlpReviewSubmitToSecurityCloud"] = state ? state.webDlpReviewSubmitToSecurityCloud : undefined;
resourceInputs["webDlpReviewText"] = state ? state.webDlpReviewText : undefined;
}
else {
const args = argsOrState;
resourceInputs["aupCustomFrequency"] = args ? args.aupCustomFrequency : undefined;
resourceInputs["aupDayOffset"] = args ? args.aupDayOffset : undefined;
resourceInputs["aupFrequency"] = args ? args.aupFrequency : undefined;
resourceInputs["aupMessage"] = args ? args.aupMessage : undefined;
resourceInputs["cautionAgainAfter"] = args ? args.cautionAgainAfter : undefined;
resourceInputs["cautionCustomText"] = args ? args.cautionCustomText : undefined;
resourceInputs["cautionPerDomain"] = args ? args.cautionPerDomain : undefined;
resourceInputs["customText"] = args ? args.customText : undefined;
resourceInputs["displayCompLogo"] = args ? args.displayCompLogo : undefined;
resourceInputs["displayCompName"] = args ? args.displayCompName : undefined;
resourceInputs["displayReason"] = args ? args.displayReason : undefined;
resourceInputs["idpProxyNotificationText"] = args ? args.idpProxyNotificationText : undefined;
resourceInputs["notificationType"] = args ? args.notificationType : undefined;
resourceInputs["orgPolicyLink"] = args ? args.orgPolicyLink : undefined;
resourceInputs["quarantineCustomNotificationText"] = args ? args.quarantineCustomNotificationText : undefined;
resourceInputs["redirectUrl"] = args ? args.redirectUrl : undefined;
resourceInputs["securityReviewCustomLocation"] = args ? args.securityReviewCustomLocation : undefined;
resourceInputs["securityReviewEnabled"] = args ? args.securityReviewEnabled : undefined;
resourceInputs["securityReviewSubmitToSecurityCloud"] = args ? args.securityReviewSubmitToSecurityCloud : undefined;
resourceInputs["securityReviewText"] = args ? args.securityReviewText : undefined;
resourceInputs["supportEmail"] = args ? args.supportEmail : undefined;
resourceInputs["supportPhone"] = args ? args.supportPhone : undefined;
resourceInputs["urlCatReviewCustomLocation"] = args ? args.urlCatReviewCustomLocation : undefined;
resourceInputs["urlCatReviewEnabled"] = args ? args.urlCatReviewEnabled : undefined;
resourceInputs["urlCatReviewSubmitToSecurityCloud"] = args ? args.urlCatReviewSubmitToSecurityCloud : undefined;
resourceInputs["urlCatReviewText"] = args ? args.urlCatReviewText : undefined;
resourceInputs["webDlpReviewCustomLocation"] = args ? args.webDlpReviewCustomLocation : undefined;
resourceInputs["webDlpReviewEnabled"] = args ? args.webDlpReviewEnabled : undefined;
resourceInputs["webDlpReviewSubmitToSecurityCloud"] = args ? args.webDlpReviewSubmitToSecurityCloud : undefined;
resourceInputs["webDlpReviewText"] = args ? args.webDlpReviewText : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(EndUserNotification.__pulumiType, name, resourceInputs, opts);
}
}
exports.EndUserNotification = EndUserNotification;
/** @internal */
EndUserNotification.__pulumiType = 'zia:index/endUserNotification:EndUserNotification';
//# sourceMappingURL=endUserNotification.js.map
;