@pulumi/f5bigip
Version:
A Pulumi package for creating and managing F5 BigIP resources.
120 lines • 7.62 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.VirtualServer = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* `f5bigip.ltm.VirtualServer` Configures Virtual Server
*
* For resources should be named with their `full path`. The full path is the combination of the `partition + name` of the resource (example: `/Common/test-virtualserver` ) or `partition + directory + name` of the resource (example: `/Common/test/test-virtualserver` ).
* When including directory in `fullpath` we have to make sure it is created in the given partition before using it.
*
* ## Importing
*
* An existing virtual-server can be imported into this resource by supplying virtual-server Name in `full path` as `id`.
* An example is below:
* ```sh
* $ terraform import bigip_ltm_virtual_server.http /Common/terraform_vs_http
* ```
*/
class VirtualServer extends pulumi.CustomResource {
/**
* Get an existing VirtualServer 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 VirtualServer(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of VirtualServer. 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'] === VirtualServer.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["clientProfiles"] = state ? state.clientProfiles : undefined;
resourceInputs["defaultPersistenceProfile"] = state ? state.defaultPersistenceProfile : undefined;
resourceInputs["description"] = state ? state.description : undefined;
resourceInputs["destination"] = state ? state.destination : undefined;
resourceInputs["fallbackPersistenceProfile"] = state ? state.fallbackPersistenceProfile : undefined;
resourceInputs["firewallEnforcedPolicy"] = state ? state.firewallEnforcedPolicy : undefined;
resourceInputs["ipProtocol"] = state ? state.ipProtocol : undefined;
resourceInputs["irules"] = state ? state.irules : undefined;
resourceInputs["mask"] = state ? state.mask : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["perFlowRequestAccessPolicy"] = state ? state.perFlowRequestAccessPolicy : undefined;
resourceInputs["persistenceProfiles"] = state ? state.persistenceProfiles : undefined;
resourceInputs["policies"] = state ? state.policies : undefined;
resourceInputs["pool"] = state ? state.pool : undefined;
resourceInputs["port"] = state ? state.port : undefined;
resourceInputs["profiles"] = state ? state.profiles : undefined;
resourceInputs["securityLogProfiles"] = state ? state.securityLogProfiles : undefined;
resourceInputs["serverProfiles"] = state ? state.serverProfiles : undefined;
resourceInputs["snatpool"] = state ? state.snatpool : undefined;
resourceInputs["source"] = state ? state.source : undefined;
resourceInputs["sourceAddressTranslation"] = state ? state.sourceAddressTranslation : undefined;
resourceInputs["sourcePort"] = state ? state.sourcePort : undefined;
resourceInputs["state"] = state ? state.state : undefined;
resourceInputs["trafficmatchingCriteria"] = state ? state.trafficmatchingCriteria : undefined;
resourceInputs["translateAddress"] = state ? state.translateAddress : undefined;
resourceInputs["translatePort"] = state ? state.translatePort : undefined;
resourceInputs["vlans"] = state ? state.vlans : undefined;
resourceInputs["vlansEnabled"] = state ? state.vlansEnabled : undefined;
}
else {
const args = argsOrState;
if ((!args || args.name === undefined) && !opts.urn) {
throw new Error("Missing required property 'name'");
}
resourceInputs["clientProfiles"] = args ? args.clientProfiles : undefined;
resourceInputs["defaultPersistenceProfile"] = args ? args.defaultPersistenceProfile : undefined;
resourceInputs["description"] = args ? args.description : undefined;
resourceInputs["destination"] = args ? args.destination : undefined;
resourceInputs["fallbackPersistenceProfile"] = args ? args.fallbackPersistenceProfile : undefined;
resourceInputs["firewallEnforcedPolicy"] = args ? args.firewallEnforcedPolicy : undefined;
resourceInputs["ipProtocol"] = args ? args.ipProtocol : undefined;
resourceInputs["irules"] = args ? args.irules : undefined;
resourceInputs["mask"] = args ? args.mask : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["perFlowRequestAccessPolicy"] = args ? args.perFlowRequestAccessPolicy : undefined;
resourceInputs["persistenceProfiles"] = args ? args.persistenceProfiles : undefined;
resourceInputs["policies"] = args ? args.policies : undefined;
resourceInputs["pool"] = args ? args.pool : undefined;
resourceInputs["port"] = args ? args.port : undefined;
resourceInputs["profiles"] = args ? args.profiles : undefined;
resourceInputs["securityLogProfiles"] = args ? args.securityLogProfiles : undefined;
resourceInputs["serverProfiles"] = args ? args.serverProfiles : undefined;
resourceInputs["snatpool"] = args ? args.snatpool : undefined;
resourceInputs["source"] = args ? args.source : undefined;
resourceInputs["sourceAddressTranslation"] = args ? args.sourceAddressTranslation : undefined;
resourceInputs["sourcePort"] = args ? args.sourcePort : undefined;
resourceInputs["state"] = args ? args.state : undefined;
resourceInputs["trafficmatchingCriteria"] = args ? args.trafficmatchingCriteria : undefined;
resourceInputs["translateAddress"] = args ? args.translateAddress : undefined;
resourceInputs["translatePort"] = args ? args.translatePort : undefined;
resourceInputs["vlans"] = args ? args.vlans : undefined;
resourceInputs["vlansEnabled"] = args ? args.vlansEnabled : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(VirtualServer.__pulumiType, name, resourceInputs, opts);
}
}
exports.VirtualServer = VirtualServer;
/** @internal */
VirtualServer.__pulumiType = 'f5bigip:ltm/virtualServer:VirtualServer';
//# sourceMappingURL=virtualServer.js.map