UNPKG

@pulumi/f5bigip

Version:

A Pulumi package for creating and managing F5 BigIP resources.

108 lines 5.64 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.ProfileHttpCompress = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * `f5bigip.ltm.ProfileHttpCompress` Virtual server HTTP compression profile configuration * * Resources should be named with their `full path`.The full path is the combination of the `partition + name` (example: `/Common/my-httpcompresprofile` ) or `partition + directory + name` of the resource (example: `/Common/test/my-httpcompresprofile`) * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as f5bigip from "@pulumi/f5bigip"; * * const sjhttpcompression = new f5bigip.ltm.ProfileHttpCompress("sjhttpcompression", { * name: "/Common/sjhttpcompression2", * defaultsFrom: "/Common/httpcompression", * uriExcludes: [ * "www.abc.f5.com", * "www.abc2.f5.com", * ], * uriIncludes: ["www.xyzbc.cisco.com"], * contentTypeIncludes: ["nicecontent.com"], * contentTypeExcludes: ["nicecontentexclude.com"], * }); * ``` * * ## Import * * BIG-IP LTM HTTP Compress profiles can be imported using the `name`, e.g. * * ```sh * $ pulumi import f5bigip:ltm/profileHttpCompress:ProfileHttpCompress test-httpcomprs_import /Common/test-httpcomprs * ``` */ class ProfileHttpCompress extends pulumi.CustomResource { /** * Get an existing ProfileHttpCompress 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 ProfileHttpCompress(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of ProfileHttpCompress. 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'] === ProfileHttpCompress.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["compressionBuffersize"] = state ? state.compressionBuffersize : undefined; resourceInputs["contentTypeExcludes"] = state ? state.contentTypeExcludes : undefined; resourceInputs["contentTypeIncludes"] = state ? state.contentTypeIncludes : undefined; resourceInputs["cpuSaver"] = state ? state.cpuSaver : undefined; resourceInputs["defaultsFrom"] = state ? state.defaultsFrom : undefined; resourceInputs["gzipCompressionLevel"] = state ? state.gzipCompressionLevel : undefined; resourceInputs["gzipMemoryLevel"] = state ? state.gzipMemoryLevel : undefined; resourceInputs["gzipWindowSize"] = state ? state.gzipWindowSize : undefined; resourceInputs["keepAcceptEncoding"] = state ? state.keepAcceptEncoding : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["uriExcludes"] = state ? state.uriExcludes : undefined; resourceInputs["uriIncludes"] = state ? state.uriIncludes : undefined; resourceInputs["varyHeader"] = state ? state.varyHeader : undefined; } else { const args = argsOrState; if ((!args || args.name === undefined) && !opts.urn) { throw new Error("Missing required property 'name'"); } resourceInputs["compressionBuffersize"] = args ? args.compressionBuffersize : undefined; resourceInputs["contentTypeExcludes"] = args ? args.contentTypeExcludes : undefined; resourceInputs["contentTypeIncludes"] = args ? args.contentTypeIncludes : undefined; resourceInputs["cpuSaver"] = args ? args.cpuSaver : undefined; resourceInputs["defaultsFrom"] = args ? args.defaultsFrom : undefined; resourceInputs["gzipCompressionLevel"] = args ? args.gzipCompressionLevel : undefined; resourceInputs["gzipMemoryLevel"] = args ? args.gzipMemoryLevel : undefined; resourceInputs["gzipWindowSize"] = args ? args.gzipWindowSize : undefined; resourceInputs["keepAcceptEncoding"] = args ? args.keepAcceptEncoding : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["uriExcludes"] = args ? args.uriExcludes : undefined; resourceInputs["uriIncludes"] = args ? args.uriIncludes : undefined; resourceInputs["varyHeader"] = args ? args.varyHeader : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(ProfileHttpCompress.__pulumiType, name, resourceInputs, opts); } } exports.ProfileHttpCompress = ProfileHttpCompress; /** @internal */ ProfileHttpCompress.__pulumiType = 'f5bigip:ltm/profileHttpCompress:ProfileHttpCompress'; //# sourceMappingURL=profileHttpCompress.js.map