@pulumiverse/fortios
Version:
A Pulumi package for creating and managing Fortios resources. Based on terraform-provider-fortios: version v1.16.0
129 lines • 6.68 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.List = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Configure application control lists.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as fortios from "@pulumiverse/fortios";
*
* const trname = new fortios.application.List("trname", {
* appReplacemsg: "enable",
* deepAppInspection: "enable",
* enforceDefaultAppPort: "disable",
* extendedLog: "disable",
* options: "allow-dns",
* otherApplicationAction: "pass",
* otherApplicationLog: "disable",
* unknownApplicationAction: "pass",
* unknownApplicationLog: "disable",
* });
* ```
*
* ## Import
*
* Application List can be imported using any of these accepted formats:
*
* ```sh
* $ pulumi import fortios:application/list:List labelname {{name}}
* ```
*
* If you do not want to import arguments of block:
*
* $ export "FORTIOS_IMPORT_TABLE"="false"
*
* ```sh
* $ pulumi import fortios:application/list:List labelname {{name}}
* ```
*
* $ unset "FORTIOS_IMPORT_TABLE"
*/
class List extends pulumi.CustomResource {
/**
* Get an existing List 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 List(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of List. 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'] === List.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["appReplacemsg"] = state ? state.appReplacemsg : undefined;
resourceInputs["comment"] = state ? state.comment : undefined;
resourceInputs["controlDefaultNetworkServices"] = state ? state.controlDefaultNetworkServices : undefined;
resourceInputs["deepAppInspection"] = state ? state.deepAppInspection : undefined;
resourceInputs["defaultNetworkServices"] = state ? state.defaultNetworkServices : undefined;
resourceInputs["dynamicSortSubtable"] = state ? state.dynamicSortSubtable : undefined;
resourceInputs["enforceDefaultAppPort"] = state ? state.enforceDefaultAppPort : undefined;
resourceInputs["entries"] = state ? state.entries : undefined;
resourceInputs["extendedLog"] = state ? state.extendedLog : undefined;
resourceInputs["forceInclusionSslDiSigs"] = state ? state.forceInclusionSslDiSigs : undefined;
resourceInputs["getAllTables"] = state ? state.getAllTables : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["options"] = state ? state.options : undefined;
resourceInputs["otherApplicationAction"] = state ? state.otherApplicationAction : undefined;
resourceInputs["otherApplicationLog"] = state ? state.otherApplicationLog : undefined;
resourceInputs["p2pBlackList"] = state ? state.p2pBlackList : undefined;
resourceInputs["p2pBlockList"] = state ? state.p2pBlockList : undefined;
resourceInputs["replacemsgGroup"] = state ? state.replacemsgGroup : undefined;
resourceInputs["unknownApplicationAction"] = state ? state.unknownApplicationAction : undefined;
resourceInputs["unknownApplicationLog"] = state ? state.unknownApplicationLog : undefined;
resourceInputs["vdomparam"] = state ? state.vdomparam : undefined;
}
else {
const args = argsOrState;
resourceInputs["appReplacemsg"] = args ? args.appReplacemsg : undefined;
resourceInputs["comment"] = args ? args.comment : undefined;
resourceInputs["controlDefaultNetworkServices"] = args ? args.controlDefaultNetworkServices : undefined;
resourceInputs["deepAppInspection"] = args ? args.deepAppInspection : undefined;
resourceInputs["defaultNetworkServices"] = args ? args.defaultNetworkServices : undefined;
resourceInputs["dynamicSortSubtable"] = args ? args.dynamicSortSubtable : undefined;
resourceInputs["enforceDefaultAppPort"] = args ? args.enforceDefaultAppPort : undefined;
resourceInputs["entries"] = args ? args.entries : undefined;
resourceInputs["extendedLog"] = args ? args.extendedLog : undefined;
resourceInputs["forceInclusionSslDiSigs"] = args ? args.forceInclusionSslDiSigs : undefined;
resourceInputs["getAllTables"] = args ? args.getAllTables : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["options"] = args ? args.options : undefined;
resourceInputs["otherApplicationAction"] = args ? args.otherApplicationAction : undefined;
resourceInputs["otherApplicationLog"] = args ? args.otherApplicationLog : undefined;
resourceInputs["p2pBlackList"] = args ? args.p2pBlackList : undefined;
resourceInputs["p2pBlockList"] = args ? args.p2pBlockList : undefined;
resourceInputs["replacemsgGroup"] = args ? args.replacemsgGroup : undefined;
resourceInputs["unknownApplicationAction"] = args ? args.unknownApplicationAction : undefined;
resourceInputs["unknownApplicationLog"] = args ? args.unknownApplicationLog : undefined;
resourceInputs["vdomparam"] = args ? args.vdomparam : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(List.__pulumiType, name, resourceInputs, opts);
}
}
exports.List = List;
/** @internal */
List.__pulumiType = 'fortios:application/list:List';
//# sourceMappingURL=list.js.map
;