1. Packages
  2. Impart Security
  3. API Docs
  4. List
Viewing docs for Impart Security v0.11.3
published on Wednesday, Mar 18, 2026 by Impart Security
impart logo
Viewing docs for Impart Security v0.11.3
published on Wednesday, Mar 18, 2026 by Impart Security

    Manage a list.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as impart from "@impart-security/pulumi-impart";
    
    // Create a new string list
    const example = new impart.List("example", {
        name: "list_example",
        kind: "string",
        description: "list description",
        items: [
            {
                value: "item1",
            },
            {
                value: "item2",
            },
        ],
    });
    // Create a regex pattern list
    const regexExample = new impart.List("regex_example", {
        name: "regex_list_example",
        kind: "regex",
        description: "A list of regex patterns for matching",
        items: [
            {
                value: "^/api/v[0-9]+/users/.*$",
            },
            {
                value: "\\.(php|asp|aspx)$",
            },
        ],
    });
    // Create an Aho-Corasick pattern list
    const ahoCorasickExample = new impart.List("aho_corasick_example", {
        name: "aho_corasick_list_example",
        kind: "aho_corasick",
        description: "A list of patterns for Aho-Corasick matching",
        items: [
            {
                value: "SELECT * FROM",
            },
            {
                value: "DROP TABLE",
            },
        ],
    });
    
    import pulumi
    import pulumi_impart as impart
    
    # Create a new string list
    example = impart.List("example",
        name="list_example",
        kind="string",
        description="list description",
        items=[
            {
                "value": "item1",
            },
            {
                "value": "item2",
            },
        ])
    # Create a regex pattern list
    regex_example = impart.List("regex_example",
        name="regex_list_example",
        kind="regex",
        description="A list of regex patterns for matching",
        items=[
            {
                "value": "^/api/v[0-9]+/users/.*$",
            },
            {
                "value": "\\.(php|asp|aspx)$",
            },
        ])
    # Create an Aho-Corasick pattern list
    aho_corasick_example = impart.List("aho_corasick_example",
        name="aho_corasick_list_example",
        kind="aho_corasick",
        description="A list of patterns for Aho-Corasick matching",
        items=[
            {
                "value": "SELECT * FROM",
            },
            {
                "value": "DROP TABLE",
            },
        ])
    
    package main
    
    import (
    	"github.com/impart-security/pulumi-impart/sdk/go/impart"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// Create a new string list
    		_, err := impart.NewList(ctx, "example", &impart.ListArgs{
    			Name:        pulumi.String("list_example"),
    			Kind:        pulumi.String("string"),
    			Description: pulumi.String("list description"),
    			Items: impart.ListItemArray{
    				&impart.ListItemArgs{
    					Value: pulumi.String("item1"),
    				},
    				&impart.ListItemArgs{
    					Value: pulumi.String("item2"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		// Create a regex pattern list
    		_, err = impart.NewList(ctx, "regex_example", &impart.ListArgs{
    			Name:        pulumi.String("regex_list_example"),
    			Kind:        pulumi.String("regex"),
    			Description: pulumi.String("A list of regex patterns for matching"),
    			Items: impart.ListItemArray{
    				&impart.ListItemArgs{
    					Value: pulumi.String("^/api/v[0-9]+/users/.*$"),
    				},
    				&impart.ListItemArgs{
    					Value: pulumi.String("\\.(php|asp|aspx)$"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		// Create an Aho-Corasick pattern list
    		_, err = impart.NewList(ctx, "aho_corasick_example", &impart.ListArgs{
    			Name:        pulumi.String("aho_corasick_list_example"),
    			Kind:        pulumi.String("aho_corasick"),
    			Description: pulumi.String("A list of patterns for Aho-Corasick matching"),
    			Items: impart.ListItemArray{
    				&impart.ListItemArgs{
    					Value: pulumi.String("SELECT * FROM"),
    				},
    				&impart.ListItemArgs{
    					Value: pulumi.String("DROP TABLE"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Impart = Pulumi.Impart;
    
    return await Deployment.RunAsync(() => 
    {
        // Create a new string list
        var example = new Impart.List("example", new()
        {
            Name = "list_example",
            Kind = "string",
            Description = "list description",
            Items = new[]
            {
                new Impart.Inputs.ListItemArgs
                {
                    Value = "item1",
                },
                new Impart.Inputs.ListItemArgs
                {
                    Value = "item2",
                },
            },
        });
    
        // Create a regex pattern list
        var regexExample = new Impart.List("regex_example", new()
        {
            Name = "regex_list_example",
            Kind = "regex",
            Description = "A list of regex patterns for matching",
            Items = new[]
            {
                new Impart.Inputs.ListItemArgs
                {
                    Value = "^/api/v[0-9]+/users/.*$",
                },
                new Impart.Inputs.ListItemArgs
                {
                    Value = "\\.(php|asp|aspx)$",
                },
            },
        });
    
        // Create an Aho-Corasick pattern list
        var ahoCorasickExample = new Impart.List("aho_corasick_example", new()
        {
            Name = "aho_corasick_list_example",
            Kind = "aho_corasick",
            Description = "A list of patterns for Aho-Corasick matching",
            Items = new[]
            {
                new Impart.Inputs.ListItemArgs
                {
                    Value = "SELECT * FROM",
                },
                new Impart.Inputs.ListItemArgs
                {
                    Value = "DROP TABLE",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.impart.List;
    import com.pulumi.impart.ListArgs;
    import com.pulumi.impart.inputs.ListItemArgs;
    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) {
            // Create a new string list
            var example = new List("example", ListArgs.builder()
                .name("list_example")
                .kind("string")
                .description("list description")
                .items(            
                    ListItemArgs.builder()
                        .value("item1")
                        .build(),
                    ListItemArgs.builder()
                        .value("item2")
                        .build())
                .build());
    
            // Create a regex pattern list
            var regexExample = new List("regexExample", ListArgs.builder()
                .name("regex_list_example")
                .kind("regex")
                .description("A list of regex patterns for matching")
                .items(            
                    ListItemArgs.builder()
                        .value("^/api/v[0-9]+/users/.*$")
                        .build(),
                    ListItemArgs.builder()
                        .value("\\.(php|asp|aspx)$")
                        .build())
                .build());
    
            // Create an Aho-Corasick pattern list
            var ahoCorasickExample = new List("ahoCorasickExample", ListArgs.builder()
                .name("aho_corasick_list_example")
                .kind("aho_corasick")
                .description("A list of patterns for Aho-Corasick matching")
                .items(            
                    ListItemArgs.builder()
                        .value("SELECT * FROM")
                        .build(),
                    ListItemArgs.builder()
                        .value("DROP TABLE")
                        .build())
                .build());
    
        }
    }
    
    resources:
      # Create a new string list
      example:
        type: impart:List
        properties:
          name: list_example
          kind: string
          description: list description
          items:
            - value: item1
            - value: item2
      # Create a regex pattern list
      regexExample:
        type: impart:List
        name: regex_example
        properties:
          name: regex_list_example
          kind: regex
          description: A list of regex patterns for matching
          items:
            - value: ^/api/v[0-9]+/users/.*$
            - value: \.(php|asp|aspx)$
      # Create an Aho-Corasick pattern list
      ahoCorasickExample:
        type: impart:List
        name: aho_corasick_example
        properties:
          name: aho_corasick_list_example
          kind: aho_corasick
          description: A list of patterns for Aho-Corasick matching
          items:
            - value: SELECT * FROM
            - value: DROP TABLE
    

    Create List Resource

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

    Constructor syntax

    new List(name: string, args: ListArgs, opts?: CustomResourceOptions);
    @overload
    def List(resource_name: str,
             args: ListArgs,
             opts: Optional[ResourceOptions] = None)
    
    @overload
    def List(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             kind: Optional[str] = None,
             name: Optional[str] = None,
             description: Optional[str] = None,
             functionality: Optional[str] = None,
             items: Optional[Sequence[ListItemArgs]] = None,
             labels: Optional[Sequence[str]] = None,
             subkind: Optional[str] = None)
    func NewList(ctx *Context, name string, args ListArgs, opts ...ResourceOption) (*List, error)
    public List(string name, ListArgs args, CustomResourceOptions? opts = null)
    public List(String name, ListArgs args)
    public List(String name, ListArgs args, CustomResourceOptions options)
    
    type: impart:List
    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 ListArgs
    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 ListArgs
    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 ListArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ListArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ListArgs
    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 listResource = new Impart.Index.List("listResource", new()
    {
        Kind = "string",
        Name = "string",
        Description = "string",
        Functionality = "string",
        Items = new[]
        {
            new Impart.Inputs.ListItemArgs
            {
                Value = "string",
                Expiration = "string",
            },
        },
        Labels = new[]
        {
            "string",
        },
        Subkind = "string",
    });
    
    example, err := impart.NewList(ctx, "listResource", &impart.ListArgs{
    	Kind:          pulumi.String("string"),
    	Name:          pulumi.String("string"),
    	Description:   pulumi.String("string"),
    	Functionality: pulumi.String("string"),
    	Items: impart.ListItemArray{
    		&impart.ListItemArgs{
    			Value:      pulumi.String("string"),
    			Expiration: pulumi.String("string"),
    		},
    	},
    	Labels: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Subkind: pulumi.String("string"),
    })
    
    var listResource = new List("listResource", ListArgs.builder()
        .kind("string")
        .name("string")
        .description("string")
        .functionality("string")
        .items(ListItemArgs.builder()
            .value("string")
            .expiration("string")
            .build())
        .labels("string")
        .subkind("string")
        .build());
    
    list_resource = impart.List("listResource",
        kind="string",
        name="string",
        description="string",
        functionality="string",
        items=[{
            "value": "string",
            "expiration": "string",
        }],
        labels=["string"],
        subkind="string")
    
    const listResource = new impart.List("listResource", {
        kind: "string",
        name: "string",
        description: "string",
        functionality: "string",
        items: [{
            value: "string",
            expiration: "string",
        }],
        labels: ["string"],
        subkind: "string",
    });
    
    type: impart:List
    properties:
        description: string
        functionality: string
        items:
            - expiration: string
              value: string
        kind: string
        labels:
            - string
        name: string
        subkind: string
    

    List 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 List resource accepts the following input properties:

    Kind string
    The list kind.
    Name string
    The name for this list.
    Description string
    The description for this list.
    Functionality string
    The list functionality. Allowed values are add, add/remove, and none (cloud managed).
    Items List<ListItem>
    The list items.
    Labels List<string>
    The applied labels.
    Subkind string
    The list subkind.
    Kind string
    The list kind.
    Name string
    The name for this list.
    Description string
    The description for this list.
    Functionality string
    The list functionality. Allowed values are add, add/remove, and none (cloud managed).
    Items []ListItemArgs
    The list items.
    Labels []string
    The applied labels.
    Subkind string
    The list subkind.
    kind String
    The list kind.
    name String
    The name for this list.
    description String
    The description for this list.
    functionality String
    The list functionality. Allowed values are add, add/remove, and none (cloud managed).
    items List<ListItem>
    The list items.
    labels List<String>
    The applied labels.
    subkind String
    The list subkind.
    kind string
    The list kind.
    name string
    The name for this list.
    description string
    The description for this list.
    functionality string
    The list functionality. Allowed values are add, add/remove, and none (cloud managed).
    items ListItem[]
    The list items.
    labels string[]
    The applied labels.
    subkind string
    The list subkind.
    kind str
    The list kind.
    name str
    The name for this list.
    description str
    The description for this list.
    functionality str
    The list functionality. Allowed values are add, add/remove, and none (cloud managed).
    items Sequence[ListItemArgs]
    The list items.
    labels Sequence[str]
    The applied labels.
    subkind str
    The list subkind.
    kind String
    The list kind.
    name String
    The name for this list.
    description String
    The description for this list.
    functionality String
    The list functionality. Allowed values are add, add/remove, and none (cloud managed).
    items List<Property Map>
    The list items.
    labels List<String>
    The applied labels.
    subkind String
    The list subkind.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the List 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 Existing List Resource

    Get an existing List 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?: ListState, opts?: CustomResourceOptions): List
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            functionality: Optional[str] = None,
            items: Optional[Sequence[ListItemArgs]] = None,
            kind: Optional[str] = None,
            labels: Optional[Sequence[str]] = None,
            name: Optional[str] = None,
            subkind: Optional[str] = None) -> List
    func GetList(ctx *Context, name string, id IDInput, state *ListState, opts ...ResourceOption) (*List, error)
    public static List Get(string name, Input<string> id, ListState? state, CustomResourceOptions? opts = null)
    public static List get(String name, Output<String> id, ListState state, CustomResourceOptions options)
    resources:  _:    type: impart:List    get:      id: ${id}
    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 for this list.
    Functionality string
    The list functionality. Allowed values are add, add/remove, and none (cloud managed).
    Items List<ListItem>
    The list items.
    Kind string
    The list kind.
    Labels List<string>
    The applied labels.
    Name string
    The name for this list.
    Subkind string
    The list subkind.
    Description string
    The description for this list.
    Functionality string
    The list functionality. Allowed values are add, add/remove, and none (cloud managed).
    Items []ListItemArgs
    The list items.
    Kind string
    The list kind.
    Labels []string
    The applied labels.
    Name string
    The name for this list.
    Subkind string
    The list subkind.
    description String
    The description for this list.
    functionality String
    The list functionality. Allowed values are add, add/remove, and none (cloud managed).
    items List<ListItem>
    The list items.
    kind String
    The list kind.
    labels List<String>
    The applied labels.
    name String
    The name for this list.
    subkind String
    The list subkind.
    description string
    The description for this list.
    functionality string
    The list functionality. Allowed values are add, add/remove, and none (cloud managed).
    items ListItem[]
    The list items.
    kind string
    The list kind.
    labels string[]
    The applied labels.
    name string
    The name for this list.
    subkind string
    The list subkind.
    description str
    The description for this list.
    functionality str
    The list functionality. Allowed values are add, add/remove, and none (cloud managed).
    items Sequence[ListItemArgs]
    The list items.
    kind str
    The list kind.
    labels Sequence[str]
    The applied labels.
    name str
    The name for this list.
    subkind str
    The list subkind.
    description String
    The description for this list.
    functionality String
    The list functionality. Allowed values are add, add/remove, and none (cloud managed).
    items List<Property Map>
    The list items.
    kind String
    The list kind.
    labels List<String>
    The applied labels.
    name String
    The name for this list.
    subkind String
    The list subkind.

    Supporting Types

    ListItem, ListItemArgs

    Value string
    The list item value.
    Expiration string
    The list item expiration.
    Value string
    The list item value.
    Expiration string
    The list item expiration.
    value String
    The list item value.
    expiration String
    The list item expiration.
    value string
    The list item value.
    expiration string
    The list item expiration.
    value str
    The list item value.
    expiration str
    The list item expiration.
    value String
    The list item value.
    expiration String
    The list item expiration.

    Package Details

    Repository
    impart impart-security/pulumi-impart
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the impart Terraform Provider.
    impart logo
    Viewing docs for Impart Security v0.11.3
    published on Wednesday, Mar 18, 2026 by Impart Security
      Try Pulumi Cloud free. Your team will thank you.