@pulumi/f5bigip
Version:
A Pulumi package for creating and managing F5 BigIP resources.
122 lines • 6.96 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.RequestLogProfile = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* `f5bigip.ltm.RequestLogProfile` Resource used for Configures request logging using the Request Logging profile
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as f5bigip from "@pulumi/f5bigip";
*
* const request_log_profile_tc1_child = new f5bigip.ltm.RequestLogProfile("request-log-profile-tc1-child", {
* name: "/Common/request-log-profile-tc1-child",
* defaultsFrom: request_log_profile_tc1.name,
* requestLogging: "disabled",
* requestlogPool: "/Common/pool2",
* requestlogErrorPool: "/Common/pool1",
* requestlogProtocol: "mds-tcp",
* requestlogErrorProtocol: "mds-tcp",
* responselogProtocol: "mds-tcp",
* responselogErrorProtocol: "mds-tcp",
* });
* ```
*
* ## Import
*
* BIG-IP LTM Request Log profiles can be imported using the `name`, e.g.
*
* bash
*
* ```sh
* $ pulumi import f5bigip:ltm/requestLogProfile:RequestLogProfile test-request-log /Common/test-request-log
* ```
*/
class RequestLogProfile extends pulumi.CustomResource {
/**
* Get an existing RequestLogProfile 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 RequestLogProfile(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of RequestLogProfile. 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'] === RequestLogProfile.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["defaultsFrom"] = state ? state.defaultsFrom : undefined;
resourceInputs["description"] = state ? state.description : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["proxyResponse"] = state ? state.proxyResponse : undefined;
resourceInputs["proxycloseOnError"] = state ? state.proxycloseOnError : undefined;
resourceInputs["proxyrespondOnLoggingerror"] = state ? state.proxyrespondOnLoggingerror : undefined;
resourceInputs["requestLogging"] = state ? state.requestLogging : undefined;
resourceInputs["requestlogErrorPool"] = state ? state.requestlogErrorPool : undefined;
resourceInputs["requestlogErrorProtocol"] = state ? state.requestlogErrorProtocol : undefined;
resourceInputs["requestlogErrorTemplate"] = state ? state.requestlogErrorTemplate : undefined;
resourceInputs["requestlogPool"] = state ? state.requestlogPool : undefined;
resourceInputs["requestlogProtocol"] = state ? state.requestlogProtocol : undefined;
resourceInputs["requestlogTemplate"] = state ? state.requestlogTemplate : undefined;
resourceInputs["responseLogging"] = state ? state.responseLogging : undefined;
resourceInputs["responselogErrorPool"] = state ? state.responselogErrorPool : undefined;
resourceInputs["responselogErrorProtocol"] = state ? state.responselogErrorProtocol : undefined;
resourceInputs["responselogErrorTemplate"] = state ? state.responselogErrorTemplate : undefined;
resourceInputs["responselogPool"] = state ? state.responselogPool : undefined;
resourceInputs["responselogProtocol"] = state ? state.responselogProtocol : undefined;
resourceInputs["responselogTemplate"] = state ? state.responselogTemplate : undefined;
}
else {
const args = argsOrState;
if ((!args || args.name === undefined) && !opts.urn) {
throw new Error("Missing required property 'name'");
}
resourceInputs["defaultsFrom"] = args ? args.defaultsFrom : undefined;
resourceInputs["description"] = args ? args.description : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["proxyResponse"] = args ? args.proxyResponse : undefined;
resourceInputs["proxycloseOnError"] = args ? args.proxycloseOnError : undefined;
resourceInputs["proxyrespondOnLoggingerror"] = args ? args.proxyrespondOnLoggingerror : undefined;
resourceInputs["requestLogging"] = args ? args.requestLogging : undefined;
resourceInputs["requestlogErrorPool"] = args ? args.requestlogErrorPool : undefined;
resourceInputs["requestlogErrorProtocol"] = args ? args.requestlogErrorProtocol : undefined;
resourceInputs["requestlogErrorTemplate"] = args ? args.requestlogErrorTemplate : undefined;
resourceInputs["requestlogPool"] = args ? args.requestlogPool : undefined;
resourceInputs["requestlogProtocol"] = args ? args.requestlogProtocol : undefined;
resourceInputs["requestlogTemplate"] = args ? args.requestlogTemplate : undefined;
resourceInputs["responseLogging"] = args ? args.responseLogging : undefined;
resourceInputs["responselogErrorPool"] = args ? args.responselogErrorPool : undefined;
resourceInputs["responselogErrorProtocol"] = args ? args.responselogErrorProtocol : undefined;
resourceInputs["responselogErrorTemplate"] = args ? args.responselogErrorTemplate : undefined;
resourceInputs["responselogPool"] = args ? args.responselogPool : undefined;
resourceInputs["responselogProtocol"] = args ? args.responselogProtocol : undefined;
resourceInputs["responselogTemplate"] = args ? args.responselogTemplate : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(RequestLogProfile.__pulumiType, name, resourceInputs, opts);
}
}
exports.RequestLogProfile = RequestLogProfile;
/** @internal */
RequestLogProfile.__pulumiType = 'f5bigip:ltm/requestLogProfile:RequestLogProfile';
//# sourceMappingURL=requestLogProfile.js.map