1. Packages
  2. Sysdig Provider
  3. API Docs
  4. SecureList
sysdig 1.56.0 published on Wednesday, Apr 30, 2025 by sysdiglabs

sysdig.SecureList

Explore with Pulumi AI

sysdig logo
sysdig 1.56.0 published on Wednesday, Apr 30, 2025 by sysdiglabs

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as sysdig from "@pulumi/sysdig";
    
    const allowedDevFiles = new sysdig.SecureList("allowedDevFiles", {
        append: true,
        items: [
            "/dev/null",
            "/dev/stdin",
            "/dev/stdout",
            "/dev/stderr",
            "/dev/random",
            "/dev/urandom",
            "/dev/console",
            "/dev/kmsg",
        ],
    });
    
    import pulumi
    import pulumi_sysdig as sysdig
    
    allowed_dev_files = sysdig.SecureList("allowedDevFiles",
        append=True,
        items=[
            "/dev/null",
            "/dev/stdin",
            "/dev/stdout",
            "/dev/stderr",
            "/dev/random",
            "/dev/urandom",
            "/dev/console",
            "/dev/kmsg",
        ])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/sysdig/sysdig"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := sysdig.NewSecureList(ctx, "allowedDevFiles", &sysdig.SecureListArgs{
    			Append: pulumi.Bool(true),
    			Items: pulumi.StringArray{
    				pulumi.String("/dev/null"),
    				pulumi.String("/dev/stdin"),
    				pulumi.String("/dev/stdout"),
    				pulumi.String("/dev/stderr"),
    				pulumi.String("/dev/random"),
    				pulumi.String("/dev/urandom"),
    				pulumi.String("/dev/console"),
    				pulumi.String("/dev/kmsg"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Sysdig = Pulumi.Sysdig;
    
    return await Deployment.RunAsync(() => 
    {
        var allowedDevFiles = new Sysdig.SecureList("allowedDevFiles", new()
        {
            Append = true,
            Items = new[]
            {
                "/dev/null",
                "/dev/stdin",
                "/dev/stdout",
                "/dev/stderr",
                "/dev/random",
                "/dev/urandom",
                "/dev/console",
                "/dev/kmsg",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.sysdig.SecureList;
    import com.pulumi.sysdig.SecureListArgs;
    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 allowedDevFiles = new SecureList("allowedDevFiles", SecureListArgs.builder()
                .append(true)
                .items(            
                    "/dev/null",
                    "/dev/stdin",
                    "/dev/stdout",
                    "/dev/stderr",
                    "/dev/random",
                    "/dev/urandom",
                    "/dev/console",
                    "/dev/kmsg")
                .build());
    
        }
    }
    
    resources:
      allowedDevFiles:
        type: sysdig:SecureList
        properties:
          append: true
          # default: false
          items:
            - /dev/null
            - /dev/stdin
            - /dev/stdout
            - /dev/stderr
            - /dev/random
            - /dev/urandom
            - /dev/console
            - /dev/kmsg
    

    Create SecureList Resource

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

    Constructor syntax

    new SecureList(name: string, args: SecureListArgs, opts?: CustomResourceOptions);
    @overload
    def SecureList(resource_name: str,
                   args: SecureListArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def SecureList(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   items: Optional[Sequence[str]] = None,
                   append: Optional[bool] = None,
                   name: Optional[str] = None,
                   secure_list_id: Optional[str] = None,
                   timeouts: Optional[SecureListTimeoutsArgs] = None)
    func NewSecureList(ctx *Context, name string, args SecureListArgs, opts ...ResourceOption) (*SecureList, error)
    public SecureList(string name, SecureListArgs args, CustomResourceOptions? opts = null)
    public SecureList(String name, SecureListArgs args)
    public SecureList(String name, SecureListArgs args, CustomResourceOptions options)
    
    type: sysdig:SecureList
    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 SecureListArgs
    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 SecureListArgs
    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 SecureListArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SecureListArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SecureListArgs
    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 secureListResource = new Sysdig.SecureList("secureListResource", new()
    {
        Items = new[]
        {
            "string",
        },
        Append = false,
        Name = "string",
        SecureListId = "string",
        Timeouts = new Sysdig.Inputs.SecureListTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Read = "string",
            Update = "string",
        },
    });
    
    example, err := sysdig.NewSecureList(ctx, "secureListResource", &sysdig.SecureListArgs{
    	Items: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Append:       pulumi.Bool(false),
    	Name:         pulumi.String("string"),
    	SecureListId: pulumi.String("string"),
    	Timeouts: &sysdig.SecureListTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Read:   pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    })
    
    var secureListResource = new SecureList("secureListResource", SecureListArgs.builder()
        .items("string")
        .append(false)
        .name("string")
        .secureListId("string")
        .timeouts(SecureListTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .read("string")
            .update("string")
            .build())
        .build());
    
    secure_list_resource = sysdig.SecureList("secureListResource",
        items=["string"],
        append=False,
        name="string",
        secure_list_id="string",
        timeouts={
            "create": "string",
            "delete": "string",
            "read": "string",
            "update": "string",
        })
    
    const secureListResource = new sysdig.SecureList("secureListResource", {
        items: ["string"],
        append: false,
        name: "string",
        secureListId: "string",
        timeouts: {
            create: "string",
            "delete": "string",
            read: "string",
            update: "string",
        },
    });
    
    type: sysdig:SecureList
    properties:
        append: false
        items:
            - string
        name: string
        secureListId: string
        timeouts:
            create: string
            delete: string
            read: string
            update: string
    

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

    Items List<string>
    Elements in the list. Elements can be another lists.
    Append bool
    Adds these elements to an existing list. Used to extend existing lists provided by Sysdig. The rules can only be extended once, for example if there is an existing list called "foo", one can have another append rule called "foo" but not a second one. By default this is false.
    Name string
    The name of the Secure list. It must be unique if it's not in append mode.
    SecureListId string
    Timeouts SecureListTimeouts
    Items []string
    Elements in the list. Elements can be another lists.
    Append bool
    Adds these elements to an existing list. Used to extend existing lists provided by Sysdig. The rules can only be extended once, for example if there is an existing list called "foo", one can have another append rule called "foo" but not a second one. By default this is false.
    Name string
    The name of the Secure list. It must be unique if it's not in append mode.
    SecureListId string
    Timeouts SecureListTimeoutsArgs
    items List<String>
    Elements in the list. Elements can be another lists.
    append Boolean
    Adds these elements to an existing list. Used to extend existing lists provided by Sysdig. The rules can only be extended once, for example if there is an existing list called "foo", one can have another append rule called "foo" but not a second one. By default this is false.
    name String
    The name of the Secure list. It must be unique if it's not in append mode.
    secureListId String
    timeouts SecureListTimeouts
    items string[]
    Elements in the list. Elements can be another lists.
    append boolean
    Adds these elements to an existing list. Used to extend existing lists provided by Sysdig. The rules can only be extended once, for example if there is an existing list called "foo", one can have another append rule called "foo" but not a second one. By default this is false.
    name string
    The name of the Secure list. It must be unique if it's not in append mode.
    secureListId string
    timeouts SecureListTimeouts
    items Sequence[str]
    Elements in the list. Elements can be another lists.
    append bool
    Adds these elements to an existing list. Used to extend existing lists provided by Sysdig. The rules can only be extended once, for example if there is an existing list called "foo", one can have another append rule called "foo" but not a second one. By default this is false.
    name str
    The name of the Secure list. It must be unique if it's not in append mode.
    secure_list_id str
    timeouts SecureListTimeoutsArgs
    items List<String>
    Elements in the list. Elements can be another lists.
    append Boolean
    Adds these elements to an existing list. Used to extend existing lists provided by Sysdig. The rules can only be extended once, for example if there is an existing list called "foo", one can have another append rule called "foo" but not a second one. By default this is false.
    name String
    The name of the Secure list. It must be unique if it's not in append mode.
    secureListId String
    timeouts Property Map

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Version double
    Id string
    The provider-assigned unique ID for this managed resource.
    Version float64
    id String
    The provider-assigned unique ID for this managed resource.
    version Double
    id string
    The provider-assigned unique ID for this managed resource.
    version number
    id str
    The provider-assigned unique ID for this managed resource.
    version float
    id String
    The provider-assigned unique ID for this managed resource.
    version Number

    Look up Existing SecureList Resource

    Get an existing SecureList 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?: SecureListState, opts?: CustomResourceOptions): SecureList
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            append: Optional[bool] = None,
            items: Optional[Sequence[str]] = None,
            name: Optional[str] = None,
            secure_list_id: Optional[str] = None,
            timeouts: Optional[SecureListTimeoutsArgs] = None,
            version: Optional[float] = None) -> SecureList
    func GetSecureList(ctx *Context, name string, id IDInput, state *SecureListState, opts ...ResourceOption) (*SecureList, error)
    public static SecureList Get(string name, Input<string> id, SecureListState? state, CustomResourceOptions? opts = null)
    public static SecureList get(String name, Output<String> id, SecureListState state, CustomResourceOptions options)
    resources:  _:    type: sysdig:SecureList    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:
    Append bool
    Adds these elements to an existing list. Used to extend existing lists provided by Sysdig. The rules can only be extended once, for example if there is an existing list called "foo", one can have another append rule called "foo" but not a second one. By default this is false.
    Items List<string>
    Elements in the list. Elements can be another lists.
    Name string
    The name of the Secure list. It must be unique if it's not in append mode.
    SecureListId string
    Timeouts SecureListTimeouts
    Version double
    Append bool
    Adds these elements to an existing list. Used to extend existing lists provided by Sysdig. The rules can only be extended once, for example if there is an existing list called "foo", one can have another append rule called "foo" but not a second one. By default this is false.
    Items []string
    Elements in the list. Elements can be another lists.
    Name string
    The name of the Secure list. It must be unique if it's not in append mode.
    SecureListId string
    Timeouts SecureListTimeoutsArgs
    Version float64
    append Boolean
    Adds these elements to an existing list. Used to extend existing lists provided by Sysdig. The rules can only be extended once, for example if there is an existing list called "foo", one can have another append rule called "foo" but not a second one. By default this is false.
    items List<String>
    Elements in the list. Elements can be another lists.
    name String
    The name of the Secure list. It must be unique if it's not in append mode.
    secureListId String
    timeouts SecureListTimeouts
    version Double
    append boolean
    Adds these elements to an existing list. Used to extend existing lists provided by Sysdig. The rules can only be extended once, for example if there is an existing list called "foo", one can have another append rule called "foo" but not a second one. By default this is false.
    items string[]
    Elements in the list. Elements can be another lists.
    name string
    The name of the Secure list. It must be unique if it's not in append mode.
    secureListId string
    timeouts SecureListTimeouts
    version number
    append bool
    Adds these elements to an existing list. Used to extend existing lists provided by Sysdig. The rules can only be extended once, for example if there is an existing list called "foo", one can have another append rule called "foo" but not a second one. By default this is false.
    items Sequence[str]
    Elements in the list. Elements can be another lists.
    name str
    The name of the Secure list. It must be unique if it's not in append mode.
    secure_list_id str
    timeouts SecureListTimeoutsArgs
    version float
    append Boolean
    Adds these elements to an existing list. Used to extend existing lists provided by Sysdig. The rules can only be extended once, for example if there is an existing list called "foo", one can have another append rule called "foo" but not a second one. By default this is false.
    items List<String>
    Elements in the list. Elements can be another lists.
    name String
    The name of the Secure list. It must be unique if it's not in append mode.
    secureListId String
    timeouts Property Map
    version Number

    Supporting Types

    SecureListTimeouts, SecureListTimeoutsArgs

    Create string
    Delete string
    Read string
    Update string
    Create string
    Delete string
    Read string
    Update string
    create String
    delete String
    read String
    update String
    create string
    delete string
    read string
    update string
    create str
    delete str
    read str
    update str
    create String
    delete String
    read String
    update String

    Import

    Secure lists can be imported using the ID, e.g.

    $ pulumi import sysdig:index/secureList:SecureList example 12345
    

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

    Package Details

    Repository
    sysdig sysdiglabs/terraform-provider-sysdig
    License
    Notes
    This Pulumi package is based on the sysdig Terraform Provider.
    sysdig logo
    sysdig 1.56.0 published on Wednesday, Apr 30, 2025 by sysdiglabs