@pulumiverse/fortios
Version:
A Pulumi package for creating and managing Fortios resources. Based on terraform-provider-fortios: version v1.16.0
104 lines • 4.37 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.Objecttagging = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Configure object tagging.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as fortios from "@pulumiverse/fortios";
*
* const trname = new fortios.system.Objecttagging("trname", {
* address: "disable",
* category: "s1",
* color: 0,
* device: "mandatory",
* "interface": "disable",
* multiple: "enable",
* });
* ```
*
* ## Import
*
* System ObjectTagging can be imported using any of these accepted formats:
*
* ```sh
* $ pulumi import fortios:system/objecttagging:Objecttagging labelname {{category}}
* ```
*
* If you do not want to import arguments of block:
*
* $ export "FORTIOS_IMPORT_TABLE"="false"
*
* ```sh
* $ pulumi import fortios:system/objecttagging:Objecttagging labelname {{category}}
* ```
*
* $ unset "FORTIOS_IMPORT_TABLE"
*/
class Objecttagging extends pulumi.CustomResource {
/**
* Get an existing Objecttagging 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 Objecttagging(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of Objecttagging. 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'] === Objecttagging.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["address"] = state ? state.address : undefined;
resourceInputs["category"] = state ? state.category : undefined;
resourceInputs["color"] = state ? state.color : undefined;
resourceInputs["device"] = state ? state.device : undefined;
resourceInputs["dynamicSortSubtable"] = state ? state.dynamicSortSubtable : undefined;
resourceInputs["getAllTables"] = state ? state.getAllTables : undefined;
resourceInputs["interface"] = state ? state.interface : undefined;
resourceInputs["multiple"] = state ? state.multiple : undefined;
resourceInputs["tags"] = state ? state.tags : undefined;
resourceInputs["vdomparam"] = state ? state.vdomparam : undefined;
}
else {
const args = argsOrState;
resourceInputs["address"] = args ? args.address : undefined;
resourceInputs["category"] = args ? args.category : undefined;
resourceInputs["color"] = args ? args.color : undefined;
resourceInputs["device"] = args ? args.device : undefined;
resourceInputs["dynamicSortSubtable"] = args ? args.dynamicSortSubtable : undefined;
resourceInputs["getAllTables"] = args ? args.getAllTables : undefined;
resourceInputs["interface"] = args ? args.interface : undefined;
resourceInputs["multiple"] = args ? args.multiple : undefined;
resourceInputs["tags"] = args ? args.tags : undefined;
resourceInputs["vdomparam"] = args ? args.vdomparam : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(Objecttagging.__pulumiType, name, resourceInputs, opts);
}
}
exports.Objecttagging = Objecttagging;
/** @internal */
Objecttagging.__pulumiType = 'fortios:system/objecttagging:Objecttagging';
//# sourceMappingURL=objecttagging.js.map
;