SumoLogic

Pulumi Official
Package maintained by Pulumi
v0.7.1 published on Tuesday, Jun 14, 2022 by Pulumi

CseCustomInsight

Provides a Sumo Logic CSE Custom Insight.

Example Usage

using Pulumi;
using SumoLogic = Pulumi.SumoLogic;

class MyStack : Stack
{
    public MyStack()
    {
        var customInsight = new SumoLogic.CseCustomInsight("customInsight", new SumoLogic.CseCustomInsightArgs
        {
            Description = "Insight description",
            Enabled = true,
            Ordered = true,
            RuleIds = 
            {
                "MATCH-S00001",
                "THRESHOLD-U00005",
            },
            Severity = "HIGH",
            SignalNames = 
            {
                "Some Signal Name",
                "Wildcard Signal Name *",
            },
            Tags = 
            {
                "_mitreAttackTactic:TA0009",
            },
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-sumologic/sdk/go/sumologic"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := sumologic.NewCseCustomInsight(ctx, "customInsight", &sumologic.CseCustomInsightArgs{
			Description: pulumi.String("Insight description"),
			Enabled:     pulumi.Bool(true),
			Ordered:     pulumi.Bool(true),
			RuleIds: pulumi.StringArray{
				pulumi.String("MATCH-S00001"),
				pulumi.String("THRESHOLD-U00005"),
			},
			Severity: pulumi.String("HIGH"),
			SignalNames: pulumi.StringArray{
				pulumi.String("Some Signal Name"),
				pulumi.String("Wildcard Signal Name *"),
			},
			Tags: pulumi.StringArray{
				pulumi.String("_mitreAttackTactic:TA0009"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_sumologic as sumologic

custom_insight = sumologic.CseCustomInsight("customInsight",
    description="Insight description",
    enabled=True,
    ordered=True,
    rule_ids=[
        "MATCH-S00001",
        "THRESHOLD-U00005",
    ],
    severity="HIGH",
    signal_names=[
        "Some Signal Name",
        "Wildcard Signal Name *",
    ],
    tags=["_mitreAttackTactic:TA0009"])
import * as pulumi from "@pulumi/pulumi";
import * as sumologic from "@pulumi/sumologic";

const customInsight = new sumologic.CseCustomInsight("custom_insight", {
    description: "Insight description",
    enabled: true,
    ordered: true,
    ruleIds: [
        "MATCH-S00001",
        "THRESHOLD-U00005",
    ],
    severity: "HIGH",
    signalNames: [
        "Some Signal Name",
        "Wildcard Signal Name *",
    ],
    tags: ["_mitreAttackTactic:TA0009"],
});

Coming soon!

Create a CseCustomInsight Resource

new CseCustomInsight(name: string, args: CseCustomInsightArgs, opts?: CustomResourceOptions);
@overload
def CseCustomInsight(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     description: Optional[str] = None,
                     enabled: Optional[bool] = None,
                     name: Optional[str] = None,
                     ordered: Optional[bool] = None,
                     rule_ids: Optional[Sequence[str]] = None,
                     severity: Optional[str] = None,
                     signal_names: Optional[Sequence[str]] = None,
                     tags: Optional[Sequence[str]] = None)
@overload
def CseCustomInsight(resource_name: str,
                     args: CseCustomInsightArgs,
                     opts: Optional[ResourceOptions] = None)
func NewCseCustomInsight(ctx *Context, name string, args CseCustomInsightArgs, opts ...ResourceOption) (*CseCustomInsight, error)
public CseCustomInsight(string name, CseCustomInsightArgs args, CustomResourceOptions? opts = null)
public CseCustomInsight(String name, CseCustomInsightArgs args)
public CseCustomInsight(String name, CseCustomInsightArgs args, CustomResourceOptions options)
type: sumologic:CseCustomInsight
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args CseCustomInsightArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args CseCustomInsightArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args CseCustomInsightArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args CseCustomInsightArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args CseCustomInsightArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

CseCustomInsight Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The CseCustomInsight resource accepts the following input properties:

Description string

The description of the generated Insights

Enabled bool

Whether the Custom Insight should generate Insights

Ordered bool

Whether the signals matching the rule IDs/signal names must be in the same chronological order as they are listed in the Custom Insight

Severity string

The severity of the generated Insights (HIGH, MEDIUM, or LOW)

Tags List<string>

The tags of the generated Insights

Name string

The name of the Custom Insight and the generated Insights

RuleIds List<string>

The Rule IDs to match to generate an Insight (exactly one of rule_ids or signal_names must be specified)

SignalNames List<string>

The Signal names to match to generate an Insight (exactly one of rule_ids or signal_names must be specified)

Description string

The description of the generated Insights

Enabled bool

Whether the Custom Insight should generate Insights

Ordered bool

Whether the signals matching the rule IDs/signal names must be in the same chronological order as they are listed in the Custom Insight

Severity string

The severity of the generated Insights (HIGH, MEDIUM, or LOW)

Tags []string

The tags of the generated Insights

Name string

The name of the Custom Insight and the generated Insights

RuleIds []string

The Rule IDs to match to generate an Insight (exactly one of rule_ids or signal_names must be specified)

SignalNames []string

The Signal names to match to generate an Insight (exactly one of rule_ids or signal_names must be specified)

description String

The description of the generated Insights

enabled Boolean

Whether the Custom Insight should generate Insights

ordered Boolean

Whether the signals matching the rule IDs/signal names must be in the same chronological order as they are listed in the Custom Insight

severity String

The severity of the generated Insights (HIGH, MEDIUM, or LOW)

tags List<String>

The tags of the generated Insights

name String

The name of the Custom Insight and the generated Insights

ruleIds List<String>

The Rule IDs to match to generate an Insight (exactly one of rule_ids or signal_names must be specified)

signalNames List<String>

The Signal names to match to generate an Insight (exactly one of rule_ids or signal_names must be specified)

description string

The description of the generated Insights

enabled boolean

Whether the Custom Insight should generate Insights

ordered boolean

Whether the signals matching the rule IDs/signal names must be in the same chronological order as they are listed in the Custom Insight

severity string

The severity of the generated Insights (HIGH, MEDIUM, or LOW)

tags string[]

The tags of the generated Insights

name string

The name of the Custom Insight and the generated Insights

ruleIds string[]

The Rule IDs to match to generate an Insight (exactly one of rule_ids or signal_names must be specified)

signalNames string[]

The Signal names to match to generate an Insight (exactly one of rule_ids or signal_names must be specified)

description str

The description of the generated Insights

enabled bool

Whether the Custom Insight should generate Insights

ordered bool

Whether the signals matching the rule IDs/signal names must be in the same chronological order as they are listed in the Custom Insight

severity str

The severity of the generated Insights (HIGH, MEDIUM, or LOW)

tags Sequence[str]

The tags of the generated Insights

name str

The name of the Custom Insight and the generated Insights

rule_ids Sequence[str]

The Rule IDs to match to generate an Insight (exactly one of rule_ids or signal_names must be specified)

signal_names Sequence[str]

The Signal names to match to generate an Insight (exactly one of rule_ids or signal_names must be specified)

description String

The description of the generated Insights

enabled Boolean

Whether the Custom Insight should generate Insights

ordered Boolean

Whether the signals matching the rule IDs/signal names must be in the same chronological order as they are listed in the Custom Insight

severity String

The severity of the generated Insights (HIGH, MEDIUM, or LOW)

tags List<String>

The tags of the generated Insights

name String

The name of the Custom Insight and the generated Insights

ruleIds List<String>

The Rule IDs to match to generate an Insight (exactly one of rule_ids or signal_names must be specified)

signalNames List<String>

The Signal names to match to generate an Insight (exactly one of rule_ids or signal_names must be specified)

Outputs

All input properties are implicitly available as output properties. Additionally, the CseCustomInsight resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Id string

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

id string

The provider-assigned unique ID for this managed resource.

id str

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

Look up an Existing CseCustomInsight Resource

Get an existing CseCustomInsight resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: CseCustomInsightState, opts?: CustomResourceOptions): CseCustomInsight
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        description: Optional[str] = None,
        enabled: Optional[bool] = None,
        name: Optional[str] = None,
        ordered: Optional[bool] = None,
        rule_ids: Optional[Sequence[str]] = None,
        severity: Optional[str] = None,
        signal_names: Optional[Sequence[str]] = None,
        tags: Optional[Sequence[str]] = None) -> CseCustomInsight
func GetCseCustomInsight(ctx *Context, name string, id IDInput, state *CseCustomInsightState, opts ...ResourceOption) (*CseCustomInsight, error)
public static CseCustomInsight Get(string name, Input<string> id, CseCustomInsightState? state, CustomResourceOptions? opts = null)
public static CseCustomInsight get(String name, Output<String> id, CseCustomInsightState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Description string

The description of the generated Insights

Enabled bool

Whether the Custom Insight should generate Insights

Name string

The name of the Custom Insight and the generated Insights

Ordered bool

Whether the signals matching the rule IDs/signal names must be in the same chronological order as they are listed in the Custom Insight

RuleIds List<string>

The Rule IDs to match to generate an Insight (exactly one of rule_ids or signal_names must be specified)

Severity string

The severity of the generated Insights (HIGH, MEDIUM, or LOW)

SignalNames List<string>

The Signal names to match to generate an Insight (exactly one of rule_ids or signal_names must be specified)

Tags List<string>

The tags of the generated Insights

Description string

The description of the generated Insights

Enabled bool

Whether the Custom Insight should generate Insights

Name string

The name of the Custom Insight and the generated Insights

Ordered bool

Whether the signals matching the rule IDs/signal names must be in the same chronological order as they are listed in the Custom Insight

RuleIds []string

The Rule IDs to match to generate an Insight (exactly one of rule_ids or signal_names must be specified)

Severity string

The severity of the generated Insights (HIGH, MEDIUM, or LOW)

SignalNames []string

The Signal names to match to generate an Insight (exactly one of rule_ids or signal_names must be specified)

Tags []string

The tags of the generated Insights

description String

The description of the generated Insights

enabled Boolean

Whether the Custom Insight should generate Insights

name String

The name of the Custom Insight and the generated Insights

ordered Boolean

Whether the signals matching the rule IDs/signal names must be in the same chronological order as they are listed in the Custom Insight

ruleIds List<String>

The Rule IDs to match to generate an Insight (exactly one of rule_ids or signal_names must be specified)

severity String

The severity of the generated Insights (HIGH, MEDIUM, or LOW)

signalNames List<String>

The Signal names to match to generate an Insight (exactly one of rule_ids or signal_names must be specified)

tags List<String>

The tags of the generated Insights

description string

The description of the generated Insights

enabled boolean

Whether the Custom Insight should generate Insights

name string

The name of the Custom Insight and the generated Insights

ordered boolean

Whether the signals matching the rule IDs/signal names must be in the same chronological order as they are listed in the Custom Insight

ruleIds string[]

The Rule IDs to match to generate an Insight (exactly one of rule_ids or signal_names must be specified)

severity string

The severity of the generated Insights (HIGH, MEDIUM, or LOW)

signalNames string[]

The Signal names to match to generate an Insight (exactly one of rule_ids or signal_names must be specified)

tags string[]

The tags of the generated Insights

description str

The description of the generated Insights

enabled bool

Whether the Custom Insight should generate Insights

name str

The name of the Custom Insight and the generated Insights

ordered bool

Whether the signals matching the rule IDs/signal names must be in the same chronological order as they are listed in the Custom Insight

rule_ids Sequence[str]

The Rule IDs to match to generate an Insight (exactly one of rule_ids or signal_names must be specified)

severity str

The severity of the generated Insights (HIGH, MEDIUM, or LOW)

signal_names Sequence[str]

The Signal names to match to generate an Insight (exactly one of rule_ids or signal_names must be specified)

tags Sequence[str]

The tags of the generated Insights

description String

The description of the generated Insights

enabled Boolean

Whether the Custom Insight should generate Insights

name String

The name of the Custom Insight and the generated Insights

ordered Boolean

Whether the signals matching the rule IDs/signal names must be in the same chronological order as they are listed in the Custom Insight

ruleIds List<String>

The Rule IDs to match to generate an Insight (exactly one of rule_ids or signal_names must be specified)

severity String

The severity of the generated Insights (HIGH, MEDIUM, or LOW)

signalNames List<String>

The Signal names to match to generate an Insight (exactly one of rule_ids or signal_names must be specified)

tags List<String>

The tags of the generated Insights

Import

Custom Insights can be imported using the field id, e.g.hcl

 $ pulumi import sumologic:index/cseCustomInsight:CseCustomInsight custom_insight id

Package Details

Repository
https://github.com/pulumi/pulumi-sumologic
License
Apache-2.0
Notes

This Pulumi package is based on the sumologic Terraform Provider.