1. Packages
  2. Sumologic Provider
  3. API Docs
  4. CseMatchList
Sumo Logic v1.0.7 published on Friday, Apr 11, 2025 by Pulumi

sumologic.CseMatchList

Explore with Pulumi AI

Provides a Sumologic CSE Match List.

Example Usage

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",
    }],
});
Copy
import pulumi
import pulumi_sumologic as sumologic

match_list = sumologic.CseMatchList("match_list",
    default_ttl=10800,
    description="Match list description",
    name="Match list name",
    target_column="SrcIp",
    items=[{
        "description": "IP address",
        "value": "192.168.0.1",
        "expiration": "2022-02-27T04:00:00",
    }])
Copy
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.NewCseMatchList(ctx, "match_list", &sumologic.CseMatchListArgs{
			DefaultTtl:   pulumi.Int(10800),
			Description:  pulumi.String("Match list description"),
			Name:         pulumi.String("Match list name"),
			TargetColumn: pulumi.String("SrcIp"),
			Items: sumologic.CseMatchListItemArray{
				&sumologic.CseMatchListItemArgs{
					Description: pulumi.String("IP address"),
					Value:       pulumi.String("192.168.0.1"),
					Expiration:  pulumi.String("2022-02-27T04:00:00"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using SumoLogic = Pulumi.SumoLogic;

return await Deployment.RunAsync(() => 
{
    var matchList = new SumoLogic.CseMatchList("match_list", new()
    {
        DefaultTtl = 10800,
        Description = "Match list description",
        Name = "Match list name",
        TargetColumn = "SrcIp",
        Items = new[]
        {
            new SumoLogic.Inputs.CseMatchListItemArgs
            {
                Description = "IP address",
                Value = "192.168.0.1",
                Expiration = "2022-02-27T04:00:00",
            },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.sumologic.CseMatchList;
import com.pulumi.sumologic.CseMatchListArgs;
import com.pulumi.sumologic.inputs.CseMatchListItemArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var matchList = new CseMatchList("matchList", CseMatchListArgs.builder()
            .defaultTtl(10800)
            .description("Match list description")
            .name("Match list name")
            .targetColumn("SrcIp")
            .items(CseMatchListItemArgs.builder()
                .description("IP address")
                .value("192.168.0.1")
                .expiration("2022-02-27T04:00:00")
                .build())
            .build());

    }
}
Copy
resources:
  matchList:
    type: sumologic:CseMatchList
    name: match_list
    properties:
      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
Copy

Create CseMatchList Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new CseMatchList(name: string, args: CseMatchListArgs, opts?: CustomResourceOptions);
@overload
def CseMatchList(resource_name: str,
                 args: CseMatchListArgs,
                 opts: Optional[ResourceOptions] = None)

@overload
def CseMatchList(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 description: Optional[str] = None,
                 target_column: Optional[str] = None,
                 default_ttl: Optional[int] = None,
                 items: Optional[Sequence[CseMatchListItemArgs]] = None,
                 name: Optional[str] = None)
func NewCseMatchList(ctx *Context, name string, args CseMatchListArgs, opts ...ResourceOption) (*CseMatchList, error)
public CseMatchList(string name, CseMatchListArgs args, CustomResourceOptions? opts = null)
public CseMatchList(String name, CseMatchListArgs args)
public CseMatchList(String name, CseMatchListArgs args, CustomResourceOptions options)
type: sumologic:CseMatchList
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

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

Constructor example

The following reference example uses placeholder values for all input properties.

var cseMatchListResource = new SumoLogic.CseMatchList("cseMatchListResource", new()
{
    Description = "string",
    TargetColumn = "string",
    DefaultTtl = 0,
    Items = new[]
    {
        new SumoLogic.Inputs.CseMatchListItemArgs
        {
            Description = "string",
            Value = "string",
            Expiration = "string",
            Id = "string",
        },
    },
    Name = "string",
});
Copy
example, err := sumologic.NewCseMatchList(ctx, "cseMatchListResource", &sumologic.CseMatchListArgs{
	Description:  pulumi.String("string"),
	TargetColumn: pulumi.String("string"),
	DefaultTtl:   pulumi.Int(0),
	Items: sumologic.CseMatchListItemArray{
		&sumologic.CseMatchListItemArgs{
			Description: pulumi.String("string"),
			Value:       pulumi.String("string"),
			Expiration:  pulumi.String("string"),
			Id:          pulumi.String("string"),
		},
	},
	Name: pulumi.String("string"),
})
Copy
var cseMatchListResource = new CseMatchList("cseMatchListResource", CseMatchListArgs.builder()
    .description("string")
    .targetColumn("string")
    .defaultTtl(0)
    .items(CseMatchListItemArgs.builder()
        .description("string")
        .value("string")
        .expiration("string")
        .id("string")
        .build())
    .name("string")
    .build());
Copy
cse_match_list_resource = sumologic.CseMatchList("cseMatchListResource",
    description="string",
    target_column="string",
    default_ttl=0,
    items=[{
        "description": "string",
        "value": "string",
        "expiration": "string",
        "id": "string",
    }],
    name="string")
Copy
const cseMatchListResource = new sumologic.CseMatchList("cseMatchListResource", {
    description: "string",
    targetColumn: "string",
    defaultTtl: 0,
    items: [{
        description: "string",
        value: "string",
        expiration: "string",
        id: "string",
    }],
    name: "string",
});
Copy
type: sumologic:CseMatchList
properties:
    defaultTtl: 0
    description: string
    items:
        - description: string
          expiration: string
          id: string
          value: string
    name: string
    targetColumn: string
Copy

CseMatchList Resource Properties

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

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The CseMatchList resource accepts the following input properties:

Description This property is required. string
Match list description.
TargetColumn This property is required. string
Target column. (possible values: Hostname, FileHash, Url, SrcIp, DstIp, Domain, Username, Ip, Asn, Isp, Org, SrcAsn, SrcIsp, SrcOrg, DstAsn, DstIsp, DstOrg or any custom column.)
DefaultTtl int
The default time to live for match list items added through the UI. Specified in seconds.
Items List<Pulumi.SumoLogic.Inputs.CseMatchListItem>
Name string
Match list name.
Description This property is required. string
Match list description.
TargetColumn This property is required. string
Target column. (possible values: Hostname, FileHash, Url, SrcIp, DstIp, Domain, Username, Ip, Asn, Isp, Org, SrcAsn, SrcIsp, SrcOrg, DstAsn, DstIsp, DstOrg or any custom column.)
DefaultTtl int
The default time to live for match list items added through the UI. Specified in seconds.
Items []CseMatchListItemArgs
Name string
Match list name.
description This property is required. String
Match list description.
targetColumn This property is required. String
Target column. (possible values: Hostname, FileHash, Url, SrcIp, DstIp, Domain, Username, Ip, Asn, Isp, Org, SrcAsn, SrcIsp, SrcOrg, DstAsn, DstIsp, DstOrg or any custom column.)
defaultTtl Integer
The default time to live for match list items added through the UI. Specified in seconds.
items List<CseMatchListItem>
name String
Match list name.
description This property is required. string
Match list description.
targetColumn This property is required. string
Target column. (possible values: Hostname, FileHash, Url, SrcIp, DstIp, Domain, Username, Ip, Asn, Isp, Org, SrcAsn, SrcIsp, SrcOrg, DstAsn, DstIsp, DstOrg or any custom column.)
defaultTtl number
The default time to live for match list items added through the UI. Specified in seconds.
items CseMatchListItem[]
name string
Match list name.
description This property is required. str
Match list description.
target_column This property is required. str
Target column. (possible values: Hostname, FileHash, Url, SrcIp, DstIp, Domain, Username, Ip, Asn, Isp, Org, SrcAsn, SrcIsp, SrcOrg, DstAsn, DstIsp, DstOrg or any custom column.)
default_ttl int
The default time to live for match list items added through the UI. Specified in seconds.
items Sequence[CseMatchListItemArgs]
name str
Match list name.
description This property is required. String
Match list description.
targetColumn This property is required. String
Target column. (possible values: Hostname, FileHash, Url, SrcIp, DstIp, Domain, Username, Ip, Asn, Isp, Org, SrcAsn, SrcIsp, SrcOrg, DstAsn, DstIsp, DstOrg or any custom column.)
defaultTtl Number
The default time to live for match list items added through the UI. Specified in seconds.
items List<Property Map>
name String
Match list name.

Outputs

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

Created string
CreatedBy string
Id string
The provider-assigned unique ID for this managed resource.
LastUpdated string
LastUpdatedBy string
Created string
CreatedBy string
Id string
The provider-assigned unique ID for this managed resource.
LastUpdated string
LastUpdatedBy string
created String
createdBy String
id String
The provider-assigned unique ID for this managed resource.
lastUpdated String
lastUpdatedBy String
created string
createdBy string
id string
The provider-assigned unique ID for this managed resource.
lastUpdated string
lastUpdatedBy string
created str
created_by str
id str
The provider-assigned unique ID for this managed resource.
last_updated str
last_updated_by str
created String
createdBy String
id String
The provider-assigned unique ID for this managed resource.
lastUpdated String
lastUpdatedBy String

Look up Existing CseMatchList Resource

Get an existing CseMatchList 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?: CseMatchListState, opts?: CustomResourceOptions): CseMatchList
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        created: Optional[str] = None,
        created_by: Optional[str] = None,
        default_ttl: Optional[int] = None,
        description: Optional[str] = None,
        items: Optional[Sequence[CseMatchListItemArgs]] = None,
        last_updated: Optional[str] = None,
        last_updated_by: Optional[str] = None,
        name: Optional[str] = None,
        target_column: Optional[str] = None) -> CseMatchList
func GetCseMatchList(ctx *Context, name string, id IDInput, state *CseMatchListState, opts ...ResourceOption) (*CseMatchList, error)
public static CseMatchList Get(string name, Input<string> id, CseMatchListState? state, CustomResourceOptions? opts = null)
public static CseMatchList get(String name, Output<String> id, CseMatchListState state, CustomResourceOptions options)
resources:  _:    type: sumologic:CseMatchList    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
Created string
CreatedBy string
DefaultTtl int
The default time to live for match list items added through the UI. Specified in seconds.
Description string
Match list description.
Items List<Pulumi.SumoLogic.Inputs.CseMatchListItem>
LastUpdated string
LastUpdatedBy string
Name string
Match list name.
TargetColumn string
Target column. (possible values: Hostname, FileHash, Url, SrcIp, DstIp, Domain, Username, Ip, Asn, Isp, Org, SrcAsn, SrcIsp, SrcOrg, DstAsn, DstIsp, DstOrg or any custom column.)
Created string
CreatedBy string
DefaultTtl int
The default time to live for match list items added through the UI. Specified in seconds.
Description string
Match list description.
Items []CseMatchListItemArgs
LastUpdated string
LastUpdatedBy string
Name string
Match list name.
TargetColumn string
Target column. (possible values: Hostname, FileHash, Url, SrcIp, DstIp, Domain, Username, Ip, Asn, Isp, Org, SrcAsn, SrcIsp, SrcOrg, DstAsn, DstIsp, DstOrg or any custom column.)
created String
createdBy String
defaultTtl Integer
The default time to live for match list items added through the UI. Specified in seconds.
description String
Match list description.
items List<CseMatchListItem>
lastUpdated String
lastUpdatedBy String
name String
Match list name.
targetColumn String
Target column. (possible values: Hostname, FileHash, Url, SrcIp, DstIp, Domain, Username, Ip, Asn, Isp, Org, SrcAsn, SrcIsp, SrcOrg, DstAsn, DstIsp, DstOrg or any custom column.)
created string
createdBy string
defaultTtl number
The default time to live for match list items added through the UI. Specified in seconds.
description string
Match list description.
items CseMatchListItem[]
lastUpdated string
lastUpdatedBy string
name string
Match list name.
targetColumn string
Target column. (possible values: Hostname, FileHash, Url, SrcIp, DstIp, Domain, Username, Ip, Asn, Isp, Org, SrcAsn, SrcIsp, SrcOrg, DstAsn, DstIsp, DstOrg or any custom column.)
created str
created_by str
default_ttl int
The default time to live for match list items added through the UI. Specified in seconds.
description str
Match list description.
items Sequence[CseMatchListItemArgs]
last_updated str
last_updated_by str
name str
Match list name.
target_column str
Target column. (possible values: Hostname, FileHash, Url, SrcIp, DstIp, Domain, Username, Ip, Asn, Isp, Org, SrcAsn, SrcIsp, SrcOrg, DstAsn, DstIsp, DstOrg or any custom column.)
created String
createdBy String
defaultTtl Number
The default time to live for match list items added through the UI. Specified in seconds.
description String
Match list description.
items List<Property Map>
lastUpdated String
lastUpdatedBy String
name String
Match list name.
targetColumn String
Target column. (possible values: Hostname, FileHash, Url, SrcIp, DstIp, Domain, Username, Ip, Asn, Isp, Org, SrcAsn, SrcIsp, SrcOrg, DstAsn, DstIsp, DstOrg or any custom column.)

Supporting Types

CseMatchListItem
, CseMatchListItemArgs

Description This property is required. string
Match list description.
Value This property is required. string
Match list item value.
Expiration string

Match list item expiration. (Format: YYYY-MM-DDTHH:mm:ss)

The following attributes are exported:

Id string
The internal ID of the match list.
Description This property is required. string
Match list description.
Value This property is required. string
Match list item value.
Expiration string

Match list item expiration. (Format: YYYY-MM-DDTHH:mm:ss)

The following attributes are exported:

Id string
The internal ID of the match list.
description This property is required. String
Match list description.
value This property is required. String
Match list item value.
expiration String

Match list item expiration. (Format: YYYY-MM-DDTHH:mm:ss)

The following attributes are exported:

id String
The internal ID of the match list.
description This property is required. string
Match list description.
value This property is required. string
Match list item value.
expiration string

Match list item expiration. (Format: YYYY-MM-DDTHH:mm:ss)

The following attributes are exported:

id string
The internal ID of the match list.
description This property is required. str
Match list description.
value This property is required. str
Match list item value.
expiration str

Match list item expiration. (Format: YYYY-MM-DDTHH:mm:ss)

The following attributes are exported:

id str
The internal ID of the match list.
description This property is required. String
Match list description.
value This property is required. String
Match list item value.
expiration String

Match list item expiration. (Format: YYYY-MM-DDTHH:mm:ss)

The following attributes are exported:

id String
The internal ID of the match list.

Import

Match List can be imported using the field id, e.g.:

hcl

$ pulumi import sumologic:index/cseMatchList:CseMatchList match_list id
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Sumo Logic pulumi/pulumi-sumologic
License
Apache-2.0
Notes
This Pulumi package is based on the sumologic Terraform Provider.