UNPKG

@pulumiverse/fortios

Version:

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

142 lines 6.97 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.Saml = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * SAML server entry configuration. Applies to FortiOS Version `>= 6.2.4`. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as fortios from "@pulumiverse/fortios"; * * const tr3 = new fortios.user.Saml("tr3", { * cert: "Fortinet_Factory", * entityId: "https://1.1.1.1", * idpCert: "cer11", * idpEntityId: "https://1.1.1.1/acc", * idpSingleLogoutUrl: "https://1.1.1.1/lo", * idpSingleSignOnUrl: "https://1.1.1.1/sou", * singleLogoutUrl: "https://1.1.1.1/logout", * singleSignOnUrl: "https://1.1.1.1/sign", * userName: "ad111", * }); * ``` * * ## Import * * User Saml can be imported using any of these accepted formats: * * ```sh * $ pulumi import fortios:user/saml:Saml labelname {{name}} * ``` * * If you do not want to import arguments of block: * * $ export "FORTIOS_IMPORT_TABLE"="false" * * ```sh * $ pulumi import fortios:user/saml:Saml labelname {{name}} * ``` * * $ unset "FORTIOS_IMPORT_TABLE" */ class Saml extends pulumi.CustomResource { /** * Get an existing Saml 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 Saml(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Saml. 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'] === Saml.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["adfsClaim"] = state ? state.adfsClaim : undefined; resourceInputs["authUrl"] = state ? state.authUrl : undefined; resourceInputs["cert"] = state ? state.cert : undefined; resourceInputs["clockTolerance"] = state ? state.clockTolerance : undefined; resourceInputs["digestMethod"] = state ? state.digestMethod : undefined; resourceInputs["entityId"] = state ? state.entityId : undefined; resourceInputs["groupClaimType"] = state ? state.groupClaimType : undefined; resourceInputs["groupName"] = state ? state.groupName : undefined; resourceInputs["idpCert"] = state ? state.idpCert : undefined; resourceInputs["idpEntityId"] = state ? state.idpEntityId : undefined; resourceInputs["idpSingleLogoutUrl"] = state ? state.idpSingleLogoutUrl : undefined; resourceInputs["idpSingleSignOnUrl"] = state ? state.idpSingleSignOnUrl : undefined; resourceInputs["limitRelaystate"] = state ? state.limitRelaystate : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["reauth"] = state ? state.reauth : undefined; resourceInputs["singleLogoutUrl"] = state ? state.singleLogoutUrl : undefined; resourceInputs["singleSignOnUrl"] = state ? state.singleSignOnUrl : undefined; resourceInputs["userClaimType"] = state ? state.userClaimType : undefined; resourceInputs["userName"] = state ? state.userName : undefined; resourceInputs["vdomparam"] = state ? state.vdomparam : undefined; } else { const args = argsOrState; if ((!args || args.entityId === undefined) && !opts.urn) { throw new Error("Missing required property 'entityId'"); } if ((!args || args.idpCert === undefined) && !opts.urn) { throw new Error("Missing required property 'idpCert'"); } if ((!args || args.idpEntityId === undefined) && !opts.urn) { throw new Error("Missing required property 'idpEntityId'"); } if ((!args || args.idpSingleSignOnUrl === undefined) && !opts.urn) { throw new Error("Missing required property 'idpSingleSignOnUrl'"); } if ((!args || args.singleSignOnUrl === undefined) && !opts.urn) { throw new Error("Missing required property 'singleSignOnUrl'"); } resourceInputs["adfsClaim"] = args ? args.adfsClaim : undefined; resourceInputs["authUrl"] = args ? args.authUrl : undefined; resourceInputs["cert"] = args ? args.cert : undefined; resourceInputs["clockTolerance"] = args ? args.clockTolerance : undefined; resourceInputs["digestMethod"] = args ? args.digestMethod : undefined; resourceInputs["entityId"] = args ? args.entityId : undefined; resourceInputs["groupClaimType"] = args ? args.groupClaimType : undefined; resourceInputs["groupName"] = args ? args.groupName : undefined; resourceInputs["idpCert"] = args ? args.idpCert : undefined; resourceInputs["idpEntityId"] = args ? args.idpEntityId : undefined; resourceInputs["idpSingleLogoutUrl"] = args ? args.idpSingleLogoutUrl : undefined; resourceInputs["idpSingleSignOnUrl"] = args ? args.idpSingleSignOnUrl : undefined; resourceInputs["limitRelaystate"] = args ? args.limitRelaystate : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["reauth"] = args ? args.reauth : undefined; resourceInputs["singleLogoutUrl"] = args ? args.singleLogoutUrl : undefined; resourceInputs["singleSignOnUrl"] = args ? args.singleSignOnUrl : undefined; resourceInputs["userClaimType"] = args ? args.userClaimType : undefined; resourceInputs["userName"] = args ? args.userName : undefined; resourceInputs["vdomparam"] = args ? args.vdomparam : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Saml.__pulumiType, name, resourceInputs, opts); } } exports.Saml = Saml; /** @internal */ Saml.__pulumiType = 'fortios:user/saml:Saml'; //# sourceMappingURL=saml.js.map