@pulumi/f5bigip
Version:
A Pulumi package for creating and managing F5 BigIP resources.
98 lines • 4.97 kB
JavaScript
;
// *** 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.ProfileFastHttp = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* `f5bigip.ltm.ProfileFastHttp` Configures a custom profileFasthttp 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 sjfasthttpprofile = new f5bigip.ltm.ProfileFastHttp("sjfasthttpprofile", {
* name: "/Common/sjfasthttpprofile",
* defaultsFrom: "/Common/fasthttp",
* idleTimeout: 300,
* connpoolidleTimeoutoverride: 0,
* connpoolMaxreuse: 2,
* connpoolMaxsize: 2048,
* connpoolMinsize: 0,
* connpoolReplenish: "enabled",
* connpoolStep: 4,
* forcehttp10response: "disabled",
* maxheaderSize: 32768,
* });
* ```
*/
class ProfileFastHttp extends pulumi.CustomResource {
/**
* Get an existing ProfileFastHttp 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 ProfileFastHttp(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of ProfileFastHttp. 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'] === ProfileFastHttp.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["connpoolMaxreuse"] = state ? state.connpoolMaxreuse : undefined;
resourceInputs["connpoolMaxsize"] = state ? state.connpoolMaxsize : undefined;
resourceInputs["connpoolMinsize"] = state ? state.connpoolMinsize : undefined;
resourceInputs["connpoolReplenish"] = state ? state.connpoolReplenish : undefined;
resourceInputs["connpoolStep"] = state ? state.connpoolStep : undefined;
resourceInputs["connpoolidleTimeoutoverride"] = state ? state.connpoolidleTimeoutoverride : undefined;
resourceInputs["defaultsFrom"] = state ? state.defaultsFrom : undefined;
resourceInputs["forcehttp10response"] = state ? state.forcehttp10response : undefined;
resourceInputs["idleTimeout"] = state ? state.idleTimeout : undefined;
resourceInputs["maxheaderSize"] = state ? state.maxheaderSize : undefined;
resourceInputs["name"] = state ? state.name : undefined;
}
else {
const args = argsOrState;
if ((!args || args.name === undefined) && !opts.urn) {
throw new Error("Missing required property 'name'");
}
resourceInputs["connpoolMaxreuse"] = args ? args.connpoolMaxreuse : undefined;
resourceInputs["connpoolMaxsize"] = args ? args.connpoolMaxsize : undefined;
resourceInputs["connpoolMinsize"] = args ? args.connpoolMinsize : undefined;
resourceInputs["connpoolReplenish"] = args ? args.connpoolReplenish : undefined;
resourceInputs["connpoolStep"] = args ? args.connpoolStep : undefined;
resourceInputs["connpoolidleTimeoutoverride"] = args ? args.connpoolidleTimeoutoverride : undefined;
resourceInputs["defaultsFrom"] = args ? args.defaultsFrom : undefined;
resourceInputs["forcehttp10response"] = args ? args.forcehttp10response : undefined;
resourceInputs["idleTimeout"] = args ? args.idleTimeout : undefined;
resourceInputs["maxheaderSize"] = args ? args.maxheaderSize : undefined;
resourceInputs["name"] = args ? args.name : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(ProfileFastHttp.__pulumiType, name, resourceInputs, opts);
}
}
exports.ProfileFastHttp = ProfileFastHttp;
/** @internal */
ProfileFastHttp.__pulumiType = 'f5bigip:ltm/profileFastHttp:ProfileFastHttp';
//# sourceMappingURL=profileFastHttp.js.map