UNPKG

@pulumi/f5bigip

Version:

A Pulumi package for creating and managing F5 BigIP resources.

112 lines 5.84 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.ProfileFastL4 = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * `f5bigip.ltm.ProfileFastL4` Configures a custom LTM fastL4 profile for use by health checks. * * Resources should be named with their `full path`. The full path is the combination of the `partition + name` of the resource (For example `/Common/my-fastl4profile`) or `partition + directory + name` of the resource (example: `/Common/test/my-fastl4profile`) * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as f5bigip from "@pulumi/f5bigip"; * * const profileFastl4 = new f5bigip.ltm.ProfileFastL4("profile_fastl4", { * name: "/Common/sjfastl4profile", * defaultsFrom: "/Common/fastL4", * clientTimeout: 40, * explicitflowMigration: "enabled", * hardwareSyncookie: "enabled", * idleTimeout: "200", * iptosToclient: "pass-through", * iptosToserver: "pass-through", * keepaliveInterval: "disabled", * }); * ``` * * ## Import * * BIG-IP LTM fastl4 profiles can be imported using the `name`, e.g. * * ```sh * $ pulumi import f5bigip:ltm/profileFastL4:ProfileFastL4 test-fastl4 /Common/test-fastl4 * ``` */ class ProfileFastL4 extends pulumi.CustomResource { /** * Get an existing ProfileFastL4 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 ProfileFastL4(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of ProfileFastL4. 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'] === ProfileFastL4.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["clientTimeout"] = state ? state.clientTimeout : undefined; resourceInputs["defaultsFrom"] = state ? state.defaultsFrom : undefined; resourceInputs["explicitflowMigration"] = state ? state.explicitflowMigration : undefined; resourceInputs["hardwareSyncookie"] = state ? state.hardwareSyncookie : undefined; resourceInputs["idleTimeout"] = state ? state.idleTimeout : undefined; resourceInputs["iptosToclient"] = state ? state.iptosToclient : undefined; resourceInputs["iptosToserver"] = state ? state.iptosToserver : undefined; resourceInputs["keepaliveInterval"] = state ? state.keepaliveInterval : undefined; resourceInputs["lateBinding"] = state ? state.lateBinding : undefined; resourceInputs["looseClose"] = state ? state.looseClose : undefined; resourceInputs["looseInitiation"] = state ? state.looseInitiation : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["partition"] = state ? state.partition : undefined; resourceInputs["receiveWindowsize"] = state ? state.receiveWindowsize : undefined; resourceInputs["tcpHandshakeTimeout"] = state ? state.tcpHandshakeTimeout : undefined; } else { const args = argsOrState; if ((!args || args.name === undefined) && !opts.urn) { throw new Error("Missing required property 'name'"); } resourceInputs["clientTimeout"] = args ? args.clientTimeout : undefined; resourceInputs["defaultsFrom"] = args ? args.defaultsFrom : undefined; resourceInputs["explicitflowMigration"] = args ? args.explicitflowMigration : undefined; resourceInputs["hardwareSyncookie"] = args ? args.hardwareSyncookie : undefined; resourceInputs["idleTimeout"] = args ? args.idleTimeout : undefined; resourceInputs["iptosToclient"] = args ? args.iptosToclient : undefined; resourceInputs["iptosToserver"] = args ? args.iptosToserver : undefined; resourceInputs["keepaliveInterval"] = args ? args.keepaliveInterval : undefined; resourceInputs["lateBinding"] = args ? args.lateBinding : undefined; resourceInputs["looseClose"] = args ? args.looseClose : undefined; resourceInputs["looseInitiation"] = args ? args.looseInitiation : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["partition"] = args ? args.partition : undefined; resourceInputs["receiveWindowsize"] = args ? args.receiveWindowsize : undefined; resourceInputs["tcpHandshakeTimeout"] = args ? args.tcpHandshakeTimeout : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(ProfileFastL4.__pulumiType, name, resourceInputs, opts); } } exports.ProfileFastL4 = ProfileFastL4; /** @internal */ ProfileFastL4.__pulumiType = 'f5bigip:ltm/profileFastL4:ProfileFastL4'; //# sourceMappingURL=profileFastL4.js.map