@pulumiverse/fortios
Version:
A Pulumi package for creating and managing Fortios resources. Based on terraform-provider-fortios: version v1.16.0
186 lines • 10.7 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.Ldap = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Configure LDAP server entries.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as fortios from "@pulumiverse/fortios";
*
* const trname = new fortios.user.Ldap("trname", {
* accountKeyFilter: "(&(userPrincipalName=%s)(!(UserAccountControl:1.2.840.113556.1.4.803:=2)))",
* accountKeyProcessing: "same",
* cnid: "cn",
* dn: "EIWNCIEW",
* groupMemberCheck: "user-attr",
* groupObjectFilter: "(&(objectcategory=group)(member=*))",
* memberAttr: "memberOf",
* passwordExpiryWarning: "disable",
* passwordRenewal: "disable",
* port: 389,
* secure: "disable",
* server: "1.1.1.1",
* serverIdentityCheck: "disable",
* sourceIp: "0.0.0.0",
* sslMinProtoVersion: "default",
* type: "simple",
* });
* ```
*
* ## Import
*
* User Ldap can be imported using any of these accepted formats:
*
* ```sh
* $ pulumi import fortios:user/ldap:Ldap labelname {{name}}
* ```
*
* If you do not want to import arguments of block:
*
* $ export "FORTIOS_IMPORT_TABLE"="false"
*
* ```sh
* $ pulumi import fortios:user/ldap:Ldap labelname {{name}}
* ```
*
* $ unset "FORTIOS_IMPORT_TABLE"
*/
class Ldap extends pulumi.CustomResource {
/**
* Get an existing Ldap 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 Ldap(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of Ldap. 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'] === Ldap.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["accountKeyCertField"] = state ? state.accountKeyCertField : undefined;
resourceInputs["accountKeyFilter"] = state ? state.accountKeyFilter : undefined;
resourceInputs["accountKeyProcessing"] = state ? state.accountKeyProcessing : undefined;
resourceInputs["accountKeyUpnSan"] = state ? state.accountKeyUpnSan : undefined;
resourceInputs["antiphish"] = state ? state.antiphish : undefined;
resourceInputs["caCert"] = state ? state.caCert : undefined;
resourceInputs["clientCert"] = state ? state.clientCert : undefined;
resourceInputs["clientCertAuth"] = state ? state.clientCertAuth : undefined;
resourceInputs["cnid"] = state ? state.cnid : undefined;
resourceInputs["dn"] = state ? state.dn : undefined;
resourceInputs["groupFilter"] = state ? state.groupFilter : undefined;
resourceInputs["groupMemberCheck"] = state ? state.groupMemberCheck : undefined;
resourceInputs["groupObjectFilter"] = state ? state.groupObjectFilter : undefined;
resourceInputs["groupSearchBase"] = state ? state.groupSearchBase : undefined;
resourceInputs["interface"] = state ? state.interface : undefined;
resourceInputs["interfaceSelectMethod"] = state ? state.interfaceSelectMethod : undefined;
resourceInputs["memberAttr"] = state ? state.memberAttr : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["obtainUserInfo"] = state ? state.obtainUserInfo : undefined;
resourceInputs["password"] = state ? state.password : undefined;
resourceInputs["passwordAttr"] = state ? state.passwordAttr : undefined;
resourceInputs["passwordExpiryWarning"] = state ? state.passwordExpiryWarning : undefined;
resourceInputs["passwordRenewal"] = state ? state.passwordRenewal : undefined;
resourceInputs["port"] = state ? state.port : undefined;
resourceInputs["searchType"] = state ? state.searchType : undefined;
resourceInputs["secondaryServer"] = state ? state.secondaryServer : undefined;
resourceInputs["secure"] = state ? state.secure : undefined;
resourceInputs["server"] = state ? state.server : undefined;
resourceInputs["serverIdentityCheck"] = state ? state.serverIdentityCheck : undefined;
resourceInputs["sourceIp"] = state ? state.sourceIp : undefined;
resourceInputs["sourcePort"] = state ? state.sourcePort : undefined;
resourceInputs["sslMinProtoVersion"] = state ? state.sslMinProtoVersion : undefined;
resourceInputs["statusTtl"] = state ? state.statusTtl : undefined;
resourceInputs["tertiaryServer"] = state ? state.tertiaryServer : undefined;
resourceInputs["twoFactor"] = state ? state.twoFactor : undefined;
resourceInputs["twoFactorAuthentication"] = state ? state.twoFactorAuthentication : undefined;
resourceInputs["twoFactorFilter"] = state ? state.twoFactorFilter : undefined;
resourceInputs["twoFactorNotification"] = state ? state.twoFactorNotification : undefined;
resourceInputs["type"] = state ? state.type : undefined;
resourceInputs["userInfoExchangeServer"] = state ? state.userInfoExchangeServer : undefined;
resourceInputs["username"] = state ? state.username : undefined;
resourceInputs["vdomparam"] = state ? state.vdomparam : undefined;
}
else {
const args = argsOrState;
if ((!args || args.dn === undefined) && !opts.urn) {
throw new Error("Missing required property 'dn'");
}
if ((!args || args.server === undefined) && !opts.urn) {
throw new Error("Missing required property 'server'");
}
resourceInputs["accountKeyCertField"] = args ? args.accountKeyCertField : undefined;
resourceInputs["accountKeyFilter"] = args ? args.accountKeyFilter : undefined;
resourceInputs["accountKeyProcessing"] = args ? args.accountKeyProcessing : undefined;
resourceInputs["accountKeyUpnSan"] = args ? args.accountKeyUpnSan : undefined;
resourceInputs["antiphish"] = args ? args.antiphish : undefined;
resourceInputs["caCert"] = args ? args.caCert : undefined;
resourceInputs["clientCert"] = args ? args.clientCert : undefined;
resourceInputs["clientCertAuth"] = args ? args.clientCertAuth : undefined;
resourceInputs["cnid"] = args ? args.cnid : undefined;
resourceInputs["dn"] = args ? args.dn : undefined;
resourceInputs["groupFilter"] = args ? args.groupFilter : undefined;
resourceInputs["groupMemberCheck"] = args ? args.groupMemberCheck : undefined;
resourceInputs["groupObjectFilter"] = args ? args.groupObjectFilter : undefined;
resourceInputs["groupSearchBase"] = args ? args.groupSearchBase : undefined;
resourceInputs["interface"] = args ? args.interface : undefined;
resourceInputs["interfaceSelectMethod"] = args ? args.interfaceSelectMethod : undefined;
resourceInputs["memberAttr"] = args ? args.memberAttr : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["obtainUserInfo"] = args ? args.obtainUserInfo : undefined;
resourceInputs["password"] = (args === null || args === void 0 ? void 0 : args.password) ? pulumi.secret(args.password) : undefined;
resourceInputs["passwordAttr"] = args ? args.passwordAttr : undefined;
resourceInputs["passwordExpiryWarning"] = args ? args.passwordExpiryWarning : undefined;
resourceInputs["passwordRenewal"] = args ? args.passwordRenewal : undefined;
resourceInputs["port"] = args ? args.port : undefined;
resourceInputs["searchType"] = args ? args.searchType : undefined;
resourceInputs["secondaryServer"] = args ? args.secondaryServer : undefined;
resourceInputs["secure"] = args ? args.secure : undefined;
resourceInputs["server"] = args ? args.server : undefined;
resourceInputs["serverIdentityCheck"] = args ? args.serverIdentityCheck : undefined;
resourceInputs["sourceIp"] = args ? args.sourceIp : undefined;
resourceInputs["sourcePort"] = args ? args.sourcePort : undefined;
resourceInputs["sslMinProtoVersion"] = args ? args.sslMinProtoVersion : undefined;
resourceInputs["statusTtl"] = args ? args.statusTtl : undefined;
resourceInputs["tertiaryServer"] = args ? args.tertiaryServer : undefined;
resourceInputs["twoFactor"] = args ? args.twoFactor : undefined;
resourceInputs["twoFactorAuthentication"] = args ? args.twoFactorAuthentication : undefined;
resourceInputs["twoFactorFilter"] = args ? args.twoFactorFilter : undefined;
resourceInputs["twoFactorNotification"] = args ? args.twoFactorNotification : undefined;
resourceInputs["type"] = args ? args.type : undefined;
resourceInputs["userInfoExchangeServer"] = args ? args.userInfoExchangeServer : undefined;
resourceInputs["username"] = args ? args.username : undefined;
resourceInputs["vdomparam"] = args ? args.vdomparam : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
const secretOpts = { additionalSecretOutputs: ["password"] };
opts = pulumi.mergeOptions(opts, secretOpts);
super(Ldap.__pulumiType, name, resourceInputs, opts);
}
}
exports.Ldap = Ldap;
/** @internal */
Ldap.__pulumiType = 'fortios:user/ldap:Ldap';
//# sourceMappingURL=ldap.js.map
;