UNPKG

@pulumiverse/fortios

Version:

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

94 lines 4.44 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.Datatype = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Configure predefined data type used by DLP blocking. Applies to FortiOS Version `>= 7.2.0`. * * ## Import * * Dlp DataType can be imported using any of these accepted formats: * * ```sh * $ pulumi import fortios:dlp/datatype:Datatype labelname {{name}} * ``` * * If you do not want to import arguments of block: * * $ export "FORTIOS_IMPORT_TABLE"="false" * * ```sh * $ pulumi import fortios:dlp/datatype:Datatype labelname {{name}} * ``` * * $ unset "FORTIOS_IMPORT_TABLE" */ class Datatype extends pulumi.CustomResource { /** * Get an existing Datatype 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 Datatype(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Datatype. 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'] === Datatype.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["comment"] = state ? state.comment : undefined; resourceInputs["lookAhead"] = state ? state.lookAhead : undefined; resourceInputs["lookBack"] = state ? state.lookBack : undefined; resourceInputs["matchAhead"] = state ? state.matchAhead : undefined; resourceInputs["matchAround"] = state ? state.matchAround : undefined; resourceInputs["matchBack"] = state ? state.matchBack : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["pattern"] = state ? state.pattern : undefined; resourceInputs["transform"] = state ? state.transform : undefined; resourceInputs["vdomparam"] = state ? state.vdomparam : undefined; resourceInputs["verify"] = state ? state.verify : undefined; resourceInputs["verify2"] = state ? state.verify2 : undefined; resourceInputs["verifyTransformedPattern"] = state ? state.verifyTransformedPattern : undefined; } else { const args = argsOrState; resourceInputs["comment"] = args ? args.comment : undefined; resourceInputs["lookAhead"] = args ? args.lookAhead : undefined; resourceInputs["lookBack"] = args ? args.lookBack : undefined; resourceInputs["matchAhead"] = args ? args.matchAhead : undefined; resourceInputs["matchAround"] = args ? args.matchAround : undefined; resourceInputs["matchBack"] = args ? args.matchBack : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["pattern"] = args ? args.pattern : undefined; resourceInputs["transform"] = args ? args.transform : undefined; resourceInputs["vdomparam"] = args ? args.vdomparam : undefined; resourceInputs["verify"] = args ? args.verify : undefined; resourceInputs["verify2"] = args ? args.verify2 : undefined; resourceInputs["verifyTransformedPattern"] = args ? args.verifyTransformedPattern : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Datatype.__pulumiType, name, resourceInputs, opts); } } exports.Datatype = Datatype; /** @internal */ Datatype.__pulumiType = 'fortios:dlp/datatype:Datatype'; //# sourceMappingURL=datatype.js.map