@pulumi/f5bigip
Version:
A Pulumi package for creating and managing F5 BigIP resources.
107 lines • 5.58 kB
JavaScript
;
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.IApp = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* `f5bigip.sys.IApp` resource helps you to deploy Application Services template that can be used to automate and orchestrate Layer 4-7 applications service deployments using F5 Network.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as f5bigip from "@pulumi/f5bigip";
* import * as std from "@pulumi/std";
*
* const simplehttp = new f5bigip.sys.IApp("simplehttp", {
* name: "simplehttp",
* jsonfile: std.file({
* input: "simplehttp.json",
* }).then(invoke => invoke.result),
* });
* ```
*
* ### Json File
*/
class IApp extends pulumi.CustomResource {
/**
* Get an existing IApp 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 IApp(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of IApp. 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'] === IApp.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["description"] = state ? state.description : undefined;
resourceInputs["devicegroup"] = state ? state.devicegroup : undefined;
resourceInputs["executeAction"] = state ? state.executeAction : undefined;
resourceInputs["inheritedDevicegroup"] = state ? state.inheritedDevicegroup : undefined;
resourceInputs["inheritedTrafficGroup"] = state ? state.inheritedTrafficGroup : undefined;
resourceInputs["jsonfile"] = state ? state.jsonfile : undefined;
resourceInputs["lists"] = state ? state.lists : undefined;
resourceInputs["metadatas"] = state ? state.metadatas : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["partition"] = state ? state.partition : undefined;
resourceInputs["strictUpdates"] = state ? state.strictUpdates : undefined;
resourceInputs["tables"] = state ? state.tables : undefined;
resourceInputs["template"] = state ? state.template : undefined;
resourceInputs["templateModified"] = state ? state.templateModified : undefined;
resourceInputs["templatePrerequisiteErrors"] = state ? state.templatePrerequisiteErrors : undefined;
resourceInputs["trafficGroup"] = state ? state.trafficGroup : undefined;
resourceInputs["variables"] = state ? state.variables : undefined;
}
else {
const args = argsOrState;
if ((!args || args.jsonfile === undefined) && !opts.urn) {
throw new Error("Missing required property 'jsonfile'");
}
if ((!args || args.name === undefined) && !opts.urn) {
throw new Error("Missing required property 'name'");
}
resourceInputs["description"] = args ? args.description : undefined;
resourceInputs["devicegroup"] = args ? args.devicegroup : undefined;
resourceInputs["executeAction"] = args ? args.executeAction : undefined;
resourceInputs["inheritedDevicegroup"] = args ? args.inheritedDevicegroup : undefined;
resourceInputs["inheritedTrafficGroup"] = args ? args.inheritedTrafficGroup : undefined;
resourceInputs["jsonfile"] = args ? args.jsonfile : undefined;
resourceInputs["lists"] = args ? args.lists : undefined;
resourceInputs["metadatas"] = args ? args.metadatas : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["partition"] = args ? args.partition : undefined;
resourceInputs["strictUpdates"] = args ? args.strictUpdates : undefined;
resourceInputs["tables"] = args ? args.tables : undefined;
resourceInputs["template"] = args ? args.template : undefined;
resourceInputs["templateModified"] = args ? args.templateModified : undefined;
resourceInputs["templatePrerequisiteErrors"] = args ? args.templatePrerequisiteErrors : undefined;
resourceInputs["trafficGroup"] = args ? args.trafficGroup : undefined;
resourceInputs["variables"] = args ? args.variables : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(IApp.__pulumiType, name, resourceInputs, opts);
}
}
exports.IApp = IApp;
/** @internal */
IApp.__pulumiType = 'f5bigip:sys/iApp:IApp';
//# sourceMappingURL=iapp.js.map