1. Packages
  2. Sumo Logic
  3. API Docs
  4. CseMatchList
Sumo Logic v0.20.3 published on Wednesday, Mar 6, 2024 by Pulumi

sumologic.CseMatchList

Explore with Pulumi AI

sumologic logo
Sumo Logic v0.20.3 published on Wednesday, Mar 6, 2024 by Pulumi

    Provides a Sumologic CSE Match List.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using SumoLogic = Pulumi.SumoLogic;
    
    return await Deployment.RunAsync(() => 
    {
        var matchList = new SumoLogic.CseMatchList("matchList", new()
        {
            DefaultTtl = 10800,
            Description = "Match list description",
            Items = new[]
            {
                new SumoLogic.Inputs.CseMatchListItemArgs
                {
                    Description = "IP address",
                    Expiration = "2022-02-27T04:00:00",
                    Value = "192.168.0.1",
                },
            },
            TargetColumn = "SrcIp",
        });
    
    });
    
    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, "matchList", &sumologic.CseMatchListArgs{
    			DefaultTtl:  pulumi.Int(10800),
    			Description: pulumi.String("Match list description"),
    			Items: sumologic.CseMatchListItemArray{
    				&sumologic.CseMatchListItemArgs{
    					Description: pulumi.String("IP address"),
    					Expiration:  pulumi.String("2022-02-27T04:00:00"),
    					Value:       pulumi.String("192.168.0.1"),
    				},
    			},
    			TargetColumn: pulumi.String("SrcIp"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    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")
                .items(CseMatchListItemArgs.builder()
                    .description("IP address")
                    .expiration("2022-02-27T04:00:00")
                    .value("192.168.0.1")
                    .build())
                .targetColumn("SrcIp")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_sumologic as sumologic
    
    match_list = sumologic.CseMatchList("matchList",
        default_ttl=10800,
        description="Match list description",
        items=[sumologic.CseMatchListItemArgs(
            description="IP address",
            expiration="2022-02-27T04:00:00",
            value="192.168.0.1",
        )],
        target_column="SrcIp")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as sumologic from "@pulumi/sumologic";
    
    const matchList = new sumologic.CseMatchList("matchList", {
        defaultTtl: 10800,
        description: "Match list description",
        items: [{
            description: "IP address",
            expiration: "2022-02-27T04:00:00",
            value: "192.168.0.1",
        }],
        targetColumn: "SrcIp",
    });
    
    resources:
      matchList:
        type: sumologic:CseMatchList
        properties:
          defaultTtl: 10800
          description: Match list description
          items:
            - description: IP address
              expiration: 2022-02-27T04:00:00
              value: 192.168.0.1
          targetColumn: SrcIp
    

    Create CseMatchList Resource

    new CseMatchList(name: string, args: CseMatchListArgs, opts?: CustomResourceOptions);
    @overload
    def CseMatchList(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     default_ttl: Optional[int] = None,
                     description: Optional[str] = None,
                     items: Optional[Sequence[CseMatchListItemArgs]] = None,
                     name: Optional[str] = None,
                     target_column: Optional[str] = None)
    @overload
    def CseMatchList(resource_name: str,
                     args: CseMatchListArgs,
                     opts: Optional[ResourceOptions] = 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.
    
    
    name string
    The unique name of the resource.
    args CseMatchListArgs
    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 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 string
    The unique name of the resource.
    args CseMatchListArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CseMatchListArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CseMatchListArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    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

    The CseMatchList resource accepts the following input properties:

    Description string
    Match list description.
    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.)
    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 string
    Match list description.
    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.)
    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 String
    Match list description.
    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.)
    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 string
    Match list description.
    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.)
    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 str
    Match list description.
    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.)
    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 String
    Match list description.
    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.)
    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)
    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:
    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 string
    Match list description.
    Value 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 string
    Match list description.
    Value 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 String
    Match list description.
    value 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 string
    Match list description.
    value 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 str
    Match list description.
    value 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 String
    Match list description.
    value 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
    

    Package Details

    Repository
    Sumo Logic pulumi/pulumi-sumologic
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the sumologic Terraform Provider.
    sumologic logo
    Sumo Logic v0.20.3 published on Wednesday, Mar 6, 2024 by Pulumi