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",
}],
});
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=[sumologic.CseMatchListItemArgs(
description="IP address",
value="192.168.0.1",
expiration="2022-02-27T04:00:00",
)])
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
})
}
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",
},
},
});
});
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());
}
}
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
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 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.
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",
});
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"),
})
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());
cse_match_list_resource = sumologic.CseMatchList("cseMatchListResource",
description="string",
target_column="string",
default_ttl=0,
items=[sumologic.CseMatchListItemArgs(
description="string",
value="string",
expiration="string",
id="string",
)],
name="string")
const cseMatchListResource = new sumologic.CseMatchList("cseMatchListResource", {
description: "string",
targetColumn: "string",
defaultTtl: 0,
items: [{
description: "string",
value: "string",
expiration: "string",
id: "string",
}],
name: "string",
});
type: sumologic:CseMatchList
properties:
defaultTtl: 0
description: string
items:
- description: string
expiration: string
id: string
value: string
name: string
targetColumn: string
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.
- Target
Column 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.)
- Default
Ttl int - The default time to live for match list items added through the UI. Specified in seconds.
- Items
List<Pulumi.
Sumo Logic. Inputs. Cse Match List Item> - Name string
- Match list name.
- Description string
- Match list description.
- Target
Column 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.)
- Default
Ttl int - The default time to live for match list items added through the UI. Specified in seconds.
- Items
[]Cse
Match List Item Args - Name string
- Match list name.
- description String
- Match list description.
- target
Column 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.)
- default
Ttl Integer - The default time to live for match list items added through the UI. Specified in seconds.
- items
List<Cse
Match List Item> - name String
- Match list name.
- description string
- Match list description.
- target
Column 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.)
- default
Ttl number - The default time to live for match list items added through the UI. Specified in seconds.
- items
Cse
Match List Item[] - 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[Cse
Match List Item Args] - name str
- Match list name.
- description String
- Match list description.
- target
Column 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.)
- default
Ttl 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
- Created
By string - Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated string - Last
Updated stringBy
- Created string
- Created
By string - Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated string - Last
Updated stringBy
- created String
- created
By String - id String
- The provider-assigned unique ID for this managed resource.
- last
Updated String - last
Updated StringBy
- created string
- created
By string - id string
- The provider-assigned unique ID for this managed resource.
- last
Updated string - last
Updated stringBy
- created str
- created_
by str - id str
- The provider-assigned unique ID for this managed resource.
- last_
updated str - last_
updated_ strby
- created String
- created
By String - id String
- The provider-assigned unique ID for this managed resource.
- last
Updated String - last
Updated StringBy
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.
- Created string
- Created
By string - Default
Ttl 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.
Sumo Logic. Inputs. Cse Match List Item> - Last
Updated string - Last
Updated stringBy - Name string
- Match list name.
- Target
Column 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
- Created
By string - Default
Ttl int - The default time to live for match list items added through the UI. Specified in seconds.
- Description string
- Match list description.
- Items
[]Cse
Match List Item Args - Last
Updated string - Last
Updated stringBy - Name string
- Match list name.
- Target
Column 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
- created
By String - default
Ttl Integer - The default time to live for match list items added through the UI. Specified in seconds.
- description String
- Match list description.
- items
List<Cse
Match List Item> - last
Updated String - last
Updated StringBy - name String
- Match list name.
- target
Column 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
- created
By string - default
Ttl number - The default time to live for match list items added through the UI. Specified in seconds.
- description string
- Match list description.
- items
Cse
Match List Item[] - last
Updated string - last
Updated stringBy - name string
- Match list name.
- target
Column 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[Cse
Match List Item Args] - last_
updated str - last_
updated_ strby - 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
- created
By String - default
Ttl 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>
- last
Updated String - last
Updated StringBy - name String
- Match list name.
- target
Column 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
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.