UNPKG

@pulumi/sumologic

Version:

A Pulumi package for creating and managing sumologic cloud resources.

103 lines 4.35 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.CseMatchList = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Provides a Sumologic CSE Match List. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as sumologic from "@pulumi/sumologic"; * * const matchList = new sumologic.CseMatchList("match_list", { * defaultTtl: 10800, * description: "Match list description", * name: "Match list name", * targetColumn: "SrcIp", * items: [{ * description: "IP address", * value: "192.168.0.1", * expiration: "2022-02-27T04:00:00", * }], * }); * ``` * * ## Import * * Match List can be imported using the field id, e.g.: * * hcl * * ```sh * $ pulumi import sumologic:index/cseMatchList:CseMatchList match_list id * ``` */ class CseMatchList extends pulumi.CustomResource { /** * Get an existing CseMatchList 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 CseMatchList(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of CseMatchList. 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'] === CseMatchList.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["created"] = state ? state.created : undefined; resourceInputs["createdBy"] = state ? state.createdBy : undefined; resourceInputs["defaultTtl"] = state ? state.defaultTtl : undefined; resourceInputs["description"] = state ? state.description : undefined; resourceInputs["items"] = state ? state.items : undefined; resourceInputs["lastUpdated"] = state ? state.lastUpdated : undefined; resourceInputs["lastUpdatedBy"] = state ? state.lastUpdatedBy : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["targetColumn"] = state ? state.targetColumn : undefined; } else { const args = argsOrState; if ((!args || args.description === undefined) && !opts.urn) { throw new Error("Missing required property 'description'"); } if ((!args || args.targetColumn === undefined) && !opts.urn) { throw new Error("Missing required property 'targetColumn'"); } resourceInputs["defaultTtl"] = args ? args.defaultTtl : undefined; resourceInputs["description"] = args ? args.description : undefined; resourceInputs["items"] = args ? args.items : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["targetColumn"] = args ? args.targetColumn : undefined; resourceInputs["created"] = undefined /*out*/; resourceInputs["createdBy"] = undefined /*out*/; resourceInputs["lastUpdated"] = undefined /*out*/; resourceInputs["lastUpdatedBy"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(CseMatchList.__pulumiType, name, resourceInputs, opts); } } exports.CseMatchList = CseMatchList; /** @internal */ CseMatchList.__pulumiType = 'sumologic:index/cseMatchList:CseMatchList'; //# sourceMappingURL=cseMatchList.js.map