@lubyou/pulumi-fortios
Version:
A Pulumi package for creating and managing fortios cloud resources.
77 lines • 4.7 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.SwitchControllerLldpProfile = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
class SwitchControllerLldpProfile extends pulumi.CustomResource {
/**
* Get an existing SwitchControllerLldpProfile 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 SwitchControllerLldpProfile(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of SwitchControllerLldpProfile. 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'] === SwitchControllerLldpProfile.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["autoIsl"] = state ? state.autoIsl : undefined;
resourceInputs["autoIslHelloTimer"] = state ? state.autoIslHelloTimer : undefined;
resourceInputs["autoIslPortGroup"] = state ? state.autoIslPortGroup : undefined;
resourceInputs["autoIslReceiveTimeout"] = state ? state.autoIslReceiveTimeout : undefined;
resourceInputs["autoMclagIcl"] = state ? state.autoMclagIcl : undefined;
resourceInputs["customTlvs"] = state ? state.customTlvs : undefined;
resourceInputs["dynamicSortSubtable"] = state ? state.dynamicSortSubtable : undefined;
resourceInputs["getAllTables"] = state ? state.getAllTables : undefined;
resourceInputs["medLocationServices"] = state ? state.medLocationServices : undefined;
resourceInputs["medNetworkPolicies"] = state ? state.medNetworkPolicies : undefined;
resourceInputs["medTlvs"] = state ? state.medTlvs : undefined;
resourceInputs["n8021Tlvs"] = state ? state.n8021Tlvs : undefined;
resourceInputs["n8023Tlvs"] = state ? state.n8023Tlvs : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["vdomparam"] = state ? state.vdomparam : undefined;
}
else {
const args = argsOrState;
resourceInputs["autoIsl"] = args ? args.autoIsl : undefined;
resourceInputs["autoIslHelloTimer"] = args ? args.autoIslHelloTimer : undefined;
resourceInputs["autoIslPortGroup"] = args ? args.autoIslPortGroup : undefined;
resourceInputs["autoIslReceiveTimeout"] = args ? args.autoIslReceiveTimeout : undefined;
resourceInputs["autoMclagIcl"] = args ? args.autoMclagIcl : undefined;
resourceInputs["customTlvs"] = args ? args.customTlvs : undefined;
resourceInputs["dynamicSortSubtable"] = args ? args.dynamicSortSubtable : undefined;
resourceInputs["getAllTables"] = args ? args.getAllTables : undefined;
resourceInputs["medLocationServices"] = args ? args.medLocationServices : undefined;
resourceInputs["medNetworkPolicies"] = args ? args.medNetworkPolicies : undefined;
resourceInputs["medTlvs"] = args ? args.medTlvs : undefined;
resourceInputs["n8021Tlvs"] = args ? args.n8021Tlvs : undefined;
resourceInputs["n8023Tlvs"] = args ? args.n8023Tlvs : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["vdomparam"] = args ? args.vdomparam : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(SwitchControllerLldpProfile.__pulumiType, name, resourceInputs, opts);
}
}
exports.SwitchControllerLldpProfile = SwitchControllerLldpProfile;
/** @internal */
SwitchControllerLldpProfile.__pulumiType = 'fortios:index/switchControllerLldpProfile:SwitchControllerLldpProfile';
//# sourceMappingURL=switchControllerLldpProfile.js.map