UNPKG

@pulumi/f5bigip

Version:

A Pulumi package for creating and managing F5 BigIP resources.

125 lines 7.01 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.ProfileTcp = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * `f5bigip.ltm.ProfileTcp` Configures a custom TCP LTM Profile 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 sanjose_tcp_lan_profile = new f5bigip.ltm.ProfileTcp("sanjose-tcp-lan-profile", { * name: "/Common/sanjose-tcp-lan-profile", * idleTimeout: 200, * closeWaitTimeout: 5, * finwait2timeout: 5, * finwaitTimeout: 300, * keepaliveInterval: 1700, * deferredAccept: "enabled", * fastOpen: "enabled", * }); * ``` * * ## Importing * * An existing tcp profile can be imported into this resource by supplying tcp profile Name in `full path` as `id`. * An example is below: * ```sh * $ terraform import bigip_ltm_profile_tcp.tcp-lan-profile-import /Common/test-tcp-lan-profile * ``` */ class ProfileTcp extends pulumi.CustomResource { /** * Get an existing ProfileTcp 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 ProfileTcp(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of ProfileTcp. 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'] === ProfileTcp.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["closeWaitTimeout"] = state ? state.closeWaitTimeout : undefined; resourceInputs["congestionControl"] = state ? state.congestionControl : undefined; resourceInputs["defaultsFrom"] = state ? state.defaultsFrom : undefined; resourceInputs["deferredAccept"] = state ? state.deferredAccept : undefined; resourceInputs["delayedAcks"] = state ? state.delayedAcks : undefined; resourceInputs["earlyRetransmit"] = state ? state.earlyRetransmit : undefined; resourceInputs["fastOpen"] = state ? state.fastOpen : undefined; resourceInputs["finwait2timeout"] = state ? state.finwait2timeout : undefined; resourceInputs["finwaitTimeout"] = state ? state.finwaitTimeout : undefined; resourceInputs["idleTimeout"] = state ? state.idleTimeout : undefined; resourceInputs["initialCongestionWindowsize"] = state ? state.initialCongestionWindowsize : undefined; resourceInputs["keepaliveInterval"] = state ? state.keepaliveInterval : undefined; resourceInputs["nagle"] = state ? state.nagle : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["partition"] = state ? state.partition : undefined; resourceInputs["proxybufferHigh"] = state ? state.proxybufferHigh : undefined; resourceInputs["receiveWindowsize"] = state ? state.receiveWindowsize : undefined; resourceInputs["sendBuffersize"] = state ? state.sendBuffersize : undefined; resourceInputs["taillossProbe"] = state ? state.taillossProbe : undefined; resourceInputs["timewaitRecycle"] = state ? state.timewaitRecycle : undefined; resourceInputs["verifiedAccept"] = state ? state.verifiedAccept : undefined; resourceInputs["zerowindowTimeout"] = state ? state.zerowindowTimeout : undefined; } else { const args = argsOrState; if ((!args || args.name === undefined) && !opts.urn) { throw new Error("Missing required property 'name'"); } resourceInputs["closeWaitTimeout"] = args ? args.closeWaitTimeout : undefined; resourceInputs["congestionControl"] = args ? args.congestionControl : undefined; resourceInputs["defaultsFrom"] = args ? args.defaultsFrom : undefined; resourceInputs["deferredAccept"] = args ? args.deferredAccept : undefined; resourceInputs["delayedAcks"] = args ? args.delayedAcks : undefined; resourceInputs["earlyRetransmit"] = args ? args.earlyRetransmit : undefined; resourceInputs["fastOpen"] = args ? args.fastOpen : undefined; resourceInputs["finwait2timeout"] = args ? args.finwait2timeout : undefined; resourceInputs["finwaitTimeout"] = args ? args.finwaitTimeout : undefined; resourceInputs["idleTimeout"] = args ? args.idleTimeout : undefined; resourceInputs["initialCongestionWindowsize"] = args ? args.initialCongestionWindowsize : undefined; resourceInputs["keepaliveInterval"] = args ? args.keepaliveInterval : undefined; resourceInputs["nagle"] = args ? args.nagle : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["partition"] = args ? args.partition : undefined; resourceInputs["proxybufferHigh"] = args ? args.proxybufferHigh : undefined; resourceInputs["receiveWindowsize"] = args ? args.receiveWindowsize : undefined; resourceInputs["sendBuffersize"] = args ? args.sendBuffersize : undefined; resourceInputs["taillossProbe"] = args ? args.taillossProbe : undefined; resourceInputs["timewaitRecycle"] = args ? args.timewaitRecycle : undefined; resourceInputs["verifiedAccept"] = args ? args.verifiedAccept : undefined; resourceInputs["zerowindowTimeout"] = args ? args.zerowindowTimeout : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(ProfileTcp.__pulumiType, name, resourceInputs, opts); } } exports.ProfileTcp = ProfileTcp; /** @internal */ ProfileTcp.__pulumiType = 'f5bigip:ltm/profileTcp:ProfileTcp'; //# sourceMappingURL=profileTcp.js.map