@pulumi/f5bigip
Version:
A Pulumi package for creating and managing F5 BigIP resources.
107 lines • 5.52 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.ProfileHttp2 = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* `f5bigip.ltm.ProfileHttp2` Configures a custom profileHttp2 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 nyhttp2 = new f5bigip.ltm.ProfileHttp2("nyhttp2", {
* name: "/Common/test-profile-http2",
* frameSize: 2021,
* receiveWindow: 31,
* writeSize: 16380,
* headerTableSize: 4092,
* includeContentLength: "enabled",
* enforceTlsRequirements: "enabled",
* insertHeader: "disabled",
* concurrentStreamsPerConnection: 30,
* connectionIdleTimeout: 100,
* activationModes: ["always"],
* });
* //Child Profile which inherits parent http2 profile
* const nyhttp2_child = new f5bigip.ltm.ProfileHttp2("nyhttp2-child", {
* name: "/Common/test-profile-http2-child",
* defaultsFrom: nyhttp2.name,
* });
* ```
*/
class ProfileHttp2 extends pulumi.CustomResource {
/**
* Get an existing ProfileHttp2 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 ProfileHttp2(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of ProfileHttp2. 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'] === ProfileHttp2.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["activationModes"] = state ? state.activationModes : undefined;
resourceInputs["concurrentStreamsPerConnection"] = state ? state.concurrentStreamsPerConnection : undefined;
resourceInputs["connectionIdleTimeout"] = state ? state.connectionIdleTimeout : undefined;
resourceInputs["defaultsFrom"] = state ? state.defaultsFrom : undefined;
resourceInputs["enforceTlsRequirements"] = state ? state.enforceTlsRequirements : undefined;
resourceInputs["frameSize"] = state ? state.frameSize : undefined;
resourceInputs["headerTableSize"] = state ? state.headerTableSize : undefined;
resourceInputs["includeContentLength"] = state ? state.includeContentLength : undefined;
resourceInputs["insertHeader"] = state ? state.insertHeader : undefined;
resourceInputs["insertHeaderName"] = state ? state.insertHeaderName : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["receiveWindow"] = state ? state.receiveWindow : undefined;
resourceInputs["writeSize"] = state ? state.writeSize : undefined;
}
else {
const args = argsOrState;
if ((!args || args.name === undefined) && !opts.urn) {
throw new Error("Missing required property 'name'");
}
resourceInputs["activationModes"] = args ? args.activationModes : undefined;
resourceInputs["concurrentStreamsPerConnection"] = args ? args.concurrentStreamsPerConnection : undefined;
resourceInputs["connectionIdleTimeout"] = args ? args.connectionIdleTimeout : undefined;
resourceInputs["defaultsFrom"] = args ? args.defaultsFrom : undefined;
resourceInputs["enforceTlsRequirements"] = args ? args.enforceTlsRequirements : undefined;
resourceInputs["frameSize"] = args ? args.frameSize : undefined;
resourceInputs["headerTableSize"] = args ? args.headerTableSize : undefined;
resourceInputs["includeContentLength"] = args ? args.includeContentLength : undefined;
resourceInputs["insertHeader"] = args ? args.insertHeader : undefined;
resourceInputs["insertHeaderName"] = args ? args.insertHeaderName : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["receiveWindow"] = args ? args.receiveWindow : undefined;
resourceInputs["writeSize"] = args ? args.writeSize : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(ProfileHttp2.__pulumiType, name, resourceInputs, opts);
}
}
exports.ProfileHttp2 = ProfileHttp2;
/** @internal */
ProfileHttp2.__pulumiType = 'f5bigip:ltm/profileHttp2:ProfileHttp2';
//# sourceMappingURL=profileHttp2.js.map