UNPKG

@pulumi/f5bigip

Version:

A Pulumi package for creating and managing F5 BigIP resources.

162 lines • 7.98 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! *** var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { return m[k]; } }; } Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })); var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); }) : function(o, v) { o["default"] = v; }); var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); __setModuleDefault(result, mod); return result; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.ProfileHttp = void 0; const pulumi = __importStar(require("@pulumi/pulumi")); const utilities = __importStar(require("../utilities")); /** * `f5bigip.ltm.ProfileHttp` Configures a custom profileHttp for use by health checks. * * For 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-pool. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as f5bigip from "@pulumi/f5bigip"; * * const sanjose_http = new f5bigip.ltm.ProfileHttp("sanjose-http", { * name: "/Common/sanjose-http", * defaultsFrom: "/Common/http", * fallbackHost: "titanic", * fallbackStatusCodes: [ * "400", * "500", * "300", * ], * }); * ``` * * ## Import * * BIG-IP LTM http profiles can be imported using the `name`, e.g. * * ```sh * $ pulumi import f5bigip:ltm/profileHttp:ProfileHttp test-http /Common/test-http * ``` */ class ProfileHttp extends pulumi.CustomResource { /** * Get an existing ProfileHttp 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 ProfileHttp(name, state, { ...opts, id: id }); } /** @internal */ static __pulumiType = 'f5bigip:ltm/profileHttp:ProfileHttp'; /** * Returns true if the given object is an instance of ProfileHttp. 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'] === ProfileHttp.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["acceptXff"] = state?.acceptXff; resourceInputs["appService"] = state?.appService; resourceInputs["basicAuthRealm"] = state?.basicAuthRealm; resourceInputs["defaultsFrom"] = state?.defaultsFrom; resourceInputs["description"] = state?.description; resourceInputs["encryptCookieSecret"] = state?.encryptCookieSecret; resourceInputs["encryptCookies"] = state?.encryptCookies; resourceInputs["enforcements"] = state?.enforcements; resourceInputs["fallbackHost"] = state?.fallbackHost; resourceInputs["fallbackStatusCodes"] = state?.fallbackStatusCodes; resourceInputs["headErase"] = state?.headErase; resourceInputs["headInsert"] = state?.headInsert; resourceInputs["httpStrictTransportSecurities"] = state?.httpStrictTransportSecurities; resourceInputs["insertXforwardedFor"] = state?.insertXforwardedFor; resourceInputs["lwsSeparator"] = state?.lwsSeparator; resourceInputs["lwsWidth"] = state?.lwsWidth; resourceInputs["name"] = state?.name; resourceInputs["oneconnectTransformations"] = state?.oneconnectTransformations; resourceInputs["proxyType"] = state?.proxyType; resourceInputs["redirectRewrite"] = state?.redirectRewrite; resourceInputs["requestChunking"] = state?.requestChunking; resourceInputs["responseChunking"] = state?.responseChunking; resourceInputs["responseHeadersPermitteds"] = state?.responseHeadersPermitteds; resourceInputs["serverAgentName"] = state?.serverAgentName; resourceInputs["tmPartition"] = state?.tmPartition; resourceInputs["viaHostName"] = state?.viaHostName; resourceInputs["viaRequest"] = state?.viaRequest; resourceInputs["viaResponse"] = state?.viaResponse; resourceInputs["xffAlternativeNames"] = state?.xffAlternativeNames; } else { const args = argsOrState; if (args?.name === undefined && !opts.urn) { throw new Error("Missing required property 'name'"); } resourceInputs["acceptXff"] = args?.acceptXff; resourceInputs["appService"] = args?.appService; resourceInputs["basicAuthRealm"] = args?.basicAuthRealm; resourceInputs["defaultsFrom"] = args?.defaultsFrom; resourceInputs["description"] = args?.description; resourceInputs["encryptCookieSecret"] = args?.encryptCookieSecret; resourceInputs["encryptCookies"] = args?.encryptCookies; resourceInputs["enforcements"] = args?.enforcements; resourceInputs["fallbackHost"] = args?.fallbackHost; resourceInputs["fallbackStatusCodes"] = args?.fallbackStatusCodes; resourceInputs["headErase"] = args?.headErase; resourceInputs["headInsert"] = args?.headInsert; resourceInputs["httpStrictTransportSecurities"] = args?.httpStrictTransportSecurities; resourceInputs["insertXforwardedFor"] = args?.insertXforwardedFor; resourceInputs["lwsSeparator"] = args?.lwsSeparator; resourceInputs["lwsWidth"] = args?.lwsWidth; resourceInputs["name"] = args?.name; resourceInputs["oneconnectTransformations"] = args?.oneconnectTransformations; resourceInputs["proxyType"] = args?.proxyType; resourceInputs["redirectRewrite"] = args?.redirectRewrite; resourceInputs["requestChunking"] = args?.requestChunking; resourceInputs["responseChunking"] = args?.responseChunking; resourceInputs["responseHeadersPermitteds"] = args?.responseHeadersPermitteds; resourceInputs["serverAgentName"] = args?.serverAgentName; resourceInputs["tmPartition"] = args?.tmPartition; resourceInputs["viaHostName"] = args?.viaHostName; resourceInputs["viaRequest"] = args?.viaRequest; resourceInputs["viaResponse"] = args?.viaResponse; resourceInputs["xffAlternativeNames"] = args?.xffAlternativeNames; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(ProfileHttp.__pulumiType, name, resourceInputs, opts); } } exports.ProfileHttp = ProfileHttp; //# sourceMappingURL=profileHttp.js.map