UNPKG

@lubyou/pulumi-fortios

Version:

A Pulumi package for creating and managing fortios cloud resources.

118 lines 7.92 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.FirewallInterfacePolicy6 = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); class FirewallInterfacePolicy6 extends pulumi.CustomResource { /** * Get an existing FirewallInterfacePolicy6 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 FirewallInterfacePolicy6(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of FirewallInterfacePolicy6. 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'] === FirewallInterfacePolicy6.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["addressType"] = state ? state.addressType : undefined; resourceInputs["applicationList"] = state ? state.applicationList : undefined; resourceInputs["applicationListStatus"] = state ? state.applicationListStatus : undefined; resourceInputs["avProfile"] = state ? state.avProfile : undefined; resourceInputs["avProfileStatus"] = state ? state.avProfileStatus : undefined; resourceInputs["comments"] = state ? state.comments : undefined; resourceInputs["dlpProfile"] = state ? state.dlpProfile : undefined; resourceInputs["dlpProfileStatus"] = state ? state.dlpProfileStatus : undefined; resourceInputs["dlpSensor"] = state ? state.dlpSensor : undefined; resourceInputs["dlpSensorStatus"] = state ? state.dlpSensorStatus : undefined; resourceInputs["dsri"] = state ? state.dsri : undefined; resourceInputs["dstaddr6s"] = state ? state.dstaddr6s : undefined; resourceInputs["dynamicSortSubtable"] = state ? state.dynamicSortSubtable : undefined; resourceInputs["emailfilterProfile"] = state ? state.emailfilterProfile : undefined; resourceInputs["emailfilterProfileStatus"] = state ? state.emailfilterProfileStatus : undefined; resourceInputs["getAllTables"] = state ? state.getAllTables : undefined; resourceInputs["interface"] = state ? state.interface : undefined; resourceInputs["ipsSensor"] = state ? state.ipsSensor : undefined; resourceInputs["ipsSensorStatus"] = state ? state.ipsSensorStatus : undefined; resourceInputs["label"] = state ? state.label : undefined; resourceInputs["logtraffic"] = state ? state.logtraffic : undefined; resourceInputs["policyid"] = state ? state.policyid : undefined; resourceInputs["scanBotnetConnections"] = state ? state.scanBotnetConnections : undefined; resourceInputs["service6s"] = state ? state.service6s : undefined; resourceInputs["spamfilterProfile"] = state ? state.spamfilterProfile : undefined; resourceInputs["spamfilterProfileStatus"] = state ? state.spamfilterProfileStatus : undefined; resourceInputs["srcaddr6s"] = state ? state.srcaddr6s : undefined; resourceInputs["status"] = state ? state.status : undefined; resourceInputs["vdomparam"] = state ? state.vdomparam : undefined; resourceInputs["webfilterProfile"] = state ? state.webfilterProfile : undefined; resourceInputs["webfilterProfileStatus"] = state ? state.webfilterProfileStatus : undefined; } else { const args = argsOrState; if ((!args || args.dstaddr6s === undefined) && !opts.urn) { throw new Error("Missing required property 'dstaddr6s'"); } if ((!args || args.interface === undefined) && !opts.urn) { throw new Error("Missing required property 'interface'"); } if ((!args || args.srcaddr6s === undefined) && !opts.urn) { throw new Error("Missing required property 'srcaddr6s'"); } resourceInputs["addressType"] = args ? args.addressType : undefined; resourceInputs["applicationList"] = args ? args.applicationList : undefined; resourceInputs["applicationListStatus"] = args ? args.applicationListStatus : undefined; resourceInputs["avProfile"] = args ? args.avProfile : undefined; resourceInputs["avProfileStatus"] = args ? args.avProfileStatus : undefined; resourceInputs["comments"] = args ? args.comments : undefined; resourceInputs["dlpProfile"] = args ? args.dlpProfile : undefined; resourceInputs["dlpProfileStatus"] = args ? args.dlpProfileStatus : undefined; resourceInputs["dlpSensor"] = args ? args.dlpSensor : undefined; resourceInputs["dlpSensorStatus"] = args ? args.dlpSensorStatus : undefined; resourceInputs["dsri"] = args ? args.dsri : undefined; resourceInputs["dstaddr6s"] = args ? args.dstaddr6s : undefined; resourceInputs["dynamicSortSubtable"] = args ? args.dynamicSortSubtable : undefined; resourceInputs["emailfilterProfile"] = args ? args.emailfilterProfile : undefined; resourceInputs["emailfilterProfileStatus"] = args ? args.emailfilterProfileStatus : undefined; resourceInputs["getAllTables"] = args ? args.getAllTables : undefined; resourceInputs["interface"] = args ? args.interface : undefined; resourceInputs["ipsSensor"] = args ? args.ipsSensor : undefined; resourceInputs["ipsSensorStatus"] = args ? args.ipsSensorStatus : undefined; resourceInputs["label"] = args ? args.label : undefined; resourceInputs["logtraffic"] = args ? args.logtraffic : undefined; resourceInputs["policyid"] = args ? args.policyid : undefined; resourceInputs["scanBotnetConnections"] = args ? args.scanBotnetConnections : undefined; resourceInputs["service6s"] = args ? args.service6s : undefined; resourceInputs["spamfilterProfile"] = args ? args.spamfilterProfile : undefined; resourceInputs["spamfilterProfileStatus"] = args ? args.spamfilterProfileStatus : undefined; resourceInputs["srcaddr6s"] = args ? args.srcaddr6s : undefined; resourceInputs["status"] = args ? args.status : undefined; resourceInputs["vdomparam"] = args ? args.vdomparam : undefined; resourceInputs["webfilterProfile"] = args ? args.webfilterProfile : undefined; resourceInputs["webfilterProfileStatus"] = args ? args.webfilterProfileStatus : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(FirewallInterfacePolicy6.__pulumiType, name, resourceInputs, opts); } } exports.FirewallInterfacePolicy6 = FirewallInterfacePolicy6; /** @internal */ FirewallInterfacePolicy6.__pulumiType = 'fortios:index/firewallInterfacePolicy6:FirewallInterfacePolicy6'; //# sourceMappingURL=firewallInterfacePolicy6.js.map