@pulumiverse/fortios
Version:
A Pulumi package for creating and managing Fortios resources. Based on terraform-provider-fortios: version v1.16.0
156 lines • 9.01 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.Csf = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Add this FortiGate to a Security Fabric or set up a new Security Fabric on this FortiGate.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as fortios from "@pulumiverse/fortios";
*
* const trname = new fortios.system.Csf("trname", {
* configurationSync: "default",
* groupPassword: "tmp",
* managementIp: "0.0.0.0",
* managementPort: 33,
* status: "disable",
* upstreamIp: "0.0.0.0",
* upstreamPort: 8013,
* });
* ```
*
* ## Import
*
* System Csf can be imported using any of these accepted formats:
*
* ```sh
* $ pulumi import fortios:system/csf:Csf labelname SystemCsf
* ```
*
* If you do not want to import arguments of block:
*
* $ export "FORTIOS_IMPORT_TABLE"="false"
*
* ```sh
* $ pulumi import fortios:system/csf:Csf labelname SystemCsf
* ```
*
* $ unset "FORTIOS_IMPORT_TABLE"
*/
class Csf extends pulumi.CustomResource {
/**
* Get an existing Csf 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 Csf(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of Csf. 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'] === Csf.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["acceptAuthByCert"] = state ? state.acceptAuthByCert : undefined;
resourceInputs["authorizationRequestType"] = state ? state.authorizationRequestType : undefined;
resourceInputs["certificate"] = state ? state.certificate : undefined;
resourceInputs["configurationSync"] = state ? state.configurationSync : undefined;
resourceInputs["downstreamAccess"] = state ? state.downstreamAccess : undefined;
resourceInputs["downstreamAccprofile"] = state ? state.downstreamAccprofile : undefined;
resourceInputs["dynamicSortSubtable"] = state ? state.dynamicSortSubtable : undefined;
resourceInputs["fabricConnectors"] = state ? state.fabricConnectors : undefined;
resourceInputs["fabricDevices"] = state ? state.fabricDevices : undefined;
resourceInputs["fabricObjectUnification"] = state ? state.fabricObjectUnification : undefined;
resourceInputs["fabricWorkers"] = state ? state.fabricWorkers : undefined;
resourceInputs["fileMgmt"] = state ? state.fileMgmt : undefined;
resourceInputs["fileQuota"] = state ? state.fileQuota : undefined;
resourceInputs["fileQuotaWarning"] = state ? state.fileQuotaWarning : undefined;
resourceInputs["fixedKey"] = state ? state.fixedKey : undefined;
resourceInputs["forticloudAccountEnforcement"] = state ? state.forticloudAccountEnforcement : undefined;
resourceInputs["getAllTables"] = state ? state.getAllTables : undefined;
resourceInputs["groupName"] = state ? state.groupName : undefined;
resourceInputs["groupPassword"] = state ? state.groupPassword : undefined;
resourceInputs["logUnification"] = state ? state.logUnification : undefined;
resourceInputs["managementIp"] = state ? state.managementIp : undefined;
resourceInputs["managementPort"] = state ? state.managementPort : undefined;
resourceInputs["samlConfigurationSync"] = state ? state.samlConfigurationSync : undefined;
resourceInputs["sourceIp"] = state ? state.sourceIp : undefined;
resourceInputs["status"] = state ? state.status : undefined;
resourceInputs["trustedLists"] = state ? state.trustedLists : undefined;
resourceInputs["uid"] = state ? state.uid : undefined;
resourceInputs["upstream"] = state ? state.upstream : undefined;
resourceInputs["upstreamInterface"] = state ? state.upstreamInterface : undefined;
resourceInputs["upstreamInterfaceSelectMethod"] = state ? state.upstreamInterfaceSelectMethod : undefined;
resourceInputs["upstreamIp"] = state ? state.upstreamIp : undefined;
resourceInputs["upstreamPort"] = state ? state.upstreamPort : undefined;
resourceInputs["vdomparam"] = state ? state.vdomparam : undefined;
}
else {
const args = argsOrState;
if ((!args || args.status === undefined) && !opts.urn) {
throw new Error("Missing required property 'status'");
}
resourceInputs["acceptAuthByCert"] = args ? args.acceptAuthByCert : undefined;
resourceInputs["authorizationRequestType"] = args ? args.authorizationRequestType : undefined;
resourceInputs["certificate"] = args ? args.certificate : undefined;
resourceInputs["configurationSync"] = args ? args.configurationSync : undefined;
resourceInputs["downstreamAccess"] = args ? args.downstreamAccess : undefined;
resourceInputs["downstreamAccprofile"] = args ? args.downstreamAccprofile : undefined;
resourceInputs["dynamicSortSubtable"] = args ? args.dynamicSortSubtable : undefined;
resourceInputs["fabricConnectors"] = args ? args.fabricConnectors : undefined;
resourceInputs["fabricDevices"] = args ? args.fabricDevices : undefined;
resourceInputs["fabricObjectUnification"] = args ? args.fabricObjectUnification : undefined;
resourceInputs["fabricWorkers"] = args ? args.fabricWorkers : undefined;
resourceInputs["fileMgmt"] = args ? args.fileMgmt : undefined;
resourceInputs["fileQuota"] = args ? args.fileQuota : undefined;
resourceInputs["fileQuotaWarning"] = args ? args.fileQuotaWarning : undefined;
resourceInputs["fixedKey"] = (args === null || args === void 0 ? void 0 : args.fixedKey) ? pulumi.secret(args.fixedKey) : undefined;
resourceInputs["forticloudAccountEnforcement"] = args ? args.forticloudAccountEnforcement : undefined;
resourceInputs["getAllTables"] = args ? args.getAllTables : undefined;
resourceInputs["groupName"] = args ? args.groupName : undefined;
resourceInputs["groupPassword"] = (args === null || args === void 0 ? void 0 : args.groupPassword) ? pulumi.secret(args.groupPassword) : undefined;
resourceInputs["logUnification"] = args ? args.logUnification : undefined;
resourceInputs["managementIp"] = args ? args.managementIp : undefined;
resourceInputs["managementPort"] = args ? args.managementPort : undefined;
resourceInputs["samlConfigurationSync"] = args ? args.samlConfigurationSync : undefined;
resourceInputs["sourceIp"] = args ? args.sourceIp : undefined;
resourceInputs["status"] = args ? args.status : undefined;
resourceInputs["trustedLists"] = args ? args.trustedLists : undefined;
resourceInputs["uid"] = args ? args.uid : undefined;
resourceInputs["upstream"] = args ? args.upstream : undefined;
resourceInputs["upstreamInterface"] = args ? args.upstreamInterface : undefined;
resourceInputs["upstreamInterfaceSelectMethod"] = args ? args.upstreamInterfaceSelectMethod : undefined;
resourceInputs["upstreamIp"] = args ? args.upstreamIp : undefined;
resourceInputs["upstreamPort"] = args ? args.upstreamPort : undefined;
resourceInputs["vdomparam"] = args ? args.vdomparam : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
const secretOpts = { additionalSecretOutputs: ["fixedKey", "groupPassword"] };
opts = pulumi.mergeOptions(opts, secretOpts);
super(Csf.__pulumiType, name, resourceInputs, opts);
}
}
exports.Csf = Csf;
/** @internal */
Csf.__pulumiType = 'fortios:system/csf:Csf';
//# sourceMappingURL=csf.js.map
;