UNPKG

@pulumiverse/fortios

Version:

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

119 lines 5.61 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.Emailserver = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Configure the email server used by the FortiGate various things. For example, for sending email messages to users to support user authentication features. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as fortios from "@pulumiverse/fortios"; * * const trname = new fortios.system.Emailserver("trname", { * authenticate: "disable", * port: 465, * security: "smtps", * server: "notification.fortinet.net", * sourceIp: "0.0.0.0", * sourceIp6: "::", * sslMinProtoVersion: "default", * type: "custom", * validateServer: "disable", * }); * ``` * * ## Import * * System EmailServer can be imported using any of these accepted formats: * * ```sh * $ pulumi import fortios:system/emailserver:Emailserver labelname SystemEmailServer * ``` * * If you do not want to import arguments of block: * * $ export "FORTIOS_IMPORT_TABLE"="false" * * ```sh * $ pulumi import fortios:system/emailserver:Emailserver labelname SystemEmailServer * ``` * * $ unset "FORTIOS_IMPORT_TABLE" */ class Emailserver extends pulumi.CustomResource { /** * Get an existing Emailserver 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 Emailserver(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Emailserver. 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'] === Emailserver.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["authenticate"] = state ? state.authenticate : undefined; resourceInputs["interface"] = state ? state.interface : undefined; resourceInputs["interfaceSelectMethod"] = state ? state.interfaceSelectMethod : undefined; resourceInputs["password"] = state ? state.password : undefined; resourceInputs["port"] = state ? state.port : undefined; resourceInputs["replyTo"] = state ? state.replyTo : undefined; resourceInputs["security"] = state ? state.security : undefined; resourceInputs["server"] = state ? state.server : undefined; resourceInputs["sourceIp"] = state ? state.sourceIp : undefined; resourceInputs["sourceIp6"] = state ? state.sourceIp6 : undefined; resourceInputs["sslMinProtoVersion"] = state ? state.sslMinProtoVersion : undefined; resourceInputs["type"] = state ? state.type : undefined; resourceInputs["username"] = state ? state.username : undefined; resourceInputs["validateServer"] = state ? state.validateServer : undefined; resourceInputs["vdomparam"] = state ? state.vdomparam : undefined; } else { const args = argsOrState; resourceInputs["authenticate"] = args ? args.authenticate : undefined; resourceInputs["interface"] = args ? args.interface : undefined; resourceInputs["interfaceSelectMethod"] = args ? args.interfaceSelectMethod : undefined; resourceInputs["password"] = (args === null || args === void 0 ? void 0 : args.password) ? pulumi.secret(args.password) : undefined; resourceInputs["port"] = args ? args.port : undefined; resourceInputs["replyTo"] = args ? args.replyTo : undefined; resourceInputs["security"] = args ? args.security : undefined; resourceInputs["server"] = args ? args.server : undefined; resourceInputs["sourceIp"] = args ? args.sourceIp : undefined; resourceInputs["sourceIp6"] = args ? args.sourceIp6 : undefined; resourceInputs["sslMinProtoVersion"] = args ? args.sslMinProtoVersion : undefined; resourceInputs["type"] = args ? args.type : undefined; resourceInputs["username"] = args ? args.username : undefined; resourceInputs["validateServer"] = args ? args.validateServer : undefined; resourceInputs["vdomparam"] = args ? args.vdomparam : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); const secretOpts = { additionalSecretOutputs: ["password"] }; opts = pulumi.mergeOptions(opts, secretOpts); super(Emailserver.__pulumiType, name, resourceInputs, opts); } } exports.Emailserver = Emailserver; /** @internal */ Emailserver.__pulumiType = 'fortios:system/emailserver:Emailserver'; //# sourceMappingURL=emailserver.js.map