UNPKG

@pulumi/f5bigip

Version:

A Pulumi package for creating and managing F5 BigIP resources.

141 lines 8.07 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.ProfileHttp = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = 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. * * bash * * ```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, Object.assign(Object.assign({}, opts), { id: id })); } /** * 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 ? state.acceptXff : undefined; resourceInputs["appService"] = state ? state.appService : undefined; resourceInputs["basicAuthRealm"] = state ? state.basicAuthRealm : undefined; resourceInputs["defaultsFrom"] = state ? state.defaultsFrom : undefined; resourceInputs["description"] = state ? state.description : undefined; resourceInputs["encryptCookieSecret"] = state ? state.encryptCookieSecret : undefined; resourceInputs["encryptCookies"] = state ? state.encryptCookies : undefined; resourceInputs["enforcements"] = state ? state.enforcements : undefined; resourceInputs["fallbackHost"] = state ? state.fallbackHost : undefined; resourceInputs["fallbackStatusCodes"] = state ? state.fallbackStatusCodes : undefined; resourceInputs["headErase"] = state ? state.headErase : undefined; resourceInputs["headInsert"] = state ? state.headInsert : undefined; resourceInputs["httpStrictTransportSecurities"] = state ? state.httpStrictTransportSecurities : undefined; resourceInputs["insertXforwardedFor"] = state ? state.insertXforwardedFor : undefined; resourceInputs["lwsSeparator"] = state ? state.lwsSeparator : undefined; resourceInputs["lwsWidth"] = state ? state.lwsWidth : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["oneconnectTransformations"] = state ? state.oneconnectTransformations : undefined; resourceInputs["proxyType"] = state ? state.proxyType : undefined; resourceInputs["redirectRewrite"] = state ? state.redirectRewrite : undefined; resourceInputs["requestChunking"] = state ? state.requestChunking : undefined; resourceInputs["responseChunking"] = state ? state.responseChunking : undefined; resourceInputs["responseHeadersPermitteds"] = state ? state.responseHeadersPermitteds : undefined; resourceInputs["serverAgentName"] = state ? state.serverAgentName : undefined; resourceInputs["tmPartition"] = state ? state.tmPartition : undefined; resourceInputs["viaHostName"] = state ? state.viaHostName : undefined; resourceInputs["viaRequest"] = state ? state.viaRequest : undefined; resourceInputs["viaResponse"] = state ? state.viaResponse : undefined; resourceInputs["xffAlternativeNames"] = state ? state.xffAlternativeNames : undefined; } else { const args = argsOrState; if ((!args || args.name === undefined) && !opts.urn) { throw new Error("Missing required property 'name'"); } resourceInputs["acceptXff"] = args ? args.acceptXff : undefined; resourceInputs["appService"] = args ? args.appService : undefined; resourceInputs["basicAuthRealm"] = args ? args.basicAuthRealm : undefined; resourceInputs["defaultsFrom"] = args ? args.defaultsFrom : undefined; resourceInputs["description"] = args ? args.description : undefined; resourceInputs["encryptCookieSecret"] = args ? args.encryptCookieSecret : undefined; resourceInputs["encryptCookies"] = args ? args.encryptCookies : undefined; resourceInputs["enforcements"] = args ? args.enforcements : undefined; resourceInputs["fallbackHost"] = args ? args.fallbackHost : undefined; resourceInputs["fallbackStatusCodes"] = args ? args.fallbackStatusCodes : undefined; resourceInputs["headErase"] = args ? args.headErase : undefined; resourceInputs["headInsert"] = args ? args.headInsert : undefined; resourceInputs["httpStrictTransportSecurities"] = args ? args.httpStrictTransportSecurities : undefined; resourceInputs["insertXforwardedFor"] = args ? args.insertXforwardedFor : undefined; resourceInputs["lwsSeparator"] = args ? args.lwsSeparator : undefined; resourceInputs["lwsWidth"] = args ? args.lwsWidth : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["oneconnectTransformations"] = args ? args.oneconnectTransformations : undefined; resourceInputs["proxyType"] = args ? args.proxyType : undefined; resourceInputs["redirectRewrite"] = args ? args.redirectRewrite : undefined; resourceInputs["requestChunking"] = args ? args.requestChunking : undefined; resourceInputs["responseChunking"] = args ? args.responseChunking : undefined; resourceInputs["responseHeadersPermitteds"] = args ? args.responseHeadersPermitteds : undefined; resourceInputs["serverAgentName"] = args ? args.serverAgentName : undefined; resourceInputs["tmPartition"] = args ? args.tmPartition : undefined; resourceInputs["viaHostName"] = args ? args.viaHostName : undefined; resourceInputs["viaRequest"] = args ? args.viaRequest : undefined; resourceInputs["viaResponse"] = args ? args.viaResponse : undefined; resourceInputs["xffAlternativeNames"] = args ? args.xffAlternativeNames : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(ProfileHttp.__pulumiType, name, resourceInputs, opts); } } exports.ProfileHttp = ProfileHttp; /** @internal */ ProfileHttp.__pulumiType = 'f5bigip:ltm/profileHttp:ProfileHttp'; //# sourceMappingURL=profileHttp.js.map