@pulumiverse/fortios
Version:
A Pulumi package for creating and managing Fortios resources. Based on terraform-provider-fortios: version v1.16.0
295 lines • 19.1 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.Proxypolicy = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Configure proxy policies.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as fortios from "@pulumiverse/fortios";
*
* const trname = new fortios.firewall.Proxypolicy("trname", {
* action: "deny",
* disclaimer: "disable",
* dstaddrs: [{
* name: "all",
* }],
* dstaddrNegate: "disable",
* dstintfs: [{
* name: "port4",
* }],
* httpTunnelAuth: "disable",
* internetService: "disable",
* internetServiceNegate: "disable",
* logtraffic: "disable",
* logtrafficStart: "disable",
* policyid: 1,
* profileProtocolOptions: "default",
* profileType: "single",
* proxy: "transparent-web",
* scanBotnetConnections: "disable",
* schedule: "always",
* services: [{
* name: "webproxy",
* }],
* serviceNegate: "disable",
* srcaddrs: [{
* name: "all",
* }],
* srcaddrNegate: "disable",
* srcintfs: [{
* name: "port3",
* }],
* status: "enable",
* transparent: "disable",
* utmStatus: "disable",
* webcache: "disable",
* webcacheHttps: "disable",
* });
* ```
*
* ## Import
*
* Firewall ProxyPolicy can be imported using any of these accepted formats:
*
* ```sh
* $ pulumi import fortios:firewall/proxypolicy:Proxypolicy labelname {{policyid}}
* ```
*
* If you do not want to import arguments of block:
*
* $ export "FORTIOS_IMPORT_TABLE"="false"
*
* ```sh
* $ pulumi import fortios:firewall/proxypolicy:Proxypolicy labelname {{policyid}}
* ```
*
* $ unset "FORTIOS_IMPORT_TABLE"
*/
class Proxypolicy extends pulumi.CustomResource {
/**
* Get an existing Proxypolicy 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 Proxypolicy(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of Proxypolicy. 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'] === Proxypolicy.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["accessProxies"] = state ? state.accessProxies : undefined;
resourceInputs["accessProxy6s"] = state ? state.accessProxy6s : undefined;
resourceInputs["action"] = state ? state.action : undefined;
resourceInputs["applicationList"] = state ? state.applicationList : undefined;
resourceInputs["avProfile"] = state ? state.avProfile : undefined;
resourceInputs["blockNotification"] = state ? state.blockNotification : undefined;
resourceInputs["casbProfile"] = state ? state.casbProfile : undefined;
resourceInputs["cifsProfile"] = state ? state.cifsProfile : undefined;
resourceInputs["comments"] = state ? state.comments : undefined;
resourceInputs["decryptedTrafficMirror"] = state ? state.decryptedTrafficMirror : undefined;
resourceInputs["detectHttpsInHttpRequest"] = state ? state.detectHttpsInHttpRequest : undefined;
resourceInputs["deviceOwnership"] = state ? state.deviceOwnership : undefined;
resourceInputs["diameterFilterProfile"] = state ? state.diameterFilterProfile : undefined;
resourceInputs["disclaimer"] = state ? state.disclaimer : undefined;
resourceInputs["dlpProfile"] = state ? state.dlpProfile : undefined;
resourceInputs["dlpSensor"] = state ? state.dlpSensor : undefined;
resourceInputs["dstaddr6s"] = state ? state.dstaddr6s : undefined;
resourceInputs["dstaddrNegate"] = state ? state.dstaddrNegate : undefined;
resourceInputs["dstaddrs"] = state ? state.dstaddrs : undefined;
resourceInputs["dstintfs"] = state ? state.dstintfs : undefined;
resourceInputs["dynamicSortSubtable"] = state ? state.dynamicSortSubtable : undefined;
resourceInputs["emailfilterProfile"] = state ? state.emailfilterProfile : undefined;
resourceInputs["fileFilterProfile"] = state ? state.fileFilterProfile : undefined;
resourceInputs["getAllTables"] = state ? state.getAllTables : undefined;
resourceInputs["globalLabel"] = state ? state.globalLabel : undefined;
resourceInputs["groups"] = state ? state.groups : undefined;
resourceInputs["httpTunnelAuth"] = state ? state.httpTunnelAuth : undefined;
resourceInputs["icapProfile"] = state ? state.icapProfile : undefined;
resourceInputs["internetService"] = state ? state.internetService : undefined;
resourceInputs["internetService6"] = state ? state.internetService6 : undefined;
resourceInputs["internetService6CustomGroups"] = state ? state.internetService6CustomGroups : undefined;
resourceInputs["internetService6Customs"] = state ? state.internetService6Customs : undefined;
resourceInputs["internetService6Groups"] = state ? state.internetService6Groups : undefined;
resourceInputs["internetService6Names"] = state ? state.internetService6Names : undefined;
resourceInputs["internetService6Negate"] = state ? state.internetService6Negate : undefined;
resourceInputs["internetServiceCustomGroups"] = state ? state.internetServiceCustomGroups : undefined;
resourceInputs["internetServiceCustoms"] = state ? state.internetServiceCustoms : undefined;
resourceInputs["internetServiceGroups"] = state ? state.internetServiceGroups : undefined;
resourceInputs["internetServiceIds"] = state ? state.internetServiceIds : undefined;
resourceInputs["internetServiceNames"] = state ? state.internetServiceNames : undefined;
resourceInputs["internetServiceNegate"] = state ? state.internetServiceNegate : undefined;
resourceInputs["ipsSensor"] = state ? state.ipsSensor : undefined;
resourceInputs["ipsVoipFilter"] = state ? state.ipsVoipFilter : undefined;
resourceInputs["label"] = state ? state.label : undefined;
resourceInputs["logtraffic"] = state ? state.logtraffic : undefined;
resourceInputs["logtrafficStart"] = state ? state.logtrafficStart : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["policyid"] = state ? state.policyid : undefined;
resourceInputs["poolnames"] = state ? state.poolnames : undefined;
resourceInputs["profileGroup"] = state ? state.profileGroup : undefined;
resourceInputs["profileProtocolOptions"] = state ? state.profileProtocolOptions : undefined;
resourceInputs["profileType"] = state ? state.profileType : undefined;
resourceInputs["proxy"] = state ? state.proxy : undefined;
resourceInputs["redirectUrl"] = state ? state.redirectUrl : undefined;
resourceInputs["replacemsgOverrideGroup"] = state ? state.replacemsgOverrideGroup : undefined;
resourceInputs["scanBotnetConnections"] = state ? state.scanBotnetConnections : undefined;
resourceInputs["schedule"] = state ? state.schedule : undefined;
resourceInputs["sctpFilterProfile"] = state ? state.sctpFilterProfile : undefined;
resourceInputs["serviceNegate"] = state ? state.serviceNegate : undefined;
resourceInputs["services"] = state ? state.services : undefined;
resourceInputs["sessionTtl"] = state ? state.sessionTtl : undefined;
resourceInputs["spamfilterProfile"] = state ? state.spamfilterProfile : undefined;
resourceInputs["srcaddr6s"] = state ? state.srcaddr6s : undefined;
resourceInputs["srcaddrNegate"] = state ? state.srcaddrNegate : undefined;
resourceInputs["srcaddrs"] = state ? state.srcaddrs : undefined;
resourceInputs["srcintfs"] = state ? state.srcintfs : undefined;
resourceInputs["sshFilterProfile"] = state ? state.sshFilterProfile : undefined;
resourceInputs["sshPolicyRedirect"] = state ? state.sshPolicyRedirect : undefined;
resourceInputs["sslSshProfile"] = state ? state.sslSshProfile : undefined;
resourceInputs["status"] = state ? state.status : undefined;
resourceInputs["transparent"] = state ? state.transparent : undefined;
resourceInputs["users"] = state ? state.users : undefined;
resourceInputs["utmStatus"] = state ? state.utmStatus : undefined;
resourceInputs["uuid"] = state ? state.uuid : undefined;
resourceInputs["vdomparam"] = state ? state.vdomparam : undefined;
resourceInputs["videofilterProfile"] = state ? state.videofilterProfile : undefined;
resourceInputs["virtualPatchProfile"] = state ? state.virtualPatchProfile : undefined;
resourceInputs["voipProfile"] = state ? state.voipProfile : undefined;
resourceInputs["wafProfile"] = state ? state.wafProfile : undefined;
resourceInputs["webcache"] = state ? state.webcache : undefined;
resourceInputs["webcacheHttps"] = state ? state.webcacheHttps : undefined;
resourceInputs["webfilterProfile"] = state ? state.webfilterProfile : undefined;
resourceInputs["webproxyForwardServer"] = state ? state.webproxyForwardServer : undefined;
resourceInputs["webproxyProfile"] = state ? state.webproxyProfile : undefined;
resourceInputs["ztnaEmsTags"] = state ? state.ztnaEmsTags : undefined;
resourceInputs["ztnaTagsMatchLogic"] = state ? state.ztnaTagsMatchLogic : undefined;
}
else {
const args = argsOrState;
if ((!args || args.dstintfs === undefined) && !opts.urn) {
throw new Error("Missing required property 'dstintfs'");
}
if ((!args || args.proxy === undefined) && !opts.urn) {
throw new Error("Missing required property 'proxy'");
}
if ((!args || args.schedule === undefined) && !opts.urn) {
throw new Error("Missing required property 'schedule'");
}
resourceInputs["accessProxies"] = args ? args.accessProxies : undefined;
resourceInputs["accessProxy6s"] = args ? args.accessProxy6s : undefined;
resourceInputs["action"] = args ? args.action : undefined;
resourceInputs["applicationList"] = args ? args.applicationList : undefined;
resourceInputs["avProfile"] = args ? args.avProfile : undefined;
resourceInputs["blockNotification"] = args ? args.blockNotification : undefined;
resourceInputs["casbProfile"] = args ? args.casbProfile : undefined;
resourceInputs["cifsProfile"] = args ? args.cifsProfile : undefined;
resourceInputs["comments"] = args ? args.comments : undefined;
resourceInputs["decryptedTrafficMirror"] = args ? args.decryptedTrafficMirror : undefined;
resourceInputs["detectHttpsInHttpRequest"] = args ? args.detectHttpsInHttpRequest : undefined;
resourceInputs["deviceOwnership"] = args ? args.deviceOwnership : undefined;
resourceInputs["diameterFilterProfile"] = args ? args.diameterFilterProfile : undefined;
resourceInputs["disclaimer"] = args ? args.disclaimer : undefined;
resourceInputs["dlpProfile"] = args ? args.dlpProfile : undefined;
resourceInputs["dlpSensor"] = args ? args.dlpSensor : undefined;
resourceInputs["dstaddr6s"] = args ? args.dstaddr6s : undefined;
resourceInputs["dstaddrNegate"] = args ? args.dstaddrNegate : undefined;
resourceInputs["dstaddrs"] = args ? args.dstaddrs : undefined;
resourceInputs["dstintfs"] = args ? args.dstintfs : undefined;
resourceInputs["dynamicSortSubtable"] = args ? args.dynamicSortSubtable : undefined;
resourceInputs["emailfilterProfile"] = args ? args.emailfilterProfile : undefined;
resourceInputs["fileFilterProfile"] = args ? args.fileFilterProfile : undefined;
resourceInputs["getAllTables"] = args ? args.getAllTables : undefined;
resourceInputs["globalLabel"] = args ? args.globalLabel : undefined;
resourceInputs["groups"] = args ? args.groups : undefined;
resourceInputs["httpTunnelAuth"] = args ? args.httpTunnelAuth : undefined;
resourceInputs["icapProfile"] = args ? args.icapProfile : undefined;
resourceInputs["internetService"] = args ? args.internetService : undefined;
resourceInputs["internetService6"] = args ? args.internetService6 : undefined;
resourceInputs["internetService6CustomGroups"] = args ? args.internetService6CustomGroups : undefined;
resourceInputs["internetService6Customs"] = args ? args.internetService6Customs : undefined;
resourceInputs["internetService6Groups"] = args ? args.internetService6Groups : undefined;
resourceInputs["internetService6Names"] = args ? args.internetService6Names : undefined;
resourceInputs["internetService6Negate"] = args ? args.internetService6Negate : undefined;
resourceInputs["internetServiceCustomGroups"] = args ? args.internetServiceCustomGroups : undefined;
resourceInputs["internetServiceCustoms"] = args ? args.internetServiceCustoms : undefined;
resourceInputs["internetServiceGroups"] = args ? args.internetServiceGroups : undefined;
resourceInputs["internetServiceIds"] = args ? args.internetServiceIds : undefined;
resourceInputs["internetServiceNames"] = args ? args.internetServiceNames : undefined;
resourceInputs["internetServiceNegate"] = args ? args.internetServiceNegate : undefined;
resourceInputs["ipsSensor"] = args ? args.ipsSensor : undefined;
resourceInputs["ipsVoipFilter"] = args ? args.ipsVoipFilter : undefined;
resourceInputs["label"] = args ? args.label : undefined;
resourceInputs["logtraffic"] = args ? args.logtraffic : undefined;
resourceInputs["logtrafficStart"] = args ? args.logtrafficStart : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["policyid"] = args ? args.policyid : undefined;
resourceInputs["poolnames"] = args ? args.poolnames : undefined;
resourceInputs["profileGroup"] = args ? args.profileGroup : undefined;
resourceInputs["profileProtocolOptions"] = args ? args.profileProtocolOptions : undefined;
resourceInputs["profileType"] = args ? args.profileType : undefined;
resourceInputs["proxy"] = args ? args.proxy : undefined;
resourceInputs["redirectUrl"] = args ? args.redirectUrl : undefined;
resourceInputs["replacemsgOverrideGroup"] = args ? args.replacemsgOverrideGroup : undefined;
resourceInputs["scanBotnetConnections"] = args ? args.scanBotnetConnections : undefined;
resourceInputs["schedule"] = args ? args.schedule : undefined;
resourceInputs["sctpFilterProfile"] = args ? args.sctpFilterProfile : undefined;
resourceInputs["serviceNegate"] = args ? args.serviceNegate : undefined;
resourceInputs["services"] = args ? args.services : undefined;
resourceInputs["sessionTtl"] = args ? args.sessionTtl : undefined;
resourceInputs["spamfilterProfile"] = args ? args.spamfilterProfile : undefined;
resourceInputs["srcaddr6s"] = args ? args.srcaddr6s : undefined;
resourceInputs["srcaddrNegate"] = args ? args.srcaddrNegate : undefined;
resourceInputs["srcaddrs"] = args ? args.srcaddrs : undefined;
resourceInputs["srcintfs"] = args ? args.srcintfs : undefined;
resourceInputs["sshFilterProfile"] = args ? args.sshFilterProfile : undefined;
resourceInputs["sshPolicyRedirect"] = args ? args.sshPolicyRedirect : undefined;
resourceInputs["sslSshProfile"] = args ? args.sslSshProfile : undefined;
resourceInputs["status"] = args ? args.status : undefined;
resourceInputs["transparent"] = args ? args.transparent : undefined;
resourceInputs["users"] = args ? args.users : undefined;
resourceInputs["utmStatus"] = args ? args.utmStatus : undefined;
resourceInputs["uuid"] = args ? args.uuid : undefined;
resourceInputs["vdomparam"] = args ? args.vdomparam : undefined;
resourceInputs["videofilterProfile"] = args ? args.videofilterProfile : undefined;
resourceInputs["virtualPatchProfile"] = args ? args.virtualPatchProfile : undefined;
resourceInputs["voipProfile"] = args ? args.voipProfile : undefined;
resourceInputs["wafProfile"] = args ? args.wafProfile : undefined;
resourceInputs["webcache"] = args ? args.webcache : undefined;
resourceInputs["webcacheHttps"] = args ? args.webcacheHttps : undefined;
resourceInputs["webfilterProfile"] = args ? args.webfilterProfile : undefined;
resourceInputs["webproxyForwardServer"] = args ? args.webproxyForwardServer : undefined;
resourceInputs["webproxyProfile"] = args ? args.webproxyProfile : undefined;
resourceInputs["ztnaEmsTags"] = args ? args.ztnaEmsTags : undefined;
resourceInputs["ztnaTagsMatchLogic"] = args ? args.ztnaTagsMatchLogic : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(Proxypolicy.__pulumiType, name, resourceInputs, opts);
}
}
exports.Proxypolicy = Proxypolicy;
/** @internal */
Proxypolicy.__pulumiType = 'fortios:firewall/proxypolicy:Proxypolicy';
//# sourceMappingURL=proxypolicy.js.map
;