UNPKG

@pulumi/f5bigip

Version:

A Pulumi package for creating and managing F5 BigIP resources.

99 lines 6.25 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.CommonLicenseManageBigIq = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * `f5bigip.CommonLicenseManageBigIq` This Resource is used for BIGIP/Provider License Management from BIGIQ */ class CommonLicenseManageBigIq extends pulumi.CustomResource { /** * Get an existing CommonLicenseManageBigIq 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 CommonLicenseManageBigIq(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of CommonLicenseManageBigIq. 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'] === CommonLicenseManageBigIq.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["assignmentType"] = state ? state.assignmentType : undefined; resourceInputs["bigiqAddress"] = state ? state.bigiqAddress : undefined; resourceInputs["bigiqLoginRef"] = state ? state.bigiqLoginRef : undefined; resourceInputs["bigiqPassword"] = state ? state.bigiqPassword : undefined; resourceInputs["bigiqPort"] = state ? state.bigiqPort : undefined; resourceInputs["bigiqTokenAuth"] = state ? state.bigiqTokenAuth : undefined; resourceInputs["bigiqUser"] = state ? state.bigiqUser : undefined; resourceInputs["deviceLicenseStatus"] = state ? state.deviceLicenseStatus : undefined; resourceInputs["hypervisor"] = state ? state.hypervisor : undefined; resourceInputs["key"] = state ? state.key : undefined; resourceInputs["licensePoolname"] = state ? state.licensePoolname : undefined; resourceInputs["macAddress"] = state ? state.macAddress : undefined; resourceInputs["skukeyword1"] = state ? state.skukeyword1 : undefined; resourceInputs["skukeyword2"] = state ? state.skukeyword2 : undefined; resourceInputs["tenant"] = state ? state.tenant : undefined; resourceInputs["unitOfMeasure"] = state ? state.unitOfMeasure : undefined; } else { const args = argsOrState; if ((!args || args.assignmentType === undefined) && !opts.urn) { throw new Error("Missing required property 'assignmentType'"); } if ((!args || args.bigiqAddress === undefined) && !opts.urn) { throw new Error("Missing required property 'bigiqAddress'"); } if ((!args || args.bigiqPassword === undefined) && !opts.urn) { throw new Error("Missing required property 'bigiqPassword'"); } if ((!args || args.bigiqUser === undefined) && !opts.urn) { throw new Error("Missing required property 'bigiqUser'"); } if ((!args || args.licensePoolname === undefined) && !opts.urn) { throw new Error("Missing required property 'licensePoolname'"); } resourceInputs["assignmentType"] = args ? args.assignmentType : undefined; resourceInputs["bigiqAddress"] = args ? args.bigiqAddress : undefined; resourceInputs["bigiqLoginRef"] = (args === null || args === void 0 ? void 0 : args.bigiqLoginRef) ? pulumi.secret(args.bigiqLoginRef) : undefined; resourceInputs["bigiqPassword"] = (args === null || args === void 0 ? void 0 : args.bigiqPassword) ? pulumi.secret(args.bigiqPassword) : undefined; resourceInputs["bigiqPort"] = (args === null || args === void 0 ? void 0 : args.bigiqPort) ? pulumi.secret(args.bigiqPort) : undefined; resourceInputs["bigiqTokenAuth"] = (args === null || args === void 0 ? void 0 : args.bigiqTokenAuth) ? pulumi.secret(args.bigiqTokenAuth) : undefined; resourceInputs["bigiqUser"] = (args === null || args === void 0 ? void 0 : args.bigiqUser) ? pulumi.secret(args.bigiqUser) : undefined; resourceInputs["deviceLicenseStatus"] = args ? args.deviceLicenseStatus : undefined; resourceInputs["hypervisor"] = args ? args.hypervisor : undefined; resourceInputs["key"] = args ? args.key : undefined; resourceInputs["licensePoolname"] = args ? args.licensePoolname : undefined; resourceInputs["macAddress"] = args ? args.macAddress : undefined; resourceInputs["skukeyword1"] = args ? args.skukeyword1 : undefined; resourceInputs["skukeyword2"] = args ? args.skukeyword2 : undefined; resourceInputs["tenant"] = args ? args.tenant : undefined; resourceInputs["unitOfMeasure"] = args ? args.unitOfMeasure : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); const secretOpts = { additionalSecretOutputs: ["bigiqLoginRef", "bigiqPassword", "bigiqPort", "bigiqTokenAuth", "bigiqUser"] }; opts = pulumi.mergeOptions(opts, secretOpts); super(CommonLicenseManageBigIq.__pulumiType, name, resourceInputs, opts); } } exports.CommonLicenseManageBigIq = CommonLicenseManageBigIq; /** @internal */ CommonLicenseManageBigIq.__pulumiType = 'f5bigip:index/commonLicenseManageBigIq:CommonLicenseManageBigIq'; //# sourceMappingURL=commonLicenseManageBigIq.js.map