UNPKG

@pulumi/sumologic

Version:

A Pulumi package for creating and managing sumologic cloud resources.

107 lines 5.44 kB
"use strict"; // *** 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.CseInventoryEntityGroupConfiguration = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as sumologic from "@pulumi/sumologic"; * * const inventoryEntityGroupConfiguration = new sumologic.CseInventoryEntityGroupConfiguration("inventory_entity_group_configuration", { * criticality: "HIGH", * description: "Inventory entity group description", * inventoryType: "username", * inventorySource: "Active Directory", * inventoryKey: "groups", * inventoryValue: "http_servers", * name: "Inventory entity group configuration", * suppressed: false, * tags: ["tag"], * }); * ``` * * ## Import * * Inventory Entity Group Configuration can be imported using the field id, e.g.: * * hcl * * ```sh * $ pulumi import sumologic:index/cseInventoryEntityGroupConfiguration:CseInventoryEntityGroupConfiguration inventory_entity_group_configuration id * ``` */ class CseInventoryEntityGroupConfiguration extends pulumi.CustomResource { /** * Get an existing CseInventoryEntityGroupConfiguration 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 CseInventoryEntityGroupConfiguration(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of CseInventoryEntityGroupConfiguration. 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'] === CseInventoryEntityGroupConfiguration.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["criticality"] = state ? state.criticality : undefined; resourceInputs["description"] = state ? state.description : undefined; resourceInputs["dynamicTags"] = state ? state.dynamicTags : undefined; resourceInputs["group"] = state ? state.group : undefined; resourceInputs["inventoryKey"] = state ? state.inventoryKey : undefined; resourceInputs["inventorySource"] = state ? state.inventorySource : undefined; resourceInputs["inventoryType"] = state ? state.inventoryType : undefined; resourceInputs["inventoryValue"] = state ? state.inventoryValue : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["suppressed"] = state ? state.suppressed : undefined; resourceInputs["tagSchema"] = state ? state.tagSchema : undefined; resourceInputs["tags"] = state ? state.tags : undefined; } else { const args = argsOrState; if ((!args || args.inventorySource === undefined) && !opts.urn) { throw new Error("Missing required property 'inventorySource'"); } if ((!args || args.inventoryType === undefined) && !opts.urn) { throw new Error("Missing required property 'inventoryType'"); } resourceInputs["criticality"] = args ? args.criticality : undefined; resourceInputs["description"] = args ? args.description : undefined; resourceInputs["dynamicTags"] = args ? args.dynamicTags : undefined; resourceInputs["group"] = args ? args.group : undefined; resourceInputs["inventoryKey"] = args ? args.inventoryKey : undefined; resourceInputs["inventorySource"] = args ? args.inventorySource : undefined; resourceInputs["inventoryType"] = args ? args.inventoryType : undefined; resourceInputs["inventoryValue"] = args ? args.inventoryValue : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["suppressed"] = args ? args.suppressed : undefined; resourceInputs["tagSchema"] = args ? args.tagSchema : undefined; resourceInputs["tags"] = args ? args.tags : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(CseInventoryEntityGroupConfiguration.__pulumiType, name, resourceInputs, opts); } } exports.CseInventoryEntityGroupConfiguration = CseInventoryEntityGroupConfiguration; /** @internal */ CseInventoryEntityGroupConfiguration.__pulumiType = 'sumologic:index/cseInventoryEntityGroupConfiguration:CseInventoryEntityGroupConfiguration'; //# sourceMappingURL=cseInventoryEntityGroupConfiguration.js.map