@lubyou/pulumi-fortios
Version:
A Pulumi package for creating and managing fortios cloud resources.
96 lines • 5.59 kB
JavaScript
;
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.DlpFpDocSource = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
class DlpFpDocSource extends pulumi.CustomResource {
/**
* Get an existing DlpFpDocSource 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 DlpFpDocSource(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of DlpFpDocSource. 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'] === DlpFpDocSource.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["date"] = state ? state.date : undefined;
resourceInputs["filePath"] = state ? state.filePath : undefined;
resourceInputs["filePattern"] = state ? state.filePattern : undefined;
resourceInputs["keepModified"] = state ? state.keepModified : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["password"] = state ? state.password : undefined;
resourceInputs["period"] = state ? state.period : undefined;
resourceInputs["removeDeleted"] = state ? state.removeDeleted : undefined;
resourceInputs["scanOnCreation"] = state ? state.scanOnCreation : undefined;
resourceInputs["scanSubdirectories"] = state ? state.scanSubdirectories : undefined;
resourceInputs["sensitivity"] = state ? state.sensitivity : undefined;
resourceInputs["server"] = state ? state.server : undefined;
resourceInputs["serverType"] = state ? state.serverType : undefined;
resourceInputs["todHour"] = state ? state.todHour : undefined;
resourceInputs["todMin"] = state ? state.todMin : undefined;
resourceInputs["username"] = state ? state.username : undefined;
resourceInputs["vdom"] = state ? state.vdom : undefined;
resourceInputs["vdomparam"] = state ? state.vdomparam : undefined;
resourceInputs["weekday"] = state ? state.weekday : undefined;
}
else {
const args = argsOrState;
if ((!args || args.server === undefined) && !opts.urn) {
throw new Error("Missing required property 'server'");
}
if ((!args || args.serverType === undefined) && !opts.urn) {
throw new Error("Missing required property 'serverType'");
}
if ((!args || args.username === undefined) && !opts.urn) {
throw new Error("Missing required property 'username'");
}
resourceInputs["date"] = args ? args.date : undefined;
resourceInputs["filePath"] = args ? args.filePath : undefined;
resourceInputs["filePattern"] = args ? args.filePattern : undefined;
resourceInputs["keepModified"] = args ? args.keepModified : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["password"] = (args === null || args === void 0 ? void 0 : args.password) ? pulumi.secret(args.password) : undefined;
resourceInputs["period"] = args ? args.period : undefined;
resourceInputs["removeDeleted"] = args ? args.removeDeleted : undefined;
resourceInputs["scanOnCreation"] = args ? args.scanOnCreation : undefined;
resourceInputs["scanSubdirectories"] = args ? args.scanSubdirectories : undefined;
resourceInputs["sensitivity"] = args ? args.sensitivity : undefined;
resourceInputs["server"] = args ? args.server : undefined;
resourceInputs["serverType"] = args ? args.serverType : undefined;
resourceInputs["todHour"] = args ? args.todHour : undefined;
resourceInputs["todMin"] = args ? args.todMin : undefined;
resourceInputs["username"] = args ? args.username : undefined;
resourceInputs["vdom"] = args ? args.vdom : undefined;
resourceInputs["vdomparam"] = args ? args.vdomparam : undefined;
resourceInputs["weekday"] = args ? args.weekday : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
const secretOpts = { additionalSecretOutputs: ["password"] };
opts = pulumi.mergeOptions(opts, secretOpts);
super(DlpFpDocSource.__pulumiType, name, resourceInputs, opts);
}
}
exports.DlpFpDocSource = DlpFpDocSource;
/** @internal */
DlpFpDocSource.__pulumiType = 'fortios:index/dlpFpDocSource:DlpFpDocSource';
//# sourceMappingURL=dlpFpDocSource.js.map