UNPKG

@pulumi/f5bigip

Version:

A Pulumi package for creating and managing F5 BigIP resources.

92 lines 4.55 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.ProfileOneConnect = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * `f5bigip.ltm.ProfileOneConnect` Configures a custom profileOneconnect for use by health checks. * * Resources should be named with their "full path". The full path is the combination of the partition + name (example: /Common/my-pool ) or partition + directory + name of the resource (example: /Common/test/my-pool ) * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as f5bigip from "@pulumi/f5bigip"; * * const test_oneconnect = new f5bigip.ltm.ProfileOneConnect("test-oneconnect", {name: "/Common/test-oneconnect"}); * ``` * * ## Import * * BIG-IP LTM oneconnect profiles can be imported using the `name` , e.g. * * ```sh * $ pulumi import f5bigip:ltm/profileOneConnect:ProfileOneConnect test-oneconnect /Common/test-oneconnect * ``` */ class ProfileOneConnect extends pulumi.CustomResource { /** * Get an existing ProfileOneConnect 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 ProfileOneConnect(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of ProfileOneConnect. 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'] === ProfileOneConnect.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["defaultsFrom"] = state ? state.defaultsFrom : undefined; resourceInputs["idleTimeoutOverride"] = state ? state.idleTimeoutOverride : undefined; resourceInputs["limitType"] = state ? state.limitType : undefined; resourceInputs["maxAge"] = state ? state.maxAge : undefined; resourceInputs["maxReuse"] = state ? state.maxReuse : undefined; resourceInputs["maxSize"] = state ? state.maxSize : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["partition"] = state ? state.partition : undefined; resourceInputs["sharePools"] = state ? state.sharePools : undefined; resourceInputs["sourceMask"] = state ? state.sourceMask : undefined; } else { const args = argsOrState; if ((!args || args.name === undefined) && !opts.urn) { throw new Error("Missing required property 'name'"); } resourceInputs["defaultsFrom"] = args ? args.defaultsFrom : undefined; resourceInputs["idleTimeoutOverride"] = args ? args.idleTimeoutOverride : undefined; resourceInputs["limitType"] = args ? args.limitType : undefined; resourceInputs["maxAge"] = args ? args.maxAge : undefined; resourceInputs["maxReuse"] = args ? args.maxReuse : undefined; resourceInputs["maxSize"] = args ? args.maxSize : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["partition"] = args ? args.partition : undefined; resourceInputs["sharePools"] = args ? args.sharePools : undefined; resourceInputs["sourceMask"] = args ? args.sourceMask : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(ProfileOneConnect.__pulumiType, name, resourceInputs, opts); } } exports.ProfileOneConnect = ProfileOneConnect; /** @internal */ ProfileOneConnect.__pulumiType = 'f5bigip:ltm/profileOneConnect:ProfileOneConnect'; //# sourceMappingURL=profileOneConnect.js.map