@pulumiverse/fortios
Version:
A Pulumi package for creating and managing Fortios resources. Based on terraform-provider-fortios: version v1.16.0
115 lines • 5.05 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.Ldbmonitor = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Configure server load balancing health monitors.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as fortios from "@pulumiverse/fortios";
*
* const trname = new fortios.firewall.Ldbmonitor("trname", {
* httpMaxRedirects: 0,
* interval: 10,
* port: 0,
* retry: 3,
* timeout: 2,
* type: "ping",
* });
* ```
*
* ## Import
*
* Firewall LdbMonitor can be imported using any of these accepted formats:
*
* ```sh
* $ pulumi import fortios:firewall/ldbmonitor:Ldbmonitor labelname {{name}}
* ```
*
* If you do not want to import arguments of block:
*
* $ export "FORTIOS_IMPORT_TABLE"="false"
*
* ```sh
* $ pulumi import fortios:firewall/ldbmonitor:Ldbmonitor labelname {{name}}
* ```
*
* $ unset "FORTIOS_IMPORT_TABLE"
*/
class Ldbmonitor extends pulumi.CustomResource {
/**
* Get an existing Ldbmonitor 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 Ldbmonitor(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of Ldbmonitor. 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'] === Ldbmonitor.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["dnsMatchIp"] = state ? state.dnsMatchIp : undefined;
resourceInputs["dnsProtocol"] = state ? state.dnsProtocol : undefined;
resourceInputs["dnsRequestDomain"] = state ? state.dnsRequestDomain : undefined;
resourceInputs["httpGet"] = state ? state.httpGet : undefined;
resourceInputs["httpMatch"] = state ? state.httpMatch : undefined;
resourceInputs["httpMaxRedirects"] = state ? state.httpMaxRedirects : undefined;
resourceInputs["interval"] = state ? state.interval : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["port"] = state ? state.port : undefined;
resourceInputs["retry"] = state ? state.retry : undefined;
resourceInputs["srcIp"] = state ? state.srcIp : undefined;
resourceInputs["timeout"] = state ? state.timeout : undefined;
resourceInputs["type"] = state ? state.type : undefined;
resourceInputs["vdomparam"] = state ? state.vdomparam : undefined;
}
else {
const args = argsOrState;
if ((!args || args.type === undefined) && !opts.urn) {
throw new Error("Missing required property 'type'");
}
resourceInputs["dnsMatchIp"] = args ? args.dnsMatchIp : undefined;
resourceInputs["dnsProtocol"] = args ? args.dnsProtocol : undefined;
resourceInputs["dnsRequestDomain"] = args ? args.dnsRequestDomain : undefined;
resourceInputs["httpGet"] = args ? args.httpGet : undefined;
resourceInputs["httpMatch"] = args ? args.httpMatch : undefined;
resourceInputs["httpMaxRedirects"] = args ? args.httpMaxRedirects : undefined;
resourceInputs["interval"] = args ? args.interval : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["port"] = args ? args.port : undefined;
resourceInputs["retry"] = args ? args.retry : undefined;
resourceInputs["srcIp"] = args ? args.srcIp : undefined;
resourceInputs["timeout"] = args ? args.timeout : undefined;
resourceInputs["type"] = args ? args.type : undefined;
resourceInputs["vdomparam"] = args ? args.vdomparam : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(Ldbmonitor.__pulumiType, name, resourceInputs, opts);
}
}
exports.Ldbmonitor = Ldbmonitor;
/** @internal */
Ldbmonitor.__pulumiType = 'fortios:firewall/ldbmonitor:Ldbmonitor';
//# sourceMappingURL=ldbmonitor.js.map
;