@pulumiverse/fortios
Version:
A Pulumi package for creating and managing Fortios resources. Based on terraform-provider-fortios: version v1.16.0
126 lines • 6.21 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.Saml = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Global settings for SAML authentication. Applies to FortiOS Version `>= 6.2.4`.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as fortios from "@pulumiverse/fortios";
*
* const trname = new fortios.system.Saml("trname", {
* defaultLoginPage: "normal",
* defaultProfile: "admin_no_access",
* life: 30,
* role: "service-provider",
* status: "disable",
* tolerance: 5,
* });
* ```
*
* ## Import
*
* System Saml can be imported using any of these accepted formats:
*
* ```sh
* $ pulumi import fortios:system/saml:Saml labelname SystemSaml
* ```
*
* If you do not want to import arguments of block:
*
* $ export "FORTIOS_IMPORT_TABLE"="false"
*
* ```sh
* $ pulumi import fortios:system/saml:Saml labelname SystemSaml
* ```
*
* $ 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["bindingProtocol"] = state ? state.bindingProtocol : undefined;
resourceInputs["cert"] = state ? state.cert : undefined;
resourceInputs["defaultLoginPage"] = state ? state.defaultLoginPage : undefined;
resourceInputs["defaultProfile"] = state ? state.defaultProfile : undefined;
resourceInputs["dynamicSortSubtable"] = state ? state.dynamicSortSubtable : undefined;
resourceInputs["entityId"] = state ? state.entityId : undefined;
resourceInputs["getAllTables"] = state ? state.getAllTables : 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["life"] = state ? state.life : undefined;
resourceInputs["portalUrl"] = state ? state.portalUrl : undefined;
resourceInputs["role"] = state ? state.role : undefined;
resourceInputs["serverAddress"] = state ? state.serverAddress : undefined;
resourceInputs["serviceProviders"] = state ? state.serviceProviders : undefined;
resourceInputs["singleLogoutUrl"] = state ? state.singleLogoutUrl : undefined;
resourceInputs["singleSignOnUrl"] = state ? state.singleSignOnUrl : undefined;
resourceInputs["status"] = state ? state.status : undefined;
resourceInputs["tolerance"] = state ? state.tolerance : undefined;
resourceInputs["vdomparam"] = state ? state.vdomparam : undefined;
}
else {
const args = argsOrState;
resourceInputs["bindingProtocol"] = args ? args.bindingProtocol : undefined;
resourceInputs["cert"] = args ? args.cert : undefined;
resourceInputs["defaultLoginPage"] = args ? args.defaultLoginPage : undefined;
resourceInputs["defaultProfile"] = args ? args.defaultProfile : undefined;
resourceInputs["dynamicSortSubtable"] = args ? args.dynamicSortSubtable : undefined;
resourceInputs["entityId"] = args ? args.entityId : undefined;
resourceInputs["getAllTables"] = args ? args.getAllTables : 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["life"] = args ? args.life : undefined;
resourceInputs["portalUrl"] = args ? args.portalUrl : undefined;
resourceInputs["role"] = args ? args.role : undefined;
resourceInputs["serverAddress"] = args ? args.serverAddress : undefined;
resourceInputs["serviceProviders"] = args ? args.serviceProviders : undefined;
resourceInputs["singleLogoutUrl"] = args ? args.singleLogoutUrl : undefined;
resourceInputs["singleSignOnUrl"] = args ? args.singleSignOnUrl : undefined;
resourceInputs["status"] = args ? args.status : undefined;
resourceInputs["tolerance"] = args ? args.tolerance : 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:system/saml:Saml';
//# sourceMappingURL=saml.js.map
;