@lubyou/pulumi-fortios
Version: 
A Pulumi package for creating and managing fortios cloud resources.
67 lines • 3.73 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.SystemNetflow = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
class SystemNetflow extends pulumi.CustomResource {
    /**
     * Get an existing SystemNetflow 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 SystemNetflow(name, state, Object.assign(Object.assign({}, opts), { id: id }));
    }
    /**
     * Returns true if the given object is an instance of SystemNetflow.  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'] === SystemNetflow.__pulumiType;
    }
    constructor(name, argsOrState, opts) {
        let resourceInputs = {};
        opts = opts || {};
        if (opts.id) {
            const state = argsOrState;
            resourceInputs["activeFlowTimeout"] = state ? state.activeFlowTimeout : undefined;
            resourceInputs["collectorIp"] = state ? state.collectorIp : undefined;
            resourceInputs["collectorPort"] = state ? state.collectorPort : undefined;
            resourceInputs["inactiveFlowTimeout"] = state ? state.inactiveFlowTimeout : undefined;
            resourceInputs["interface"] = state ? state.interface : undefined;
            resourceInputs["interfaceSelectMethod"] = state ? state.interfaceSelectMethod : undefined;
            resourceInputs["sourceIp"] = state ? state.sourceIp : undefined;
            resourceInputs["templateTxCounter"] = state ? state.templateTxCounter : undefined;
            resourceInputs["templateTxTimeout"] = state ? state.templateTxTimeout : undefined;
            resourceInputs["vdomparam"] = state ? state.vdomparam : undefined;
        }
        else {
            const args = argsOrState;
            resourceInputs["activeFlowTimeout"] = args ? args.activeFlowTimeout : undefined;
            resourceInputs["collectorIp"] = args ? args.collectorIp : undefined;
            resourceInputs["collectorPort"] = args ? args.collectorPort : undefined;
            resourceInputs["inactiveFlowTimeout"] = args ? args.inactiveFlowTimeout : undefined;
            resourceInputs["interface"] = args ? args.interface : undefined;
            resourceInputs["interfaceSelectMethod"] = args ? args.interfaceSelectMethod : undefined;
            resourceInputs["sourceIp"] = args ? args.sourceIp : undefined;
            resourceInputs["templateTxCounter"] = args ? args.templateTxCounter : undefined;
            resourceInputs["templateTxTimeout"] = args ? args.templateTxTimeout : undefined;
            resourceInputs["vdomparam"] = args ? args.vdomparam : undefined;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        super(SystemNetflow.__pulumiType, name, resourceInputs, opts);
    }
}
exports.SystemNetflow = SystemNetflow;
/** @internal */
SystemNetflow.__pulumiType = 'fortios:index/systemNetflow:SystemNetflow';
//# sourceMappingURL=systemNetflow.js.map