UNPKG

@pulumiverse/fortios

Version:

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

147 lines 7.32 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.Wccp = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Configure WCCP. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as fortios from "@pulumiverse/fortios"; * * const trname = new fortios.system.Wccp("trname", { * assignmentBucketFormat: "cisco-implementation", * assignmentDstaddrMask: "0.0.0.0", * assignmentMethod: "HASH", * assignmentSrcaddrMask: "0.0.23.65", * assignmentWeight: 0, * authentication: "disable", * cacheEngineMethod: "GRE", * cacheId: "1.1.1.1", * forwardMethod: "GRE", * groupAddress: "0.0.0.0", * primaryHash: "dst-ip", * priority: 0, * protocol: 0, * returnMethod: "GRE", * routerId: "1.1.1.1", * routerList: "\"1.0.0.0\" ", * serverType: "forward", * serviceId: "1", * serviceType: "auto", * }); * ``` * * ## Import * * System Wccp can be imported using any of these accepted formats: * * ```sh * $ pulumi import fortios:system/wccp:Wccp labelname {{service_id}} * ``` * * If you do not want to import arguments of block: * * $ export "FORTIOS_IMPORT_TABLE"="false" * * ```sh * $ pulumi import fortios:system/wccp:Wccp labelname {{service_id}} * ``` * * $ unset "FORTIOS_IMPORT_TABLE" */ class Wccp extends pulumi.CustomResource { /** * Get an existing Wccp 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 Wccp(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Wccp. 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'] === Wccp.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["assignmentBucketFormat"] = state ? state.assignmentBucketFormat : undefined; resourceInputs["assignmentDstaddrMask"] = state ? state.assignmentDstaddrMask : undefined; resourceInputs["assignmentMethod"] = state ? state.assignmentMethod : undefined; resourceInputs["assignmentSrcaddrMask"] = state ? state.assignmentSrcaddrMask : undefined; resourceInputs["assignmentWeight"] = state ? state.assignmentWeight : undefined; resourceInputs["authentication"] = state ? state.authentication : undefined; resourceInputs["cacheEngineMethod"] = state ? state.cacheEngineMethod : undefined; resourceInputs["cacheId"] = state ? state.cacheId : undefined; resourceInputs["forwardMethod"] = state ? state.forwardMethod : undefined; resourceInputs["groupAddress"] = state ? state.groupAddress : undefined; resourceInputs["password"] = state ? state.password : undefined; resourceInputs["ports"] = state ? state.ports : undefined; resourceInputs["portsDefined"] = state ? state.portsDefined : undefined; resourceInputs["primaryHash"] = state ? state.primaryHash : undefined; resourceInputs["priority"] = state ? state.priority : undefined; resourceInputs["protocol"] = state ? state.protocol : undefined; resourceInputs["returnMethod"] = state ? state.returnMethod : undefined; resourceInputs["routerId"] = state ? state.routerId : undefined; resourceInputs["routerList"] = state ? state.routerList : undefined; resourceInputs["serverList"] = state ? state.serverList : undefined; resourceInputs["serverType"] = state ? state.serverType : undefined; resourceInputs["serviceId"] = state ? state.serviceId : undefined; resourceInputs["serviceType"] = state ? state.serviceType : undefined; resourceInputs["vdomparam"] = state ? state.vdomparam : undefined; } else { const args = argsOrState; resourceInputs["assignmentBucketFormat"] = args ? args.assignmentBucketFormat : undefined; resourceInputs["assignmentDstaddrMask"] = args ? args.assignmentDstaddrMask : undefined; resourceInputs["assignmentMethod"] = args ? args.assignmentMethod : undefined; resourceInputs["assignmentSrcaddrMask"] = args ? args.assignmentSrcaddrMask : undefined; resourceInputs["assignmentWeight"] = args ? args.assignmentWeight : undefined; resourceInputs["authentication"] = args ? args.authentication : undefined; resourceInputs["cacheEngineMethod"] = args ? args.cacheEngineMethod : undefined; resourceInputs["cacheId"] = args ? args.cacheId : undefined; resourceInputs["forwardMethod"] = args ? args.forwardMethod : undefined; resourceInputs["groupAddress"] = args ? args.groupAddress : undefined; resourceInputs["password"] = (args === null || args === void 0 ? void 0 : args.password) ? pulumi.secret(args.password) : undefined; resourceInputs["ports"] = args ? args.ports : undefined; resourceInputs["portsDefined"] = args ? args.portsDefined : undefined; resourceInputs["primaryHash"] = args ? args.primaryHash : undefined; resourceInputs["priority"] = args ? args.priority : undefined; resourceInputs["protocol"] = args ? args.protocol : undefined; resourceInputs["returnMethod"] = args ? args.returnMethod : undefined; resourceInputs["routerId"] = args ? args.routerId : undefined; resourceInputs["routerList"] = args ? args.routerList : undefined; resourceInputs["serverList"] = args ? args.serverList : undefined; resourceInputs["serverType"] = args ? args.serverType : undefined; resourceInputs["serviceId"] = args ? args.serviceId : undefined; resourceInputs["serviceType"] = args ? args.serviceType : undefined; resourceInputs["vdomparam"] = args ? args.vdomparam : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); const secretOpts = { additionalSecretOutputs: ["password"] }; opts = pulumi.mergeOptions(opts, secretOpts); super(Wccp.__pulumiType, name, resourceInputs, opts); } } exports.Wccp = Wccp; /** @internal */ Wccp.__pulumiType = 'fortios:system/wccp:Wccp'; //# sourceMappingURL=wccp.js.map