UNPKG

@pulumi/f5bigip

Version:

A Pulumi package for creating and managing F5 BigIP resources.

102 lines 5.25 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.BigIqAs3 = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * `f5bigip.BigIqAs3` provides details about bigiq as3 resource * * This resource is helpful to configure as3 declarative JSON on BIG-IP through BIG-IQ. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as f5bigip from "@pulumi/f5bigip"; * import * as std from "@pulumi/std"; * * // Example Usage for json file * const exampletask = new f5bigip.BigIqAs3("exampletask", { * bigiqAddress: "xx.xx.xxx.xx", * bigiqUser: "xxxxx", * bigiqPassword: "xxxxxxxxx", * as3Json: std.file({ * input: "bigiq_example.json", * }).then(invoke => invoke.result), * }); * ``` */ class BigIqAs3 extends pulumi.CustomResource { /** * Get an existing BigIqAs3 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 BigIqAs3(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of BigIqAs3. 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'] === BigIqAs3.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["as3Json"] = state ? state.as3Json : 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["ignoreMetadata"] = state ? state.ignoreMetadata : undefined; resourceInputs["tenantList"] = state ? state.tenantList : undefined; } else { const args = argsOrState; if ((!args || args.as3Json === undefined) && !opts.urn) { throw new Error("Missing required property 'as3Json'"); } 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'"); } resourceInputs["as3Json"] = args ? args.as3Json : 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["ignoreMetadata"] = args ? args.ignoreMetadata : undefined; resourceInputs["tenantList"] = args ? args.tenantList : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); const secretOpts = { additionalSecretOutputs: ["bigiqLoginRef", "bigiqPassword", "bigiqPort", "bigiqTokenAuth", "bigiqUser"] }; opts = pulumi.mergeOptions(opts, secretOpts); super(BigIqAs3.__pulumiType, name, resourceInputs, opts); } } exports.BigIqAs3 = BigIqAs3; /** @internal */ BigIqAs3.__pulumiType = 'f5bigip:index/bigIqAs3:BigIqAs3'; //# sourceMappingURL=bigIqAs3.js.map