@pulumiverse/fortios
Version:
A Pulumi package for creating and managing Fortios resources. Based on terraform-provider-fortios: version v1.16.0
176 lines • 9.15 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.Sslsshprofile = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Configure SSL/SSH protocol options.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as fortios from "@pulumiverse/fortios";
*
* const t1 = new fortios.firewall.Sslsshprofile("t1", {
* ftps: {
* ports: "990",
* },
* https: {
* ports: "443 127 422 392",
* },
* imaps: {
* ports: "993 1123",
* },
* pop3s: {
* ports: "995",
* },
* smtps: {
* ports: "465",
* },
* ssl: {
* inspectAll: "disable",
* },
* });
* const t2 = new fortios.firewall.Sslsshprofile("t2", {
* https: {
* ports: "443",
* },
* ssl: {
* inspectAll: "deep-inspection",
* },
* });
* ```
*
* ## Import
*
* Firewall SslSshProfile can be imported using any of these accepted formats:
*
* ```sh
* $ pulumi import fortios:firewall/sslsshprofile:Sslsshprofile labelname {{name}}
* ```
*
* If you do not want to import arguments of block:
*
* $ export "FORTIOS_IMPORT_TABLE"="false"
*
* ```sh
* $ pulumi import fortios:firewall/sslsshprofile:Sslsshprofile labelname {{name}}
* ```
*
* $ unset "FORTIOS_IMPORT_TABLE"
*/
class Sslsshprofile extends pulumi.CustomResource {
/**
* Get an existing Sslsshprofile 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 Sslsshprofile(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of Sslsshprofile. 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'] === Sslsshprofile.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["allowlist"] = state ? state.allowlist : undefined;
resourceInputs["blockBlacklistedCertificates"] = state ? state.blockBlacklistedCertificates : undefined;
resourceInputs["blockBlocklistedCertificates"] = state ? state.blockBlocklistedCertificates : undefined;
resourceInputs["caname"] = state ? state.caname : undefined;
resourceInputs["comment"] = state ? state.comment : undefined;
resourceInputs["dot"] = state ? state.dot : undefined;
resourceInputs["dynamicSortSubtable"] = state ? state.dynamicSortSubtable : undefined;
resourceInputs["echOuterSnis"] = state ? state.echOuterSnis : undefined;
resourceInputs["ftps"] = state ? state.ftps : undefined;
resourceInputs["getAllTables"] = state ? state.getAllTables : undefined;
resourceInputs["https"] = state ? state.https : undefined;
resourceInputs["imaps"] = state ? state.imaps : undefined;
resourceInputs["mapiOverHttps"] = state ? state.mapiOverHttps : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["pop3s"] = state ? state.pop3s : undefined;
resourceInputs["rpcOverHttps"] = state ? state.rpcOverHttps : undefined;
resourceInputs["serverCert"] = state ? state.serverCert : undefined;
resourceInputs["serverCertMode"] = state ? state.serverCertMode : undefined;
resourceInputs["smtps"] = state ? state.smtps : undefined;
resourceInputs["ssh"] = state ? state.ssh : undefined;
resourceInputs["ssl"] = state ? state.ssl : undefined;
resourceInputs["sslAnomaliesLog"] = state ? state.sslAnomaliesLog : undefined;
resourceInputs["sslAnomalyLog"] = state ? state.sslAnomalyLog : undefined;
resourceInputs["sslExemptionIpRating"] = state ? state.sslExemptionIpRating : undefined;
resourceInputs["sslExemptionLog"] = state ? state.sslExemptionLog : undefined;
resourceInputs["sslExemptionsLog"] = state ? state.sslExemptionsLog : undefined;
resourceInputs["sslExempts"] = state ? state.sslExempts : undefined;
resourceInputs["sslHandshakeLog"] = state ? state.sslHandshakeLog : undefined;
resourceInputs["sslNegotiationLog"] = state ? state.sslNegotiationLog : undefined;
resourceInputs["sslServerCertLog"] = state ? state.sslServerCertLog : undefined;
resourceInputs["sslServers"] = state ? state.sslServers : undefined;
resourceInputs["supportedAlpn"] = state ? state.supportedAlpn : undefined;
resourceInputs["untrustedCaname"] = state ? state.untrustedCaname : undefined;
resourceInputs["useSslServer"] = state ? state.useSslServer : undefined;
resourceInputs["vdomparam"] = state ? state.vdomparam : undefined;
resourceInputs["whitelist"] = state ? state.whitelist : undefined;
}
else {
const args = argsOrState;
resourceInputs["allowlist"] = args ? args.allowlist : undefined;
resourceInputs["blockBlacklistedCertificates"] = args ? args.blockBlacklistedCertificates : undefined;
resourceInputs["blockBlocklistedCertificates"] = args ? args.blockBlocklistedCertificates : undefined;
resourceInputs["caname"] = args ? args.caname : undefined;
resourceInputs["comment"] = args ? args.comment : undefined;
resourceInputs["dot"] = args ? args.dot : undefined;
resourceInputs["dynamicSortSubtable"] = args ? args.dynamicSortSubtable : undefined;
resourceInputs["echOuterSnis"] = args ? args.echOuterSnis : undefined;
resourceInputs["ftps"] = args ? args.ftps : undefined;
resourceInputs["getAllTables"] = args ? args.getAllTables : undefined;
resourceInputs["https"] = args ? args.https : undefined;
resourceInputs["imaps"] = args ? args.imaps : undefined;
resourceInputs["mapiOverHttps"] = args ? args.mapiOverHttps : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["pop3s"] = args ? args.pop3s : undefined;
resourceInputs["rpcOverHttps"] = args ? args.rpcOverHttps : undefined;
resourceInputs["serverCert"] = args ? args.serverCert : undefined;
resourceInputs["serverCertMode"] = args ? args.serverCertMode : undefined;
resourceInputs["smtps"] = args ? args.smtps : undefined;
resourceInputs["ssh"] = args ? args.ssh : undefined;
resourceInputs["ssl"] = args ? args.ssl : undefined;
resourceInputs["sslAnomaliesLog"] = args ? args.sslAnomaliesLog : undefined;
resourceInputs["sslAnomalyLog"] = args ? args.sslAnomalyLog : undefined;
resourceInputs["sslExemptionIpRating"] = args ? args.sslExemptionIpRating : undefined;
resourceInputs["sslExemptionLog"] = args ? args.sslExemptionLog : undefined;
resourceInputs["sslExemptionsLog"] = args ? args.sslExemptionsLog : undefined;
resourceInputs["sslExempts"] = args ? args.sslExempts : undefined;
resourceInputs["sslHandshakeLog"] = args ? args.sslHandshakeLog : undefined;
resourceInputs["sslNegotiationLog"] = args ? args.sslNegotiationLog : undefined;
resourceInputs["sslServerCertLog"] = args ? args.sslServerCertLog : undefined;
resourceInputs["sslServers"] = args ? args.sslServers : undefined;
resourceInputs["supportedAlpn"] = args ? args.supportedAlpn : undefined;
resourceInputs["untrustedCaname"] = args ? args.untrustedCaname : undefined;
resourceInputs["useSslServer"] = args ? args.useSslServer : undefined;
resourceInputs["vdomparam"] = args ? args.vdomparam : undefined;
resourceInputs["whitelist"] = args ? args.whitelist : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(Sslsshprofile.__pulumiType, name, resourceInputs, opts);
}
}
exports.Sslsshprofile = Sslsshprofile;
/** @internal */
Sslsshprofile.__pulumiType = 'fortios:firewall/sslsshprofile:Sslsshprofile';
//# sourceMappingURL=sslsshprofile.js.map
;