@pulumi/f5bigip
Version:
A Pulumi package for creating and managing F5 BigIP resources.
86 lines • 4.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.FastTcpApp = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* `f5bigip.FastTcpApp` This resource will create and manage FAST TCP applications on BIG-IP from provided JSON declaration.
*/
class FastTcpApp extends pulumi.CustomResource {
/**
* Get an existing FastTcpApp 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 FastTcpApp(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of FastTcpApp. 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'] === FastTcpApp.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["application"] = state ? state.application : undefined;
resourceInputs["existingMonitor"] = state ? state.existingMonitor : undefined;
resourceInputs["existingPool"] = state ? state.existingPool : undefined;
resourceInputs["existingSnatPool"] = state ? state.existingSnatPool : undefined;
resourceInputs["fallbackPersistence"] = state ? state.fallbackPersistence : undefined;
resourceInputs["fastTcpJson"] = state ? state.fastTcpJson : undefined;
resourceInputs["loadBalancingMode"] = state ? state.loadBalancingMode : undefined;
resourceInputs["monitor"] = state ? state.monitor : undefined;
resourceInputs["persistenceProfile"] = state ? state.persistenceProfile : undefined;
resourceInputs["persistenceType"] = state ? state.persistenceType : undefined;
resourceInputs["poolMembers"] = state ? state.poolMembers : undefined;
resourceInputs["slowRampTime"] = state ? state.slowRampTime : undefined;
resourceInputs["snatPoolAddresses"] = state ? state.snatPoolAddresses : undefined;
resourceInputs["tenant"] = state ? state.tenant : undefined;
resourceInputs["virtualServer"] = state ? state.virtualServer : undefined;
}
else {
const args = argsOrState;
if ((!args || args.application === undefined) && !opts.urn) {
throw new Error("Missing required property 'application'");
}
if ((!args || args.tenant === undefined) && !opts.urn) {
throw new Error("Missing required property 'tenant'");
}
resourceInputs["application"] = args ? args.application : undefined;
resourceInputs["existingMonitor"] = args ? args.existingMonitor : undefined;
resourceInputs["existingPool"] = args ? args.existingPool : undefined;
resourceInputs["existingSnatPool"] = args ? args.existingSnatPool : undefined;
resourceInputs["fallbackPersistence"] = args ? args.fallbackPersistence : undefined;
resourceInputs["loadBalancingMode"] = args ? args.loadBalancingMode : undefined;
resourceInputs["monitor"] = args ? args.monitor : undefined;
resourceInputs["persistenceProfile"] = args ? args.persistenceProfile : undefined;
resourceInputs["persistenceType"] = args ? args.persistenceType : undefined;
resourceInputs["poolMembers"] = args ? args.poolMembers : undefined;
resourceInputs["slowRampTime"] = args ? args.slowRampTime : undefined;
resourceInputs["snatPoolAddresses"] = args ? args.snatPoolAddresses : undefined;
resourceInputs["tenant"] = args ? args.tenant : undefined;
resourceInputs["virtualServer"] = args ? args.virtualServer : undefined;
resourceInputs["fastTcpJson"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(FastTcpApp.__pulumiType, name, resourceInputs, opts);
}
}
exports.FastTcpApp = FastTcpApp;
/** @internal */
FastTcpApp.__pulumiType = 'f5bigip:index/fastTcpApp:FastTcpApp';
//# sourceMappingURL=fastTcpApp.js.map