UNPKG

@pulumi/f5bigip

Version:

A Pulumi package for creating and managing F5 BigIP resources.

68 lines 3.54 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.Do = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); class Do extends pulumi.CustomResource { /** * Get an existing Do 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 Do(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Do. 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'] === Do.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["bigipAddress"] = state ? state.bigipAddress : undefined; resourceInputs["bigipPassword"] = state ? state.bigipPassword : undefined; resourceInputs["bigipPort"] = state ? state.bigipPort : undefined; resourceInputs["bigipTokenAuth"] = state ? state.bigipTokenAuth : undefined; resourceInputs["bigipUser"] = state ? state.bigipUser : undefined; resourceInputs["doJson"] = state ? state.doJson : undefined; resourceInputs["tenantName"] = state ? state.tenantName : undefined; resourceInputs["timeout"] = state ? state.timeout : undefined; } else { const args = argsOrState; if ((!args || args.doJson === undefined) && !opts.urn) { throw new Error("Missing required property 'doJson'"); } resourceInputs["bigipAddress"] = args ? args.bigipAddress : undefined; resourceInputs["bigipPassword"] = (args === null || args === void 0 ? void 0 : args.bigipPassword) ? pulumi.secret(args.bigipPassword) : undefined; resourceInputs["bigipPort"] = args ? args.bigipPort : undefined; resourceInputs["bigipTokenAuth"] = (args === null || args === void 0 ? void 0 : args.bigipTokenAuth) ? pulumi.secret(args.bigipTokenAuth) : undefined; resourceInputs["bigipUser"] = args ? args.bigipUser : undefined; resourceInputs["doJson"] = args ? args.doJson : undefined; resourceInputs["tenantName"] = args ? args.tenantName : undefined; resourceInputs["timeout"] = args ? args.timeout : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); const secretOpts = { additionalSecretOutputs: ["bigipPassword", "bigipTokenAuth"] }; opts = pulumi.mergeOptions(opts, secretOpts); super(Do.__pulumiType, name, resourceInputs, opts); } } exports.Do = Do; /** @internal */ Do.__pulumiType = 'f5bigip:index/do:Do'; //# sourceMappingURL=do.js.map