UNPKG

@pulumi/scm

Version:

A Pulumi package for managing resources on Strata Cloud Manager.. Based on terraform-provider-scm: version v0.2.1

119 lines 4.61 kB
"use strict"; // *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.AuthenticationProfile = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * AuthenticationProfile resource * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scm from "@pulumi/scm"; * * const globalRadiusAccess = new scm.AuthenticationProfile("global_radius_access", { * name: "test_auth_profile_radius_1", * folder: "All", * userDomain: "default", * usernameModifier: "%USERINPUT%", * allowLists: ["all"], * lockout: { * failedAttempts: 1, * lockoutTime: 3, * }, * method: { * radius: { * checkgroup: true, * serverProfile: "CHAP_only_rsp_1", * }, * }, * singleSignOn: { * realm: "EXAMPLE.COM", * }, * }); * const globalDbAccess = new scm.AuthenticationProfile("global_db_access", { * name: "test_auth_profile_db_1", * folder: "All", * userDomain: "default", * usernameModifier: "%USERINPUT%", * allowLists: ["all"], * lockout: { * failedAttempts: 3, * lockoutTime: 1, * }, * method: { * localDatabase: {}, * }, * singleSignOn: { * realm: "EXAMPLE.COM", * }, * }); * ``` */ class AuthenticationProfile extends pulumi.CustomResource { /** * Get an existing AuthenticationProfile 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 AuthenticationProfile(name, state, { ...opts, id: id }); } /** * Returns true if the given object is an instance of AuthenticationProfile. 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'] === AuthenticationProfile.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["allowLists"] = state?.allowLists; resourceInputs["device"] = state?.device; resourceInputs["folder"] = state?.folder; resourceInputs["lockout"] = state?.lockout; resourceInputs["method"] = state?.method; resourceInputs["multiFactorAuth"] = state?.multiFactorAuth; resourceInputs["name"] = state?.name; resourceInputs["singleSignOn"] = state?.singleSignOn; resourceInputs["snippet"] = state?.snippet; resourceInputs["tfid"] = state?.tfid; resourceInputs["userDomain"] = state?.userDomain; resourceInputs["usernameModifier"] = state?.usernameModifier; } else { const args = argsOrState; resourceInputs["allowLists"] = args?.allowLists; resourceInputs["device"] = args?.device; resourceInputs["folder"] = args?.folder; resourceInputs["lockout"] = args?.lockout; resourceInputs["method"] = args?.method; resourceInputs["multiFactorAuth"] = args?.multiFactorAuth; resourceInputs["name"] = args?.name; resourceInputs["singleSignOn"] = args?.singleSignOn; resourceInputs["snippet"] = args?.snippet; resourceInputs["userDomain"] = args?.userDomain; resourceInputs["usernameModifier"] = args?.usernameModifier; resourceInputs["tfid"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(AuthenticationProfile.__pulumiType, name, resourceInputs, opts); } } exports.AuthenticationProfile = AuthenticationProfile; /** @internal */ AuthenticationProfile.__pulumiType = 'scm:index/authenticationProfile:AuthenticationProfile'; //# sourceMappingURL=authenticationProfile.js.map