@bdzscaler/pulumi-zia
Version:
A Pulumi package for creating and managing zia cloud resources.
77 lines • 3.46 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.FtpControlPolicy = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* * [Official documentation](https://help.zscaler.com/zia/about-ftp-control)
* * [API documentation](https://help.zscaler.com/zia/ftp-control-policy#/ftpSettings-get)
*
* The **zia_ftp_control_policy** resource allows you to update FTP control Policy. To learn more see [Configuring the FTP Control Policy](https://help.zscaler.com/zia/configuring-ftp-control-policy)
*
* ## 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_ftp_control_policy** can be imported by using `ftp_control` as the import ID.
*
* For example:
*
* ```sh
* $ pulumi import zia:index/ftpControlPolicy:FtpControlPolicy this "ftp_control"
* ```
*/
class FtpControlPolicy extends pulumi.CustomResource {
/**
* Get an existing FtpControlPolicy 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 FtpControlPolicy(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of FtpControlPolicy. 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'] === FtpControlPolicy.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["ftpEnabled"] = state ? state.ftpEnabled : undefined;
resourceInputs["ftpOverHttpEnabled"] = state ? state.ftpOverHttpEnabled : undefined;
resourceInputs["urlCategories"] = state ? state.urlCategories : undefined;
resourceInputs["urls"] = state ? state.urls : undefined;
}
else {
const args = argsOrState;
resourceInputs["ftpEnabled"] = args ? args.ftpEnabled : undefined;
resourceInputs["ftpOverHttpEnabled"] = args ? args.ftpOverHttpEnabled : undefined;
resourceInputs["urlCategories"] = args ? args.urlCategories : undefined;
resourceInputs["urls"] = args ? args.urls : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(FtpControlPolicy.__pulumiType, name, resourceInputs, opts);
}
}
exports.FtpControlPolicy = FtpControlPolicy;
/** @internal */
FtpControlPolicy.__pulumiType = 'zia:index/ftpControlPolicy:FtpControlPolicy';
//# sourceMappingURL=ftpControlPolicy.js.map
;