@pulumiverse/fortios
Version:
A Pulumi package for creating and managing Fortios resources. Based on terraform-provider-fortios: version v1.16.0
119 lines • 5.51 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.Sensor = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Configure DLP sensors.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as fortios from "@pulumiverse/fortios";
*
* const trname = new fortios.dlp.Sensor("trname", {
* dlpLog: "enable",
* extendedLog: "disable",
* flowBased: "enable",
* nacQuarLog: "disable",
* summaryProto: "smtp pop3",
* });
* ```
*
* ## Import
*
* Dlp Sensor can be imported using any of these accepted formats:
*
* ```sh
* $ pulumi import fortios:dlp/sensor:Sensor labelname {{name}}
* ```
*
* If you do not want to import arguments of block:
*
* $ export "FORTIOS_IMPORT_TABLE"="false"
*
* ```sh
* $ pulumi import fortios:dlp/sensor:Sensor labelname {{name}}
* ```
*
* $ unset "FORTIOS_IMPORT_TABLE"
*/
class Sensor extends pulumi.CustomResource {
/**
* Get an existing Sensor 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 Sensor(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of Sensor. 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'] === Sensor.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["comment"] = state ? state.comment : undefined;
resourceInputs["dlpLog"] = state ? state.dlpLog : undefined;
resourceInputs["dynamicSortSubtable"] = state ? state.dynamicSortSubtable : undefined;
resourceInputs["entries"] = state ? state.entries : undefined;
resourceInputs["eval"] = state ? state.eval : undefined;
resourceInputs["extendedLog"] = state ? state.extendedLog : undefined;
resourceInputs["featureSet"] = state ? state.featureSet : undefined;
resourceInputs["filters"] = state ? state.filters : undefined;
resourceInputs["flowBased"] = state ? state.flowBased : undefined;
resourceInputs["fullArchiveProto"] = state ? state.fullArchiveProto : undefined;
resourceInputs["getAllTables"] = state ? state.getAllTables : undefined;
resourceInputs["matchType"] = state ? state.matchType : undefined;
resourceInputs["nacQuarLog"] = state ? state.nacQuarLog : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["options"] = state ? state.options : undefined;
resourceInputs["replacemsgGroup"] = state ? state.replacemsgGroup : undefined;
resourceInputs["summaryProto"] = state ? state.summaryProto : undefined;
resourceInputs["vdomparam"] = state ? state.vdomparam : undefined;
}
else {
const args = argsOrState;
resourceInputs["comment"] = args ? args.comment : undefined;
resourceInputs["dlpLog"] = args ? args.dlpLog : undefined;
resourceInputs["dynamicSortSubtable"] = args ? args.dynamicSortSubtable : undefined;
resourceInputs["entries"] = args ? args.entries : undefined;
resourceInputs["eval"] = args ? args.eval : undefined;
resourceInputs["extendedLog"] = args ? args.extendedLog : undefined;
resourceInputs["featureSet"] = args ? args.featureSet : undefined;
resourceInputs["filters"] = args ? args.filters : undefined;
resourceInputs["flowBased"] = args ? args.flowBased : undefined;
resourceInputs["fullArchiveProto"] = args ? args.fullArchiveProto : undefined;
resourceInputs["getAllTables"] = args ? args.getAllTables : undefined;
resourceInputs["matchType"] = args ? args.matchType : undefined;
resourceInputs["nacQuarLog"] = args ? args.nacQuarLog : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["options"] = args ? args.options : undefined;
resourceInputs["replacemsgGroup"] = args ? args.replacemsgGroup : undefined;
resourceInputs["summaryProto"] = args ? args.summaryProto : undefined;
resourceInputs["vdomparam"] = args ? args.vdomparam : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(Sensor.__pulumiType, name, resourceInputs, opts);
}
}
exports.Sensor = Sensor;
/** @internal */
Sensor.__pulumiType = 'fortios:dlp/sensor:Sensor';
//# sourceMappingURL=sensor.js.map
;