@bdzscaler/pulumi-zia
Version:
A Pulumi package for creating and managing zia cloud resources.
91 lines • 4.23 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.SubscriptionAlert = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* * [Official documentation](https://help.zscaler.com/zia/about-alert-subscriptions)
* * [API documentation](https://help.zscaler.com/zia/alerts#/alertSubscriptions-get)
*
* Use the **zia_subscription_alert** resource allows the creation and management of Alert Subscriptions in the Zscaler Internet Access.
*
* ## Example Usage
*
* ## 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_subscription_alert** can be imported by using `<ALERT_ID>` or `<ALERT_EMAIL>` as the import ID.
*
* For example:
*
* ```sh
* $ pulumi import zia:index/subscriptionAlert:SubscriptionAlert example <alert_id>
* ```
*
* or
*
* ```sh
* $ pulumi import zia:index/subscriptionAlert:SubscriptionAlert example <alert_email>
* ```
*/
class SubscriptionAlert extends pulumi.CustomResource {
/**
* Get an existing SubscriptionAlert 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 SubscriptionAlert(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of SubscriptionAlert. 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'] === SubscriptionAlert.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["alertId"] = state ? state.alertId : undefined;
resourceInputs["complySeverities"] = state ? state.complySeverities : undefined;
resourceInputs["description"] = state ? state.description : undefined;
resourceInputs["email"] = state ? state.email : undefined;
resourceInputs["manageSeverities"] = state ? state.manageSeverities : undefined;
resourceInputs["pt0Severities"] = state ? state.pt0Severities : undefined;
resourceInputs["secureSeverities"] = state ? state.secureSeverities : undefined;
resourceInputs["systemSeverities"] = state ? state.systemSeverities : undefined;
}
else {
const args = argsOrState;
resourceInputs["complySeverities"] = args ? args.complySeverities : undefined;
resourceInputs["description"] = args ? args.description : undefined;
resourceInputs["email"] = args ? args.email : undefined;
resourceInputs["manageSeverities"] = args ? args.manageSeverities : undefined;
resourceInputs["pt0Severities"] = args ? args.pt0Severities : undefined;
resourceInputs["secureSeverities"] = args ? args.secureSeverities : undefined;
resourceInputs["systemSeverities"] = args ? args.systemSeverities : undefined;
resourceInputs["alertId"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(SubscriptionAlert.__pulumiType, name, resourceInputs, opts);
}
}
exports.SubscriptionAlert = SubscriptionAlert;
/** @internal */
SubscriptionAlert.__pulumiType = 'zia:index/subscriptionAlert:SubscriptionAlert';
//# sourceMappingURL=subscriptionAlert.js.map