UNPKG

@pulumiverse/fortios

Version:

A Pulumi package for creating and managing Fortios resources. Based on terraform-provider-fortios: version v1.16.0

142 lines 6.71 kB
"use strict"; // *** 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.Fpdocsource = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Create a DLP fingerprint database by allowing the FortiGate to access a file server containing files from which to create fingerprints. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as fortios from "@pulumiverse/fortios"; * * const trname = new fortios.dlp.Fpdocsource("trname", { * date: 1, * filePath: "/", * filePattern: "*", * keepModified: "enable", * period: "none", * removeDeleted: "enable", * scanOnCreation: "enable", * scanSubdirectories: "enable", * server: "1.1.1.1", * serverType: "samba", * todHour: 1, * todMin: 0, * username: "sgh", * vdom: "mgmt", * weekday: "sunday", * }); * ``` * * ## Import * * Dlp FpDocSource can be imported using any of these accepted formats: * * ```sh * $ pulumi import fortios:dlp/fpdocsource:Fpdocsource labelname {{name}} * ``` * * If you do not want to import arguments of block: * * $ export "FORTIOS_IMPORT_TABLE"="false" * * ```sh * $ pulumi import fortios:dlp/fpdocsource:Fpdocsource labelname {{name}} * ``` * * $ unset "FORTIOS_IMPORT_TABLE" */ class Fpdocsource extends pulumi.CustomResource { /** * Get an existing Fpdocsource 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 Fpdocsource(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Fpdocsource. 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'] === Fpdocsource.__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(Fpdocsource.__pulumiType, name, resourceInputs, opts); } } exports.Fpdocsource = Fpdocsource; /** @internal */ Fpdocsource.__pulumiType = 'fortios:dlp/fpdocsource:Fpdocsource'; //# sourceMappingURL=fpdocsource.js.map