@bdzscaler/pulumi-zpa
Version:
A Pulumi package for creating and managing Zscaler Private Access (ZPA) cloud resources.
102 lines • 4.96 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.AppConnectorAssistantSchedule = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* * [Official documentation](https://help.zscaler.com/zpa/configuring-app-connectors-settings)
* * [API documentation](https://help.zscaler.com/zpa/configuring-auto-delete-disconnected-app-connectors-using-api)
*
* Use the **zpa_app_connector_assistant_schedule** resource sets the scheduled frequency at which the disconnected App Connectors are eligible for deletion. The supported value for frequency is days. The frequencyInterval field is the number of days after an App Connector disconnects for it to become eligible for deletion. The minimum supported value for frequencyInterval is 5.
*
* > **NOTE** - When enabling the Assistant Schedule for the first time, you must provide the `customerId` information. If you authenticated using environment variables and used `ZPA_CUSTOMER_ID` environment variable, you don't have to define the customerId attribute in the HCL configuration, and the provider will automatically use the value from the environment variable `ZPA_CUSTOMER_ID`
*
* ## Example Usage
*
* ### Defined Customer ID Value
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as zpa from "@bdzscaler/pulumi-zpa";
*
* const _this = new zpa.AppConnectorAssistantSchedule("this", {
* customerId: "123456789101112",
* deleteDisabled: true,
* enabled: true,
* frequency: "days",
* frequencyInterval: "5",
* });
* ```
*
* ### Customer ID Via Environment Variable
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as zpa from "@bdzscaler/pulumi-zpa";
*
* const _this = new zpa.AppConnectorAssistantSchedule("this", {
* deleteDisabled: true,
* enabled: true,
* frequency: "days",
* frequencyInterval: "5",
* });
* ```
*
* ## Import
*
* Import is not currently supported for this resource.
*/
class AppConnectorAssistantSchedule extends pulumi.CustomResource {
/**
* Get an existing AppConnectorAssistantSchedule 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 AppConnectorAssistantSchedule(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of AppConnectorAssistantSchedule. 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'] === AppConnectorAssistantSchedule.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["customerId"] = state ? state.customerId : undefined;
resourceInputs["deleteDisabled"] = state ? state.deleteDisabled : undefined;
resourceInputs["enabled"] = state ? state.enabled : undefined;
resourceInputs["frequency"] = state ? state.frequency : undefined;
resourceInputs["frequencyInterval"] = state ? state.frequencyInterval : undefined;
}
else {
const args = argsOrState;
resourceInputs["customerId"] = args ? args.customerId : undefined;
resourceInputs["deleteDisabled"] = args ? args.deleteDisabled : undefined;
resourceInputs["enabled"] = args ? args.enabled : undefined;
resourceInputs["frequency"] = args ? args.frequency : undefined;
resourceInputs["frequencyInterval"] = args ? args.frequencyInterval : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
const aliasOpts = { aliases: [{ type: "zpa:index/assistantSchedule:AssistantSchedule" }] };
opts = pulumi.mergeOptions(opts, aliasOpts);
super(AppConnectorAssistantSchedule.__pulumiType, name, resourceInputs, opts);
}
}
exports.AppConnectorAssistantSchedule = AppConnectorAssistantSchedule;
/** @internal */
AppConnectorAssistantSchedule.__pulumiType = 'zpa:index/appConnectorAssistantSchedule:AppConnectorAssistantSchedule';
//# sourceMappingURL=appConnectorAssistantSchedule.js.map