UNPKG

@pulumi/meraki

Version:

A Pulumi package for creating and managing Cisco Meraki resources. Based on terraform-provider-meraki: version v0.2.0

87 lines 5.09 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.LoginSecurity = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * ## Example Usage * * ## Import * * ```sh * $ pulumi import meraki:organizations/loginSecurity:LoginSecurity example "organization_id" * ``` */ class LoginSecurity extends pulumi.CustomResource { /** * Get an existing LoginSecurity 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 LoginSecurity(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of LoginSecurity. 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'] === LoginSecurity.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["accountLockoutAttempts"] = state ? state.accountLockoutAttempts : undefined; resourceInputs["apiAuthentication"] = state ? state.apiAuthentication : undefined; resourceInputs["enforceAccountLockout"] = state ? state.enforceAccountLockout : undefined; resourceInputs["enforceDifferentPasswords"] = state ? state.enforceDifferentPasswords : undefined; resourceInputs["enforceIdleTimeout"] = state ? state.enforceIdleTimeout : undefined; resourceInputs["enforceLoginIpRanges"] = state ? state.enforceLoginIpRanges : undefined; resourceInputs["enforcePasswordExpiration"] = state ? state.enforcePasswordExpiration : undefined; resourceInputs["enforceStrongPasswords"] = state ? state.enforceStrongPasswords : undefined; resourceInputs["enforceTwoFactorAuth"] = state ? state.enforceTwoFactorAuth : undefined; resourceInputs["idleTimeoutMinutes"] = state ? state.idleTimeoutMinutes : undefined; resourceInputs["loginIpRanges"] = state ? state.loginIpRanges : undefined; resourceInputs["numDifferentPasswords"] = state ? state.numDifferentPasswords : undefined; resourceInputs["organizationId"] = state ? state.organizationId : undefined; resourceInputs["passwordExpirationDays"] = state ? state.passwordExpirationDays : undefined; } else { const args = argsOrState; if ((!args || args.organizationId === undefined) && !opts.urn) { throw new Error("Missing required property 'organizationId'"); } resourceInputs["accountLockoutAttempts"] = args ? args.accountLockoutAttempts : undefined; resourceInputs["apiAuthentication"] = args ? args.apiAuthentication : undefined; resourceInputs["enforceAccountLockout"] = args ? args.enforceAccountLockout : undefined; resourceInputs["enforceDifferentPasswords"] = args ? args.enforceDifferentPasswords : undefined; resourceInputs["enforceIdleTimeout"] = args ? args.enforceIdleTimeout : undefined; resourceInputs["enforceLoginIpRanges"] = args ? args.enforceLoginIpRanges : undefined; resourceInputs["enforcePasswordExpiration"] = args ? args.enforcePasswordExpiration : undefined; resourceInputs["enforceStrongPasswords"] = args ? args.enforceStrongPasswords : undefined; resourceInputs["enforceTwoFactorAuth"] = args ? args.enforceTwoFactorAuth : undefined; resourceInputs["idleTimeoutMinutes"] = args ? args.idleTimeoutMinutes : undefined; resourceInputs["loginIpRanges"] = args ? args.loginIpRanges : undefined; resourceInputs["numDifferentPasswords"] = args ? args.numDifferentPasswords : undefined; resourceInputs["organizationId"] = args ? args.organizationId : undefined; resourceInputs["passwordExpirationDays"] = args ? args.passwordExpirationDays : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(LoginSecurity.__pulumiType, name, resourceInputs, opts); } } exports.LoginSecurity = LoginSecurity; /** @internal */ LoginSecurity.__pulumiType = 'meraki:organizations/loginSecurity:LoginSecurity'; //# sourceMappingURL=loginSecurity.js.map