@pulumi/sumologic
Version:
A Pulumi package for creating and managing sumologic cloud resources.
96 lines • 4.61 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.CseEntityEntityGroupConfiguration = 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 entityEntityGroupConfiguration = new sumologic.CseEntityEntityGroupConfiguration("entity_entity_group_configuration", {
* criticality: "HIGH",
* description: "Entity Group description",
* entityNamespace: "namespace",
* entityType: "_hostname",
* name: "Hostaname entity group configuration",
* suffix: "red.co",
* suppressed: true,
* tags: ["tag"],
* });
* ```
*
* ## Import
*
* Entity Entity Group Configuration can be imported using the field id, e.g.:
*
* hcl
*
* ```sh
* $ pulumi import sumologic:index/cseEntityEntityGroupConfiguration:CseEntityEntityGroupConfiguration entity_entity_group_configuration id
* ```
*/
class CseEntityEntityGroupConfiguration extends pulumi.CustomResource {
/**
* Get an existing CseEntityEntityGroupConfiguration 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 CseEntityEntityGroupConfiguration(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of CseEntityEntityGroupConfiguration. 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'] === CseEntityEntityGroupConfiguration.__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["entityNamespace"] = state ? state.entityNamespace : undefined;
resourceInputs["entityType"] = state ? state.entityType : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["networkBlock"] = state ? state.networkBlock : undefined;
resourceInputs["prefix"] = state ? state.prefix : undefined;
resourceInputs["suffix"] = state ? state.suffix : undefined;
resourceInputs["suppressed"] = state ? state.suppressed : undefined;
resourceInputs["tags"] = state ? state.tags : undefined;
}
else {
const args = argsOrState;
resourceInputs["criticality"] = args ? args.criticality : undefined;
resourceInputs["description"] = args ? args.description : undefined;
resourceInputs["entityNamespace"] = args ? args.entityNamespace : undefined;
resourceInputs["entityType"] = args ? args.entityType : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["networkBlock"] = args ? args.networkBlock : undefined;
resourceInputs["prefix"] = args ? args.prefix : undefined;
resourceInputs["suffix"] = args ? args.suffix : undefined;
resourceInputs["suppressed"] = args ? args.suppressed : undefined;
resourceInputs["tags"] = args ? args.tags : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(CseEntityEntityGroupConfiguration.__pulumiType, name, resourceInputs, opts);
}
}
exports.CseEntityEntityGroupConfiguration = CseEntityEntityGroupConfiguration;
/** @internal */
CseEntityEntityGroupConfiguration.__pulumiType = 'sumologic:index/cseEntityEntityGroupConfiguration:CseEntityEntityGroupConfiguration';
//# sourceMappingURL=cseEntityEntityGroupConfiguration.js.map